Package org.alfresco.repo.jscript
Class ScriptVersion
- java.lang.Object
-
- org.alfresco.repo.jscript.ScriptVersion
-
- All Implemented Interfaces:
java.io.Serializable
public final class ScriptVersion extends java.lang.Object implements java.io.SerializableScriptable Version- Author:
- davidc
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description ScriptVersion(Version version, ServiceRegistry services, org.mozilla.javascript.Scriptable scope)Construct
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.DategetCreatedDate()Gets the date the version was createdjava.lang.StringgetCreator()Gets the creator of the versionjava.lang.StringgetDescription()Gets the version description (or checkin comment)java.lang.StringgetLabel()Gets the version labelScriptNodegetNode()Gets the node represented by this versionorg.alfresco.service.cmr.repository.NodeRefgetNodeRef()Gets the node ref represented by this versionjava.lang.StringgetType()Gets the version typejava.util.Map<java.lang.String,java.io.Serializable>getVersionProperties()Get the map containing the version property valuesjava.io.SerializablegetVersionProperty(java.lang.String name)Gets the value of a named version property.
-
-
-
Constructor Detail
-
ScriptVersion
public ScriptVersion(Version version, ServiceRegistry services, org.mozilla.javascript.Scriptable scope)
Construct
-
-
Method Detail
-
getCreatedDate
public java.util.Date getCreatedDate()
Gets the date the version was created- Returns:
- the date the version was created
-
getCreator
public java.lang.String getCreator()
Gets the creator of the version- Returns:
- the creator of the version
-
getLabel
public java.lang.String getLabel()
Gets the version label- Returns:
- the version label
-
getType
public java.lang.String getType()
Gets the version type- Returns:
- "MAJOR", "MINOR"
-
getDescription
public java.lang.String getDescription()
Gets the version description (or checkin comment)- Returns:
- the version description
-
getNodeRef
public org.alfresco.service.cmr.repository.NodeRef getNodeRef()
Gets the node ref represented by this version- Returns:
- node ref
-
getNode
public ScriptNode getNode()
Gets the node represented by this version- Returns:
- node
-
getVersionProperties
public java.util.Map<java.lang.String,java.io.Serializable> getVersionProperties()
Get the map containing the version property values- Returns:
- the map containing the version properties
-
getVersionProperty
public java.io.Serializable getVersionProperty(java.lang.String name)
Gets the value of a named version property.- Parameters:
name- the name of the property- Returns:
- the value of the property
-
-