Interface SpaceDAO
- All Superinterfaces:
org.exoplatform.commons.api.persistence.GenericDAO<SpaceEntity,Long>
- All Known Implementing Classes:
SpaceDAOImpl
public interface SpaceDAO
extends org.exoplatform.commons.api.persistence.GenericDAO<SpaceEntity,Long>
-
Method Summary
Modifier and TypeMethodDescriptiondefault intcountCommonSpaces(String userId, String otherUserId) Count common spaces between two usersdefault List<SpaceEntity> getCommonSpaces(String userId, String otherUserId, int offset, int limit) Get common spaces between two usersgetLastSpaces(int limit) getSpaceByGroupId(String groupId) getSpaceByPrettyName(String spacePrettyName) Methods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Method Details
-
getLastSpaces
-
getSpaceByGroupId
-
getSpaceByPrettyName
-
getCommonSpaces
Get common spaces between two users- Parameters:
userId- connected user idotherUserId- visited profile user idoffset-limit-- Returns:
- list of common spaces between two users in param
-
countCommonSpaces
Count common spaces between two users- Parameters:
userId- connected user idotherUserId- visited profile user id- Returns:
- list of common spaces between two users in param
-
countSpacesByTemplate
- Returns:
- the count of spaces by Space Template identifier
-