public interface IVersion
IVersionedStorage
and IVersionedContainer
.
These methods provide the generic version management for any item in version control.Modifier and Type | Method and Description |
---|---|
List<IVersion> |
getAllPrevious(int begin,
int end)
Get all versions before this one
|
String |
getComment()
Get the comment on this version
|
ISnapshot |
getCreatedOn()
Get then snapshot when this version was created
|
String |
getId()
Get the ID for this version item
|
String |
getName()
Get the Name for this version item
|
List<IVersion> |
getNext()
Get the next version
|
List<IVersion> |
getPrevious()
Get the previous version
|
IResource |
getResource()
Get the
IResource for this version |
String |
getThingInfo()
Gets the metadata of the thing from the version object that was persistanced in the
version control system.
|
Time |
getTime()
Get the Time for when this item was versioned
|
void |
setComment(String comment)
Set the comment on this version
|
void |
setName(String name)
Set the Name
|
void |
setThingInfo(String thingInfo)
Sets the metadata of the thing on the version object for persistance in the
version control system.
|
String getId() throws VersionException
VersionException
String getName() throws VersionException
VersionException
Time getTime() throws VersionException
VersionException
IResource getResource() throws VersionException
IResource
for this versionVersionException
List<IVersion> getNext() throws VersionException
VersionException
List<IVersion> getPrevious() throws VersionException
VersionException
List<IVersion> getAllPrevious(int begin, int end) throws VersionException
begin
- end
- VersionException
ISnapshot getCreatedOn() throws VersionException
VersionException
void setName(String name) throws VersionException
name
- the name for this versionVersionException
void setComment(String comment) throws VersionException
name
- the comment for this versionVersionException
String getComment() throws VersionException
VersionException
void setThingInfo(String thingInfo) throws VersionException
thingInfo
- the serialized version of the thing in the metadata systemVersionException
String getThingInfo() throws VersionException
thingInfo
- the serialized version of the thing in the metadata systemVersionException