|
||||||||||
| 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.social.webui.connections.UIMyConnections
public class UIMyConnections
Manages relation with the current user of all existing users. Manages actions
such as remove relation and search action.
- Get all users that really have relation.
- Check the status of each user with current user then display the list.
- Listens to event: remove relation and search action.
Author : dang.tung
tungcnw@gmail.com
Aug 25, 2009
| Nested Class Summary | |
|---|---|
static class |
UIMyConnections.LoadMorePeopleActionListener
Listeners loading more people action. |
static class |
UIMyConnections.RemoveConnectionActionListener
Listens to remove action then delete the relation. - Gets information of user is removed. - Checks the relation to confirm that still got relation. - Removes the current relation. |
static class |
UIMyConnections.SearchActionListener
Listens event that broadcast from UIProfileUserSearch. |
| 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.webui.core.UIComponent |
|---|
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent |
| Constructor Summary | |
|---|---|
UIMyConnections()
Initializes components and add as child of form. |
|
| Method Summary | |
|---|---|
List<org.exoplatform.social.core.identity.model.Identity> |
getPeopleList()
Gets list of all type of people. |
org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> |
getPeopleListAccess()
Gets people with ListAccess type. |
int |
getPeopleNum()
Gets number of people for displaying. |
void |
init()
Inits at the first loading. |
boolean |
isEditable()
Return true to accept user is viewing can edit. |
boolean |
isEnableLoadNext()
Gets flag to display LoadNext button or not. |
boolean |
isHasUpdatedIdentity()
Gets information that clarify one element is updated or not. |
boolean |
isLoadAtEnd()
Gets flags to clarify that load at the last element or not. |
void |
loadNext()
Loads more people. |
void |
loadSearch()
Loads people when searching. |
void |
setEnableLoadNext(boolean enableLoadNext)
Sets flag to display LoadNext button or not. |
void |
setHasUpdatedIdentity(boolean hasUpdatedIdentity)
Sets information that clarify one element is updated or not. |
void |
setLoadAtEnd(boolean loadAtEnd)
Sets flags to clarify that load at the last element or not. |
void |
setLoadingCapacity(int loadingCapacity)
Sets loading capacity. |
void |
setPeopleList(List<org.exoplatform.social.core.identity.model.Identity> peopleList)
Sets list of all type of people. |
void |
setPeopleListAccess(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> peopleListAccess)
Sets people with ListAccess type. |
void |
setPeopleNum(int peopleNum)
Sets number of people for displaying. |
| 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, getName, getParent, getTemplate, 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 |
|---|
public UIMyConnections()
throws Exception
Exception| Method Detail |
|---|
public void init()
public void setLoadingCapacity(int loadingCapacity)
loadingCapacity - public boolean isEnableLoadNext()
public void setEnableLoadNext(boolean enableLoadNext)
enableLoadNext - the enableLoadNext to setpublic boolean isLoadAtEnd()
public void setLoadAtEnd(boolean loadAtEnd)
loadAtEnd - the loadAtEnd to setpublic boolean isHasUpdatedIdentity()
public void setHasUpdatedIdentity(boolean hasUpdatedIdentity)
hasUpdatedIdentity - the hasUpdatedIdentity to set
public List<org.exoplatform.social.core.identity.model.Identity> getPeopleList()
throws Exception
Exceptionpublic void setPeopleList(List<org.exoplatform.social.core.identity.model.Identity> peopleList)
peopleList - the peopleList to setpublic int getPeopleNum()
public void setPeopleNum(int peopleNum)
peopleNum - the peopleNum to setpublic org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getPeopleListAccess()
public void setPeopleListAccess(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> peopleListAccess)
peopleListAccess - the peopleListAccess to set
public void loadNext()
throws Exception
Exception
public void loadSearch()
throws Exception
Exceptionpublic boolean isEditable()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||