|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.alfresco.repo.jscript.ScriptNode
org.alfresco.repo.jscript.AVMNode
public class AVMNode
Represents a AVM specific node in the Script context. Provides specific implementations of AVM specific methods such as copy, move, rename etc.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class org.alfresco.repo.jscript.ScriptNode |
|---|
ScriptNode.NodeValueConverter, ScriptNode.ScriptContentData |
| Field Summary |
|---|
| Fields inherited from class org.alfresco.repo.jscript.ScriptNode |
|---|
aspects, converter, id, imageResolver, nodeRef, parent, scope, services, siteName, siteNameResolved |
| Constructor Summary | |
|---|---|
AVMNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ServiceRegistry services)
|
|
AVMNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ServiceRegistry services,
org.mozilla.javascript.Scriptable scope)
|
|
AVMNode(java.lang.String path,
int version,
ServiceRegistry services,
org.mozilla.javascript.Scriptable scope)
|
|
| Method Summary | |
|---|---|
ScriptNode |
copy(ScriptNode destination)
Copy this Node into a new parent destination. |
ScriptNode |
copy(java.lang.String destination)
Copy this Node into a new parent destination. |
java.util.Set |
getAspectsSet()
|
boolean |
getIsLocked()
|
java.lang.String |
getName()
|
java.lang.String |
getParentPath()
|
java.lang.String |
getPath()
|
java.lang.String |
getType()
|
int |
getVersion()
|
boolean |
hasLockAccess()
|
boolean |
isDirectory()
|
boolean |
isFile()
|
boolean |
isLockOwner()
|
boolean |
move(ScriptNode destination)
Move this Node to a new parent destination node. |
boolean |
move(java.lang.String destination)
Move this Node to a new parent destination path. |
ScriptNode |
newInstance(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ServiceRegistry services,
org.mozilla.javascript.Scriptable scope)
Factory methods |
ScriptNode |
newInstance(java.lang.String path,
int version,
ServiceRegistry services,
org.mozilla.javascript.Scriptable scope)
|
boolean |
rename(java.lang.String name)
Rename this node to the specified name |
java.lang.String |
toString()
Override Object.toString() to provide useful debug output |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public AVMNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ServiceRegistry services)
public AVMNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ServiceRegistry services,
org.mozilla.javascript.Scriptable scope)
public AVMNode(java.lang.String path,
int version,
ServiceRegistry services,
org.mozilla.javascript.Scriptable scope)
| Method Detail |
|---|
public ScriptNode newInstance(org.alfresco.service.cmr.repository.NodeRef nodeRef,
ServiceRegistry services,
org.mozilla.javascript.Scriptable scope)
newInstance in class ScriptNode
public ScriptNode newInstance(java.lang.String path,
int version,
ServiceRegistry services,
org.mozilla.javascript.Scriptable scope)
public java.lang.String getPath()
public int getVersion()
public java.lang.String getParentPath()
public java.lang.String getType()
getType in class ScriptNodepublic boolean isDirectory()
public boolean isFile()
public java.lang.String getName()
getName in class ScriptNodepublic boolean getIsLocked()
getIsLocked in class ScriptNodepublic boolean isLockOwner()
public boolean hasLockAccess()
public ScriptNode copy(ScriptNode destination)
copy in class ScriptNodedestination - Parent node for the copy
public ScriptNode copy(java.lang.String destination)
destination - Parent path for the copy
public boolean move(ScriptNode destination)
move in class ScriptNodedestination - Node
public boolean move(java.lang.String destination)
destination - Path
public boolean rename(java.lang.String name)
name - New name for the node
public java.util.Set getAspectsSet()
getAspectsSet in class ScriptNodepublic java.lang.String toString()
ScriptNode
toString in class ScriptNode
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||