ORIGIN_ALL, ORIGIN_CREATED, ORIGIN_REF
Modifier and Type | Method and Description |
---|---|
void |
deleteResource(IResource resource)
Remove all version for a resource in a sandbox
|
List<IResource> |
getDeletedResources(int begin,
int end)
Getting a list of resources deleted on a sandbox.
|
List<IVersion> |
getEffectiveVersions(int begin,
int end)
Returns version that are marked as effective on sandbox.
|
Map<String,String> |
getResultOfChange()
Returns map between submitted resources ID and new resources IDs
that resource get after calling saveToBranch.
|
IVersion |
modifyVersion(IVersion version)
Creates or modifies the version from a previous version.
|
void |
moveVersion(ISnapshot snapshot,
List<IResource> resourceList)
Sync a sandbox from a snapshot on a branch with a list of resources to
include in the Sync.
|
void |
removeEffectiveVersion(IVersion version)
Removes the version as the effective and reverts the versoin on the sandbox
to the default version.
|
ISnapshot |
saveToBranch()
Save the snapshot to the branch.
|
void |
setAsEffectiveVersion(IVersion version)
Set a version to the efffective version in a sandbox.
|
void |
syncFrom(ISnapshot snapshot,
List<IResource> resourceList,
List<IVersion> effectiveVersionList,
String message)
Sync a sandbox from a snapshot on a branch with a list of resources to
include in the Sync.
|
void |
unSyncFrom(ISnapshot snapshot)
Removes all of the versioning information (ie.
|
void |
updateSandbox(ISnapshot snapshot,
List<IVersion> effectiveVersionList)
Updates a sandbox based off of a snapshot.
|
getBranch, getId, getIndex, getName, getNext, getPrev, getRootVersions, getSourceSyncs, getTime, getVersionFor, getVersions, getVersions, hasResource
IVersion modifyVersion(IVersion version) throws VersionException
VersionException
void deleteResource(IResource resource) throws VersionException
VersionException
List<IVersion> getEffectiveVersions(int begin, int end) throws VersionException
begin
- the start index in to a list of versionsend
- the end index in to a list of versionsVersionException
List<IResource> getDeletedResources(int begin, int end) throws VersionException
begin
- the start index in to a list of resourcesend
- the end index in to a list of resourcesVersionException
void syncFrom(ISnapshot snapshot, List<IResource> resourceList, List<IVersion> effectiveVersionList, String message) throws VersionException
snapshot
- the snapshot to sync fromresourceList
- a list of resources to include in the sandboxeffectiveVersionList
- a list of versions to take precedent in the sandboxmessage
- a description or message to save with the syncVersionException
void moveVersion(ISnapshot snapshot, List<IResource> resourceList) throws VersionException
snapshot
- the snapshot to sync fromresourceList
- a list of resources to include in the sandboxVersionException
void updateSandbox(ISnapshot snapshot, List<IVersion> effectiveVersionList) throws VersionException
snapshot
- the snapshot to sync fromeffectiveVersionList
- a list of versions to take precedent in the sandboxVersionException
void unSyncFrom(ISnapshot snapshot) throws VersionException
snapshot
- the snapshot to un-sync fromVersionException
void setAsEffectiveVersion(IVersion version) throws VersionException
version
- set this version object to the effective version on a sandboxVersionException
void removeEffectiveVersion(IVersion version) throws VersionException
version
- removes this version object as the effective version on a sandboxVersionException
ISnapshot saveToBranch() throws VersionException
VersionException
Map<String,String> getResultOfChange() throws VersionException
VersionException