public interface ISnapshot
ISandbox
.
Most of the work on the resource is done in the snapshot for the Version Control system.
These methods provide the generic resource management for an action and or state
on a Sanbox in the version control system. A snapshot it a picture in time
of the branch IBranch
which it was taken from.Modifier and Type | Field and Description |
---|---|
static int |
ORIGIN_ALL |
static int |
ORIGIN_CREATED |
static int |
ORIGIN_REF |
Modifier and Type | Method and Description |
---|---|
IBranch |
getBranch()
Get the branch
IBranch that the snapshot was created from. |
String |
getId()
Get the ID for the snapshot
|
long |
getIndex()
The index location in time that the snapshot exisits.
|
String |
getName()
Get the name of the Snapshot
|
ISnapshot |
getNext()
Get the next snapshot in history
|
ISnapshot |
getPrev()
Get the previous snapshot in history
|
List<IVersion> |
getRootVersions(int begin,
int end)
Get the root version which the snapshot was based off of.
|
List<ISync> |
getSourceSyncs(int begin,
int end)
Get the Syncs which the snapshot interacted with.
|
Time |
getTime()
Get the Time that the snapshot was created or modified
|
IVersion |
getVersionFor(IResource resource)
|
List<ISync> |
getVersions(int begin,
int end)
Get the Syncs which the snapshot interacted with.
|
List<IVersion> |
getVersions(int originKind,
String ofClass,
int begin,
int end)
Get a list of
IVersion s |
boolean |
hasResource(IResource resource)
Does a snapshot contain a
IResource |
static final int ORIGIN_ALL
static final int ORIGIN_REF
static final int ORIGIN_CREATED
String getId() throws VersionException
VersionException
String getName() throws VersionException
VersionException
Time getTime() throws VersionException
VersionException
long getIndex() throws VersionException
VersionException
ISnapshot getNext() throws VersionException
VersionException
ISnapshot getPrev() throws VersionException
VersionException
IBranch getBranch() throws VersionException
IBranch
that the snapshot was created from.VersionException
List<ISync> getSourceSyncs(int begin, int end) throws VersionException
being
- the index location to beginend
- the index location to endVersionException
List<ISync> getVersions(int begin, int end) throws VersionException
being
- the index location to beginend
- the index location to endVersionException
List<IVersion> getVersions(int originKind, String ofClass, int begin, int end) throws VersionException
IVersion
sbeing
- the index location to beginend
- the index location to endofClass
- the type of versionoriginKind
- the type of version on a branchIVersion
VersionException
List<IVersion> getRootVersions(int begin, int end) throws VersionException
being
- the index location to beginend
- the index location to endVersionException
boolean hasResource(IResource resource) throws VersionException
IResource
resource
- the object to evaluateVersionException
IVersion getVersionFor(IResource resource) throws VersionException
resource
- to get the version fromIVersion
- the version object from the resourceVersionException