public class TransientNode extends Node
This type of node is typically used to drive the property sheet when data collection is required for a type but the node does not need to be stored in the repository. An example use is the workflow, transient nodes are used to collect workitem metadata.
aspects, associations, assocsRetrieved, childAssociations, childAssocsRetrieved, id, locked, name, nodeRef, path, permissions, properties, propsRetrieved, services, type, workingCopyOwner
Constructor and Description |
---|
TransientNode(org.alfresco.service.namespace.QName type,
String name,
Map<org.alfresco.service.namespace.QName,Serializable> data)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
static TransientNode |
createNew(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService,
org.alfresco.service.cmr.dictionary.TypeDefinition typeDef,
String name,
Map<org.alfresco.service.namespace.QName,Serializable> data)
Construct a transient node for an item yet to be created in the Repository.
|
boolean |
hasPermission(String permission)
Return whether the current user has the specified access permission on this Node
|
protected void |
initNode(Map<org.alfresco.service.namespace.QName,Serializable> data)
Initialises the node.
|
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
|
addPropertyResolver, containsPropertyResolver, getAddedAssociations, getAddedChildAssociations, getAspects, getAssociations, getChildAssociations, getId, getName, getNamespacePrefixResolver, getNodePath, getNodeRef, getNodeRefAsString, getPath, getProperties, getRemovedAssociations, getRemovedChildAssociations, getServiceRegistry, getType, hasAspect, hasProperty, isLocked, isWorkingCopyOwner
public TransientNode(org.alfresco.service.namespace.QName type, String name, Map<org.alfresco.service.namespace.QName,Serializable> data)
NOTE: The name is NOT automatically added to the map of properties, if you need the name of this node to be in the map then add it to the map passed in to this constructor.
type
- The type this node will representname
- The name of the nodedata
- The properties and associations this node will havepublic static TransientNode createNew(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService, org.alfresco.service.cmr.dictionary.TypeDefinition typeDef, String name, Map<org.alfresco.service.namespace.QName,Serializable> data)
dictionaryService
- dictionary servicetypeDef
- The type definition this node will representname
- The name of the nodedata
- The properties and associations this node will haveprotected void initNode(Map<org.alfresco.service.namespace.QName,Serializable> data)
data
- The properties and associations to initialise the node withpublic boolean hasPermission(String permission)
Node
hasPermission
in class Node
permission
- Permission to validate againstpublic void reset()
Node
Copyright © 2005–2017 Alfresco Software. All rights reserved.