|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface MutableSnapshot
A Mutable snapshot is one that can be changed (i.e., a "sandbox") until such time as it is "fixed" (committed to the repository). Once a snapshot is fixed it becomes immutable.
Method Summary | |
---|---|
void |
addCreatedVersion(Version ver)
Adds a newly-created version to the snapshot. |
void |
addEffectiveVersion(Version ver)
Adds an effective version to the sandbox. |
void |
excludeVersion(java.lang.String versionId)
Excludes the version from the set of visible versions on the snapshot. |
void |
initialize(Branch br,
java.lang.String objId,
java.lang.String objName)
Initialize a newly-created mutable snapshot. |
void |
removeCreatedVersion(Resource resource)
Removes the version for the specified resource from the created versions list. |
void |
removeCreatedVersion(Version version)
Removes the version for the specified resource from the created versions list. |
void |
setBranch(Branch branch)
|
void |
setPreviousSnapshot(Snapshot snap)
Sets the previous snapshot. |
Methods inherited from interface org.xiruss.snapcm.api.Snapshot |
---|
checkIsNotFixed, getBranch, getCreatedVersions, getEffectiveVersions, getExcludedVersions, getNext, getPrevious, getVersion, getVersionById, getVersionsByPropertyValue, getVersionsByResource, getVisibleVersionCount, getVisibleVersions, initialize, isFixed, resourceIsVisible, setNext, versionIsVisible, versionIsVisible |
Methods inherited from interface org.xiruss.snapcm.api.RepositoryObject |
---|
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, getType, hasProperty, initialize, isNull, setId, setName, setProperty, toString |
Method Detail |
---|
void initialize(Branch br, java.lang.String objId, java.lang.String objName) throws ObjectMutationException
br
- objId
- objName
-
ObjectMutationException
void addCreatedVersion(Version ver) throws SnapCMException
ver
- Version to add. The version must be new, meaning it
is unfixed.
VersionException
SnapshotException
SnapCMException
void removeCreatedVersion(Resource resource) throws SnapCMException
resource
- Resource of the version to be removed.
SnapCMException
void removeCreatedVersion(Version version) throws SnapCMException
version
- Version to be removed.
SnapCMException
void setPreviousSnapshot(Snapshot snap)
latest
- void excludeVersion(java.lang.String versionId) throws SnapshotException
versionId
- ID of the version to be excluded.
SnapshotException
- If version is neither effective nor createdvoid setBranch(Branch branch)
void addEffectiveVersion(Version ver) throws SnapshotException
ver
-
SnapshotException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |