org.exoplatform.wcm.webui.category
Class UICategoryNavigationTreeBase

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UITree
          extended by org.exoplatform.wcm.webui.category.UICategoryNavigationTreeBase

public class UICategoryNavigationTreeBase
extends org.exoplatform.webui.core.UITree

Created by The eXo Platform SAS Author : eXoPlatform chuong.phan@exoplatform.com, phan.le.thanh.chuong@gmail.com Comment: Change objId from node's path to category's path Jun 30, 2009


Nested Class Summary
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UITree
org.exoplatform.webui.core.UITree.ChangeNodeActionListener
 
Field Summary
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UICategoryNavigationTreeBase()
           
 
Method Summary
 String getActionLink()
           
 List<String> getCategoriesByUri(String categoryUri)
          Gets the categories by uri.
 List<javax.jcr.Node> getSubcategories(String categoryPath)
          Gets the subcategories.
 String getTemplate()
           
 org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, String template)
           
 String getTitle(javax.jcr.Node node)
          get content's title if exists (from exo:title property)
 String getTreeTitle()
           
 boolean isMovedTreeToTrash(String rootCategory)
           
 boolean isSelected(Object obj)
           
 String renderCategoryLink(javax.jcr.Node node)
          Render category link.
 String renderNode(Object obj)
           
 String resolveCategoryPathByUri(org.exoplatform.webui.application.WebuiRequestContext context)
          Resolve category path by uri.
 
Methods inherited from class org.exoplatform.webui.core.UITree
event, findComponentById, findComponentOfType, findFirstComponentOfType, getBeanChildCountField, getBeanIconField, getBeanIdField, getBeanLabelField, getChildren, getColapseIcon, getEscapeHTML, getExpandIcon, getFieldValue, getIcon, getId, getMaxTitleCharacter, getParentSelected, getSelected, getSelectedIcon, getSibbling, getUiPopupMenu, getUIRightClickPopupMenu, renderUIComponent, setBeanChildCountField, setBeanIconField, setBeanIdField, setBeanLabelField, setChildren, setColapseIcon, setCollapseIcon, setEscapeHTML, setExpandIcon, setIcon, setMaxTitleCharacter, setParentSelected, setSelected, setSelectedIcon, setSibbling, setUiPopupMenu, setUIRightClickPopupMenu
 
Methods inherited from class org.exoplatform.webui.core.UIComponent
broadcast, createEvent, createUIComponent, createUIComponent, createUIComponent, doAsync, event, event, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, processRender, renderEventURL, 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
 

Constructor Detail

UICategoryNavigationTreeBase

public UICategoryNavigationTreeBase()
Method Detail

renderNode

public String renderNode(Object obj)
                  throws Exception
Overrides:
renderNode in class org.exoplatform.webui.core.UITree
Throws:
Exception

getTemplate

public String getTemplate()
Overrides:
getTemplate in class org.exoplatform.webui.core.UIComponent

getTemplateResourceResolver

public org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context,
                                                                             String template)
Overrides:
getTemplateResourceResolver in class org.exoplatform.webui.core.UIComponent

getActionLink

public String getActionLink()
                     throws Exception
Overrides:
getActionLink in class org.exoplatform.webui.core.UITree
Throws:
Exception

isSelected

public boolean isSelected(Object obj)
                   throws Exception
Overrides:
isSelected in class org.exoplatform.webui.core.UITree
Throws:
Exception

isMovedTreeToTrash

public boolean isMovedTreeToTrash(String rootCategory)
                           throws Exception
Throws:
Exception

getSubcategories

public List<javax.jcr.Node> getSubcategories(String categoryPath)
                                      throws Exception
Gets the subcategories.

Parameters:
categoryPath - the category path
Returns:
the subcategories
Throws:
Exception - the exception

resolveCategoryPathByUri

public String resolveCategoryPathByUri(org.exoplatform.webui.application.WebuiRequestContext context)
                                throws Exception
Resolve category path by uri.

Parameters:
context - the context
Returns:
the string
Throws:
Exception

getCategoriesByUri

public List<String> getCategoriesByUri(String categoryUri)
                                throws Exception
Gets the categories by uri.

Parameters:
categoryUri - the category uri
Returns:
the categories by uri
Throws:
Exception - the exception

renderCategoryLink

public String renderCategoryLink(javax.jcr.Node node)
                          throws Exception
Render category link.

Parameters:
node - the node
Returns:
the string
Throws:
Exception - the exception

getTitle

public String getTitle(javax.jcr.Node node)
                throws Exception
get content's title if exists (from exo:title property)

Parameters:
node - The node
Returns:
the title
Throws:
Exception

getTreeTitle

public String getTreeTitle()


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.