Package org.alfresco.repo.jscript
Class ScriptVersion
- java.lang.Object
-
- org.alfresco.repo.jscript.ScriptVersion
-
- All Implemented Interfaces:
Serializable
public final class ScriptVersion extends Object implements Serializable
Scriptable 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 DategetCreatedDate()Gets the date the version was createdStringgetCreator()Gets the creator of the versionStringgetDescription()Gets the version description (or checkin comment)StringgetLabel()Gets the version labelScriptNodegetNode()Gets the node represented by this versionorg.alfresco.service.cmr.repository.NodeRefgetNodeRef()Gets the node ref represented by this versionStringgetType()Gets the version typeMap<String,Serializable>getVersionProperties()Get the map containing the version property valuesSerializablegetVersionProperty(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 Date getCreatedDate()
Gets the date the version was created- Returns:
- the date the version was created
-
getCreator
public String getCreator()
Gets the creator of the version- Returns:
- the creator of the version
-
getLabel
public String getLabel()
Gets the version label- Returns:
- the version label
-
getType
public String getType()
Gets the version type- Returns:
- "MAJOR", "MINOR"
-
getDescription
public 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 Map<String,Serializable> getVersionProperties()
Get the map containing the version property values- Returns:
- the map containing the version properties
-
getVersionProperty
public Serializable getVersionProperty(String name)
Gets the value of a named version property.- Parameters:
name- the name of the property- Returns:
- the value of the property
-
-