|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.repository.Node
org.alfresco.web.bean.repository.TransientNode
public class TransientNode
Represents a transient node i.e. it is not and will not be present in the repository.
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.
Field Summary |
---|
Fields inherited from class org.alfresco.web.bean.repository.Node |
---|
aspects, associations, assocsRetrieved, childAssociations, childAssocsRetrieved, id, locked, name, nodeRef, path, permissions, properties, propsRetrieved, services, type, workingCopyOwner |
Constructor Summary | |
---|---|
TransientNode(org.alfresco.service.namespace.QName type,
java.lang.String name,
java.util.Map data)
Constructor. |
Method Summary | |
---|---|
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 |
Methods inherited from class org.alfresco.web.bean.repository.Node |
---|
addPropertyResolver, containsPropertyResolver, getAddedAssociations, getAddedChildAssociations, getAspects, getAssociations, getChildAssociations, getId, getName, getNamespacePrefixResolver, getNodePath, getNodeRef, getNodeRefAsString, getPath, getProperties, getRemovedAssociations, getRemovedChildAssociations, getServiceRegistry, getType, hasAspect, hasProperty, isLocked, isWorkingCopyOwner |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public 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 haveMethod Detail |
---|
public 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 have
protected void initNode(java.util.Map data)
data
- The properties and associations to initialise the node withpublic boolean hasPermission(java.lang.String permission)
Node
hasPermission
in class Node
permission
- Permission to validate against
public void reset()
Node
reset
in class Node
public java.lang.String toString()
Node
toString
in class Node
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |