Class ScriptVersion

  • All Implemented Interfaces:
    java.io.Serializable

    public final class ScriptVersion
    extends java.lang.Object
    implements java.io.Serializable
    Scriptable Version
    Author:
    davidc
    See Also:
    Serialized Form
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.Date getCreatedDate()
      Gets the date the version was created
      java.lang.String getCreator()
      Gets the creator of the version
      java.lang.String getDescription()
      Gets the version description (or checkin comment)
      java.lang.String getLabel()
      Gets the version label
      ScriptNode getNode()
      Gets the node represented by this version
      org.alfresco.service.cmr.repository.NodeRef getNodeRef()
      Gets the node ref represented by this version
      java.lang.String getType()
      Gets the version type
      java.util.Map<java.lang.String,​java.io.Serializable> 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.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 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