Package org.alfresco.repo.jscript
Class ScriptVersion
java.lang.Object
org.alfresco.repo.jscript.ScriptVersion
- All Implemented Interfaces:
Serializable
Scriptable Version
- Author:
- davidc
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionScriptVersion(Version version, ServiceRegistry services, org.mozilla.javascript.Scriptable scope) Construct -
Method Summary
Modifier and TypeMethodDescriptionGets the date the version was createdGets the creator of the versionGets the version description (or checkin comment)getLabel()Gets the version labelgetNode()Gets the node represented by this versionGets the node ref represented by this versiongetType()Gets the version typeGet the map containing the version property valuesgetVersionProperty(String name) Gets the value of a named version property.
-
Constructor Details
-
ScriptVersion
public ScriptVersion(Version version, ServiceRegistry services, org.mozilla.javascript.Scriptable scope) Construct
-
-
Method Details
-
getCreatedDate
Gets the date the version was created- Returns:
- the date the version was created
-
getCreator
Gets the creator of the version- Returns:
- the creator of the version
-
getLabel
Gets the version label- Returns:
- the version label
-
getType
Gets the version type- Returns:
- "MAJOR", "MINOR"
-
getDescription
Gets the version description (or checkin comment)- Returns:
- the version description
-
getNodeRef
Gets the node ref represented by this version- Returns:
- node ref
-
getNode
Gets the node represented by this version- Returns:
- node
-
getVersionProperties
Get the map containing the version property values- Returns:
- the map containing the version properties
-
getVersionProperty
Gets the value of a named version property.- Parameters:
name- the name of the property- Returns:
- the value of the property
-