org.exoplatform.calendar.webui.popup
Class UIUserSelector

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.calendar.webui.popup.UIUserSelector
All Implemented Interfaces:
UIPopupComponent

public class UIUserSelector
extends org.exoplatform.webui.form.UIForm
implements UIPopupComponent

Created by The eXo Platform SARL Author : Pham Tuan phamtuanchip@gmail.com Dec 11, 2007 Modified: dang.tung tungcnw@gmail.com Nov 22, 2008


Nested Class Summary
static class UIUserSelector.AddActionListener
           
static class UIUserSelector.AddUserActionListener
           
static class UIUserSelector.CloseActionListener
           
static class UIUserSelector.FindGroupActionListener
           
static class UIUserSelector.SearchActionListener
           
static class UIUserSelector.SearchGroupActionListener
           
static class UIUserSelector.SelectGroupActionListener
           
static class UIUserSelector.ShowPageActionListener
           
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String EMAIL
           
static String FIELD_FILTER
           
static String FIELD_GROUP
           
static String FIELD_KEYWORD
           
static String FIRST_NAME
           
protected  String groupId_
           
static String LAST_NAME
           
protected  Collection<String> pars_
           
 org.exoplatform.webui.core.UIPageIterator uiIterator_
           
static String USER_NAME
           
protected  Map<String,org.exoplatform.services.organization.User> userData_
           
 
Fields inherited from class org.exoplatform.webui.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIUserSelector()
           
 
Method Summary
 void activate()
           
 void deActivate()
           
 String[] getActions()
           
 long getAvailablePage()
           
 long getCurrentPage()
           
 List<org.exoplatform.services.organization.User> getData()
           
 String getLabel(String id)
           
 boolean getMulti()
           
 String getSelectedGroup()
           
 String getSelectedUsers()
           
 org.exoplatform.webui.core.UIPageIterator getUIPageIterator()
           
 boolean isShowSearch()
           
 boolean isShowSearchGroup()
           
 boolean isShowSearchUser()
           
 org.exoplatform.commons.utils.PageList removeDuplicate(org.exoplatform.commons.utils.PageList users)
           
 void search(String keyword, String filter, String groupId)
           
 void setKeyword(String value)
           
 void setMulti(boolean multi)
           
 void setSelectedGroup(String selectedGroup)
           
 void setSelectedUsers(String selectedUsers)
           
 void setShowSearch(boolean isShowSearch)
           
 void setShowSearchGroup(boolean isShowSearchGroup)
           
 void setShowSearchUser(boolean isShowSearchUser)
           
protected  void updateCurrentPage(int page)
           
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url
 
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, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

FIELD_KEYWORD

public static final String FIELD_KEYWORD
See Also:
Constant Field Values

FIELD_FILTER

public static final String FIELD_FILTER
See Also:
Constant Field Values

FIELD_GROUP

public static final String FIELD_GROUP
See Also:
Constant Field Values

USER_NAME

public static String USER_NAME

LAST_NAME

public static String LAST_NAME

FIRST_NAME

public static String FIRST_NAME

EMAIL

public static String EMAIL

userData_

protected Map<String,org.exoplatform.services.organization.User> userData_

groupId_

protected String groupId_

pars_

protected Collection<String> pars_

uiIterator_

public org.exoplatform.webui.core.UIPageIterator uiIterator_
Constructor Detail

UIUserSelector

public UIUserSelector()
               throws Exception
Throws:
Exception
Method Detail

getData

public List<org.exoplatform.services.organization.User> getData()
                                                         throws Exception
Throws:
Exception

getSelectedUsers

public String getSelectedUsers()

setSelectedUsers

public void setSelectedUsers(String selectedUsers)

setMulti

public void setMulti(boolean multi)

getMulti

public boolean getMulti()

getUIPageIterator

public org.exoplatform.webui.core.UIPageIterator getUIPageIterator()

getAvailablePage

public long getAvailablePage()

getCurrentPage

public long getCurrentPage()

getActions

public String[] getActions()
Overrides:
getActions in class org.exoplatform.webui.form.UIForm

activate

public void activate()
              throws Exception
Specified by:
activate in interface UIPopupComponent
Throws:
Exception

deActivate

public void deActivate()
                throws Exception
Specified by:
deActivate in interface UIPopupComponent
Throws:
Exception

getLabel

public String getLabel(String id)
Overrides:
getLabel in class org.exoplatform.webui.form.UIForm

setShowSearch

public void setShowSearch(boolean isShowSearch)

isShowSearch

public boolean isShowSearch()

setShowSearchGroup

public void setShowSearchGroup(boolean isShowSearchGroup)

isShowSearchGroup

public boolean isShowSearchGroup()

setShowSearchUser

public void setShowSearchUser(boolean isShowSearchUser)

search

public void search(String keyword,
                   String filter,
                   String groupId)
            throws Exception
Throws:
Exception

isShowSearchUser

public boolean isShowSearchUser()

getSelectedGroup

public String getSelectedGroup()

setSelectedGroup

public void setSelectedGroup(String selectedGroup)

removeDuplicate

public org.exoplatform.commons.utils.PageList removeDuplicate(org.exoplatform.commons.utils.PageList users)
                                                       throws Exception
Throws:
Exception

updateCurrentPage

protected void updateCurrentPage(int page)
                          throws Exception
Throws:
Exception

setKeyword

public void setKeyword(String value)


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