|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.xiruss.snapcm.api.NullRepositoryObject org.xiruss.snapcm.api.NullSnapshot org.xiruss.snapcm.api.NullMutableSnapshot
public class NullMutableSnapshot
A null mutable snapshot.
Constructor Summary | |
---|---|
NullMutableSnapshot()
|
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. |
boolean |
isFixed()
If true, indicates that the snapshot is fixed and committed to the repository. |
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 class org.xiruss.snapcm.api.NullSnapshot |
---|
checkIsNotFixed, getBranch, getCreatedVersions, getEffectiveVersions, getExcludedVersions, getNext, getPrevious, getType, getVersion, getVersionById, getVersionsByPropertyValue, getVersionsByResource, getVisibleVersionCount, getVisibleVersions, initialize, initialize, resourceIsVisible, setId, setNext, versionIsVisible, versionIsVisible |
Methods inherited from class org.xiruss.snapcm.api.NullRepositoryObject |
---|
accept, compareTo, getId, getName, getProperties, getProperty, getPropertyNames, getRepository, hasProperty, isNull, setName, setProperty |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.xiruss.snapcm.api.Snapshot |
---|
checkIsNotFixed, getBranch, getCreatedVersions, getEffectiveVersions, getExcludedVersions, getNext, getPrevious, getVersion, getVersionById, getVersionsByPropertyValue, getVersionsByResource, getVisibleVersionCount, getVisibleVersions, initialize, 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 |
Constructor Detail |
---|
public NullMutableSnapshot()
Method Detail |
---|
public boolean isFixed()
Snapshot
isFixed
in interface Snapshot
isFixed
in class NullSnapshot
public void initialize(Branch br, java.lang.String objId, java.lang.String objName) throws ObjectMutationException
MutableSnapshot
initialize
in interface MutableSnapshot
ObjectMutationException
public void addCreatedVersion(Version ver) throws SnapCMException
MutableSnapshot
addCreatedVersion
in interface MutableSnapshot
ver
- Version to add. The version must be new, meaning it
is unfixed.
VersionException
SnapshotException
SnapCMException
public void removeCreatedVersion(Resource resource) throws SnapCMException
MutableSnapshot
removeCreatedVersion
in interface MutableSnapshot
resource
- Resource of the version to be removed.
SnapCMException
public void setPreviousSnapshot(Snapshot snap)
MutableSnapshot
setPreviousSnapshot
in interface MutableSnapshot
public void excludeVersion(java.lang.String versionId) throws SnapshotException
MutableSnapshot
excludeVersion
in interface MutableSnapshot
versionId
- ID of the version to be excluded.
SnapshotException
- If version is neither effective nor createdpublic void setBranch(Branch branch)
setBranch
in interface MutableSnapshot
public void addEffectiveVersion(Version ver)
MutableSnapshot
addEffectiveVersion
in interface MutableSnapshot
public void removeCreatedVersion(Version version) throws SnapCMException
MutableSnapshot
removeCreatedVersion
in interface MutableSnapshot
version
- Version to be removed.
SnapCMException
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |