org.exoplatform.social.portlet
Class UIMembersPortlet

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.core.UIApplication
              extended by org.exoplatform.webui.core.UIPortletApplication
                  extended by org.exoplatform.social.portlet.UIMembersPortlet

public class UIMembersPortlet
extends org.exoplatform.webui.core.UIPortletApplication

UIMembersPortlet used as a portlet displaying space members.

Created by The eXo Platform SARL

Since:
Nov 07, 200
Author:
dang.tung

Nested Class Summary
static class UIMembersPortlet.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 UIMembersPortlet.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 UIMembersPortlet.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 UIMembersPortlet.LoadMoreMemberActionListener
          Action when user clicks on loadMoreMember
static class UIMembersPortlet.SearchActionListener
          triggers this action when user clicks on search button
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static String SEARCH
           
 
Fields inherited from class org.exoplatform.webui.core.UIPortletApplication
CONFIG_MODE, EDIT_MODE, HELP_MODE, VIEW_MODE
 
Fields inherited from class org.exoplatform.webui.core.UIApplication
log
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIMembersPortlet()
          constructor
 
Method Summary
 List<org.exoplatform.social.core.identity.model.Identity> getManagerList()
          gets leader list
 org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getManagerListAccess()
           
 int getManagerNum()
           
 List<org.exoplatform.social.core.identity.model.Identity> getMemberList()
          gets member list
 org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getMemberListAccess()
           
 int getMemberNum()
           
 String getMemberships(String userName)
          gets memberships of a user in a space.
 String getPath()
          gets current path
 String getSelectedChar()
          Gets selected character when search by alphabet.
 org.exoplatform.social.core.space.model.Space getSpace()
          gets space, space identified by the url.
 void initManager()
          initialize leaders, called from #getLeaderList()
 void initMember()
          initialize members, called from #getMembers()
 boolean isEnableLoadNext()
          Gets flag to display LoadNext button or not.
 void loadNextMember()
          Load next member on UIUserSearch
 void loadSearch()
          Loads people when searching.
 void setEnableLoadNext(boolean enableLoadNext)
          Sets flag to display LoadNext button or not.
 void setIdentityList(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> identityList)
          set identity list
 void setLoadAtEnd(boolean loadAtEnd)
          Sets flags to clarify that load at the last element or not.
 void setManagerList(List<org.exoplatform.social.core.identity.model.Identity> managerList)
          sets leader list
 void setManagerListAccess(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> managerListAccess)
           
 void setManagerNum(int managerNum)
           
 void setMemberList(List<org.exoplatform.social.core.identity.model.Identity> memberList)
          sets member list
 void setMemberListAccess(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> memberListAccess)
           
 void setMemberNum(int memberNum)
           
 void setSelectedChar(String selectedChar)
          Sets selected character to variable.
 
Methods inherited from class org.exoplatform.webui.core.UIPortletApplication
getMinHeight, getMinWidth, getUIPopupMessages, processRender, renderChildren, serveResource, setMinHeight, setMinWidth
 
Methods inherited from class org.exoplatform.webui.core.UIApplication
addMessage, addMessage, clearMessages, findComponentById, getLastAccessApplication, getOwner, getUIComponentName, processAction, renderBlockToUpdate, setLastAccessApplication, setOwner
 
Methods inherited from class org.exoplatform.webui.core.UIContainer
addChild, addChild, findComponentOfType, findFirstComponentOfType, getChild, getChild, getChildById, getChildren, hasChildren, removeChild, removeChildById, renderChild, renderChild, renderChild, renderChild, 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, isRendered, loadConfirmMesssage, 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
 

Field Detail

SEARCH

public static final String SEARCH
See Also:
Constant Field Values
Constructor Detail

UIMembersPortlet

public UIMembersPortlet()
                 throws Exception
constructor

Throws:
Exception
Method Detail

setMemberListAccess

public void setMemberListAccess(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> memberListAccess)

getMemberListAccess

public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getMemberListAccess()

setManagerListAccess

public void setManagerListAccess(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> managerListAccess)

getManagerListAccess

public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> getManagerListAccess()

getMemberNum

public int getMemberNum()

setMemberNum

public void setMemberNum(int memberNum)

getManagerNum

public int getManagerNum()

setManagerNum

public void setManagerNum(int managerNum)

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

setIdentityList

public void setIdentityList(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.identity.model.Identity> identityList)
set identity list

Parameters:
identityList -

setMemberList

public void setMemberList(List<org.exoplatform.social.core.identity.model.Identity> memberList)
sets member list

Parameters:
memberList -

getMemberList

public List<org.exoplatform.social.core.identity.model.Identity> getMemberList()
                                                                        throws Exception
gets member list

Returns:
leader list
Throws:
Exception

setManagerList

public void setManagerList(List<org.exoplatform.social.core.identity.model.Identity> managerList)
sets leader list

Parameters:
leaderList -

getManagerList

public List<org.exoplatform.social.core.identity.model.Identity> getManagerList()
                                                                         throws Exception
gets leader list

Returns:
leader list
Throws:
Exception

initMember

public void initMember()
                throws Exception
initialize members, called from #getMembers()

Throws:
Exception

initManager

public void initManager()
                 throws Exception
initialize leaders, called from #getLeaderList()

Throws:
Exception

getSpace

public org.exoplatform.social.core.space.model.Space getSpace()
                                                       throws org.exoplatform.social.core.space.SpaceException
gets space, space identified by the url.

Returns:
space
Throws:
org.exoplatform.social.core.space.SpaceException

getPath

public String getPath()
gets current path

Returns:
current path

getMemberships

public String getMemberships(String userName)
                      throws Exception
gets memberships of a user in a space.

Parameters:
userName -
Returns:
string of membership name
Throws:
Exception

loadSearch

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

Throws:
Exception

setLoadAtEnd

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

Parameters:
loadAtEnd - the loadAtEnd to set

loadNextMember

public void loadNextMember()
                    throws Exception
Load next member on UIUserSearch

Throws:
Exception

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


Copyright © 2013 eXo Platform SAS. All Rights Reserved.