Package org.alfresco.service.cmr.version
Interface Version
- All Superinterfaces:
Serializable
- All Known Implementing Classes:
VersionImpl
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 -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.use getFrozenModifiedDateDeprecated.use getFrozenModifierHelper method to get the version description.Helper method to get the frozen (original) modified date for this version of the nodeHelper method to get the frozen (original) modifier for this version of the nodeGets the reference to the node that contains the frozen state of the version.Gets a reference to the node that this version was created from.Helper method to get the version label from the version property data.Get the map containing the version property valuesgetVersionProperty(String name) Gets the value of a named version property.Helper method to get the version type.
-
Field Details
-
PROP_DESCRIPTION
Names of the system version properties- See Also:
-
-
Method Details
-
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
Gets the value of a named version property.- Parameters:
name- the name of the property- Returns:
- the value of the property
-
getVersionedNodeRef
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
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)
-