org.exoplatform.wcm.webui.selector.content
Class UIContentTreeBuilder

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.portal.webui.portal.UIPortalComponent
              extended by org.exoplatform.portal.webui.container.UIContainer
                  extended by org.exoplatform.wcm.webui.selector.content.UIContentTreeBuilder
Direct Known Subclasses:
UIContentTreeBuilderFolder

public class UIContentTreeBuilder
extends org.exoplatform.portal.webui.container.UIContainer

Created by The eXo Platform SAS.

Author:
: maivanha1610@gmail.com

Nested Class Summary
static class UIContentTreeBuilder.ChangeNodeActionListener
          The listener interface for receiving changeNodeAction events.
 
Nested classes/interfaces inherited from class org.exoplatform.portal.webui.container.UIContainer
org.exoplatform.portal.webui.container.UIContainer.SelectTabActionListener
 
Field Summary
 java.util.List<java.lang.String> path
           
protected  java.lang.String repositoryName
           
 
Fields inherited from class org.exoplatform.portal.webui.container.UIContainer
creator, description, icon, modifier
 
Fields inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
COMPONENT_EDIT_MODE, COMPONENT_VIEW_MODE, factoryId, height_, mode_, name_, template_, width_
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIContentTreeBuilder()
          Instantiates a new uI web content tree builder.
 
Method Summary
protected  javax.jcr.Session getSession(java.lang.String workSpaceName)
          Gets the session.
 java.util.List<UIContentTreeNode> getTreeNode()
          Gets the tree node.
 boolean isSymLink(javax.jcr.Node node)
          Checks if is sym link.
 
Methods inherited from class org.exoplatform.portal.webui.container.UIContainer
getCreator, getDescription, getIcon, getModifier, setCreator, setDescription, setIcon, setModifier
 
Methods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
getFactoryId, getHeight, getMode, getName, getTemplate, getTitle, getWidth, isEditMode, isModifiable, isShowEditControl, setFactoryId, setHeight, setMode, setModifiable, setName, setShowEditControl, setTemplate, setTitle, setWidth
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentById, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChildren, renderChildren, renderUIComponent, replaceChild, replaceChild, setChildren, setRenderedChild, setRenderedChild, setRenderedChildrenOfTypes, visit
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, event, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getParent, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibbling, url, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

path

public java.util.List<java.lang.String> path

repositoryName

protected java.lang.String repositoryName
Constructor Detail

UIContentTreeBuilder

public UIContentTreeBuilder()
                     throws java.lang.Exception
Instantiates a new uI web content tree builder.

Throws:
java.lang.Exception - the exception
Method Detail

isSymLink

public boolean isSymLink(javax.jcr.Node node)
                  throws java.lang.Exception
Checks if is sym link.

Parameters:
node - the node
Returns:
true, if is sym link
Throws:
java.lang.Exception - the exception

getSession

protected javax.jcr.Session getSession(java.lang.String workSpaceName)
                                throws java.lang.Exception
Gets the session.

Parameters:
workSpaceName - the work space name
Returns:
the session
Throws:
java.lang.Exception - the exception

getTreeNode

public java.util.List<UIContentTreeNode> getTreeNode()
                                              throws java.lang.Exception
Gets the tree node.

Returns:
the tree node
Throws:
java.lang.Exception - the exception


Copyright © 2010 eXo Platform SAS. All Rights Reserved.