public class NavigatorPluginBean extends Object implements IContextListener, Serializable
Modifier and Type | Field and Description |
---|---|
static String |
BEAN_NAME |
protected Map<String,UITree.TreeNode> |
companyHomeNodes |
protected List<UITree.TreeNode> |
companyHomeRootNodes |
protected Map<String,UITree.TreeNode> |
guestHomeNodes |
protected List<UITree.TreeNode> |
guestHomeRootNodes |
protected Map<String,UITree.TreeNode> |
myHomeNodes |
protected List<UITree.TreeNode> |
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
|
List<UITree.TreeNode> |
getCompanyHomeRootNodes()
Returns the root nodes for the company home panel.
|
List<UITree.TreeNode> |
getGuestHomeRootNodes()
Returns the root nodes for the guest home panel.
|
List<UITree.TreeNode> |
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 Map<String,UITree.TreeNode> |
getNodesMapForArea(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,
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 String BEAN_NAME
protected List<UITree.TreeNode> companyHomeRootNodes
protected List<UITree.TreeNode> myHomeRootNodes
protected List<UITree.TreeNode> guestHomeRootNodes
protected Map<String,UITree.TreeNode> companyHomeNodes
protected Map<String,UITree.TreeNode> myHomeNodes
protected Map<String,UITree.TreeNode> guestHomeNodes
protected org.alfresco.service.cmr.repository.NodeRef previouslySelectedNode
public void retrieveChildren() throws IOException
IOException
public void nodeCollapsed() throws IOException
IOException
public void contextUpdated()
IContextListener
contextUpdated
in interface IContextListener
IContextListener.contextUpdated()
public void areaChanged()
IContextListener
areaChanged
in interface IContextListener
IContextListener.areaChanged()
public void spaceChanged()
IContextListener
spaceChanged
in interface IContextListener
IContextListener.spaceChanged()
public List<UITree.TreeNode> getCompanyHomeRootNodes()
As the user expands and collapses nodes in the client this cache will be updated with the appropriate nodes and states.
public List<UITree.TreeNode> getMyHomeRootNodes()
As the user expands and collapses nodes in the client this cache will be updated with the appropriate nodes and states.
public List<UITree.TreeNode> 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, 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 Map<String,UITree.TreeNode> getNodesMapForArea(String area)
area
- The area to retrieve the map forCopyright © 2005–2017 Alfresco Software. All rights reserved.