Class SpaceDAOImpl
java.lang.Object
org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<SpaceEntity,Long>
org.exoplatform.social.core.jpa.storage.dao.jpa.SpaceDAOImpl
- All Implemented Interfaces:
org.exoplatform.commons.api.persistence.GenericDAO<SpaceEntity,,Long> SpaceDAO
public class SpaceDAOImpl
extends org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl<SpaceEntity,Long>
implements SpaceDAO
-
Field Summary
Fields inherited from class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
modelClass -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintcountCommonSpaces(String userId, String otherUserId) Count common spaces between two usersgetCommonSpaces(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 class org.exoplatform.commons.persistence.impl.GenericDAOJPAImpl
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, getEntityManager, getHibernateDialect, isMSSQLDialect, isOrcaleDialect, update, updateAllMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.exoplatform.commons.api.persistence.GenericDAO
count, create, createAll, delete, deleteAll, deleteAll, find, findAll, update, updateAll
-
Constructor Details
-
SpaceDAOImpl
public SpaceDAOImpl()
-
-
Method Details
-
getLastSpaces
- Specified by:
getLastSpacesin interfaceSpaceDAO
-
getSpaceByGroupId
- Specified by:
getSpaceByGroupIdin interfaceSpaceDAO
-
getSpaceByPrettyName
- Specified by:
getSpaceByPrettyNamein interfaceSpaceDAO
-
getCommonSpaces
Description copied from interface:SpaceDAOGet common spaces between two users- Specified by:
getCommonSpacesin interfaceSpaceDAO- Parameters:
userId- connected user idotherUserId- visited profile user idoffset-limit-- Returns:
- list of common spaces between two users in param
-
countCommonSpaces
Description copied from interface:SpaceDAOCount common spaces between two users- Specified by:
countCommonSpacesin interfaceSpaceDAO- Parameters:
userId- connected user idotherUserId- visited profile user id- Returns:
- list of common spaces between two users in param
-
countSpacesByTemplate
- Specified by:
countSpacesByTemplatein interfaceSpaceDAO- Returns:
- the count of spaces by Space Template identifier
-