Class ScriptVersion

    • 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 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