|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.version.common.VersionImpl
public class VersionImpl
Version class implementation. Used to represent the data about a version stored in a version store.
Field Summary |
---|
Fields inherited from interface org.alfresco.service.cmr.version.Version |
---|
PROP_DESCRIPTION |
Constructor Summary | |
---|---|
VersionImpl(java.util.Map versionProperties,
org.alfresco.service.cmr.repository.NodeRef nodeRef)
Constructor that initialises the state of the version object. |
Method Summary | |
---|---|
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()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public VersionImpl(java.util.Map versionProperties, org.alfresco.service.cmr.repository.NodeRef nodeRef)
versionProperties
- the version propertiesnodeRef
- the forzen state node referenceMethod Detail |
---|
public java.lang.String toString()
toString
in class java.lang.Object
public java.util.Date getFrozenModifiedDate()
Version
getFrozenModifiedDate
in interface Version
public java.lang.String getFrozenModifier()
Version
getFrozenModifier
in interface Version
public java.util.Date getCreatedDate()
Version
getCreatedDate
in interface Version
public java.lang.String getCreator()
Version
getCreator
in interface Version
public java.lang.String getVersionLabel()
Version
getVersionLabel
in interface Version
public VersionType getVersionType()
Version
getVersionType
in interface Version
public java.lang.String getDescription()
Version
getDescription
in interface Version
public java.util.Map getVersionProperties()
Version
getVersionProperties
in interface Version
public java.io.Serializable getVersionProperty(java.lang.String name)
Version
getVersionProperty
in interface Version
name
- the name of the property
public 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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |