|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.exoplatform.webui.core.UIComponent
org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.form.UIForm
org.exoplatform.social.webui.profile.UIProfileUserSearch
public class UIProfileUserSearch
Searches users in profile by user name and some other filter condition.
- Search action is listened and information for search user is processed.
- After users is requested is returned, the search process is completed, -
Search event is broadcasted to the form that added search form as child.
Author : hanhvi hanhvq@gmail.com
Sep 25, 2009
| 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 |
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. |
protected String |
getPeopleFoundLabel()
Gets label to display the number of matching spaces. |
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 |
getSelectedChar()
Gets selected character when search by alphabet. |
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 |
setSelectedChar(String selectedChar)
Sets selected character to variable. |
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 |
|---|
public static final String SEARCH
public static final String USER_CONTACT
public static final String REG_FOR_SPLIT
public static final String POSITION_REGEX_EXPRESSION
| Constructor Detail |
|---|
public UIProfileUserSearch()
throws Exception
Exception| Method Detail |
|---|
public boolean isHasPeopleTab()
public void setHasPeopleTab(boolean hasPeopleTab)
hasPeopleTab - public boolean isHasConnectionLink()
public void setHasConnectionLink(boolean hasConnectionLink)
hasConnectionLink - the hasConnectionLink to setpublic int getPeopleNum()
public void setPeopleNum(int peopleNum)
peopleNum -
public void setIdentityList(List<org.exoplatform.social.core.identity.model.Identity> identityList)
throws Exception
identityList - List
Exceptionpublic final List<org.exoplatform.social.core.identity.model.Identity> getIdentityList()
public String getRawSearchConditional()
public void setRawSearchConditional(String rawSearchConditional)
public final String getSelectedChar()
public final void setSelectedChar(String selectedChar)
selectedChar - charpublic String getTypeOfRelation()
public void setTypeOfRelation(String typeOfRelation)
typeOfRelation - charpublic String getSpaceURL()
public void setSpaceURL(String spaceURL)
spaceURL - charprotected String getCurrentUserName()
protected String getRestContextName()
public final org.exoplatform.social.core.profile.ProfileFilter getProfileFilter()
public final void setProfileFilter(org.exoplatform.social.core.profile.ProfileFilter profileFilter)
profileFilter - Objectprotected void resetUIComponentValues()
public String getSelectedNode()
public List<org.exoplatform.social.core.identity.model.Identity> getIdentitiesBySkills(List<org.exoplatform.social.core.identity.model.Identity> identities)
skills - Stringidentities - Object
protected String getPeopleFoundLabel()
public final boolean isNewSearch()
public final void setNewSearch(boolean isNewSearch)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||