public class VersionImpl extends Object implements Version
PROP_DESCRIPTION| Constructor and Description |
|---|
VersionImpl(Map<String,Serializable> versionProperties,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Constructor that initialises the state of the version object.
|
| Modifier and Type | Method and Description |
|---|---|
Date |
getCreatedDate()
Helper method to get the created date from the version property data.
|
String |
getCreator()
Helper method to get the creator of the version.
|
String |
getDescription()
Helper method to get the version description.
|
Date |
getFrozenModifiedDate()
Helper method to get the frozen (original) modified date for this version of the node
|
String |
getFrozenModifier()
Helper method to get the frozen (original) modifier for this version of the node
|
org.alfresco.service.cmr.repository.NodeRef |
getFrozenStateNodeRef()
Gets the reference to the node that contains the frozen state of the
version.
|
org.alfresco.service.cmr.repository.NodeRef |
getVersionedNodeRef()
Gets a reference to the node that this version was created from.
|
String |
getVersionLabel()
Helper method to get the version label from the version property data.
|
Map<String,Serializable> |
getVersionProperties()
Get the map containing the version property values
|
Serializable |
getVersionProperty(String name)
Gets the value of a named version property.
|
VersionType |
getVersionType()
Helper method to get the version type.
|
String |
toString() |
public VersionImpl(Map<String,Serializable> versionProperties, org.alfresco.service.cmr.repository.NodeRef nodeRef)
versionProperties - the version propertiesnodeRef - the forzen state node referencepublic Date getFrozenModifiedDate()
VersiongetFrozenModifiedDate in interface Versionpublic String getFrozenModifier()
VersiongetFrozenModifier in interface Versionpublic Date getCreatedDate()
VersiongetCreatedDate in interface Versionpublic String getCreator()
VersiongetCreator in interface Versionpublic String getVersionLabel()
VersiongetVersionLabel in interface Versionpublic VersionType getVersionType()
VersiongetVersionType in interface Versionpublic String getDescription()
VersiongetDescription in interface Versionpublic Map<String,Serializable> getVersionProperties()
VersiongetVersionProperties in interface Versionpublic Serializable getVersionProperty(String name)
VersiongetVersionProperty in interface Versionname - the name of the propertypublic org.alfresco.service.cmr.repository.NodeRef getVersionedNodeRef()
VersionNote that this reference will be to the current state of the versioned node which may now correspond to a later version.
getVersionedNodeRef in interface Versionpublic org.alfresco.service.cmr.repository.NodeRef getFrozenStateNodeRef()
VersiongetFrozenStateNodeRef in interface VersionCopyright © 2005–2018 Alfresco Software. All rights reserved.