public class Node extends Object implements Serializable, org.alfresco.service.namespace.NamespacePrefixResolverProvider
Modifier and Type | Field and Description |
---|---|
protected Set<org.alfresco.service.namespace.QName> |
aspects |
protected QNameNodeMap |
associations |
protected boolean |
assocsRetrieved |
protected QNameNodeMap |
childAssociations |
protected boolean |
childAssocsRetrieved |
protected String |
id |
protected Boolean |
locked |
protected String |
name |
protected org.alfresco.service.cmr.repository.NodeRef |
nodeRef |
protected org.alfresco.service.cmr.repository.Path |
path |
protected Map<String,Boolean> |
permissions |
protected QNameNodeMap<String,Object> |
properties |
protected boolean |
propsRetrieved |
protected ServiceRegistry |
services |
protected org.alfresco.service.namespace.QName |
type |
protected Boolean |
workingCopyOwner |
Constructor and Description |
---|
Node(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Constructor
|
Modifier and Type | Method and Description |
---|---|
void |
addPropertyResolver(String name,
NodePropertyResolver resolver)
Register a property resolver for the named property.
|
boolean |
containsPropertyResolver(String name)
Returns if a property resolver with a specific name has been applied to the Node
|
Map<String,Map<String,org.alfresco.service.cmr.repository.AssociationRef>> |
getAddedAssociations()
Returns all the associations added to this node in this UI session
|
Map<String,Map<String,org.alfresco.service.cmr.repository.ChildAssociationRef>> |
getAddedChildAssociations()
Returns all the child associations added to this node in this UI session
|
Set<org.alfresco.service.namespace.QName> |
getAspects() |
Map |
getAssociations() |
Map |
getChildAssociations() |
String |
getId() |
String |
getName() |
org.alfresco.service.namespace.NamespacePrefixResolver |
getNamespacePrefixResolver() |
org.alfresco.service.cmr.repository.Path |
getNodePath() |
org.alfresco.service.cmr.repository.NodeRef |
getNodeRef() |
String |
getNodeRefAsString() |
String |
getPath() |
Map<String,Object> |
getProperties() |
Map<String,Map<String,org.alfresco.service.cmr.repository.AssociationRef>> |
getRemovedAssociations()
Returns all the associations removed from this node is this UI session
|
Map<String,Map<String,org.alfresco.service.cmr.repository.ChildAssociationRef>> |
getRemovedChildAssociations()
Returns all the child associations removed from this node is this UI session
|
protected ServiceRegistry |
getServiceRegistry() |
org.alfresco.service.namespace.QName |
getType() |
boolean |
hasAspect(org.alfresco.service.namespace.QName aspect) |
boolean |
hasPermission(String permission)
Return whether the current user has the specified access permission on this Node
|
boolean |
hasProperty(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
|
String |
toString()
Override Object.toString() to provide useful debug output
|
protected org.alfresco.service.cmr.repository.NodeRef nodeRef
protected String name
protected org.alfresco.service.namespace.QName type
protected org.alfresco.service.cmr.repository.Path path
protected String id
protected Set<org.alfresco.service.namespace.QName> aspects
protected Boolean locked
protected Boolean workingCopyOwner
protected QNameNodeMap<String,Object> properties
protected boolean propsRetrieved
protected transient ServiceRegistry services
protected boolean childAssocsRetrieved
protected QNameNodeMap childAssociations
protected boolean assocsRetrieved
protected QNameNodeMap associations
public Node(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef
- The NodeRef this Node wrapper representspublic Map<String,Object> getProperties()
public final Map getAssociations()
public final Map<String,Map<String,org.alfresco.service.cmr.repository.AssociationRef>> getAddedAssociations()
public final Map<String,Map<String,org.alfresco.service.cmr.repository.AssociationRef>> getRemovedAssociations()
public final Map getChildAssociations()
public final Map<String,Map<String,org.alfresco.service.cmr.repository.ChildAssociationRef>> getAddedChildAssociations()
public final Map<String,Map<String,org.alfresco.service.cmr.repository.ChildAssociationRef>> getRemovedChildAssociations()
public final void addPropertyResolver(String name, NodePropertyResolver resolver)
name
- Name of the property this resolver is forresolver
- Property resolver to registerpublic final boolean containsPropertyResolver(String name)
name
- of property resolver to look forpublic final boolean hasProperty(String propertyName)
propertyName
- Property to test existence ofpublic final org.alfresco.service.cmr.repository.NodeRef getNodeRef()
public final String getNodeRefAsString()
public org.alfresco.service.namespace.QName getType()
public String getName()
public final Set<org.alfresco.service.namespace.QName> getAspects()
public final boolean hasAspect(org.alfresco.service.namespace.QName aspect)
aspect
- The aspect to test forpublic boolean hasPermission(String permission)
permission
- Permission to validate againstpublic final String getId()
public String getPath()
public org.alfresco.service.cmr.repository.Path getNodePath()
public final boolean isLocked()
public final boolean isWorkingCopyOwner()
public void reset()
public String toString()
protected ServiceRegistry getServiceRegistry()
public org.alfresco.service.namespace.NamespacePrefixResolver getNamespacePrefixResolver()
getNamespacePrefixResolver
in interface org.alfresco.service.namespace.NamespacePrefixResolverProvider
Copyright © 2005–2017 Alfresco Software. All rights reserved.