org.exoplatform.ecm.webui.component.admin.unlock
Class UIPermissionSelector

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.organization.UIGroupMembershipSelector
              extended by org.exoplatform.ecm.webui.component.admin.unlock.UIPermissionSelector
All Implemented Interfaces:
ComponentSelector

public class UIPermissionSelector
extends org.exoplatform.webui.organization.UIGroupMembershipSelector
implements ComponentSelector

Created by The eXo Platform SARL Author : Dang Van Minh minh.dang@exoplatform.com Nov 17, 2006


Nested Class Summary
static class UIPermissionSelector.AddAnyPermissionActionListener
           
static class UIPermissionSelector.ChangeNodeActionListener
          The listener interface for receiving changeNodeAction events.
static class UIPermissionSelector.SelectMembershipActionListener
          The listener interface for receiving selectMembershipAction events.
static class UIPermissionSelector.SelectPathActionListener
          The listener interface for receiving selectPathAction events.
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static java.lang.String defaultValue
          The Constant defaultValue.
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIPermissionSelector()
          Instantiates a new uI permission selector.
 
Method Summary
 java.lang.String getReturnField()
          Gets the return field.
 org.exoplatform.webui.core.UIComponent getSourceComponent()
          Gets the return component.
 java.util.List getUsers()
          Gets the users.
 boolean isSelectedMembership()
          Checks if is selected membership.
 boolean isSelectedUser()
          Checks if is selected user.
 boolean isShowAnyPermission()
          Check show/hide form to set any permission
 boolean isUsePopup()
           
 void setCurrentPermission(java.lang.String per)
          Sets the current permission.
 void setIsUsePopup(boolean isUsePopup)
           
 void setSelectedMembership(boolean bool)
          Sets the selected membership.
 void setSelectedUser(boolean bool)
          Sets the selected user.
 void setShowAnyPermission(boolean isShowAnyPermission)
          Set show/hide any permission form
 void setSourceComponent(org.exoplatform.webui.core.UIComponent uicomponent, java.lang.String[] initParams)
           
 
Methods inherited from class org.exoplatform.webui.organization.UIGroupMembershipSelector
changeGroup, event, getCurrentGroup, getListMemberhip, processRender
 
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, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getRendererFor, getTemplate, getTemplateResourceResolver, getUIComponentName, isRendered, loadConfirmMesssage, processAction, processDecode, registerRendererFor, 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

defaultValue

public static final java.lang.String defaultValue
The Constant defaultValue.

See Also:
Constant Field Values
Constructor Detail

UIPermissionSelector

public UIPermissionSelector()
                     throws java.lang.Exception
Instantiates a new uI permission selector.

Throws:
java.lang.Exception - the exception
Method Detail

setCurrentPermission

public void setCurrentPermission(java.lang.String per)
                          throws java.lang.Exception
Sets the current permission.

Parameters:
per - the new current permission
Throws:
java.lang.Exception - the exception

getSourceComponent

public org.exoplatform.webui.core.UIComponent getSourceComponent()
Gets the return component.

Specified by:
getSourceComponent in interface ComponentSelector
Returns:
the return component

getReturnField

public java.lang.String getReturnField()
Gets the return field.

Returns:
the return field

setIsUsePopup

public void setIsUsePopup(boolean isUsePopup)

isUsePopup

public boolean isUsePopup()

setSourceComponent

public void setSourceComponent(org.exoplatform.webui.core.UIComponent uicomponent,
                               java.lang.String[] initParams)
Specified by:
setSourceComponent in interface ComponentSelector

setSelectedUser

public void setSelectedUser(boolean bool)
Sets the selected user.

Parameters:
bool - the new selected user

isSelectedUser

public boolean isSelectedUser()
Checks if is selected user.

Returns:
true, if is selected user

setSelectedMembership

public void setSelectedMembership(boolean bool)
Sets the selected membership.

Parameters:
bool - the new selected membership

isSelectedMembership

public boolean isSelectedMembership()
Checks if is selected membership.

Returns:
true, if is selected membership

getUsers

public java.util.List getUsers()
                        throws java.lang.Exception
Gets the users.

Returns:
the users
Throws:
java.lang.Exception - the exception

isShowAnyPermission

public boolean isShowAnyPermission()
Check show/hide form to set any permission

Returns:

setShowAnyPermission

public void setShowAnyPermission(boolean isShowAnyPermission)
Set show/hide any permission form

Parameters:
isShowAnyPermission - isShowAnyPermission = true: Show form
isShowAnyPermission = false: Hide form


Copyright © 2010 eXo Platform SAS. All Rights Reserved.