Package org.alfresco.service.cmr.version
Interface Version
-
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
VersionImpl
@AlfrescoPublicApi public interface Version extends Serializable
Version interface. Allows access to version property values and frozen state node references. The version history tree can also be navigated.- Author:
- Roy Wetherall, janv
-
-
Field Summary
Fields Modifier and Type Field Description static StringPROP_DESCRIPTIONNames of the system version properties
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description DategetCreatedDate()Deprecated.use getFrozenModifiedDateStringgetCreator()Deprecated.use getFrozenModifierStringgetDescription()Helper method to get the version description.DategetFrozenModifiedDate()Helper method to get the frozen (original) modified date for this version of the nodeStringgetFrozenModifier()Helper method to get the frozen (original) modifier for this version of the nodeorg.alfresco.service.cmr.repository.NodeRefgetFrozenStateNodeRef()Gets the reference to the node that contains the frozen state of the version.org.alfresco.service.cmr.repository.NodeRefgetVersionedNodeRef()Gets a reference to the node that this version was created from.StringgetVersionLabel()Helper method to get the version label from the version property data.Map<String,Serializable>getVersionProperties()Get the map containing the version property valuesSerializablegetVersionProperty(String name)Gets the value of a named version property.VersionTypegetVersionType()Helper method to get the version type.
-
-
-
Field Detail
-
PROP_DESCRIPTION
static final String PROP_DESCRIPTION
Names of the system version properties- See Also:
- Constant Field Values
-
-
Method Detail
-
getCreatedDate
Date getCreatedDate()
Deprecated.use getFrozenModifiedDateHelper method to get the created date from the version property data.- Returns:
- the date the version was created
-
getCreator
String getCreator()
Deprecated.use getFrozenModifierHelper method to get the creator of the version.- Returns:
- the creator of the version
-
getFrozenModifiedDate
Date getFrozenModifiedDate()
Helper method to get the frozen (original) modified date for this version of the node- Returns:
- the modified date
-
getFrozenModifier
String getFrozenModifier()
Helper method to get the frozen (original) modifier for this version of the node- Returns:
- the modifier
-
getVersionLabel
String getVersionLabel()
Helper method to get the version label from the version property data.- Returns:
- the version label
-
getVersionType
VersionType getVersionType()
Helper method to get the version type.- Returns:
- the value of the version type as an enum value
-
getDescription
String getDescription()
Helper method to get the version description.- Returns:
- the version description
-
getVersionProperties
Map<String,Serializable> getVersionProperties()
Get the map containing the version property values- Returns:
- the map containing the version properties
-
getVersionProperty
Serializable getVersionProperty(String name)
Gets the value of a named version property.- Parameters:
name- the name of the property- Returns:
- the value of the property
-
getVersionedNodeRef
org.alfresco.service.cmr.repository.NodeRef getVersionedNodeRef()
Gets a reference to the node that this version was created from.Note that this reference will be to the current state of the versioned node which may now correspond to a later version.
- Returns:
- a node reference (to the versioned node in the 'live' store)
-
getFrozenStateNodeRef
org.alfresco.service.cmr.repository.NodeRef getFrozenStateNodeRef()
Gets the reference to the node that contains the frozen state of the version.- Returns:
- a node reference (to the version node in the 'version' store)
-
-