Package org.alfresco.repo.version.common
Class VersionImpl
java.lang.Object
org.alfresco.repo.version.common.VersionImpl
- All Implemented Interfaces:
Serializable,Version
Version class implementation.
Used to represent the data about a version stored in a version store.
- Author:
- Roy Wetherall
- See Also:
-
Field Summary
Fields inherited from interface org.alfresco.service.cmr.version.Version
PROP_DESCRIPTION -
Constructor Summary
ConstructorsConstructorDescriptionVersionImpl(Map<String, Serializable> versionProperties, NodeRef nodeRef) Constructor that initialises the state of the version object. -
Method Summary
Modifier and TypeMethodDescriptionHelper method to get the created date from the version property data.Helper method to get the creator of the version.Helper 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.toString()
-
Constructor Details
-
VersionImpl
Constructor that initialises the state of the version object.- Parameters:
versionProperties- the version propertiesnodeRef- the forzen state node reference
-
-
Method Details
-
toString
-
getFrozenModifiedDate
Description copied from interface:VersionHelper method to get the frozen (original) modified date for this version of the node- Specified by:
getFrozenModifiedDatein interfaceVersion- Returns:
- the modified date
-
getFrozenModifier
Description copied from interface:VersionHelper method to get the frozen (original) modifier for this version of the node- Specified by:
getFrozenModifierin interfaceVersion- Returns:
- the modifier
-
getCreatedDate
Description copied from interface:VersionHelper method to get the created date from the version property data.- Specified by:
getCreatedDatein interfaceVersion- Returns:
- the date the version was created
-
getCreator
Description copied from interface:VersionHelper method to get the creator of the version.- Specified by:
getCreatorin interfaceVersion- Returns:
- the creator of the version
-
getVersionLabel
Description copied from interface:VersionHelper method to get the version label from the version property data.- Specified by:
getVersionLabelin interfaceVersion- Returns:
- the version label
-
getVersionType
Description copied from interface:VersionHelper method to get the version type.- Specified by:
getVersionTypein interfaceVersion- Returns:
- the value of the version type as an enum value
-
getDescription
Description copied from interface:VersionHelper method to get the version description.- Specified by:
getDescriptionin interfaceVersion- Returns:
- the version description
-
getVersionProperties
Description copied from interface:VersionGet the map containing the version property values- Specified by:
getVersionPropertiesin interfaceVersion- Returns:
- the map containing the version properties
-
getVersionProperty
Description copied from interface:VersionGets the value of a named version property.- Specified by:
getVersionPropertyin interfaceVersion- Parameters:
name- the name of the property- Returns:
- the value of the property
-
getVersionedNodeRef
Description copied from interface:VersionGets 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.
- Specified by:
getVersionedNodeRefin interfaceVersion- Returns:
- a node reference (to the versioned node in the 'live' store)
-
getFrozenStateNodeRef
Description copied from interface:VersionGets the reference to the node that contains the frozen state of the version.- Specified by:
getFrozenStateNodeRefin interfaceVersion- Returns:
- a node reference (to the version node in the 'version' store)
-