org.exoplatform.social.webui.profile
Class UIProfileUserSearch

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.social.webui.profile.UIProfileUserSearch

public class UIProfileUserSearch
extends org.exoplatform.webui.form.UIForm


Nested Class Summary
static class UIProfileUserSearch.SearchActionListener
          Listens to search event from search form, then processes search condition and set search result to the result variable.
- Gets user name and other filter information from request.
- Searches user that matches the condition.
- Sets matched users into result list.
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String ALL_FILTER
          All people filter.
static char EMPTY_CHARACTER
          Empty character.
static String POSITION_REGEX_EXPRESSION
          REGEX EXPRESSION OF POSITION FIELD.
static String REG_FOR_SPLIT
          REGEX FOR SPLIT STRING
static String SEARCH
          SEARCH.
static String USER_CONTACT
          USER CONTACT.
 
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
UIProfileUserSearch()
          Initializes user search form fields.
 
Method Summary
protected  String getCurrentUserName()
          Gets current user's name.
 List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesBySkills(List<org.exoplatform.social.core.identity.model.Identity> identities)
          Filter identity follow skills information.
 List<org.exoplatform.social.core.identity.model.Identity> getIdentityList()
          Gets identity list result search.
 int getPeopleNum()
          Gets number of matching people.
 org.exoplatform.social.core.profile.ProfileFilter getProfileFilter()
          Gets filter object.
 String getRawSearchConditional()
           
protected  String getRestContextName()
          Gets current Rest context name of portal container.
 String getSelectedNode()
          Returns the current selected node.
 String getSpaceURL()
          Gets space url.
 String getTypeOfRelation()
          Gets type of relation with current user.
 boolean isHasConnectionLink()
           
 boolean isHasPeopleTab()
          Gets the flags to clarify including people tab or not.
 boolean isNewSearch()
           
protected  void resetUIComponentValues()
           
 void setHasConnectionLink(boolean hasConnectionLink)
           
 void setHasPeopleTab(boolean hasPeopleTab)
          Sets the flags to clarify including people tab or not.
 void setIdentityList(List<org.exoplatform.social.core.identity.model.Identity> identityList)
          Sets list identity.
 void setNewSearch(boolean isNewSearch)
           
 void setPeopleNum(int peopleNum)
          Sets number of matching people.
 void setProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter)
          Sets filter object.
 void setRawSearchConditional(String rawSearchConditional)
           
 void setSpaceURL(String spaceURL)
          Sets space url.
 void setTypeOfRelation(String typeOfRelation)
          Sets type of relation with current user to variable.
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, 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

SEARCH

public static final String SEARCH
SEARCH.

See Also:
Constant Field Values

USER_CONTACT

public static final String USER_CONTACT
USER CONTACT.

See Also:
Constant Field Values

REG_FOR_SPLIT

public static final String REG_FOR_SPLIT
REGEX FOR SPLIT STRING

See Also:
Constant Field Values

POSITION_REGEX_EXPRESSION

public static final String POSITION_REGEX_EXPRESSION
REGEX EXPRESSION OF POSITION FIELD.

See Also:
Constant Field Values

EMPTY_CHARACTER

public static final char EMPTY_CHARACTER
Empty character.

See Also:
Constant Field Values

ALL_FILTER

public static final String ALL_FILTER
All people filter.

See Also:
Constant Field Values
Constructor Detail

UIProfileUserSearch

public UIProfileUserSearch()
                    throws Exception
Initializes user search form fields. Initials and adds components as children to search form.

Throws:
Exception
Method Detail

isHasPeopleTab

public boolean isHasPeopleTab()
Gets the flags to clarify including people tab or not.

Returns:

setHasPeopleTab

public void setHasPeopleTab(boolean hasPeopleTab)
Sets the flags to clarify including people tab or not.

Parameters:
hasPeopleTab -

isHasConnectionLink

public boolean isHasConnectionLink()
Returns:
the hasConnectionLink

setHasConnectionLink

public void setHasConnectionLink(boolean hasConnectionLink)
Parameters:
hasConnectionLink - the hasConnectionLink to set

getPeopleNum

public int getPeopleNum()
Gets number of matching people.

Returns:
Since:
1.2.2

setPeopleNum

public void setPeopleNum(int peopleNum)
Sets number of matching people.

Parameters:
peopleNum -
Since:
1.2.2

setIdentityList

public void setIdentityList(List<org.exoplatform.social.core.identity.model.Identity> identityList)
                     throws Exception
Sets list identity.

Parameters:
identityList - List
Throws:
Exception

getIdentityList

public final List<org.exoplatform.social.core.identity.model.Identity> getIdentityList()
Gets identity list result search.

Returns:
List of identity.

getRawSearchConditional

public String getRawSearchConditional()

setRawSearchConditional

public void setRawSearchConditional(String rawSearchConditional)

getTypeOfRelation

public String getTypeOfRelation()
Gets type of relation with current user.


setTypeOfRelation

public void setTypeOfRelation(String typeOfRelation)
Sets type of relation with current user to variable.

Parameters:
typeOfRelation - char

getSpaceURL

public String getSpaceURL()
Gets space url.


setSpaceURL

public void setSpaceURL(String spaceURL)
Sets space url.

Parameters:
spaceURL - char

getCurrentUserName

protected String getCurrentUserName()
Gets current user's name.

Returns:

getRestContextName

protected String getRestContextName()
Gets current Rest context name of portal container.


getProfileFilter

public final org.exoplatform.social.core.profile.ProfileFilter getProfileFilter()
Gets filter object.

Returns:
The object that contain filter information.

setProfileFilter

public final void setProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter)
Sets filter object.

Parameters:
profileFilter - Object

resetUIComponentValues

protected void resetUIComponentValues()

getSelectedNode

public String getSelectedNode()
Returns the current selected node.

Returns:
selected node.
Since:
1.2.2

getIdentitiesBySkills

public List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesBySkills(List<org.exoplatform.social.core.identity.model.Identity> identities)
Filter identity follow skills information.

Parameters:
skills - String
identities - Object
Returns:
List of identities that has skills information match.

isNewSearch

public final boolean isNewSearch()

setNewSearch

public final void setNewSearch(boolean isNewSearch)


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