Package org.alfresco.service.cmr.version
Interface Version
-
- All Superinterfaces:
java.io.Serializable
- All Known Implementing Classes:
VersionImpl
@AlfrescoPublicApi public interface Version extends java.io.SerializableVersion 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 java.lang.StringPROP_DESCRIPTIONNames of the system version properties
-
Method Summary
All Methods Instance Methods Abstract Methods Deprecated Methods Modifier and Type Method Description java.util.DategetCreatedDate()Deprecated.use getFrozenModifiedDatejava.lang.StringgetCreator()Deprecated.use getFrozenModifierjava.lang.StringgetDescription()Helper method to get the version description.java.util.DategetFrozenModifiedDate()Helper method to get the frozen (original) modified date for this version of the nodejava.lang.StringgetFrozenModifier()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.java.lang.StringgetVersionLabel()Helper method to get the version label from the version property data.java.util.Map<java.lang.String,java.io.Serializable>getVersionProperties()Get the map containing the version property valuesjava.io.SerializablegetVersionProperty(java.lang.String name)Gets the value of a named version property.VersionTypegetVersionType()Helper method to get the version type.
-
-
-
Field Detail
-
PROP_DESCRIPTION
static final java.lang.String PROP_DESCRIPTION
Names of the system version properties- See Also:
- Constant Field Values
-
-
Method Detail
-
getCreatedDate
java.util.Date getCreatedDate()
Deprecated.use getFrozenModifiedDateHelper method to get the created date from the version property data.- Returns:
- the date the version was created
-
getCreator
java.lang.String getCreator()
Deprecated.use getFrozenModifierHelper method to get the creator of the version.- Returns:
- the creator of the version
-
getFrozenModifiedDate
java.util.Date getFrozenModifiedDate()
Helper method to get the frozen (original) modified date for this version of the node- Returns:
- the modified date
-
getFrozenModifier
java.lang.String getFrozenModifier()
Helper method to get the frozen (original) modifier for this version of the node- Returns:
- the modifier
-
getVersionLabel
java.lang.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
java.lang.String getDescription()
Helper method to get the version description.- Returns:
- the version description
-
getVersionProperties
java.util.Map<java.lang.String,java.io.Serializable> getVersionProperties()
Get the map containing the version property values- Returns:
- the map containing the version properties
-
getVersionProperty
java.io.Serializable getVersionProperty(java.lang.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)
-
-