org.exoplatform.social.webui.space
Class UISpaceGroupBound

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

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

This UI component is used for setting space's bound to a group
If not set, a new group is created.
A popup window will be displayed for user to choose from existing group
Created by The eXo Platform SAS

Since:
Jul 1, 2009
Author:
hoatle

Nested Class Summary
static class UISpaceGroupBound.ClosePopupActionListener
          Check if user selected a group or not when closing the popup, if not un-check the checked check box
static class UISpaceGroupBound.SelectGroupActionListener
          triggers this action when user clicks on select group on UIGroupSelector
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UISpaceGroupBound()
          constructor
 
Method Summary
 String getSelectedGroup()
          gets selected group from group bound
protected  boolean hasGroupWithManagerRole()
          Check current user is manager of group 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
 

Constructor Detail

UISpaceGroupBound

public UISpaceGroupBound()
                  throws Exception
constructor

Throws:
Exception
Method Detail

getSelectedGroup

public String getSelectedGroup()
gets selected group from group bound

Returns:
selected group

hasGroupWithManagerRole

protected boolean hasGroupWithManagerRole()
                                   throws Exception
Check current user is manager of group or not.

Returns:
True if current user has one group that he is manager of that group.
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.