org.exoplatform.ecm.webui.component.admin.taxonomy
Class UITaxonomyTreeContainer

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.ecm.webui.component.admin.taxonomy.UITaxonomyTreeContainer
All Implemented Interfaces:
UISelectable

public class UITaxonomyTreeContainer
extends org.exoplatform.webui.core.UIContainer
implements UISelectable

Created by The eXo Platform SARL Author : Hoang Van Hung hunghvit@gmail.com Apr 3, 2009


Nested Class Summary
static class UITaxonomyTreeContainer.CancelActionListener
           
static class UITaxonomyTreeContainer.RefreshActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static java.lang.String POPUP_PERMISSION
           
static java.lang.String POPUP_TAXONOMYHOMEPATH
           
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UITaxonomyTreeContainer()
           
 
Method Summary
 void addTaxonomyTree(java.lang.String name, java.lang.String workspace, java.lang.String homePath, java.util.List<PermissionBean> permBeans)
          Add taxonomy tree with given name, workspace, home path.
 void doSelect(java.lang.String selectField, java.lang.Object value)
           
 java.lang.String[] getActions()
           
 int getCurrentStep()
           
 int getSelectedStep()
           
 javax.jcr.Session getSession(java.lang.String workspace)
           
 TaxonomyTreeData getTaxonomyTreeData()
           
 void refresh()
           
 void setCurrentSep(int step)
           
 void setSelectedStep(int step)
           
 void setTaxonomyTreeData(TaxonomyTreeData taxonomyTreeData)
           
 boolean updateTaxonomyTree(java.lang.String name, java.lang.String workspace, java.lang.String homePath, java.lang.String actionName)
          Update taxonomy tree: If home path or workspace is changed, move taxonomy tree to new target
 void viewStep(int step)
           
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getRendererFor, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, registerRendererFor, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

POPUP_PERMISSION

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

POPUP_TAXONOMYHOMEPATH

public static final java.lang.String POPUP_TAXONOMYHOMEPATH
See Also:
Constant Field Values
Constructor Detail

UITaxonomyTreeContainer

public UITaxonomyTreeContainer()
                        throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

getActions

public java.lang.String[] getActions()

setCurrentSep

public void setCurrentSep(int step)

getCurrentStep

public int getCurrentStep()

setSelectedStep

public void setSelectedStep(int step)

getSelectedStep

public int getSelectedStep()

getTaxonomyTreeData

public TaxonomyTreeData getTaxonomyTreeData()

setTaxonomyTreeData

public void setTaxonomyTreeData(TaxonomyTreeData taxonomyTreeData)

viewStep

public void viewStep(int step)

refresh

public void refresh()
             throws java.lang.Exception
Throws:
java.lang.Exception

getSession

public javax.jcr.Session getSession(java.lang.String workspace)
                             throws javax.jcr.RepositoryException,
                                    org.exoplatform.services.jcr.config.RepositoryConfigurationException
Throws:
javax.jcr.RepositoryException
org.exoplatform.services.jcr.config.RepositoryConfigurationException

doSelect

public void doSelect(java.lang.String selectField,
                     java.lang.Object value)
              throws java.lang.Exception
Specified by:
doSelect in interface UISelectable
Throws:
java.lang.Exception

addTaxonomyTree

public void addTaxonomyTree(java.lang.String name,
                            java.lang.String workspace,
                            java.lang.String homePath,
                            java.util.List<PermissionBean> permBeans)
                     throws TaxonomyAlreadyExistsException,
                            TaxonomyNodeAlreadyExistsException,
                            java.security.AccessControlException,
                            java.lang.Exception
Add taxonomy tree with given name, workspace, home path. Add permission for tree node

Parameters:
name -
workspace -
homePath -
permBeans -
Throws:
TaxonomyAlreadyExistsException
TaxonomyNodeAlreadyExistsException
java.security.AccessControlException
java.lang.Exception

updateTaxonomyTree

public boolean updateTaxonomyTree(java.lang.String name,
                                  java.lang.String workspace,
                                  java.lang.String homePath,
                                  java.lang.String actionName)
                           throws javax.jcr.RepositoryException,
                                  java.security.AccessControlException,
                                  java.lang.Exception
Update taxonomy tree: If home path or workspace is changed, move taxonomy tree to new target

Parameters:
name -
workspace -
homePath -
Returns:
true: if taxonomy tree already has moved successfully false: if taxonomy has not changed
Throws:
javax.jcr.RepositoryException
java.security.AccessControlException
java.lang.Exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.