public interface SpaceService
Modifier and Type | Field and Description |
---|---|
static String |
SPACES_APP_ID
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
void |
acceptInvitation(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
addMember(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
acceptInvitation(String spaceId,
String userId)
Deprecated.
Use
addMember(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
activateApplication(org.exoplatform.social.core.space.model.Space space,
String appId)
Activates an installed application in a space.
|
void |
activateApplication(String spaceId,
String appId)
Activates an installed application in a space.
|
void |
addInvitedUser(org.exoplatform.social.core.space.model.Space space,
String userId)
Adds a user to the list of users who are invited to join a space.
|
void |
addMember(org.exoplatform.social.core.space.model.Space space,
String userId)
Adds a user to a space.
|
void |
addMember(String spaceId,
String userId)
Deprecated.
Use
addMember(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
addPendingUser(org.exoplatform.social.core.space.model.Space space,
String userId)
Adds a user to the list of pending requests for joining a space.
|
org.exoplatform.social.core.space.model.Space |
createSpace(org.exoplatform.social.core.space.model.Space space,
String creatorUserId)
Creates a new space: creating a group, its group navigation with pages for installing space applications.
|
org.exoplatform.social.core.space.model.Space |
createSpace(org.exoplatform.social.core.space.model.Space space,
String creator,
String invitedGroupId)
Creates a new space and invites all users from invitedGroupId to join this newly created space.
|
void |
deactivateApplication(org.exoplatform.social.core.space.model.Space space,
String appId)
Deactivates an installed application in a space.
|
void |
deactivateApplication(String spaceId,
String appId)
Deactivates an installed application in a space.
|
void |
declineRequest(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
removePendingUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
declineRequest(String spaceId,
String userId)
Deprecated.
Use
removePendingUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
deInitApps(org.exoplatform.social.core.space.model.Space space)
Deprecated.
Will be removed by 4.0.x.
|
void |
deleteSpace(org.exoplatform.social.core.space.model.Space space)
Deletes a space.
|
void |
deleteSpace(String spaceId)
Deprecated.
Use
deleteSpace(org.exoplatform.social.core.space.model.Space) instead.
Will be removed by 4.0.x. |
void |
denyInvitation(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
removeInvitedUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
denyInvitation(String spaceId,
String userId)
Deprecated.
Use
removeInvitedUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
List<org.exoplatform.social.core.space.model.Space> |
getAccessibleSpaces(String userId)
Deprecated.
Use
getAccessibleSpacesWithListAccess(String) instead.
Will be removed by 4.0.x. |
ListAccess<org.exoplatform.social.core.space.model.Space> |
getAccessibleSpacesByFilter(String userId,
org.exoplatform.social.core.space.SpaceFilter spaceFilter)
Gets a list access containing all spaces that a user has the access permission.
|
ListAccess<org.exoplatform.social.core.space.model.Space> |
getAccessibleSpacesWithListAccess(String userId)
Gets a list access containing all spaces that a user has the access permission.
|
List<org.exoplatform.social.core.space.model.Space> |
getAllSpaces()
Deprecated.
Use
getAllSpacesWithListAccess() instead.
Will be removed by 4.0.x. |
ListAccess<org.exoplatform.social.core.space.model.Space> |
getAllSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter spaceFilter)
Gets a list access that contains all spaces matching with a filter.
|
ListAccess<org.exoplatform.social.core.space.model.Space> |
getAllSpacesWithListAccess()
Gets a list access that contains all spaces.
|
List<org.exoplatform.social.core.space.model.Space> |
getEditableSpaces(String userId)
Deprecated.
Use
getSettingableSpaces(String) instead.
Will be removed by 4.0.x. |
List<org.exoplatform.social.core.space.model.Space> |
getInvitedSpaces(String userId)
Deprecated.
Use
getInvitedSpacesWithListAccess(String) instead.
Will be removed by 4.0.x. |
ListAccess<org.exoplatform.social.core.space.model.Space> |
getInvitedSpacesByFilter(String userId,
org.exoplatform.social.core.space.SpaceFilter spaceFilter)
Gets a list access containing all spaces that a user is invited to join.
|
ListAccess<org.exoplatform.social.core.space.model.Space> |
getInvitedSpacesWithListAccess(String userId)
Gets a list access containing all spaces that a user is invited to join.
|
ListAccess<org.exoplatform.social.core.space.model.Space> |
getLastAccessedSpace(String remoteId,
String appId)
Gets a list of the most recently accessed spaces of a user.
|
List<org.exoplatform.social.core.space.model.Space> |
getLastAccessedSpace(String remoteId,
String appId,
int offset,
int limit)
Gets a list of the most recently accessed spaces of a user.
|
List<org.exoplatform.social.core.space.model.Space> |
getLastSpaces(int limit)
Gets the last spaces that have been created.
|
List<String> |
getMembers(org.exoplatform.social.core.space.model.Space space)
Deprecated.
Use
Space.getMembers() instead.
Will be removed by 4.0.x. |
List<String> |
getMembers(String spaceId)
Deprecated.
Use
Space.getMembers() instead.
Will be removed by 4.0.x. |
ListAccess<org.exoplatform.social.core.space.model.Space> |
getMemberSpaces(String userId)
Gets a list access containing all spaces that a user has the "member" role.
|
ListAccess<org.exoplatform.social.core.space.model.Space> |
getMemberSpacesByFilter(String userId,
org.exoplatform.social.core.space.SpaceFilter spaceFilter)
Gets a list access containing all spaces that a user has the "member" role.
|
List<org.exoplatform.social.core.space.model.Space> |
getPendingSpaces(String userId)
Deprecated.
Use
getPendingSpacesWithListAccess(String) instead.
Will be removed by 4.0.x. |
ListAccess<org.exoplatform.social.core.space.model.Space> |
getPendingSpacesByFilter(String userId,
org.exoplatform.social.core.space.SpaceFilter spaceFilter)
Gets a list access containing all spaces that a user sent a request for joining a space.
|
ListAccess<org.exoplatform.social.core.space.model.Space> |
getPendingSpacesWithListAccess(String userId)
Gets a list access containing all spaces that a user sent a request for joining a space.
|
String[] |
getPortletsPrefsRequired()
Deprecated.
Will be removed by 4.0.x.
|
List<org.exoplatform.social.core.space.model.Space> |
getPublicSpaces(String userId)
Deprecated.
Use
getPublicSpacesWithListAccess(String) instead.
Will be removed by 4.0.x. |
ListAccess<org.exoplatform.social.core.space.model.Space> |
getPublicSpacesByFilter(String userId,
org.exoplatform.social.core.space.SpaceFilter spaceFilter)
Gets a list access containing all spaces that a user can request to join.
|
ListAccess<org.exoplatform.social.core.space.model.Space> |
getPublicSpacesWithListAccess(String userId)
Gets a list access containing all spaces that a user can request to join.
|
ListAccess<org.exoplatform.social.core.space.model.Space> |
getSettingabledSpacesByFilter(String userId,
org.exoplatform.social.core.space.SpaceFilter spaceFilter)
Gets a list access containing all spaces that a user has the setting permission.
|
ListAccess<org.exoplatform.social.core.space.model.Space> |
getSettingableSpaces(String userId)
Gets a list access containing all spaces that a user has the setting permission.
|
org.exoplatform.social.core.space.SpaceApplicationConfigPlugin |
getSpaceApplicationConfigPlugin()
Gets the space application config plugin.
|
org.exoplatform.social.core.space.model.Space |
getSpaceByDisplayName(String spaceDisplayName)
Gets a space by its display name.
|
org.exoplatform.social.core.space.model.Space |
getSpaceByGroupId(String groupId)
Gets a space by its group Id.
|
org.exoplatform.social.core.space.model.Space |
getSpaceById(String spaceId)
Gets a space by its Id.
|
org.exoplatform.social.core.space.model.Space |
getSpaceByName(String spaceName)
Deprecated.
Use
getSpaceByPrettyName(String) instead.
Will be removed at 4.0.x. |
org.exoplatform.social.core.space.model.Space |
getSpaceByPrettyName(String spacePrettyName)
Gets a space by its pretty name.
|
org.exoplatform.social.core.space.model.Space |
getSpaceByUrl(String spaceUrl)
Gets a space by its URL.
|
List<org.exoplatform.social.core.space.model.Space> |
getSpaces(String userId)
Deprecated.
Use
getMemberSpaces(String) instead.
Will be removed by 4.0.x. |
List<org.exoplatform.social.core.space.model.Space> |
getSpacesByFirstCharacterOfName(String firstCharacterOfName)
Deprecated.
Use
getAllSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter) instead.
Will be removed by 4.0.x. |
List<org.exoplatform.social.core.space.model.Space> |
getSpacesBySearchCondition(String condition)
Deprecated.
Use
getAllSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter) instead.
Will be removed by 4.0.x. |
org.exoplatform.social.core.space.SpaceListAccess |
getUnifiedSearchSpacesWithListAccess(String userId,
org.exoplatform.social.core.space.SpaceFilter spaceFilter)
Provides the Unified Search feature to get spaces that a user can see.
|
List<org.exoplatform.social.core.space.model.Space> |
getVisibleSpaces(String userId,
org.exoplatform.social.core.space.SpaceFilter spaceFilter)
Gets spaces that a given user can see.
|
org.exoplatform.social.core.space.SpaceListAccess |
getVisibleSpacesWithListAccess(String userId,
org.exoplatform.social.core.space.SpaceFilter spaceFilter)
Gets spaces that a given user can see.
|
ListAccess<org.exoplatform.social.core.space.model.Space> |
getVisitedSpaces(String remoteId,
String appId)
Gets the list of spaces which are visited by users
|
boolean |
hasAccessPermission(org.exoplatform.social.core.space.model.Space space,
String userId)
Checks if a given user can access a space or not.
|
boolean |
hasAccessPermission(String spaceId,
String userId)
Deprecated.
Use
hasAccessPermission(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
hasEditPermission(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
hasSettingPermission(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
hasEditPermission(String spaceId,
String userId)
Deprecated.
Use
hasSettingPermission(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
hasSettingPermission(org.exoplatform.social.core.space.model.Space space,
String userId)
Checks if a given user has the setting permission to a space or not.
|
void |
initApp(org.exoplatform.social.core.space.model.Space space)
Deprecated.
Will be removed by 4.0.x.
|
void |
initApps(org.exoplatform.social.core.space.model.Space space)
Deprecated.
Will be removed by 4.0.x.
|
void |
installApplication(org.exoplatform.social.core.space.model.Space space,
String appId)
Installs an application in a space.
|
void |
installApplication(String spaceId,
String appId)
Installs an application in a space.
|
void |
inviteMember(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
addInvitedUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
inviteMember(String spaceId,
String userId)
Deprecated.
Use
addInvitedUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
isInvited(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
isInvitedUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
isInvited(String spaceId,
String userId)
Deprecated.
Use
isInvitedUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
isInvitedUser(org.exoplatform.social.core.space.model.Space space,
String userId)
Checks if a user is in the list of users who are invited to join a space.
|
boolean |
isLeader(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
isManager(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
isLeader(String spaceId,
String userId)
Deprecated.
Use
isManager(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
isManager(org.exoplatform.social.core.space.model.Space space,
String userId)
Checks if a given user has the "manager" role in a space.
|
boolean |
isMember(org.exoplatform.social.core.space.model.Space space,
String userId)
Checks if a given user is member of space or not.
|
boolean |
isMember(String spaceId,
String userId)
Deprecated.
Use
isMember(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
isOnlyLeader(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
isOnlyManager(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
isOnlyLeader(String spaceId,
String userId)
Deprecated.
Use
isOnlyManager(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
isOnlyManager(org.exoplatform.social.core.space.model.Space space,
String userId)
Checks if a given user is the only one who has the "manager" role in a space.
|
boolean |
isPending(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
isPendingUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
isPending(String spaceId,
String userId)
Deprecated.
Use
isPendingUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
boolean |
isPendingUser(org.exoplatform.social.core.space.model.Space space,
String userId)
Checks if a user is in the list of pending requests for joining a space.
|
void |
registerSpaceLifeCycleListener(org.exoplatform.social.core.space.spi.SpaceLifeCycleListener listener)
Deprecated.
Will be removed by 4.0.x.
|
void |
registerSpaceListenerPlugin(org.exoplatform.social.core.space.SpaceListenerPlugin spaceListenerPlugin)
Registers a space listener plugin to listen to space lifecyle events: creating, updating, installing an application, and more.
|
void |
removeApplication(org.exoplatform.social.core.space.model.Space space,
String appId,
String appName)
Removes an installed application from a space.
|
void |
removeApplication(String spaceId,
String appId,
String appName)
Removes an installed application from a space.
|
void |
removeInvitedUser(org.exoplatform.social.core.space.model.Space space,
String userId)
Removes a user from the list of users who are invited to join a space.
|
void |
removeMember(org.exoplatform.social.core.space.model.Space space,
String userId)
Removes a member from a space.
|
void |
removeMember(String spaceId,
String userId)
Deprecated.
Use
removeMember(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
removePendingUser(org.exoplatform.social.core.space.model.Space space,
String userId)
Removes a user from a list of pending requests for joining a space.
|
void |
renameSpace(org.exoplatform.social.core.space.model.Space space,
String newDisplayName)
Renames a space.
|
void |
renameSpace(String remoteId,
org.exoplatform.social.core.space.model.Space space,
String newDisplayName)
Renames a space by an identity who has rights of super admin.
|
void |
requestJoin(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
addPendingUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
requestJoin(String spaceId,
String userId)
Deprecated.
Use
addPendingUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
revokeInvitation(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
removeInvitedUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
revokeInvitation(String spaceId,
String userId)
Deprecated.
Use
removeInvitedUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
revokeRequestJoin(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
removePendingUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
revokeRequestJoin(String spaceId,
String userId)
Deprecated.
Use
removePendingUser(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
saveSpace(org.exoplatform.social.core.space.model.Space space,
boolean isNew)
Deprecated.
Use
updateSpace(org.exoplatform.social.core.space.model.Space) instead.
Will be removed by 4.0.x. |
void |
setLeader(org.exoplatform.social.core.space.model.Space space,
String userId,
boolean isLeader)
Deprecated.
Use
setManager(org.exoplatform.social.core.space.model.Space, String, boolean) instead.
Will be removed by 4.0.x. |
void |
setLeader(String spaceId,
String userId,
boolean isLeader)
Deprecated.
Use
setManager(org.exoplatform.social.core.space.model.Space, String, boolean) instead.
Will be removed by 4.0.x. |
void |
setManager(org.exoplatform.social.core.space.model.Space space,
String userId,
boolean isManager)
Assigns the "manager" role to a user in a space.
|
void |
setPortletsPrefsRequired(org.exoplatform.social.core.application.PortletPreferenceRequiredPlugin portletPrefsRequiredPlugin)
Deprecated.
Use
SpaceApplicationConfigPlugin instead.
Will be removed by 4.0.x. |
void |
setSpaceApplicationConfigPlugin(org.exoplatform.social.core.space.SpaceApplicationConfigPlugin spaceApplicationConfigPlugin)
Sets a space application config plugin for configuring the home and space applications.
|
void |
unregisterSpaceLifeCycleListener(org.exoplatform.social.core.space.spi.SpaceLifeCycleListener listener)
Deprecated.
Will be removed by 4.0.x.
|
void |
unregisterSpaceListenerPlugin(org.exoplatform.social.core.space.SpaceListenerPlugin spaceListenerPlugin)
Unregisters an existing space listener plugin.
|
org.exoplatform.social.core.space.model.Space |
updateSpace(org.exoplatform.social.core.space.model.Space existingSpace)
Updates information of a space.
|
void |
updateSpaceAccessed(String remoteId,
org.exoplatform.social.core.space.model.Space space)
Updates the most recently accessed space of a user to the top of spaces list.
|
org.exoplatform.social.core.space.model.Space |
updateSpaceAvatar(org.exoplatform.social.core.space.model.Space existingSpace)
Updates a space's avatar.
|
void |
validateRequest(org.exoplatform.social.core.space.model.Space space,
String userId)
Deprecated.
Use
addMember(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
void |
validateRequest(String spaceId,
String userId)
Deprecated.
Use
addMember(org.exoplatform.social.core.space.model.Space, String) instead.
Will be removed by 4.0.x. |
@Deprecated static final String SPACES_APP_ID
org.exoplatform.social.core.space.model.Space getSpaceByDisplayName(String spaceDisplayName)
spaceDisplayName
- The space display name.org.exoplatform.social.core.space.model.Space getSpaceByPrettyName(String spacePrettyName)
spacePrettyName
- The space's pretty name.org.exoplatform.social.core.space.model.Space getSpaceByGroupId(String groupId)
groupId
- The group Id.org.exoplatform.social.core.space.model.Space getSpaceById(String spaceId)
spaceId
- Id of the space.org.exoplatform.social.core.space.model.Space getSpaceByUrl(String spaceUrl)
spaceUrl
- URL of the space.ListAccess<org.exoplatform.social.core.space.model.Space> getAllSpacesWithListAccess()
ListAccess<org.exoplatform.social.core.space.model.Space> getAllSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter spaceFilter)
spaceFilter
- The space filter.ListAccess<org.exoplatform.social.core.space.model.Space> getMemberSpaces(String userId)
userId
- The remote user Id.ListAccess<org.exoplatform.social.core.space.model.Space> getMemberSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
userId
- The remote user Id.spaceFilter
- The space filter.ListAccess<org.exoplatform.social.core.space.model.Space> getAccessibleSpacesWithListAccess(String userId)
userId
- The remote user Id.ListAccess<org.exoplatform.social.core.space.model.Space> getAccessibleSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
userId
- The remote user Id.spaceFilter
- The provided space filter.ListAccess<org.exoplatform.social.core.space.model.Space> getSettingableSpaces(String userId)
userId
- The remote user Id.ListAccess<org.exoplatform.social.core.space.model.Space> getSettingabledSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
userId
- The remote user Id.spaceFilter
- The provided space filter.ListAccess<org.exoplatform.social.core.space.model.Space> getInvitedSpacesWithListAccess(String userId)
userId
- The remote user Id.ListAccess<org.exoplatform.social.core.space.model.Space> getInvitedSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
userId
- The remote user Id.spaceFilter
- The provided space filter.ListAccess<org.exoplatform.social.core.space.model.Space> getPublicSpacesWithListAccess(String userId)
userId
- The remote user Id.ListAccess<org.exoplatform.social.core.space.model.Space> getPublicSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
userId
- The remote user Id.spaceFilter
- The provided space filter.ListAccess<org.exoplatform.social.core.space.model.Space> getPendingSpacesWithListAccess(String userId)
userId
- The remote user Id.ListAccess<org.exoplatform.social.core.space.model.Space> getPendingSpacesByFilter(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
userId
- The remote user Id.spaceFilter
- The provided space filter.org.exoplatform.social.core.space.model.Space createSpace(org.exoplatform.social.core.space.model.Space space, String creatorUserId)
space
- The space to be created.creatorUserId
- The remote user Id.org.exoplatform.social.core.space.model.Space updateSpace(org.exoplatform.social.core.space.model.Space existingSpace)
existingSpace
- The existing space to be updated.org.exoplatform.social.core.space.model.Space updateSpaceAvatar(org.exoplatform.social.core.space.model.Space existingSpace)
existingSpace
- The existing space to be updated.void deleteSpace(org.exoplatform.social.core.space.model.Space space)
space
- The space to be deleted.void addPendingUser(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The exising space.userId
- The remote user Id.void removePendingUser(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The existing space.userId
- The remote user Id.boolean isPendingUser(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The existing space.userId
- The remote user Id.void addInvitedUser(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The existing space.userId
- The remote user Id.void removeInvitedUser(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The existing space.userId
- The remote user Id.boolean isInvitedUser(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The existing space.userId
- The remote user Id.void addMember(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The existing space.userId
- The remote user Id.void removeMember(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The existing space.userId
- The remote user Id.boolean isMember(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The existing space.userId
- The remote user Id.void setManager(org.exoplatform.social.core.space.model.Space space, String userId, boolean isManager)
space
- The space that its user is assigned to manager.userId
- The remote user Id.isManager
- "True" if the user gets the "manager" role. "False" if the user only gets the "member" role.boolean isManager(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The space that its user is checked if he has the "manager" role or not.userId
- The remote user Id.boolean isOnlyManager(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The space that its user is checked if he is the only manager or not.userId
- The remote user Id.boolean hasAccessPermission(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The space that its user is checked if he can access it.userId
- The remote user Id.boolean hasSettingPermission(org.exoplatform.social.core.space.model.Space space, String userId)
space
- The space that its user is checked if he has the setting permission or not.userId
- The remote user Id.void registerSpaceListenerPlugin(org.exoplatform.social.core.space.SpaceListenerPlugin spaceListenerPlugin)
spaceListenerPlugin
- The space listener plugin to be registered.void unregisterSpaceListenerPlugin(org.exoplatform.social.core.space.SpaceListenerPlugin spaceListenerPlugin)
spaceListenerPlugin
- The space listener plugin to be unregistered.void setSpaceApplicationConfigPlugin(org.exoplatform.social.core.space.SpaceApplicationConfigPlugin spaceApplicationConfigPlugin)
spaceApplicationConfigPlugin
- The space application config plugin to be set.org.exoplatform.social.core.space.SpaceApplicationConfigPlugin getSpaceApplicationConfigPlugin()
@Deprecated List<org.exoplatform.social.core.space.model.Space> getAllSpaces() throws org.exoplatform.social.core.space.SpaceException
getAllSpacesWithListAccess()
instead.
Will be removed by 4.0.x.org.exoplatform.social.core.space.SpaceException
- with code SpaceException.Code.ERROR_DATASTOREorg.exoplatform.social.core.space.model.Space getSpaceByName(String spaceName) throws org.exoplatform.social.core.space.SpaceException
getSpaceByPrettyName(String)
instead.
Will be removed at 4.0.x.spaceName
- The space name.org.exoplatform.social.core.space.SpaceException
@Deprecated List<org.exoplatform.social.core.space.model.Space> getSpacesByFirstCharacterOfName(String firstCharacterOfName) throws org.exoplatform.social.core.space.SpaceException
getAllSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter)
instead.
Will be removed by 4.0.x.org.exoplatform.social.core.space.SpaceException
- with code SpaceException.Code.ERROR_DATASTOREList<org.exoplatform.social.core.space.model.Space> getSpacesBySearchCondition(String condition) throws Exception
getAllSpacesByFilter(org.exoplatform.social.core.space.SpaceFilter)
instead.
Will be removed by 4.0.x.condition
- The input condition.Exception
@Deprecated List<org.exoplatform.social.core.space.model.Space> getSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
getMemberSpaces(String)
instead.
Will be removed by 4.0.x.userId
- Id of the user.org.exoplatform.social.core.space.SpaceException
- with code SpaceException.Code.ERROR_DATASTOREList<org.exoplatform.social.core.space.model.Space> getAccessibleSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
getAccessibleSpacesWithListAccess(String)
instead.
Will be removed by 4.0.x.userId
- Id of the user.org.exoplatform.social.core.space.SpaceException
List<org.exoplatform.social.core.space.model.Space> getVisibleSpaces(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter) throws org.exoplatform.social.core.space.SpaceException
userId
- Id of the user.spaceFilter
- Condition by which spaces are filtered.org.exoplatform.social.core.space.SpaceException
org.exoplatform.social.core.space.SpaceListAccess getVisibleSpacesWithListAccess(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
userId
- Id of the user.spaceFilter
- The condition by which spaces are filtered.org.exoplatform.social.core.space.SpaceListAccess getUnifiedSearchSpacesWithListAccess(String userId, org.exoplatform.social.core.space.SpaceFilter spaceFilter)
userId
- Id of the user.spaceFilter
- The condition by which spaces are filtered.@Deprecated List<org.exoplatform.social.core.space.model.Space> getEditableSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
getSettingableSpaces(String)
instead.
Will be removed by 4.0.x.userId
- Id of the user.org.exoplatform.social.core.space.SpaceException
@Deprecated List<org.exoplatform.social.core.space.model.Space> getInvitedSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
getInvitedSpacesWithListAccess(String)
instead.
Will be removed by 4.0.x.userId
- Id of the user.org.exoplatform.social.core.space.SpaceException
@Deprecated List<org.exoplatform.social.core.space.model.Space> getPublicSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
getPublicSpacesWithListAccess(String)
instead.
Will be removed by 4.0.x.userId
- Id of the user.org.exoplatform.social.core.space.SpaceException
@Deprecated List<org.exoplatform.social.core.space.model.Space> getPendingSpaces(String userId) throws org.exoplatform.social.core.space.SpaceException
getPendingSpacesWithListAccess(String)
instead.
Will be removed by 4.0.x.userId
- Id of the user.org.exoplatform.social.core.space.SpaceException
org.exoplatform.social.core.space.model.Space createSpace(org.exoplatform.social.core.space.model.Space space, String creator, String invitedGroupId) throws org.exoplatform.social.core.space.SpaceException
space
- The space to be created.creator
- The user who creates the space.invitedGroupId
- Id of group who is invited to join the space.org.exoplatform.social.core.space.SpaceException
- with possible code SpaceException.Code.SPACE_ALREADY_EXIST; UNABLE_TO_ADD_CREATORvoid saveSpace(org.exoplatform.social.core.space.model.Space space, boolean isNew) throws org.exoplatform.social.core.space.SpaceException
updateSpace(org.exoplatform.social.core.space.model.Space)
instead.
Will be removed by 4.0.x.space
- The space to be saved or updated.isNew
- "True" if a new space is created. "False" if an existing space is updated.org.exoplatform.social.core.space.SpaceException
- with code: SpaceException.Code.ERROR_DATASTOREvoid renameSpace(org.exoplatform.social.core.space.model.Space space, String newDisplayName) throws org.exoplatform.social.core.space.SpaceException
space
- The space to be renamed.newDisplayName
- New name of the space.org.exoplatform.social.core.space.SpaceException
void renameSpace(String remoteId, org.exoplatform.social.core.space.model.Space space, String newDisplayName) throws org.exoplatform.social.core.space.SpaceException
remoteId
- The identity who has renamed a space.space
- The space to be renamed.newDisplayName
- New name of the space.org.exoplatform.social.core.space.SpaceException
@Deprecated void deleteSpace(String spaceId) throws org.exoplatform.social.core.space.SpaceException
deleteSpace(org.exoplatform.social.core.space.model.Space)
instead.
Will be removed by 4.0.x.spaceId
- Id of the deleted space.org.exoplatform.social.core.space.SpaceException
@Deprecated void initApp(org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.social.core.space.SpaceException
space
- The space.org.exoplatform.social.core.space.SpaceException
- with code SpaceException.Code.UNABLE_INIT_APP@Deprecated void initApps(org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.social.core.space.SpaceException
space
- The space.org.exoplatform.social.core.space.SpaceException
- with code SpaceException.Code.UNABLE_INIT_APP@Deprecated void deInitApps(org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.social.core.space.SpaceException
space
- The space.org.exoplatform.social.core.space.SpaceException
@Deprecated void addMember(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
addMember(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void removeMember(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
removeMember(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated List<String> getMembers(org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.social.core.space.SpaceException
Space.getMembers()
instead.
Will be removed by 4.0.x.space
- The space.org.exoplatform.social.core.space.SpaceException
@Deprecated List<String> getMembers(String spaceId) throws org.exoplatform.social.core.space.SpaceException
Space.getMembers()
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.org.exoplatform.social.core.space.SpaceException
@Deprecated void setLeader(org.exoplatform.social.core.space.model.Space space, String userId, boolean isLeader) throws org.exoplatform.social.core.space.SpaceException
setManager(org.exoplatform.social.core.space.model.Space, String, boolean)
instead.
Will be removed by 4.0.x.space
- The space.userId
- Id of the user (remoteId).isLeader
- If "true", the space member is set to manager. If "false", the space manager is set to member.org.exoplatform.social.core.space.SpaceException
@Deprecated void setLeader(String spaceId, String userId, boolean isLeader) throws org.exoplatform.social.core.space.SpaceException
setManager(org.exoplatform.social.core.space.model.Space, String, boolean)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).isLeader
- If "true", the space member is set to manager. If "false", the space manager is set to member.org.exoplatform.social.core.space.SpaceException
@Deprecated boolean isLeader(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
isManager(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean isLeader(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
isManager(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean isOnlyLeader(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
isOnlyManager(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean isOnlyLeader(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
isOnlyManager(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean isMember(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
isMember(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean hasAccessPermission(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
hasAccessPermission(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean hasEditPermission(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
hasSettingPermission(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The provided space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean hasEditPermission(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
hasSettingPermission(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean isInvited(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
isInvitedUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The provided space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean isInvited(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
isInvitedUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean isPending(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
isPendingUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated boolean isPending(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
isPendingUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the user.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
void installApplication(String spaceId, String appId) throws org.exoplatform.social.core.space.SpaceException
spaceId
- Id of the space that the application is installed.appId
- Id of the application which is installed.org.exoplatform.social.core.space.SpaceException
- with code SpaceException.Code.ERROR_DATA_STOREvoid installApplication(org.exoplatform.social.core.space.model.Space space, String appId) throws org.exoplatform.social.core.space.SpaceException
space
- The space that the application is installed.appId
- Id of the installed application.org.exoplatform.social.core.space.SpaceException
- with code SpaceException.Code.ERROR_DATA_STOREvoid activateApplication(org.exoplatform.social.core.space.model.Space space, String appId) throws org.exoplatform.social.core.space.SpaceException
space
- The space that the installed application is activated.appId
- Id of the installed application.org.exoplatform.social.core.space.SpaceException
- with possible code: SpaceException.Code.UNABLE_TO_ADD_APPLICATION,
SpaceExeption.Code.ERROR_DATA_STOREvoid activateApplication(String spaceId, String appId) throws org.exoplatform.social.core.space.SpaceException
spaceId
- Id of the space that the installed application is activated.appId
- Id of the installed application.org.exoplatform.social.core.space.SpaceException
- with possible code: SpaceException.Code.UNABLE_TO_ADD_APPLICATION,
SpaceExeption.Code.ERROR_DATA_STOREvoid deactivateApplication(org.exoplatform.social.core.space.model.Space space, String appId) throws org.exoplatform.social.core.space.SpaceException
space
- The space that the installed application is deactivated.appId
- Id of the installed application.org.exoplatform.social.core.space.SpaceException
void deactivateApplication(String spaceId, String appId) throws org.exoplatform.social.core.space.SpaceException
spaceId
- Id of the space that the installed application is deactivated.appId
- Id of the installed application.org.exoplatform.social.core.space.SpaceException
void removeApplication(org.exoplatform.social.core.space.model.Space space, String appId, String appName) throws org.exoplatform.social.core.space.SpaceException
space
- The space that the installed application is removed.appId
- Id of the installed application.org.exoplatform.social.core.space.SpaceException
void removeApplication(String spaceId, String appId, String appName) throws org.exoplatform.social.core.space.SpaceException
spaceId
- Id of the space that the installed application is removed.appId
- Id of the installed application.org.exoplatform.social.core.space.SpaceException
void updateSpaceAccessed(String remoteId, org.exoplatform.social.core.space.model.Space space) throws org.exoplatform.social.core.space.SpaceException
remoteId
- The remote Id of the user.space
- The last accessed space of the user.org.exoplatform.social.core.space.SpaceException
List<org.exoplatform.social.core.space.model.Space> getLastAccessedSpace(String remoteId, String appId, int offset, int limit) throws org.exoplatform.social.core.space.SpaceException
remoteId
- The remote Id of user.appId
- Id of the installed application in a space.offset
- The starting point to get the most recently accessed spaces.limit
- The limitation of the most recently accessed spaces.org.exoplatform.social.core.space.SpaceException
List<org.exoplatform.social.core.space.model.Space> getLastSpaces(int limit)
limit
- the limit of spaces to provide.ListAccess<org.exoplatform.social.core.space.model.Space> getLastAccessedSpace(String remoteId, String appId)
remoteId
- The remote Id of a user.appId
- Id of the installed application in a space.@Deprecated void requestJoin(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
addPendingUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space which the user requests to join.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void requestJoin(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
addPendingUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void revokeRequestJoin(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
removePendingUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space which the user requests to join.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void revokeRequestJoin(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
removePendingUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user.org.exoplatform.social.core.space.SpaceException
@Deprecated void inviteMember(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
addInvitedUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void inviteMember(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
addInvitedUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void revokeInvitation(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
removeInvitedUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void revokeInvitation(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
removeInvitedUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void acceptInvitation(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
addMember(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void acceptInvitation(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
addMember(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void denyInvitation(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
removeInvitedUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void denyInvitation(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
removeInvitedUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void validateRequest(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
addMember(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void validateRequest(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
addMember(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void declineRequest(org.exoplatform.social.core.space.model.Space space, String userId) throws org.exoplatform.social.core.space.SpaceException
removePendingUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.space
- The space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void declineRequest(String spaceId, String userId) throws org.exoplatform.social.core.space.SpaceException
removePendingUser(org.exoplatform.social.core.space.model.Space, String)
instead.
Will be removed by 4.0.x.spaceId
- Id of the space.userId
- Id of the user (remoteId).org.exoplatform.social.core.space.SpaceException
@Deprecated void registerSpaceLifeCycleListener(org.exoplatform.social.core.space.spi.SpaceLifeCycleListener listener)
listener
- The space lifecycle listener to be registered.@Deprecated void unregisterSpaceLifeCycleListener(org.exoplatform.social.core.space.spi.SpaceLifeCycleListener listener)
listener
- The space lifecycle listener to be unregistered.@Deprecated void setPortletsPrefsRequired(org.exoplatform.social.core.application.PortletPreferenceRequiredPlugin portletPrefsRequiredPlugin)
SpaceApplicationConfigPlugin
instead.
Will be removed by 4.0.x.portletPrefsRequiredPlugin
- The plugin that configures portlets to store spaceUrl in its portlet-preference.String[] getPortletsPrefsRequired()
ListAccess<org.exoplatform.social.core.space.model.Space> getVisitedSpaces(String remoteId, String appId)
remoteId
- appId
- Copyright © 2003-2017 eXo Platform SAS. All Rights Reserved.