org.exoplatform.social.portlet
Class UISpacesToolBarPortlet

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.core.UIApplication
              extended by org.exoplatform.webui.core.UIPortletApplication
                  extended by org.exoplatform.social.portlet.UISpacesToolBarPortlet

public class UISpacesToolBarPortlet
extends org.exoplatform.webui.core.UIPortletApplication

UISpaceToolBarPortlet used as a portlet displaying spaces.

Since:
Oct 7, 2009
Author:
hanhvq

Nested Class Summary
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
protected static int DEFAULT_LEVEL
           
 
Fields inherited from class org.exoplatform.webui.core.UIPortletApplication
CONFIG_MODE, EDIT_MODE, HELP_MODE, VIEW_MODE
 
Fields inherited from class org.exoplatform.webui.core.UIApplication
log
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UISpacesToolBarPortlet()
          constructor
 
Method Summary
 org.exoplatform.portal.mop.user.UserNavigation getCurrentUserNavigation()
          Retrieving the Current Navigation.
 Collection<org.exoplatform.portal.mop.user.UserNode> getNavigationNodes(org.exoplatform.portal.mop.user.UserNavigation nav)
          Getting the Node children base on the UserNavigation which provides for Groovy template.
protected  org.exoplatform.portal.mop.user.UserNode getSelectedNode()
          Retrieving the selected node.
 List<org.exoplatform.portal.mop.user.UserNavigation> getSpaceNavigations()
           
 boolean isRender(org.exoplatform.portal.mop.user.UserNode spaceNode, org.exoplatform.portal.mop.user.UserNode applicationNode)
          Verifying the UserNode which need to render in the Groovy template.
 void serveResource(org.exoplatform.webui.application.WebuiRequestContext context)
           
protected  org.json.JSONObject toJSON(org.exoplatform.portal.mop.user.UserNode node, String navId, javax.portlet.MimeResponse res)
           
 
Methods inherited from class org.exoplatform.webui.core.UIPortletApplication
getMinHeight, getMinWidth, getUIPopupMessages, processRender, renderChildren, setMinHeight, setMinWidth
 
Methods inherited from class org.exoplatform.webui.core.UIApplication
addMessage, addMessage, clearMessages, findComponentById, getLastAccessApplication, getOwner, getUIComponentName, processAction, renderBlockToUpdate, setLastAccessApplication, setOwner
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, 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, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, 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
 

Field Detail

DEFAULT_LEVEL

protected static final int DEFAULT_LEVEL
See Also:
Constant Field Values
Constructor Detail

UISpacesToolBarPortlet

public UISpacesToolBarPortlet()
                       throws Exception
constructor

Throws:
Exception
Method Detail

getSpaceNavigations

public List<org.exoplatform.portal.mop.user.UserNavigation> getSpaceNavigations()
                                                                         throws Exception
Throws:
Exception

isRender

public boolean isRender(org.exoplatform.portal.mop.user.UserNode spaceNode,
                        org.exoplatform.portal.mop.user.UserNode applicationNode)
                 throws org.exoplatform.social.core.space.SpaceException
Verifying the UserNode which need to render in the Groovy template.

Parameters:
spaceNode - SpaceNode
applicationNode - ApplicationNode
Returns:
TRUE/FALSE to render.
Throws:
org.exoplatform.social.core.space.SpaceException

getSelectedNode

protected org.exoplatform.portal.mop.user.UserNode getSelectedNode()
                                                            throws Exception
Retrieving the selected node.

Returns:
Throws:
Exception

getNavigationNodes

public Collection<org.exoplatform.portal.mop.user.UserNode> getNavigationNodes(org.exoplatform.portal.mop.user.UserNavigation nav)
                                                                        throws Exception
Getting the Node children base on the UserNavigation which provides for Groovy template.

Parameters:
nav - UserNavigation.
Returns:
Throws:
Exception

serveResource

public void serveResource(org.exoplatform.webui.application.WebuiRequestContext context)
                   throws Exception
Overrides:
serveResource in class org.exoplatform.webui.core.UIPortletApplication
Throws:
Exception

getCurrentUserNavigation

public org.exoplatform.portal.mop.user.UserNavigation getCurrentUserNavigation()
                                                                        throws Exception
Retrieving the Current Navigation.

Returns:
Throws:
Exception

toJSON

protected org.json.JSONObject toJSON(org.exoplatform.portal.mop.user.UserNode node,
                                     String navId,
                                     javax.portlet.MimeResponse res)
                              throws Exception
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.