Interface SpaceMemberDAO
- All Superinterfaces:
org.exoplatform.commons.api.persistence.GenericDAO<SpaceMemberEntity,Long>
- All Known Implementing Classes:
SpaceMemberDAOImpl
public interface SpaceMemberDAO
extends org.exoplatform.commons.api.persistence.GenericDAO<SpaceMemberEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptiondefault intcountDisabledSpaceMembers(Long spaceId) Count disabled space membersdefault intcountExternalMembers(Long spaceId) Counts the number of external users in a specific spaceintcountPendingSpaceRequestsToManage(String username) intcountSpaceMembers(Long spaceId, io.meeds.social.space.constant.SpaceMembershipStatus status) Count space members switch statusvoiddeleteBySpace(SpaceEntity entity) getDisabledSpaceMembers(Long spaceId, int offset, int limit) Get disabled space membersList<jakarta.persistence.Tuple> getPendingSpaceRequestsToManage(String username, int offset, int limit) getSpaceIdByMemberId(String username, int offset, int limit) Retrieves the list ofSpacetechnical identifiersgetSpaceIdentityIdsByUserRole(String remoteId, io.meeds.social.space.constant.SpaceMembershipStatus status, int offset, int limit) Get space identity ids switch user statusgetSpaceIdsByUserRole(String username, io.meeds.social.space.constant.SpaceMembershipStatus status, int offset, int limit) Retrieves the list ofSpacetechnical identifiers switch statusgetSpaceMembers(Long spaceId, io.meeds.social.space.constant.SpaceMembershipStatus status, int offset, int limit) Get space members switch statusgetSpaceMemberShip(String remoteId, Long spaceId, io.meeds.social.space.constant.SpaceMembershipStatus status) default InstantgetSpaceMembershipDate(long spaceId, String username) Retrieves the Space Membership dategetSpacesIdsByUserName(String userId, int offset, int limit) sortSpaceMembers(List<String> userNames, String sortField, String sortDirection, boolean filterDisabled) Sort user identity remote idsMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Method Details
-
deleteBySpace
-
getSpaceMemberShip
SpaceMemberEntity getSpaceMemberShip(String remoteId, Long spaceId, io.meeds.social.space.constant.SpaceMembershipStatus status) -
getSpaceIdentityIdsByUserRole
default List<Long> getSpaceIdentityIdsByUserRole(String remoteId, io.meeds.social.space.constant.SpaceMembershipStatus status, int offset, int limit) Get space identity ids switch user status -
getSpacesIdsByUserName
-
getSpaceMembers
List<String> getSpaceMembers(Long spaceId, io.meeds.social.space.constant.SpaceMembershipStatus status, int offset, int limit) Get space members switch status- Parameters:
spaceId-status- equals to MEMBER, MANAGER, PENDING, INVITED or IGNOREDoffset-limit-- Returns:
-
getDisabledSpaceMembers
Get disabled space members- Parameters:
spaceId- the space IDoffset- offset of the pagelimit- number of elements on each page- Returns:
- list of user names
-
getSpaceIdByMemberId
Retrieves the list ofSpacetechnical identifiers -
getSpaceIdsByUserRole
default List<Long> getSpaceIdsByUserRole(String username, io.meeds.social.space.constant.SpaceMembershipStatus status, int offset, int limit) Retrieves the list ofSpacetechnical identifiers switch status -
sortSpaceMembers
List<String> sortSpaceMembers(List<String> userNames, String sortField, String sortDirection, boolean filterDisabled) Sort user identity remote ids- Parameters:
userNames-sortField-sortDirection-filterDisabled-- Returns:
Listof userNames sorted by sortField
-
countSpaceMembers
Count space members switch status- Parameters:
spaceId-status- equals to MEMBER, MANAGER, PENDING, INVITED or IGNORED- Returns:
-
countDisabledSpaceMembers
Count disabled space members- Parameters:
spaceId- the spaceID- Returns:
- the number of disabled space members
-
countPendingSpaceRequestsToManage
- Parameters:
username- username used to retrieve user spaces- Returns:
- the count of users requested to join spaces that user manages
-
getPendingSpaceRequestsToManage
List<jakarta.persistence.Tuple> getPendingSpaceRequestsToManage(String username, int offset, int limit) - Parameters:
username- username used to retrieve user spacesoffset- offset of the querylimit- limit of the query- Returns:
ListTupleof users requested to join spaces that designated user (with userId parameter) manages
-
countExternalMembers
Counts the number of external users in a specific space- Parameters:
spaceId-- Returns:
- counts the external members in the space
-
getSpaceMembershipDate
Retrieves the Space Membership date- Parameters:
spaceId-Spacetechnical idusername- User name (identifier)- Returns:
Instantcorresponding to the creation date of the membership
-