org.alfresco.web.bean.ajax
Class CategoryBrowserPluginBean

java.lang.Object
  extended by org.alfresco.web.bean.ajax.CategoryBrowserPluginBean
All Implemented Interfaces:
java.io.Serializable

public class CategoryBrowserPluginBean
extends java.lang.Object
implements java.io.Serializable

See Also:
Serialized Form

Field Summary
static java.lang.String BEAN_NAME
           
protected  org.alfresco.service.cmr.repository.NodeRef previouslySelectedNode
           
 
Constructor Summary
CategoryBrowserPluginBean()
           
 
Method Summary
protected  UITree.TreeNode createTreeNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
          Creates a TreeNode object from the given NodeRef
 java.util.List getCategoryRootNodes()
           
protected  java.util.Map getNodesMap()
           
 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)
           
 void setCategoryService(org.alfresco.service.cmr.search.CategoryService categoryService)
           
 void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

BEAN_NAME

public static final java.lang.String BEAN_NAME
See Also:
Constant Field Values

previouslySelectedNode

protected org.alfresco.service.cmr.repository.NodeRef previouslySelectedNode
Constructor Detail

CategoryBrowserPluginBean

public CategoryBrowserPluginBean()
Method Detail

setCategoryService

public void setCategoryService(org.alfresco.service.cmr.search.CategoryService categoryService)
Parameters:
categoryService - the categoryService to set

setNodeService

public void setNodeService(org.alfresco.service.cmr.repository.NodeService nodeService)
Parameters:
nodeService - the nodeService to set

getCategoryRootNodes

public java.util.List getCategoryRootNodes()

getNodesMap

protected java.util.Map getNodesMap()

retrieveChildren

public void retrieveChildren()
                      throws java.io.IOException
Retrieves the child folders for the noderef given in the 'noderef' parameter and caches the nodes against the area in the 'area' parameter.

Throws:
java.io.IOException

nodeCollapsed

public void nodeCollapsed()
                   throws java.io.IOException
Sets the state of the node given in the 'nodeRef' parameter to collapsed

Throws:
java.io.IOException

selectNode

public void selectNode(org.alfresco.service.cmr.repository.NodeRef selectedNode,
                       java.lang.String area)

resetSelectedNode

public void resetSelectedNode()
Resets the selected node


reset

public void reset()
Resets all the caches held by the bean.


createTreeNode

protected UITree.TreeNode createTreeNode(org.alfresco.service.cmr.repository.NodeRef nodeRef)
Creates a TreeNode object from the given NodeRef

Parameters:
nodeRef - The NodeRef to create the TreeNode from


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.