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,
java.lang.String name,
java.util.Map 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,
java.lang.String name,
java.util.Map data)
Construct a transient node for an item yet to be created in the Repository.
|
boolean |
hasPermission(java.lang.String permission)
Return whether the current user has the specified access permission on this Node
|
protected void |
initNode(java.util.Map data)
Initialises the node.
|
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
|
addPropertyResolver, containsPropertyResolver, getAddedAssociations, getAddedChildAssociations, getAspects, getAssociations, getChildAssociations, getId, getName, getNamespacePrefixResolver, getNodePath, getNodeRef, getNodeRefAsString, getPath, getProperties, getRemovedAssociations, getRemovedChildAssociations, getServiceRegistry, getType, hasAspect, hasProperty, isLocked, isWorkingCopyOwnerpublic TransientNode(org.alfresco.service.namespace.QName type,
java.lang.String name,
java.util.Map 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, java.lang.String name, java.util.Map 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(java.util.Map data)
data - The properties and associations to initialise the node withpublic boolean hasPermission(java.lang.String permission)
NodehasPermission in class Nodepermission - Permission to validate againstpublic void reset()
NodeCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.