org.exoplatform.social.webui.space
Class UISpaceMember

java.lang.Object
  extended by org.exoplatform.webui.core.UIComponent
      extended by org.exoplatform.webui.core.UIContainer
          extended by org.exoplatform.webui.form.UIForm
              extended by org.exoplatform.social.webui.space.UISpaceMember

public class UISpaceMember
extends org.exoplatform.webui.form.UIForm


Nested Class Summary
static class UISpaceMember.AddActionListener
          Triggers this action when user click on "add" button.
static class UISpaceMember.CloseActionListener
          Triggers this action when user clicks on popup's close button.
static class UISpaceMember.DeclineUserActionListener
          Triggers this action when user clicks on "decline user's request" button.
static class UISpaceMember.InviteActionListener
          Triggers this action when user click on "invite" button.
static class UISpaceMember.MakeLeaderActionListener
          Triggers this action when user clicks on "set leader" button
static class UISpaceMember.RemoveLeaderActionListener
          Triggers this action when user click on "remove leader" button
static class UISpaceMember.RemoveUserActionListener
          Triggers this action when user clicks on "remove user" button.
static class UISpaceMember.RevokeInvitedUserActionListener
          Triggers this action when user clicks on "revoke invited" button.
static class UISpaceMember.SearchGroupActionListener
          Triggers this action when user clicks on "search users" button.
static class UISpaceMember.SearchUserActionListener
          Triggers this action when user clicks on "search users" button.
static class UISpaceMember.SelectGroupActionListener
          Triggers this action when user click on "add" button.
static class UISpaceMember.ToggleLeadershipActionListener
           
static class UISpaceMember.ValidateUserActionListener
          Triggers this action when user click on "validate user's request" button
 
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.form.UIForm
ACTION, SUBCOMPONENT_ID
 
Fields inherited from class org.exoplatform.webui.core.UIComponent
AJAX_ASYNC, config, OBJECTID, UICOMPONENT, uiparent
 
Constructor Summary
UISpaceMember()
          Constructor.
 
Method Summary
 String getCurrentUserName()
          Gets current user name.
 List<String> getExistingUsers()
          Gets list of existing users in a space
 String getFullName(String userId)
          Get full name from userId.
 String getHomeSpaceUrl()
          Gets spaceUrl
 List<String> getInvitedUsers()
          Gets list of invited users in a space
 String getManageSpacesUrl()
          Gets Manage Spaces Url (UIManageMySpaces)
 List<String> getPendingUsers()
          Gets list of pending users in a space
protected  String getPortalName()
          Gets portal name.
protected  String getRestContextName()
          Gets current rest context name.
 String getSpaceURL()
          Gets space url.
 String getTypeOfRelation()
          Gets type of relation with current user.
 org.exoplatform.webui.core.UIPageIterator getUIPageIteratorExistingUsers()
          Gets uiPageIteratorExistingUsers to display; remove or set/remove leader.
 org.exoplatform.webui.core.UIPageIterator getUIPageIteratorInvitedUsers()
          Gets uiPageIteratorInvitedUsers to display; revoke
 org.exoplatform.webui.core.UIPageIterator getUIPageIteratorPendingUsers()
          Gets uiPageIteratorPendingUsers
 String getUsersName()
          Gets string of user names input: a, b, c
 boolean isCurrentUser(String userName)
           
 boolean isHasErr()
           
 boolean isLeader(String userName)
          Checks if a user is a leader of a space.
 boolean isNewSearch()
           
 boolean isSuperUser()
          Checks whether the remote user is super user
 void setHasErr(boolean hasErr)
           
 void setNewSearch(boolean isNewSearch)
           
 void setSpaceURL(String spaceURL)
          Sets space url.
 void setTypeOfRelation(String typeOfRelation)
          Sets type of relation with current user to variable.
 void setUsersName(String userName)
          Sets users name to the input string
 void setValue(String spaceId)
          Sets spaceId to this for getting current space
 
Methods inherited from class org.exoplatform.webui.form.UIForm
addUIComponentInput, addUIFormInput, addUIFormInput, begin, end, event, event, event, getActions, getLabel, getLabel, getSubmitAction, getUICheckBoxInput, getUIComponentName, getUIFormCheckBoxInput, getUIFormDateTimeInput, getUIFormInputInfo, getUIFormSelectBox, getUIFormTextAreaInput, getUIInput, getUIStringInput, invokeGetBindingBean, invokeSetBindingBean, isMultipart, processRender, renderField, renderField, reset, setActions, setMultiPart, setSubmitAction, url
 
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, getAncestorOfType, getApplicationComponent, getComponentConfig, getId, getName, getParent, getTemplate, getTemplateResourceResolver, isRendered, loadConfirmMesssage, processAction, processDecode, renderEventURL, setComponentConfig, setComponentConfig, setId, setParent, setRendered, setRenderSibling, url, url
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

UISpaceMember

public UISpaceMember()
              throws Exception
Constructor.

Throws:
Exception
Method Detail

getUIPageIteratorPendingUsers

public org.exoplatform.webui.core.UIPageIterator getUIPageIteratorPendingUsers()
Gets uiPageIteratorPendingUsers

Returns:
uiPageIterator

getUIPageIteratorInvitedUsers

public org.exoplatform.webui.core.UIPageIterator getUIPageIteratorInvitedUsers()
Gets uiPageIteratorInvitedUsers to display; revoke

Returns:
uiPageIteraatorInvitedUsers

getUIPageIteratorExistingUsers

public org.exoplatform.webui.core.UIPageIterator getUIPageIteratorExistingUsers()
Gets uiPageIteratorExistingUsers to display; remove or set/remove leader.

Returns:
uiPageiteratorExistingUsers

setValue

public void setValue(String spaceId)
              throws Exception
Sets spaceId to this for getting current space

Parameters:
spaceId -
Throws:
Exception

getTypeOfRelation

public String getTypeOfRelation()
Gets type of relation with current user.


setTypeOfRelation

public void setTypeOfRelation(String typeOfRelation)
Sets type of relation with current user to variable.

Parameters:
typeOfRelation - char

getSpaceURL

public String getSpaceURL()
Gets space url.


setSpaceURL

public void setSpaceURL(String spaceURL)
Sets space url.

Parameters:
spaceURL - char

isHasErr

public boolean isHasErr()
Returns:
the hasErr

setHasErr

public void setHasErr(boolean hasErr)
Parameters:
hasErr - the hasErr to set

getCurrentUserName

public String getCurrentUserName()
Gets current user name.

Returns:

getRestContextName

protected String getRestContextName()
Gets current rest context name.

Returns:

getPortalName

protected String getPortalName()
Gets portal name.

Returns:

getPendingUsers

public List<String> getPendingUsers()
                             throws Exception
Gets list of pending users in a space

Returns:
list of pending users
Throws:
Exception

getInvitedUsers

public List<String> getInvitedUsers()
                             throws Exception
Gets list of invited users in a space

Returns:
lists of invited users
Throws:
Exception

getExistingUsers

public List<String> getExistingUsers()
                              throws Exception
Gets list of existing users in a space

Returns:
list of existing users
Throws:
Exception

setUsersName

public void setUsersName(String userName)
Sets users name to the input string

Parameters:
userName - string of users name

getUsersName

public String getUsersName()
Gets string of user names input: a, b, c

Returns:
string of user names input

isSuperUser

public boolean isSuperUser()
                    throws Exception
Checks whether the remote user is super user

Returns:
true or false
Throws:
Exception

getHomeSpaceUrl

public String getHomeSpaceUrl()
                       throws Exception
Gets spaceUrl

Returns:
string homespace url
Throws:
Exception

getManageSpacesUrl

public String getManageSpacesUrl()
                          throws Exception
Gets Manage Spaces Url (UIManageMySpaces)

Returns:
manage spaces url
Throws:
Exception

isLeader

public boolean isLeader(String userName)
                 throws Exception
Checks if a user is a leader of a space.

Parameters:
userName - logged-in user
Returns:
true or false
Throws:
Exception

isCurrentUser

public boolean isCurrentUser(String userName)
                      throws Exception
Throws:
Exception

getFullName

public String getFullName(String userId)
Get full name from userId.

Parameters:
userId -
Returns:
Full name

isNewSearch

public boolean isNewSearch()

setNewSearch

public void setNewSearch(boolean isNewSearch)


Copyright © 2003–2014 eXo Platform SAS. All rights reserved.