public class NavigatorPluginBean extends java.lang.Object implements IContextListener, java.io.Serializable
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
BEAN_NAME |
protected java.util.Map |
companyHomeNodes |
protected java.util.List |
companyHomeRootNodes |
protected java.util.Map |
guestHomeNodes |
protected java.util.List |
guestHomeRootNodes |
protected java.util.Map |
myHomeNodes |
protected java.util.List |
myHomeRootNodes |
protected org.alfresco.service.cmr.repository.NodeRef |
previouslySelectedNode |
| Constructor and Description |
|---|
NavigatorPluginBean() |
| Modifier and Type | Method and Description |
|---|---|
void |
areaChanged()
Method called by UIContextService.areaChanged() to inform all registered beans that
the user has changed area i.e.
|
void |
contextUpdated()
Method called by UIContextService.notifyBeans() to inform all registered beans that
all UI Beans should refresh dump all cached data and settings.
|
protected UITree.TreeNode |
createTreeNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Creates a TreeNode object from the given NodeRef
|
protected BrowseBean |
getBrowseBean()
Retrieves the instance of the BrowseBean being used by the application
|
java.util.List |
getCompanyHomeRootNodes()
Returns the root nodes for the company home panel.
|
java.util.List |
getGuestHomeRootNodes()
Returns the root nodes for the guest home panel.
|
java.util.List |
getMyHomeRootNodes()
Returns the root nodes for the my home panel.
|
protected NavigationBean |
getNavigationBean()
Retrieves the instance of the NavigationBean being used by the application
|
protected java.util.Map |
getNodesMapForArea(java.lang.String area)
Returns the map of tree nodes for the given area
|
protected boolean |
isAddableChild(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Determines whether the given NodeRef can be added to the tree as
a child for example, if it's a folder.
|
void |
nodeCollapsed()
Sets the state of the node given in the 'nodeRef' parameter to collapsed
|
void |
reset()
Resets all the caches held by the bean.
|
void |
resetSelectedNode()
Resets the selected node
|
void |
retrieveChildren()
Retrieves the child folders for the noderef given in the
'noderef' parameter and caches the nodes against the area in
the 'area' parameter.
|
void |
selectNode(org.alfresco.service.cmr.repository.NodeRef selectedNode,
java.lang.String area)
Sets the currently selected node in the tree
|
void |
setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService) |
void |
setInternalNodeService(org.alfresco.service.cmr.repository.NodeService internalNodeService) |
void |
setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService) |
void |
spaceChanged()
Method called by UIContextService.spaceChanged() to inform all registered beans that
the current space has changed.
|
public static final java.lang.String BEAN_NAME
protected java.util.List companyHomeRootNodes
protected java.util.List myHomeRootNodes
protected java.util.List guestHomeRootNodes
protected java.util.Map companyHomeNodes
protected java.util.Map myHomeNodes
protected java.util.Map guestHomeNodes
protected org.alfresco.service.cmr.repository.NodeRef previouslySelectedNode
public void retrieveChildren()
throws java.io.IOException
java.io.IOExceptionpublic void nodeCollapsed()
throws java.io.IOException
java.io.IOExceptionpublic void contextUpdated()
IContextListenercontextUpdated in interface IContextListenerIContextListener.contextUpdated()public void areaChanged()
IContextListenerareaChanged in interface IContextListenerIContextListener.areaChanged()public void spaceChanged()
IContextListenerspaceChanged in interface IContextListenerIContextListener.spaceChanged()public java.util.List getCompanyHomeRootNodes()
As the user expands and collapses nodes in the client this cache will be updated with the appropriate nodes and states.
public java.util.List getMyHomeRootNodes()
As the user expands and collapses nodes in the client this cache will be updated with the appropriate nodes and states.
public java.util.List getGuestHomeRootNodes()
As the user expands and collapses nodes in the client this cache will be updated with the appropriate nodes and states.
public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
nodeService - The NodeService to set.public void setInternalNodeService(org.alfresco.service.cmr.repository.NodeService internalNodeService)
internalNodeService - The internalNodeService to set.public void setDictionaryService(org.alfresco.service.cmr.dictionary.DictionaryService dictionaryService)
dictionaryService - The DictionaryService to set.public void selectNode(org.alfresco.service.cmr.repository.NodeRef selectedNode,
java.lang.String area)
selectedNode - The node that has been selectedpublic void resetSelectedNode()
public void reset()
protected boolean isAddableChild(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - The NodeRef to checkprotected UITree.TreeNode createTreeNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
nodeRef - The NodeRef to create the TreeNode fromprotected NavigationBean getNavigationBean()
protected BrowseBean getBrowseBean()
protected java.util.Map getNodesMapForArea(java.lang.String area)
area - The area to retrieve the map forCopyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.