public class VersionImpl extends java.lang.Object implements Version
PROP_DESCRIPTION| Constructor and Description |
|---|
VersionImpl(java.util.Map versionProperties,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Constructor that initialises the state of the version object.
|
| Modifier and Type | Method and Description |
|---|---|
java.util.Date |
getCreatedDate()
Helper method to get the created date from the version property data.
|
java.lang.String |
getCreator()
Helper method to get the creator of the version.
|
java.lang.String |
getDescription()
Helper method to get the version description.
|
java.util.Date |
getFrozenModifiedDate()
Helper method to get the frozen (original) modified date for this version of the node
|
java.lang.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.
|
java.lang.String |
getVersionLabel()
Helper method to get the version label from the version property data.
|
java.util.Map |
getVersionProperties()
Get the map containing the version property values
|
java.io.Serializable |
getVersionProperty(java.lang.String name)
Gets the value of a named version property.
|
VersionType |
getVersionType()
Helper method to get the version type.
|
java.lang.String |
toString() |
public VersionImpl(java.util.Map versionProperties,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
versionProperties - the version propertiesnodeRef - the forzen state node referencepublic java.lang.String toString()
toString in class java.lang.Objectpublic java.util.Date getFrozenModifiedDate()
VersiongetFrozenModifiedDate in interface Versionpublic java.lang.String getFrozenModifier()
VersiongetFrozenModifier in interface Versionpublic java.util.Date getCreatedDate()
VersiongetCreatedDate in interface Versionpublic java.lang.String getCreator()
VersiongetCreator in interface Versionpublic java.lang.String getVersionLabel()
VersiongetVersionLabel in interface Versionpublic VersionType getVersionType()
VersiongetVersionType in interface Versionpublic java.lang.String getDescription()
VersiongetDescription in interface Versionpublic java.util.Map getVersionProperties()
VersiongetVersionProperties in interface Versionpublic java.io.Serializable getVersionProperty(java.lang.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 - 2010 Alfresco Software, Inc. All Rights Reserved.