|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.repository.Node
public class Node
Lighweight client side representation of a node held in the repository.
Field Summary | |
---|---|
protected java.util.Set |
aspects
|
protected QNameNodeMap |
associations
|
protected boolean |
assocsRetrieved
|
protected QNameNodeMap |
childAssociations
|
protected boolean |
childAssocsRetrieved
|
protected java.lang.String |
id
|
protected java.lang.Boolean |
locked
|
protected java.lang.String |
name
|
protected org.alfresco.service.cmr.repository.NodeRef |
nodeRef
|
protected org.alfresco.service.cmr.repository.Path |
path
|
protected java.util.Map |
permissions
|
protected QNameNodeMap |
properties
|
protected boolean |
propsRetrieved
|
protected org.alfresco.service.ServiceRegistry |
services
|
protected org.alfresco.service.namespace.QName |
type
|
protected java.lang.Boolean |
workingCopyOwner
|
Constructor Summary | |
---|---|
Node(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Constructor |
Method Summary | |
---|---|
void |
addPropertyResolver(java.lang.String name,
NodePropertyResolver resolver)
Register a property resolver for the named property. |
boolean |
containsPropertyResolver(java.lang.String name)
Returns if a property resolver with a specific name has been applied to the Node |
java.util.Map |
getAddedAssociations()
Returns all the associations added to this node in this UI session |
java.util.Map |
getAddedChildAssociations()
Returns all the child associations added to this node in this UI session |
java.util.Set |
getAspects()
|
java.util.Map |
getAssociations()
|
java.util.Map |
getChildAssociations()
|
java.lang.String |
getId()
|
java.lang.String |
getName()
|
org.alfresco.service.namespace.NamespacePrefixResolver |
getNamespacePrefixResolver()
|
org.alfresco.service.cmr.repository.Path |
getNodePath()
|
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef()
|
java.lang.String |
getNodeRefAsString()
|
java.lang.String |
getPath()
|
java.util.Map |
getProperties()
|
java.util.Map |
getRemovedAssociations()
Returns all the associations removed from this node is this UI session |
java.util.Map |
getRemovedChildAssociations()
Returns all the child associations removed from this node is this UI session |
protected org.alfresco.service.ServiceRegistry |
getServiceRegistry()
|
org.alfresco.service.namespace.QName |
getType()
|
boolean |
hasAspect(org.alfresco.service.namespace.QName aspect)
|
boolean |
hasPermission(java.lang.String permission)
Return whether the current user has the specified access permission on this Node |
boolean |
hasProperty(java.lang.String propertyName)
Determines whether the given property name is held by this node |
boolean |
isLocked()
|
boolean |
isWorkingCopyOwner()
|
void |
reset()
Resets the state of the node to force re-retrieval of the data |
java.lang.String |
toString()
Override Object.toString() to provide useful debug output |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected org.alfresco.service.cmr.repository.NodeRef nodeRef
protected java.lang.String name
protected org.alfresco.service.namespace.QName type
protected org.alfresco.service.cmr.repository.Path path
protected java.lang.String id
protected java.util.Set aspects
protected java.util.Map permissions
protected java.lang.Boolean locked
protected java.lang.Boolean workingCopyOwner
protected QNameNodeMap properties
protected boolean propsRetrieved
protected transient org.alfresco.service.ServiceRegistry services
protected boolean childAssocsRetrieved
protected QNameNodeMap childAssociations
protected boolean assocsRetrieved
protected QNameNodeMap associations
Constructor Detail |
---|
public Node(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- The NodeRef this Node wrapper representsMethod Detail |
---|
public java.util.Map getProperties()
public final java.util.Map getAssociations()
public final java.util.Map getAddedAssociations()
public final java.util.Map getRemovedAssociations()
public final java.util.Map getChildAssociations()
public final java.util.Map getAddedChildAssociations()
public final java.util.Map getRemovedChildAssociations()
public final void addPropertyResolver(java.lang.String name, NodePropertyResolver resolver)
name
- Name of the property this resolver is forresolver
- Property resolver to registerpublic final boolean containsPropertyResolver(java.lang.String name)
name
- of property resolver to look for
public final boolean hasProperty(java.lang.String propertyName)
propertyName
- Property to test existence of
public final org.alfresco.service.cmr.repository.NodeRef getNodeRef()
public final java.lang.String getNodeRefAsString()
public org.alfresco.service.namespace.QName getType()
public java.lang.String getName()
public final java.util.Set getAspects()
public final boolean hasAspect(org.alfresco.service.namespace.QName aspect)
aspect
- The aspect to test for
public boolean hasPermission(java.lang.String permission)
permission
- Permission to validate against
public final java.lang.String getId()
public java.lang.String getPath()
public org.alfresco.service.cmr.repository.Path getNodePath()
public final boolean isLocked()
public final boolean isWorkingCopyOwner()
public void reset()
public java.lang.String toString()
toString
in class java.lang.Object
protected org.alfresco.service.ServiceRegistry getServiceRegistry()
public org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
getNamespacePrefixResolver
in interface org.alfresco.service.namespace.NamespacePrefixResolverProvider
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |