org.exoplatform.social.webui.connections
Class UIMyConnections

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

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


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.
 String getSelectedChar()
          Gets selected character when search by alphabet.
 void increaseOffset()
          increase offset.
 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 isHasPeopleTab()
           
 boolean isLoadAtEnd()
          Gets flags to clarify that load at the last element or not.
protected  boolean isNewOwner()
          Checks need to refresh relationship list or not.
 void loadSearch()
          Loads people when searching.
 void setEnableLoadNext(boolean enableLoadNext)
          Sets flag to display LoadNext button or not.
 void setHasPeopleTab(boolean hasPeopleTab)
           
 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.
 void setSelectedChar(String selectedChar)
          Sets selected character to variable.
 
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

UIMyConnections

public UIMyConnections()
                throws Exception
Initializes components and add as child of form.

Throws:
Exception
Method Detail

isHasPeopleTab

public boolean isHasPeopleTab()

setHasPeopleTab

public void setHasPeopleTab(boolean hasPeopleTab)

getSelectedChar

public final String getSelectedChar()
Gets selected character when search by alphabet.

Returns:
The selected character.

setSelectedChar

public final void setSelectedChar(String selectedChar)
Sets selected character to variable.

Parameters:
selectedChar - char

init

public void init()
Inits at the first loading.

Since:
1.2.2

setLoadingCapacity

public void setLoadingCapacity(int loadingCapacity)
Sets loading capacity.

Parameters:
loadingCapacity -
Since:
1.2.2

isEnableLoadNext

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

Returns:
the enableLoadNext
Since:
1.2.2

setEnableLoadNext

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

Parameters:
enableLoadNext - the enableLoadNext to set
Since:
1.2.2

isLoadAtEnd

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

Returns:
the loadAtEnd
Since:
1.2.2

setLoadAtEnd

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

Parameters:
loadAtEnd - the loadAtEnd to set
Since:
1.2.2

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
Since:
1.2.2

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
Since:
1.2.2

getPeopleNum

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

Returns:
the peopleNum
Since:
1.2.2

setPeopleNum

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

Parameters:
peopleNum - the peopleNum to set
Since:
1.2.2

getPeopleListAccess

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

Returns:
the peopleListAccess
Since:
1.2.2

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
Since:
1.2.2

increaseOffset

public void increaseOffset()
                    throws Exception
increase offset.

Throws:
Exception

loadSearch

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

Throws:
Exception
Since:
1.2.2

isNewOwner

protected boolean isNewOwner()
Checks need to refresh relationship list or not.

Returns:

isEditable

public boolean isEditable()
Return true to accept user is viewing can edit.

Returns:
true if current user is current login user.


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