|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.web.bean.ajax.NavigatorPluginBean
public class NavigatorPluginBean
Bean used by the navigator component to manage the tree data.
Field Summary | |
---|---|
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 Summary | |
---|---|
NavigatorPluginBean()
|
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
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
Constructor Detail |
---|
public NavigatorPluginBean()
Method Detail |
---|
public void retrieveChildren() throws java.io.IOException
java.io.IOException
public void nodeCollapsed() throws java.io.IOException
java.io.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 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 check
protected 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 for
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |