org.exoplatform.social.webui.space
Class UISpaceMenu

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.social.webui.space.UISpaceMenu

public class UISpaceMenu
extends org.exoplatform.webui.core.UIContainer


Nested Class Summary
static class UISpaceMenu.RenameSpaceAppNameActionListener
          Renames space application name.
- Gets selected node and selected page navigation.
- Changes selected node information.
- Updates new information for selected page navigation.
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String HIDDEN
           
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UISpaceMenu()
          Constructor.
 
Method Summary
protected  String getAppIcon(String pageRef)
           
protected  String getAppIdByAppName(String appName)
          Gets AppId to build class name of applications in space.
 List<org.exoplatform.portal.mop.user.UserNode> getApps()
          Gets page node list for displaying as application links.
 String getAppSelected()
          Gets selected application page node.
protected  String getImageSource()
          Gets image source url.
protected  org.exoplatform.social.core.space.model.Space getSpace(String spaceUrl)
          Get the space from space url.
 String getSpaceName()
          Gets space name from space url.
protected  boolean hasSettingPermission()
          Checks if current user is leader or not.
 
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, getTemplate, getTemplateResourceResolver, 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
 

Field Detail

HIDDEN

public static final String HIDDEN
See Also:
Constant Field Values
Constructor Detail

UISpaceMenu

public UISpaceMenu()
            throws Exception
Constructor.

Throws:
Exception
Method Detail

getApps

public List<org.exoplatform.portal.mop.user.UserNode> getApps()
                                                       throws Exception
Gets page node list for displaying as application links.

Returns:
page node list
Throws:
Exception

getAppIdByAppName

protected String getAppIdByAppName(String appName)
Gets AppId to build class name of applications in space. Returns default id in case of not matching.

Parameters:
appName - The application name.
Returns:
The id of application.

getSpaceName

public String getSpaceName()
                    throws Exception
Gets space name from space url.

Returns:
space's name.
Throws:
Exception

getAppSelected

public String getAppSelected()
                      throws Exception
Gets selected application page node.

Returns:
selected application page node
Throws:
Exception

getImageSource

protected String getImageSource()
Gets image source url.

Returns:
image source url
Throws:
Exception

hasSettingPermission

protected boolean hasSettingPermission()
                                throws org.exoplatform.social.core.space.SpaceException
Checks if current user is leader or not.

Returns:
true if current login user is leader.
Throws:
org.exoplatform.social.core.space.SpaceException

getAppIcon

protected String getAppIcon(String pageRef)

getSpace

protected org.exoplatform.social.core.space.model.Space getSpace(String spaceUrl)
Get the space from space url.

Parameters:
spaceUrl -
Returns:
Since:
1.2.1


Copyright © 2003-2013 eXo Platform SAS. All Rights Reserved.