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, org.exoplatform.webui.core.UITree.NodeMetaDataManager
 
Field Summary
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UICategoryNavigationTreeBase()
           
 
Method Summary
 java.lang.String getActionLink()
           
 java.util.List<java.lang.String> getCategoriesByUri(java.lang.String categoryUri)
          Gets the categories by uri.
 java.util.List<javax.jcr.Node> getSubcategories(java.lang.String categoryPath)
          Gets the subcategories.
 java.lang.String getTemplate()
           
 org.exoplatform.resolver.ResourceResolver getTemplateResourceResolver(org.exoplatform.webui.application.WebuiRequestContext context, java.lang.String template)
           
 java.lang.String getTitle(javax.jcr.Node node)
          get content's title if exists (from exo:title property)
 java.lang.String getTreeTitle()
           
 boolean isMovedTreeToTrash(java.lang.String rootCategory)
           
 boolean isSelected(java.lang.Object obj)
           
 java.lang.String renderCategoryLink(javax.jcr.Node node)
          Render category link.
 java.lang.String renderNode(java.lang.Object obj)
           
 java.lang.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, getBeanIconField, getBeanIdField, getBeanLabelField, getChildren, getColapseIcon, getExpandIcon, getFieldValue, getIcon, getId, getMaxTitleCharacter, getNodeMetaData, getParentSelected, getSelected, getSelectedIcon, getSibbling, getUiPopupMenu, getUIRightClickPopupMenu, renderUIComponent, setBeanIconField, setBeanIdField, setBeanLabelField, setChildren, setColapseIcon, setCollapseIcon, setExpandIcon, setIcon, setMaxTitleCharacter, setNodeMetaDataManager, 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 java.lang.String renderNode(java.lang.Object obj)
                            throws java.lang.Exception
Overrides:
renderNode in class org.exoplatform.webui.core.UITree
Throws:
java.lang.Exception

getTemplate

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

getTemplateResourceResolver

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

getActionLink

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

isSelected

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

isMovedTreeToTrash

public boolean isMovedTreeToTrash(java.lang.String rootCategory)
                           throws java.lang.Exception
Throws:
java.lang.Exception

getSubcategories

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

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

resolveCategoryPathByUri

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

Parameters:
context - the context
Returns:
the string
Throws:
java.lang.Exception

getCategoriesByUri

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

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

renderCategoryLink

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

Parameters:
node - the node
Returns:
the string
Throws:
java.lang.Exception - the exception

getTitle

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

Parameters:
node -
Returns:
the title
Throws:
java.lang.Exception

getTreeTitle

public java.lang.String getTreeTitle()


Copyright © 2011 eXo Platform SAS. All Rights Reserved.