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()
Version
getFrozenModifiedDate
in interface Version
public String getFrozenModifier()
Version
getFrozenModifier
in interface Version
public Date getCreatedDate()
Version
getCreatedDate
in interface Version
public String getCreator()
Version
getCreator
in interface Version
public String getVersionLabel()
Version
getVersionLabel
in interface Version
public VersionType getVersionType()
Version
getVersionType
in interface Version
public String getDescription()
Version
getDescription
in interface Version
public Map<String,Serializable> getVersionProperties()
Version
getVersionProperties
in interface Version
public Serializable getVersionProperty(String name)
Version
getVersionProperty
in interface Version
name
- the name of the propertypublic org.alfresco.service.cmr.repository.NodeRef getVersionedNodeRef()
Version
Note that this reference will be to the current state of the versioned node which may now correspond to a later version.
getVersionedNodeRef
in interface Version
public org.alfresco.service.cmr.repository.NodeRef getFrozenStateNodeRef()
Version
getFrozenStateNodeRef
in interface Version
Copyright © 2005–2017 Alfresco Software. All rights reserved.