|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.xiruss.xirussrepository.client.RepositoryObjectProxy
org.xiruss.xirussrepository.client.SnapshotProxy
public class SnapshotProxy
| Field Summary | |
|---|---|
protected java.lang.String |
branchId
|
| Fields inherited from class org.xiruss.xirussrepository.client.RepositoryObjectProxy |
|---|
cHelper, logger, objectTypeCode, pathToMe |
| Constructor Summary | |
|---|---|
SnapshotProxy(XirussHttpApiClientHelper helper,
org.w3c.dom.Element dataSource)
|
|
| Method Summary | |
|---|---|
void |
checkIsNotFixed()
Throws an exception is the snapshot is fixed. |
Branch |
getBranch()
|
VersionByResourceMap |
getCreatedVersions()
|
VersionByResourceMap |
getEffectiveVersions()
Returns a copy of the effective versions map. |
VersionByResourceMap |
getExcludedVersions()
Returns a copy of the excluded versions map. |
Snapshot |
getNext()
Returns the snapshot that follows this one on the branch, if any. |
Snapshot |
getPrevious()
Returns the previous snapshot on the snapshot's branch, if any. |
Version |
getVersion(Resource res)
Given a resource, returns the version of that resource that has been created on or is effective on the snapshot. |
Version |
getVersionById(java.lang.String verId)
|
VersionMap |
getVersionsByPropertyValue(java.lang.String propertyName,
java.lang.Object testValue)
Returns the set of versions that exhibit the specified value for the specified property. |
VersionByResourceMap |
getVersionsByResource()
|
long |
getVisibleVersionCount()
Returns the number of versions that are visible on the snapshot. |
VersionByResourceMap |
getVisibleVersions()
Returns a map of the versions visible on this snapshot. |
void |
initialize(Branch br,
java.lang.String objId,
java.lang.String objName)
|
void |
initialize(MutableSnapshot baseSnapshot,
java.lang.String objId,
java.util.Date commitTime)
Initialize a mutable or immutable snapshot using an existing snapshot as the base. |
boolean |
isFixed()
If true, indicates that the snapshot is fixed and committed to the repository. |
boolean |
resourceIsVisible(Resource res)
|
Snapshot |
setNext(Snapshot nextSnapshot)
|
boolean |
versionIsVisible(java.lang.String versionId)
Returns true if the specified version is visible on the snapshot, meaning that it is a created or effective version. |
boolean |
versionIsVisible(Version ver)
Returns true if the specified version is visible on the snapshot, meaning that it is a created or effective version. |
| Methods inherited from class org.xiruss.xirussrepository.client.RepositoryObjectProxy |
|---|
accept, compareTo, doPost, doStringReturnPost, equals, getBooleanValue, getId, getName, getOriginalClassName, getPathToMe, getProperties, getProperty, getPropertyNames, getRepository, getStringReturnValue, getStringSetReturnValue, getType, hasProperty, initialize, initialize, isNull, loadRepositoryObjectData, setId, setName, setProperty, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| 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 |
| Field Detail |
|---|
protected java.lang.String branchId
| Constructor Detail |
|---|
public SnapshotProxy(XirussHttpApiClientHelper helper,
org.w3c.dom.Element dataSource)
throws XirussRepositoryException
XirussRepositoryException| Method Detail |
|---|
public void initialize(Branch br,
java.lang.String objId,
java.lang.String objName)
throws ObjectMutationException
ObjectMutationException
public void initialize(MutableSnapshot baseSnapshot,
java.lang.String objId,
java.util.Date commitTime)
throws ObjectMutationException
Snapshot
initialize in interface SnapshotbaseSnapshot - Snapshot to use as the initialization source.objId - Object ID of the newly-created snapshot.
ObjectMutationExceptionpublic Snapshot getPrevious()
Snapshot
getPrevious in interface Snapshotpublic Version getVersion(Resource res)
Snapshot
getVersion in interface Snapshot
public void checkIsNotFixed()
throws ObjectMutationException
Snapshot
checkIsNotFixed in interface SnapshotObjectMutationException
public VersionMap getVersionsByPropertyValue(java.lang.String propertyName,
java.lang.Object testValue)
Snapshot
getVersionsByPropertyValue in interface SnapshotpropertyName - The name of the property to check.testValue - The property value to check for.
public VersionByResourceMap getVisibleVersions()
Snapshot
getVisibleVersions in interface Snapshotpublic boolean isFixed()
Snapshot
isFixed in interface Snapshotpublic Version getVersionById(java.lang.String verId)
getVersionById in interface SnapshotverId - String key for a version
public Branch getBranch()
getBranch in interface Snapshotpublic Snapshot getNext()
Snapshot
getNext in interface Snapshotpublic Snapshot setNext(Snapshot nextSnapshot)
setNext in interface Snapshotpublic VersionByResourceMap getCreatedVersions()
getCreatedVersions in interface Snapshotpublic VersionByResourceMap getEffectiveVersions()
Snapshot
getEffectiveVersions in interface Snapshotpublic VersionByResourceMap getExcludedVersions()
Snapshot
getExcludedVersions in interface Snapshotpublic boolean versionIsVisible(java.lang.String versionId)
Snapshot
versionIsVisible in interface SnapshotversionId - ID of the version to check for
public boolean versionIsVisible(Version ver)
Snapshot
versionIsVisible in interface Snapshotver - The version to check for
public boolean resourceIsVisible(Resource res)
resourceIsVisible in interface Snapshotpublic long getVisibleVersionCount()
Snapshot
getVisibleVersionCount in interface Snapshotpublic VersionByResourceMap getVersionsByResource()
getVersionsByResource in interface Snapshot
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||