Interface IVersion
- All Known Subinterfaces:
IVersionedContainer
,IVersionedStorage
,IViewableVersion
public interface IVersion
This interface is the base object for the
IVersionedStorage
and IVersionedContainer
.
These methods provide the generic version management for any item in version control.-
Method Summary
Modifier and TypeMethodDescriptiongetAllPrevious
(int begin, int end) Get all versions before this oneGet the comment on this versionGet then snapshot when this version was createdgetId()
Get the ID for this version itemgetName()
Get the Name for this version itemgetNext()
Get the next versionGet the previous versionGet theIResource
for this versionGets the metadata of the thing from the version object that was persistanced in the version control system.getTime()
Get the Time for when this item was versionedvoid
setComment
(String comment) Set the comment on this versionvoid
Set the Namevoid
setThingInfo
(String thingInfo) Sets the metadata of the thing on the version object for persistance in the version control system.
-
Method Details
-
getId
Get the ID for this version item- Returns:
- the ID
- Throws:
VersionException
-
getName
Get the Name for this version item- Returns:
- the Name
- Throws:
VersionException
-
getTime
Get the Time for when this item was versioned- Returns:
- the Time created
- Throws:
VersionException
-
getResource
Get theIResource
for this version- Returns:
- the resource for this version
- Throws:
VersionException
-
getNext
Get the next version- Returns:
- a next version if there is one
- Throws:
VersionException
-
getPrevious
Get the previous version- Returns:
- a previous version if there is one
- Throws:
VersionException
-
getAllPrevious
Get all versions before this one- Parameters:
begin
-end
-- Returns:
- a list of all versions previous
- Throws:
VersionException
-
getCreatedOn
Get then snapshot when this version was created- Returns:
- the snapshot of the branch
- Throws:
VersionException
-
setName
Set the Name- Parameters:
name
- the name for this version- Throws:
VersionException
-
setComment
Set the comment on this version- Parameters:
name
- the comment for this version- Throws:
VersionException
-
getComment
Get the comment on this version- Returns:
- the Comment
- Throws:
VersionException
-
setThingInfo
Sets the metadata of the thing on the version object for persistance in the version control system. This is used when the version is restored or is the latest in the system- Parameters:
thingInfo
- the serialized version of the thing in the metadata system- Throws:
VersionException
-
getThingInfo
Gets the metadata of the thing from the version object that was persistanced in the version control system. This is used when the version is restored or is the latest in the system- Parameters:
thingInfo
- the serialized version of the thing in the metadata system- Throws:
VersionException
-