org.alfresco.repo.jscript
Class ScriptVersion

java.lang.Object
  extended by org.alfresco.repo.jscript.ScriptVersion
All Implemented Interfaces:
java.io.Serializable

public final class ScriptVersion
extends java.lang.Object
implements java.io.Serializable

Scriptable Version

See Also:
Serialized Form

Constructor Summary
ScriptVersion(Version version, ServiceRegistry services, org.mozilla.javascript.Scriptable scope)
          Construct
 
Method Summary
 java.lang.Object 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
 
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.lang.Object 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


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.