org.alfresco.web.bean.repository
Class MapNode
java.lang.Object
org.alfresco.web.bean.repository.Node
org.alfresco.web.bean.repository.MapNode
- All Implemented Interfaces:
- java.io.Serializable, java.util.Map, org.alfresco.service.namespace.NamespacePrefixResolverProvider
public class MapNode
- extends Node
- implements java.util.Map
Lighweight client side representation of a node held in the repository, which
is modelled as a map for use in the data tables.
- See Also:
- Serialized Form
Nested classes/interfaces inherited from interface java.util.Map |
java.util.Map.Entry |
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 |
MapNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Constructor |
MapNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeService nodeService,
boolean initProps)
Constructor |
MapNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeService nodeService,
java.util.Map props)
Constructor |
Method Summary |
void |
clear()
|
boolean |
containsKey(java.lang.Object key)
|
boolean |
containsValue(java.lang.Object value)
|
java.util.Set |
entrySet()
|
java.lang.Object |
get(java.lang.Object key)
|
boolean |
isEmpty()
|
java.util.Set |
keySet()
|
java.lang.Object |
put(java.lang.String key,
java.lang.Object value)
|
void |
putAll(java.util.Map t)
|
java.lang.Object |
remove(java.lang.Object key)
|
void |
reset()
Resets the state of the node to force re-retrieval of the data |
int |
size()
|
java.util.Collection |
values()
|
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, hasPermission, hasProperty, isLocked, isWorkingCopyOwner, toString |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface java.util.Map |
equals, hashCode |
MapNode
public MapNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
- Constructor
- Parameters:
nodeRef
- The NodeRef this Node wrapper represents
MapNode
public MapNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeService nodeService,
boolean initProps)
- Constructor
- Parameters:
nodeRef
- The NodeRef this Node wrapper representsnodeService
- The node service to use to retrieve data for this nodeinitProps
- True to immediately init the properties of the node, false to do nothing
MapNode
public MapNode(org.alfresco.service.cmr.repository.NodeRef nodeRef,
org.alfresco.service.cmr.repository.NodeService nodeService,
java.util.Map props)
- Constructor
- Parameters:
nodeRef
- The NodeRef this Node wrapper representsnodeService
- The node service to use to retrieve data for this nodeprops
- The properties of the node, already retrieved from NodeService
clear
public void clear()
- Specified by:
clear
in interface java.util.Map
- See Also:
Map.clear()
containsKey
public boolean containsKey(java.lang.Object key)
- Specified by:
containsKey
in interface java.util.Map
- See Also:
Map.containsKey(java.lang.Object)
containsValue
public boolean containsValue(java.lang.Object value)
- Specified by:
containsValue
in interface java.util.Map
- See Also:
Map.containsValue(java.lang.Object)
entrySet
public java.util.Set entrySet()
- Specified by:
entrySet
in interface java.util.Map
- See Also:
Map.entrySet()
get
public java.lang.Object get(java.lang.Object key)
- Specified by:
get
in interface java.util.Map
- See Also:
Map.get(java.lang.Object)
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface java.util.Map
- See Also:
Map.isEmpty()
keySet
public java.util.Set keySet()
- Specified by:
keySet
in interface java.util.Map
- See Also:
Map.keySet()
put
public java.lang.Object put(java.lang.String key,
java.lang.Object value)
- Specified by:
put
in interface java.util.Map
- See Also:
Map.put(java.lang.Object, java.lang.Object)
putAll
public void putAll(java.util.Map t)
- Specified by:
putAll
in interface java.util.Map
- See Also:
Map.putAll(java.util.Map)
remove
public java.lang.Object remove(java.lang.Object key)
- Specified by:
remove
in interface java.util.Map
- See Also:
Map.remove(java.lang.Object)
size
public int size()
- Specified by:
size
in interface java.util.Map
- See Also:
Map.size()
reset
public void reset()
- Description copied from class:
Node
- Resets the state of the node to force re-retrieval of the data
- Overrides:
reset
in class Node
values
public java.util.Collection values()
- Specified by:
values
in interface java.util.Map
- See Also:
Map.values()
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.