org.exoplatform.forum.common.webui
Class UIPermissionPanel

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.portal.webui.portal.UIPortalComponent
              extended by org.exoplatform.portal.webui.container.UIContainer
                  extended by org.exoplatform.forum.common.webui.UIPermissionPanel
All Implemented Interfaces:
UISelector

public class UIPermissionPanel
extends org.exoplatform.portal.webui.container.UIContainer
implements UISelector

Version:
$Id$
Author:
Hai Thanh Nguyen

Nested Class Summary
static class UIPermissionPanel.AddActionListener
           
static class UIPermissionPanel.AddPermissionActionListener
           
static class UIPermissionPanel.ClosePopupActionListener
           
static class UIPermissionPanel.EnterPermissionActionListener
           
static class UIPermissionPanel.OpenRoleAndGroupPopupActionListener
           
static class UIPermissionPanel.OpenUserPopupActionListener
           
 
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.portal.webui.container.UIContainer
description, icon, TABLE_COLUMN_CONTAINER
 
Fields inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
COMPONENT_EDIT_MODE, COMPONENT_VIEW_MODE, factoryId, height_, mode_, name_, template_, width_
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIPermissionPanel()
           
 
Method Summary
 void addPermissionForOwners(String permission, String[] owners)
           
 String getOwnersByPermission(String permission)
           
 String getSpaceGroupId()
           
protected  void initPlaceholder()
           
 void setPermission(String spaceGroupId, String... permissions)
           
 void setSpaceGroupId(String spaceGroupId)
           
static String[] splitValues(String str)
           
 void updateSelect(String selectField, String value)
           
 
Methods inherited from class org.exoplatform.portal.webui.container.UIContainer
getDescription, getIcon, getStorageId, setDescription, setIcon, setStorageId
 
Methods inherited from class org.exoplatform.portal.webui.portal.UIPortalComponent
getAccessPermissions, getFactoryId, getHeight, getName, getTemplate, getTitle, getWidth, hasPermission, isModifiable, setAccessPermissions, setFactoryId, setHeight, setModifiable, setName, setTemplate, setTitle, setWidth
 
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, getParent, 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

UIPermissionPanel

public UIPermissionPanel()
                  throws Exception
Throws:
Exception
Method Detail

initPlaceholder

protected void initPlaceholder()
                        throws Exception
Throws:
Exception

getSpaceGroupId

public String getSpaceGroupId()

setSpaceGroupId

public void setSpaceGroupId(String spaceGroupId)

setPermission

public void setPermission(String spaceGroupId,
                          String... permissions)

getOwnersByPermission

public String getOwnersByPermission(String permission)

addPermissionForOwners

public void addPermissionForOwners(String permission,
                                   String[] owners)

splitValues

public static String[] splitValues(String str)

updateSelect

public void updateSelect(String selectField,
                         String value)
                  throws Exception
Specified by:
updateSelect in interface UISelector
Throws:
Exception


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