org.exoplatform.social.webui.connections
Class UIAllPeople

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.social.webui.connections.UIAllPeople

public class UIAllPeople
extends org.exoplatform.webui.core.UIContainer

Displays the list of all existing users and their information. By using this UIAllPeople component, users could manage his connections: invite to connect, revoke invitations, validate invited requests or remove connections.

Since:
Aug 25, 2011, 1.2.2
Author:
Hanh Vi Quoc

Nested Class Summary
static class UIAllPeople.ConfirmActionListener
          Listens to accept actions then make connection to accepted person.
- Gets information of user who made request.
- Checks the relationship to confirm that there still got invited connection.
- Makes and Save the new relationship.
static class UIAllPeople.ConnectActionListener
          Listens to add action then make request to invite person to make connection.
- Gets information of user is invited.
- Checks the relationship to confirm that there have not got connection yet.
- Saves the new connection.
static class UIAllPeople.IgnoreActionListener
          Listens to deny action then delete the invitation.
- Gets information of user is invited or made request.
- Checks the relation to confirm that there have not got relation yet.
- Removes the current relation and save the new relation.
static class UIAllPeople.LoadMorePeopleActionListener
          Listeners loading more people action.
static class UIAllPeople.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
UIAllPeople()
          Constructor to initialize iterator.
 
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.
 org.exoplatform.social.core.relationship.model.Relationship getRelationship(org.exoplatform.social.core.identity.model.Identity identity)
           
 void init()
          Inits at the first loading.
 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

UIAllPeople

public UIAllPeople()
            throws Exception
Constructor to initialize iterator.

Throws:
Exception
Method Detail

init

public void init()
Inits at the first loading.


setLoadingCapacity

public void setLoadingCapacity(int loadingCapacity)
Sets loading capacity.

Parameters:
loadingCapacity -

isEnableLoadNext

public boolean isEnableLoadNext()
Gets flag to display LoadNext button or not.

Returns:
the enableLoadNext

setEnableLoadNext

public void setEnableLoadNext(boolean enableLoadNext)
Sets flag to display LoadNext button or not.

Parameters:
enableLoadNext - the enableLoadNext to set

isLoadAtEnd

public boolean isLoadAtEnd()
Gets flags to clarify that load at the last element or not.

Returns:
the loadAtEnd

setLoadAtEnd

public void setLoadAtEnd(boolean loadAtEnd)
Sets flags to clarify that load at the last element or not.

Parameters:
loadAtEnd - the loadAtEnd to set

isHasUpdatedIdentity

public boolean isHasUpdatedIdentity()
Gets information that clarify one element is updated or not.

Returns:
the hasUpdatedIdentity

setHasUpdatedIdentity

public void setHasUpdatedIdentity(boolean hasUpdatedIdentity)
Sets information that clarify one element is updated or not.

Parameters:
hasUpdatedIdentity - the hasUpdatedIdentity to set

getPeopleList

public List<org.exoplatform.social.core.identity.model.Identity> getPeopleList()
                                                                        throws Exception
Gets list of all type of people.

Returns:
the peopleList
Throws:
Exception

setPeopleList

public void setPeopleList(List<org.exoplatform.social.core.identity.model.Identity> peopleList)
Sets list of all type of people.

Parameters:
peopleList - the peopleList to set

getPeopleNum

public int getPeopleNum()
Gets number of people for displaying.

Returns:
the peopleNum

setPeopleNum

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

Parameters:
peopleNum - the peopleNum to set

getPeopleListAccess

public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getPeopleListAccess()
Gets people with ListAccess type.

Returns:
the peopleListAccess

setPeopleListAccess

public void setPeopleListAccess(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> peopleListAccess)
Sets people with ListAccess type.

Parameters:
peopleListAccess - the peopleListAccess to set

loadNext

public void loadNext()
              throws Exception
Loads more people.

Throws:
Exception

loadSearch

public void loadSearch()
                throws Exception
Loads people when searching.

Throws:
Exception

getRelationship

public org.exoplatform.social.core.relationship.model.Relationship getRelationship(org.exoplatform.social.core.identity.model.Identity identity)
                                                                            throws Exception
Parameters:
identity -
Returns:
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.