org.xiruss.snapcm.api
Interface Resource

All Superinterfaces:
RepositoryObject
All Known Implementing Classes:
NullResource, ResourceBase, ResourceProxy

public interface Resource
extends RepositoryObject


Method Summary
 void addVersion(Version version)
           
 VersionMap getInitialVersions()
          Gets a map of the initial versions for the resource.
 long getVersionCount()
          Returns the total number of versions for this resource.
 VersionMap getVersions()
           
 
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

getVersions

VersionMap getVersions()

addVersion

void addVersion(Version version)
Parameters:
version -

getInitialVersions

VersionMap getInitialVersions()
Gets a map of the initial versions for the resource. Initial versions are versions that have no previous version.

Returns:
Map of initial versions, if any

getVersionCount

long getVersionCount()
Returns the total number of versions for this resource.