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 Details

    • getLastSpaces

      List<Long> getLastSpaces(int limit)
    • getSpaceByGroupId

      SpaceEntity getSpaceByGroupId(String groupId)
    • getSpaceByURL

      SpaceEntity getSpaceByURL(String url)
    • getSpaceByDisplayName

      SpaceEntity getSpaceByDisplayName(String spaceDisplayName)
    • getSpaceByPrettyName

      SpaceEntity getSpaceByPrettyName(String spacePrettyName)
    • getCommonSpaces

      default List<SpaceEntity> getCommonSpaces(String userId, String otherUserId, int offset, int limit)
      Get common spaces between two users
      Parameters:
      userId - connected user id
      otherUserId - visited profile user id
      offset -
      limit -
      Returns:
      list of common spaces between two users in param
    • countCommonSpaces

      default int countCommonSpaces(String userId, String otherUserId)
      Count common spaces between two users
      Parameters:
      userId - connected user id
      otherUserId - visited profile user id
      Returns:
      list of common spaces between two users in param