Interface SpaceStorage
-
public interface SpaceStorage- Version:
- $Revision$
- Author:
- Alain Defrance
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Deprecated Methods Modifier and Type Method Description default intcountCommonSpaces(String userId, String otherUserId)Count common spaces between two usersdefault intcountExternalMembers(Long spaceId)Counts the number of external users in a specific spacedefault intcountPendingSpaceRequestsToManage(String username)voiddeleteExternalUserInvitations(String email)Delete external invitationsvoiddeleteSpace(String id)Deletes a space by space id.voiddeleteSpaceExternalInvitation(SpaceExternalInvitation spaceExternalInvitation)Delete an external invitation from a spaceList<String>findExternalInvitationsSpacesByEmail(String email)get the list of spaces ids by external emailSpaceExternalInvitationfindSpaceExternalInvitationById(String invitationId)Get an external invitation by invitation idList<SpaceExternalInvitation>findSpaceExternalInvitationsBySpaceId(String spaceId)List<Space>getAccessibleSpaces(String userId)Deprecated.4.0.0-RC2List<Space>getAccessibleSpaces(String userId, long offset, long limit)Gets the spaces of a user which that user has "member" role or edit permission with offset, limit.List<Space>getAccessibleSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)Gets the accessible spaces of the user by filter with offset, limit.intgetAccessibleSpacesByFilterCount(String userId, SpaceFilter spaceFilter)Gets the count of the accessible spaces of the user by filter.intgetAccessibleSpacesCount(String userId)Gets the count of the accessible spaces of the userId.List<Space>getAllSpaces()Gets all the spaces.intgetAllSpacesByFilterCount(SpaceFilter spaceFilter)Gets the count of the spaces which are searched by space filter.intgetAllSpacesCount()Gets the count of the spaces.default List<Space>getCommonSpaces(String userId, String otherUserId, int offset, int limit)Get common spaces between two usersList<Space>getEditableSpaces(String userId)Gets the spaces of a user which that user has the edit permission.List<Space>getEditableSpaces(String userId, long offset, long limit)Gets the spaces of a user which that user has the edit permission with offset, limit.List<Space>getEditableSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)Gets the editable spaces of the user by filter with offset, limit.intgetEditableSpacesByFilterCount(String userId, SpaceFilter spaceFilter)Gets the count of the editable spaces of the user by filter.intgetEditableSpacesCount(String userId)Gets the count of the spaces of a user which that user has the edit permission.List<Space>getInvitedSpaces(String userId)Gets a user's invited spaces and that user can accept or deny the request.List<Space>getInvitedSpaces(String userId, long offset, long limit)Gets a user's invited spaces and that user can accept or deny the request with offset, limit.List<Space>getInvitedSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)Gets the invited spaces of the user by space filter with offset, limit.intgetInvitedSpacesByFilterCount(String userId, SpaceFilter spaceFilter)Gets the count of the invited spaces of the user by filter.intgetInvitedSpacesCount(String userId)Gets the count of the invited spaces of the userId.List<Space>getLastAccessedSpace(SpaceFilter filter, int offset, int limit)Gets list of spaces which user has been last visited.intgetLastAccessedSpaceCount(SpaceFilter filter)Gets number of spaces which user has been last visited.List<Space>getLastSpaces(int limit)Gets the last spaces that have been created.List<Space>getManagerSpaces(String userId, long offset, long limit)Gets the spaces that a user has the "manager" role with offset, limit.List<Space>getManagerSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)Gets the manager spaces of the user id by the filter with offset, limit.intgetManagerSpacesByFilterCount(String userId, SpaceFilter spaceFilter)Gets the count of the spaces which user has "manager" role by filter.intgetManagerSpacesCount(String userId)Gets the count of the spaces that a user has the "manager" role.List<String>getMemberSpaceIds(String identityId, int offset, int limit)List<Space>getMemberSpaces(String userId)Deprecated.usegetMemberSpaces(String, long, long)instead with offset and limitList<Space>getMemberSpaces(String userId, long offset, long limit)Gets the spaces that a user has the "member" role with offset, limit.List<Space>getMemberSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)Gets the member spaces of the user id by the filter with offset, limit.intgetMemberSpacesByFilterCount(String userId, SpaceFilter spaceFilter)Gets the count of the spaces which user has "member" role by filter.intgetMemberSpacesCount(String userId)Gets the count of the spaces that a user has the "member" role.intgetNumberOfMemberPublicSpaces(String userId)Gets the count of the public spaces of the userId.default List<Space>getPendingSpaceRequestsToManage(String username, int offset, int limit)List<Space>getPendingSpaces(String userId)Gets a user's pending spaces and that the user can revoke that request.List<Space>getPendingSpaces(String userId, long offset, long limit)Gets a user's pending spaces and that the user can revoke that request with offset, limit.List<Space>getPendingSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)Gets the pending spaces of the user by space filter with offset, limit.intgetPendingSpacesByFilterCount(String userId, SpaceFilter spaceFilter)Gets the count of the pending spaces of the user by space filter.intgetPendingSpacesCount(String userId)Gets the count of the pending spaces of the userId.List<Space>getPublicSpaces(String userId)Gets a user's public spaces and that user can request to join.List<Space>getPublicSpaces(String userId, long offset, long limit)Gets a user's public spaces and that user can request to join with offset, limit.List<Space>getPublicSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)Gets the public spaces of the user by filter with offset, limit.intgetPublicSpacesByFilterCount(String userId, SpaceFilter spaceFilter)Gets the count of the public spaces of the user by space filter.intgetPublicSpacesCount(String userId)Gets the count of the public spaces of the userId.SpacegetSpaceByDisplayName(String spaceDisplayName)Gets a space by its display name.SpacegetSpaceByGroupId(String groupId)Gets a space by its associated group id.SpacegetSpaceById(String id)Gets a space by its space id.SpacegetSpaceByPrettyName(String spacePrettyName)Gets a space by its pretty name.SpacegetSpaceByUrl(String url)Gets a space by its url.List<Space>getSpaces(long offset, long limit)Gets the spaces with offset, limit.List<Space>getSpacesByFilter(SpaceFilter spaceFilter, long offset, long limit)Gets the spaces by space filter with offset, limit.SpacegetSpaceSimpleById(String id)Gets a space simple by its space id to aim decrease workload to get full information.List<Space>getUnifiedSearchSpaces(String userId, SpaceFilter spaceFilter, long offset, long limit)Provides Unified Search to get the spaces of a user which that user has the visible spaces.intgetUnifiedSearchSpacesCount(String userId, SpaceFilter spaceFilter)Provides Unified Search to get the count of the visible spaces of the userId.List<Space>getVisibleSpaces(String userId, SpaceFilter spaceFilter)Gets the spaces of a user which that user has the "member" role or edit permission.List<Space>getVisibleSpaces(String userId, SpaceFilter spaceFilter, long offset, long limit)Gets the spaces of a user which that user has the visible spaces.intgetVisibleSpacesCount(String userId, SpaceFilter spaceFilter)Gets the count of the visible spaces of the userId.List<Space>getVisitedSpaces(SpaceFilter filter, int offset, int limit)Get the visited spacesvoidignoreSpace(String spaceId, String userId)update the SpaceMembership between space and userbooleanisSpaceIgnored(String spaceId, String userId)Verify if a space is ignored by the user or not.voidrenameSpace(String remoteId, Space space, String newDisplayName)Renames a space.voidrenameSpace(Space space, String newDisplayName)Renames a space.voidsaveSpace(Space space, boolean isNew)Saves a space.voidsaveSpaceExternalInvitation(String spaceId, String email, String tokenId)Saves a new external invitation in spacevoidupdateSpaceAccessed(String remoteId, Space space)Update accessed space to top of space members list of Identity model
-
-
-
Method Detail
-
getSpaceByDisplayName
Space getSpaceByDisplayName(String spaceDisplayName) throws SpaceStorageException
Gets a space by its display name.- Parameters:
spaceDisplayName-- Returns:
- the space with spaceDisplayName that matches the spaceDisplayName input.
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
saveSpace
void saveSpace(Space space, boolean isNew) throws SpaceStorageException
Saves a space. If isNew is true, creates new space. If not only updates space an saves it.- Parameters:
space-isNew-- Throws:
SpaceStorageException
-
renameSpace
void renameSpace(Space space, String newDisplayName) throws SpaceStorageException
Renames a space.- Parameters:
space-newDisplayName-- Throws:
SpaceStorageException- Since:
- 1.2.8
-
renameSpace
void renameSpace(String remoteId, Space space, String newDisplayName) throws SpaceStorageException
Renames a space.- Parameters:
remoteId- who update Space informationspace-newDisplayName-- Throws:
SpaceStorageException- Since:
- 4.0.0
-
deleteSpace
void deleteSpace(String id) throws SpaceStorageException
Deletes a space by space id.- Parameters:
id-- Throws:
SpaceStorageException
-
ignoreSpace
void ignoreSpace(String spaceId, String userId)
update the SpaceMembership between space and user- Parameters:
spaceId- the space IduserId- user Id
-
isSpaceIgnored
boolean isSpaceIgnored(String spaceId, String userId)
Verify if a space is ignored by the user or not.- Parameters:
spaceId- the id of the spaceuserId- the id of the user- Returns:
- true if user has ignored the space from suggested list
-
getManagerSpacesCount
int getManagerSpacesCount(String userId)
Gets the count of the spaces that a user has the "manager" role.- Parameters:
userId-- Returns:
- the count of the manager spaces
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getManagerSpacesByFilterCount
int getManagerSpacesByFilterCount(String userId, SpaceFilter spaceFilter)
Gets the count of the spaces which user has "manager" role by filter.- Parameters:
userId-spaceFilter-- Returns:
- Since:
- 1.2.0-GA
-
getManagerSpaces
List<Space> getManagerSpaces(String userId, long offset, long limit)
Gets the spaces that a user has the "manager" role with offset, limit.- Parameters:
userId-offset-limit-- Returns:
- a list of the manager spaces with offset, limit
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getManagerSpacesByFilter
List<Space> getManagerSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)
Gets the manager spaces of the user id by the filter with offset, limit.- Parameters:
userId-spaceFilter-offset-limit-- Returns:
- Since:
- 1.2.0-GA
-
getMemberSpacesCount
int getMemberSpacesCount(String userId) throws SpaceStorageException
Gets the count of the spaces that a user has the "member" role.- Parameters:
userId-- Returns:
- the count of the member spaces
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getMemberSpacesByFilterCount
int getMemberSpacesByFilterCount(String userId, SpaceFilter spaceFilter)
Gets the count of the spaces which user has "member" role by filter.- Parameters:
userId-spaceFilter-- Returns:
- Since:
- 1.2.0-GA
-
getMemberSpaces
@Deprecated List<Space> getMemberSpaces(String userId) throws SpaceStorageException
Deprecated.usegetMemberSpaces(String, long, long)instead with offset and limitGets the spaces that a user has the "member" role.- Parameters:
userId-- Returns:
- a list of the member spaces
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getMemberSpaces
List<Space> getMemberSpaces(String userId, long offset, long limit) throws SpaceStorageException
Gets the spaces that a user has the "member" role with offset, limit.- Parameters:
userId-offset-limit-- Returns:
- a list of the member spaces with offset, limit
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getMemberSpacesByFilter
List<Space> getMemberSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)
Gets the member spaces of the user id by the filter with offset, limit.- Parameters:
userId-spaceFilter-offset-limit-- Returns:
- Since:
- 1.2.0-GA
-
getPendingSpacesCount
int getPendingSpacesCount(String userId) throws SpaceStorageException
Gets the count of the pending spaces of the userId.- Parameters:
userId-- Returns:
- the count of the pending spaces
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getPendingSpacesByFilterCount
int getPendingSpacesByFilterCount(String userId, SpaceFilter spaceFilter)
Gets the count of the pending spaces of the user by space filter.- Parameters:
userId-spaceFilter-- Returns:
- Since:
- 1.2.0-GA
-
getPendingSpaces
List<Space> getPendingSpaces(String userId) throws SpaceStorageException
Gets a user's pending spaces and that the user can revoke that request.- Parameters:
userId-- Returns:
- a list of the pending spaces
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getPendingSpaces
List<Space> getPendingSpaces(String userId, long offset, long limit) throws SpaceStorageException
Gets a user's pending spaces and that the user can revoke that request with offset, limit.- Parameters:
userId-offset-limit-- Returns:
- a list of the pending spaces with offset, limit
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getPendingSpacesByFilter
List<Space> getPendingSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)
Gets the pending spaces of the user by space filter with offset, limit.- Parameters:
userId-spaceFilter-offset-limit-- Returns:
- Since:
- 1.2.0-GA
-
getInvitedSpacesCount
int getInvitedSpacesCount(String userId) throws SpaceStorageException
Gets the count of the invited spaces of the userId.- Parameters:
userId-- Returns:
- the count of the invited spaces
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getInvitedSpacesByFilterCount
int getInvitedSpacesByFilterCount(String userId, SpaceFilter spaceFilter)
Gets the count of the invited spaces of the user by filter.- Parameters:
userId-spaceFilter-- Returns:
- Since:
- 1.2.0-GA
-
getInvitedSpaces
List<Space> getInvitedSpaces(String userId) throws SpaceStorageException
Gets a user's invited spaces and that user can accept or deny the request.- Parameters:
userId-- Returns:
- a list of the invited spaces.
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getInvitedSpaces
List<Space> getInvitedSpaces(String userId, long offset, long limit) throws SpaceStorageException
Gets a user's invited spaces and that user can accept or deny the request with offset, limit.- Parameters:
userId-offset-limit-- Returns:
- a list of the invited spaces with offset, limit
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getInvitedSpacesByFilter
List<Space> getInvitedSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)
Gets the invited spaces of the user by space filter with offset, limit.- Parameters:
userId-spaceFilter-offset-limit-- Returns:
- Since:
- 1.2.0-GA
-
getPublicSpacesCount
int getPublicSpacesCount(String userId) throws SpaceStorageException
Gets the count of the public spaces of the userId.- Parameters:
userId-- Returns:
- the count of the spaces in which the user can request to join
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getPublicSpacesByFilterCount
int getPublicSpacesByFilterCount(String userId, SpaceFilter spaceFilter)
Gets the count of the public spaces of the user by space filter.- Parameters:
userId-spaceFilter-- Returns:
- Since:
- 1.2.0-GA
-
getPublicSpacesByFilter
List<Space> getPublicSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)
Gets the public spaces of the user by filter with offset, limit.- Parameters:
userId-spaceFilter-offset-limit-- Returns:
- Since:
- 1.2.0-GA
-
getPublicSpaces
List<Space> getPublicSpaces(String userId) throws SpaceStorageException
Gets a user's public spaces and that user can request to join.- Parameters:
userId-- Returns:
- spaces list in which the user can request to join.
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getPublicSpaces
List<Space> getPublicSpaces(String userId, long offset, long limit) throws SpaceStorageException
Gets a user's public spaces and that user can request to join with offset, limit.- Parameters:
userId-offset-limit-- Returns:
- spaces list in which the user can request to join with offset, limit
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getAccessibleSpacesCount
int getAccessibleSpacesCount(String userId) throws SpaceStorageException
Gets the count of the accessible spaces of the userId.- Parameters:
userId-- Returns:
- the count of the accessible spaces
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getVisibleSpacesCount
int getVisibleSpacesCount(String userId, SpaceFilter spaceFilter) throws SpaceStorageException
Gets the count of the visible spaces of the userId.- Parameters:
userId-spaceFilter-- Returns:
- Throws:
SpaceStorageException- Since:
- 1.2.5-GA
-
getUnifiedSearchSpacesCount
int getUnifiedSearchSpacesCount(String userId, SpaceFilter spaceFilter) throws SpaceStorageException
Provides Unified Search to get the count of the visible spaces of the userId.- Parameters:
userId-spaceFilter-- Returns:
- Throws:
SpaceStorageException- Since:
- 4.0.0-GA
-
getAccessibleSpacesByFilterCount
int getAccessibleSpacesByFilterCount(String userId, SpaceFilter spaceFilter)
Gets the count of the accessible spaces of the user by filter.- Parameters:
userId-spaceFilter-- Returns:
- Since:
- 1.2.0-GA
-
getAccessibleSpaces
@Deprecated List<Space> getAccessibleSpaces(String userId) throws SpaceStorageException
Deprecated.4.0.0-RC2Gets the spaces of a user which that user has the "member" role or edit permission.- Parameters:
userId- the userId- Returns:
- a list of the accessible spaces
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getVisibleSpaces
List<Space> getVisibleSpaces(String userId, SpaceFilter spaceFilter, long offset, long limit) throws SpaceStorageException
Gets the spaces of a user which that user has the visible spaces.- Parameters:
userId- the userId- Returns:
- a list of the accessible spaces
- Throws:
SpaceStorageException- Since:
- 1.2.5-GA
-
getUnifiedSearchSpaces
List<Space> getUnifiedSearchSpaces(String userId, SpaceFilter spaceFilter, long offset, long limit) throws SpaceStorageException
Provides Unified Search to get the spaces of a user which that user has the visible spaces.- Parameters:
userId- the userId- Returns:
- a list of the accessible spaces
- Throws:
SpaceStorageException- Since:
- 4.0.0-GA
-
getVisibleSpaces
List<Space> getVisibleSpaces(String userId, SpaceFilter spaceFilter) throws SpaceStorageException
Gets the spaces of a user which that user has the "member" role or edit permission.- Parameters:
userId- the userId- Returns:
- a list of the accessible spaces
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getAccessibleSpaces
List<Space> getAccessibleSpaces(String userId, long offset, long limit) throws SpaceStorageException
Gets the spaces of a user which that user has "member" role or edit permission with offset, limit.- Parameters:
userId- the userIdoffset-limit-- Returns:
- a list of the accessible space with offset, limit
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getAccessibleSpacesByFilter
List<Space> getAccessibleSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)
Gets the accessible spaces of the user by filter with offset, limit.- Parameters:
userId-spaceFilter-offset-limit-- Returns:
- Since:
- 1.2.0-GA
-
getEditableSpacesCount
int getEditableSpacesCount(String userId) throws SpaceStorageException
Gets the count of the spaces of a user which that user has the edit permission.- Parameters:
userId-- Returns:
- the count of the editable spaces.
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getEditableSpacesByFilterCount
int getEditableSpacesByFilterCount(String userId, SpaceFilter spaceFilter)
Gets the count of the editable spaces of the user by filter.- Parameters:
userId-spaceFilter-- Returns:
- Since:
- 1.2.0-GA
-
getEditableSpaces
List<Space> getEditableSpaces(String userId) throws SpaceStorageException
Gets the spaces of a user which that user has the edit permission.- Parameters:
userId-- Returns:
- a list of the editable spaces.
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getEditableSpaces
List<Space> getEditableSpaces(String userId, long offset, long limit) throws SpaceStorageException
Gets the spaces of a user which that user has the edit permission with offset, limit.- Parameters:
userId-offset-limit-- Returns:
- a list of the spaces with offset, limit
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getEditableSpacesByFilter
List<Space> getEditableSpacesByFilter(String userId, SpaceFilter spaceFilter, long offset, long limit)
Gets the editable spaces of the user by filter with offset, limit.- Parameters:
userId-spaceFilter-offset-limit-- Returns:
- Since:
- 1.2.0-GA
-
getAllSpacesCount
int getAllSpacesCount() throws SpaceStorageExceptionGets the count of the spaces.- Returns:
- the count of all spaces
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getAllSpaces
List<Space> getAllSpaces() throws SpaceStorageException
Gets all the spaces. By the default get the all spaces with OFFSET = 0, LIMIT = 200;- Returns:
- the list of all spaces
- Throws:
SpaceStorageException
-
getAllSpacesByFilterCount
int getAllSpacesByFilterCount(SpaceFilter spaceFilter)
Gets the count of the spaces which are searched by space filter.- Parameters:
spaceFilter-- Returns:
- Since:
- 1.2.0-GA
-
getSpaces
List<Space> getSpaces(long offset, long limit) throws SpaceStorageException
Gets the spaces with offset, limit.- Parameters:
offset-limit-- Returns:
- the list of the spaces with offset, limit
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getSpacesByFilter
List<Space> getSpacesByFilter(SpaceFilter spaceFilter, long offset, long limit)
Gets the spaces by space filter with offset, limit.- Parameters:
spaceFilter-offset-limit-- Returns:
- Throws:
SpaceStorageException
-
getSpaceById
Space getSpaceById(String id) throws SpaceStorageException
Gets a space by its space id.- Parameters:
id-- Returns:
- space with id specified
- Throws:
SpaceStorageException
-
getSpaceSimpleById
Space getSpaceSimpleById(String id) throws SpaceStorageException
Gets a space simple by its space id to aim decrease workload to get full information. It's only to get a little space information such as displayName, groupId, prettyName description, id, avatar ..- Parameters:
id-- Returns:
- space with id specified
- Throws:
SpaceStorageException
-
getSpaceByPrettyName
Space getSpaceByPrettyName(String spacePrettyName) throws SpaceStorageException
Gets a space by its pretty name.- Parameters:
spacePrettyName-- Returns:
- the space with spacePrettyName that matches spacePrettyName input.
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getSpaceByGroupId
Space getSpaceByGroupId(String groupId) throws SpaceStorageException
Gets a space by its associated group id.- Parameters:
groupId-- Returns:
- the space that has group id matching the groupId string input.
- Throws:
SpaceStorageException- Since:
- 1.2.0-GA
-
getSpaceByUrl
Space getSpaceByUrl(String url) throws SpaceStorageException
Gets a space by its url.- Parameters:
url-- Returns:
- the space with string url specified
- Throws:
SpaceStorageException
-
updateSpaceAccessed
void updateSpaceAccessed(String remoteId, Space space) throws SpaceStorageException
Update accessed space to top of space members list of Identity model- Parameters:
remoteId-space-- Throws:
SpaceStorageException
-
getLastAccessedSpace
List<Space> getLastAccessedSpace(SpaceFilter filter, int offset, int limit) throws SpaceStorageException
Gets list of spaces which user has been last visited.- Parameters:
offset- TODOlimit-filter-- Throws:
SpaceStorageException
-
getLastAccessedSpaceCount
int getLastAccessedSpaceCount(SpaceFilter filter) throws SpaceStorageException
Gets number of spaces which user has been last visited.- Parameters:
filter-- Throws:
SpaceStorageException
-
getNumberOfMemberPublicSpaces
int getNumberOfMemberPublicSpaces(String userId)
Gets the count of the public spaces of the userId.- Parameters:
userId-- Returns:
- number of public space of a user where he is member
- Since:
- 4.0.0.Beta01
-
getVisitedSpaces
List<Space> getVisitedSpaces(SpaceFilter filter, int offset, int limit) throws SpaceStorageException
Get the visited spaces- Parameters:
filter-offset-limit-- Returns:
- list of browsed spaces
- Throws:
SpaceStorageException
-
getLastSpaces
List<Space> getLastSpaces(int limit)
Gets the last spaces that have been created.- Parameters:
limit- the limit of spaces to provide.- Returns:
- The last spaces.
- Since:
- 4.0.x
- eXo level API
- Experimental
-
getMemberSpaceIds
List<String> getMemberSpaceIds(String identityId, int offset, int limit) throws SpaceStorageException
- Parameters:
identityId-offset-limit-- Returns:
- Throws:
SpaceStorageException
-
findSpaceExternalInvitationsBySpaceId
List<SpaceExternalInvitation> findSpaceExternalInvitationsBySpaceId(String spaceId) throws SpaceStorageException
- Parameters:
spaceId-- Returns:
- Throws:
SpaceStorageException
-
saveSpaceExternalInvitation
void saveSpaceExternalInvitation(String spaceId, String email, String tokenId) throws SpaceStorageException
Saves a new external invitation in space- Parameters:
spaceId-email-- Throws:
SpaceStorageException
-
findSpaceExternalInvitationById
SpaceExternalInvitation findSpaceExternalInvitationById(String invitationId) throws SpaceStorageException
Get an external invitation by invitation id- Parameters:
invitationId-- Throws:
SpaceStorageException
-
deleteSpaceExternalInvitation
void deleteSpaceExternalInvitation(SpaceExternalInvitation spaceExternalInvitation) throws SpaceStorageException
Delete an external invitation from a space- Parameters:
spaceExternalInvitation-- Throws:
SpaceStorageException
-
findExternalInvitationsSpacesByEmail
List<String> findExternalInvitationsSpacesByEmail(String email) throws SpaceStorageException
get the list of spaces ids by external email- Parameters:
email-- Throws:
SpaceStorageException
-
deleteExternalUserInvitations
void deleteExternalUserInvitations(String email) throws SpaceStorageException
Delete external invitations- Parameters:
email-- Throws:
SpaceStorageException
-
countPendingSpaceRequestsToManage
default int countPendingSpaceRequestsToManage(String username)
- Parameters:
username- username used to retrieve user spaces- Returns:
- the count of users requested to join spaces that user manages
-
getPendingSpaceRequestsToManage
default List<Space> getPendingSpaceRequestsToManage(String username, int offset, int limit)
-
countExternalMembers
default int countExternalMembers(Long spaceId)
Counts the number of external users in a specific space- Parameters:
spaceId-- Returns:
- counts the external members in the space
-
getCommonSpaces
default List<Space> getCommonSpaces(String userId, String otherUserId, int offset, int limit)
Get common spaces between two users- Parameters:
userId- connected user idotherUserId- visited profile user id- Returns:
- list of common spaces between two users in param
-
-