org.exoplatform.social.webui.space
Class UIManageInvitationSpaces

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.social.webui.space.UIManageInvitationSpaces

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

UIManageInvitationSpaces.java used for managing invitation spaces.
Created by The eXo Platform SAS

Since:
Nov 02, 2009
Author:
tung.dang

Nested Class Summary
static class UIManageInvitationSpaces.AcceptActionListener
          This action is triggered when user clicks on Accept Space Invitation.
static class UIManageInvitationSpaces.IgnoreActionListener
          This action is triggered when user clicks on Ignore Space Invitation.
static class UIManageInvitationSpaces.LoadMoreSpaceActionListener
          Listeners loading more space action.
static class UIManageInvitationSpaces.SearchActionListener
          Listens event that broadcast from UISpaceSearch.
 
Nested classes/interfaces inherited from class org.exoplatform.webui.core.UIContainer
org.exoplatform.webui.core.UIContainer.SelectTabActionListener
 
Field Summary
static Integer LEADER
           
static Integer MEMBER
           
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UIManageInvitationSpaces()
          Constructor for initialize UIPopupWindow for adding new space popup.
 
Method Summary
 String getImageSource(org.exoplatform.social.core.space.model.Space space)
          Gets image source url.
 List<org.exoplatform.social.core.space.model.Space> getInvitedSpacesList()
          Gets list of invited space.
 org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getInvitedSpacesListAccess()
          Gets spaces with ListAccess type.
 int getInvitedSpacesNum()
          Gets number of invited space.
 int getRole(String spaceId)
          Gets role of the user in a specific space for displaying in template.
 String getSpaceNameSearch()
          Gets name of searched space.
 List<org.exoplatform.social.core.space.model.Space> getSpaces()
          Gets space list.
 void init()
          Inits at the first loading.
 boolean isEnableLoadNext()
          Gets flag to display LoadNext button or not.
 boolean isHasUpdatedSpace()
          Gets information that clarify one space is updated or not.
 boolean isLoadAtEnd()
          Gets flags to clarify that load at the last space or not.
 void loadNext()
          Loads more space.
 void loadSearch()
          Loads space when searching.
 void setEnableLoadNext(boolean enableLoadNext)
          Sets flag to display LoadNext button or not.
 void setHasUpdatedSpace(boolean hasUpdatedSpace)
          Sets information that clarify one space is updated or not.
 void setInvitedSpacesList(List<org.exoplatform.social.core.space.model.Space> invitedSpacesList)
          Sets list of invited space.
 void setInvitedSpacesListAccess(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> invitedSpacesListAccess)
          Sets spaces with ListAccess type.
 void setInvitedSpacesNum(int invitedSpacesNum)
          Sets number of invited space.
 void setLoadAtEnd(boolean loadAtEnd)
          Sets flags to clarify that load at the last space or not.
 void setLoadingCapacity(int loadingCapacity)
          Sets loading capacity.
 void setSpaceNameSearch(String spaceNameSearch)
          Sets name of searched space.
 void setSpaces(List<org.exoplatform.social.core.space.model.Space> spaces)
          Sets space list.
 
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
 

Field Detail

LEADER

public static final Integer LEADER

MEMBER

public static final Integer MEMBER
Constructor Detail

UIManageInvitationSpaces

public UIManageInvitationSpaces()
                         throws Exception
Constructor for initialize UIPopupWindow for adding new space popup.

Throws:
Exception
Method Detail

init

public void init()
Inits at the first loading.

Since:
1.2.2

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 -

isLoadAtEnd

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

Returns:
the loadAtEnd

setLoadAtEnd

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

Parameters:
loadAtEnd -

isHasUpdatedSpace

public boolean isHasUpdatedSpace()
Gets information that clarify one space is updated or not.

Returns:
the hasUpdatedSpace

setHasUpdatedSpace

public void setHasUpdatedSpace(boolean hasUpdatedSpace)
Sets information that clarify one space is updated or not.

Parameters:
hasUpdatedSpace -

getInvitedSpacesList

public List<org.exoplatform.social.core.space.model.Space> getInvitedSpacesList()
                                                                         throws Exception
Gets list of invited space.

Returns:
the invitedSpacesList
Throws:
Exception
Since:
1.2.2

setInvitedSpacesList

public void setInvitedSpacesList(List<org.exoplatform.social.core.space.model.Space> invitedSpacesList)
Sets list of invited space.

Parameters:
invitedSpacesList - the invitedSpacesList to set

getInvitedSpacesNum

public int getInvitedSpacesNum()
Gets number of invited space.

Returns:
the invitedSpacesNum

setInvitedSpacesNum

public void setInvitedSpacesNum(int invitedSpacesNum)
Sets number of invited space.

Parameters:
invitedSpacesNum - the invitedSpacesNum to set

getSpaceNameSearch

public String getSpaceNameSearch()
Gets name of searched space.

Returns:
the spaceNameSearch

setSpaceNameSearch

public void setSpaceNameSearch(String spaceNameSearch)
Sets name of searched space.

Parameters:
spaceNameSearch - the spaceNameSearch to set

getInvitedSpacesListAccess

public org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> getInvitedSpacesListAccess()
Gets spaces with ListAccess type.

Returns:
the invitedSpacesListAccess

setInvitedSpacesListAccess

public void setInvitedSpacesListAccess(org.exoplatform.commons.utils.ListAccess<org.exoplatform.social.core.space.model.Space> invitedSpacesListAccess)
Sets spaces with ListAccess type.

Parameters:
invitedSpacesListAccess - the invitedSpacesListAccess to set

loadNext

public void loadNext()
              throws Exception
Loads more space.

Throws:
Exception
Since:
1.2.2

loadSearch

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

Throws:
Exception
Since:
1.2.2

getRole

public int getRole(String spaceId)
            throws org.exoplatform.social.core.space.SpaceException
Gets role of the user in a specific space for displaying in template.

Parameters:
spaceId -
Returns:
UIManageMySpaces.LEADER if the remote user is the space's leader
UIManageMySpaces.MEMBER if the remote user is the space's member
Throws:
org.exoplatform.social.core.space.SpaceException

setSpaces

public void setSpaces(List<org.exoplatform.social.core.space.model.Space> spaces)
Sets space list.

Parameters:
spaces -

getSpaces

public List<org.exoplatform.social.core.space.model.Space> getSpaces()
Gets space list.

Returns:
space list

getImageSource

public String getImageSource(org.exoplatform.social.core.space.model.Space space)
                      throws Exception
Gets image source url.

Parameters:
space -
Returns:
image source url
Throws:
Exception


Copyright © 2013 eXo Platform SAS. All Rights Reserved.