Interface ISnapshot
- All Known Subinterfaces:
ISandbox
public interface ISnapshot
This interface is the base object for the
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.-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
-
Method Summary
Modifier and TypeMethodDescriptionGet the branchIBranch
that the snapshot was created from.getId()
Get the ID for the snapshotlong
getIndex()
The index location in time that the snapshot exisits.getName()
Get the name of the SnapshotgetNext()
Get the next snapshot in historygetPrev()
Get the previous snapshot in historygetRootVersions
(int begin, int end) Get the root version which the snapshot was based off of.getSourceSyncs
(int begin, int end) Get the Syncs which the snapshot interacted with.getTime()
Get the Time that the snapshot was created or modifiedgetVersionFor
(IResource resource) getVersions
(int begin, int end) Get the Syncs which the snapshot interacted with.getVersions
(int originKind, String ofClass, int begin, int end) Get a list ofIVersion
sboolean
hasResource
(IResource resource) Does a snapshot contain aIResource
-
Field Details
-
ORIGIN_ALL
static final int ORIGIN_ALL- See Also:
-
ORIGIN_REF
static final int ORIGIN_REF- See Also:
-
ORIGIN_CREATED
static final int ORIGIN_CREATED- See Also:
-
-
Method Details
-
getId
Get the ID for the snapshot- Returns:
- a string which is the ID
- Throws:
VersionException
-
getName
Get the name of the Snapshot- Returns:
- String the name
- Throws:
VersionException
-
getTime
Get the Time that the snapshot was created or modified- Returns:
- the time of creation
- Throws:
VersionException
-
getIndex
The index location in time that the snapshot exisits.- Returns:
- long the ID of the Snapshot in serries
- Throws:
VersionException
-
getNext
Get the next snapshot in history- Returns:
- a snapshot object
- Throws:
VersionException
-
getPrev
Get the previous snapshot in history- Returns:
- a snapshot object
- Throws:
VersionException
-
getBranch
Get the branchIBranch
that the snapshot was created from.- Returns:
- IBranch the branch that the snapshot was taken from
- Throws:
VersionException
-
getSourceSyncs
Get the Syncs which the snapshot interacted with.- Parameters:
being
- the index location to beginend
- the index location to end- Returns:
- a list of (@link ISync} objects
- Throws:
VersionException
-
getVersions
Get the Syncs which the snapshot interacted with.- Parameters:
being
- the index location to beginend
- the index location to end- Returns:
- a list of (@link ISync} objects
- Throws:
VersionException
-
getVersions
List<IVersion> getVersions(int originKind, String ofClass, int begin, int end) throws VersionException Get a list ofIVersion
s- Parameters:
being
- the index location to beginend
- the index location to endofClass
- the type of versionoriginKind
- the type of version on a branch- Returns:
- a list of
IVersion
- Throws:
VersionException
-
getRootVersions
Get the root version which the snapshot was based off of.- Parameters:
being
- the index location to beginend
- the index location to end- Returns:
- a list of (@link IVersion} objects
- Throws:
VersionException
-
hasResource
Does a snapshot contain aIResource
- Parameters:
resource
- the object to evaluate- Returns:
- boolean does it exisit
- Throws:
VersionException
-
getVersionFor
- Parameters:
resource
- to get the version fromIVersion
- the version object from the resource- Throws:
VersionException
-