Package org.dspace.content.dao.impl
Class CommunityDAOImpl
- All Implemented Interfaces:
CommunityDAO,DSpaceObjectDAO<Community>,DSpaceObjectLegacySupportDAO<Community>,GenericDAO<Community>
Hibernate implementation of the Database Access Object interface class for the Community object.
This class is responsible for all database calls for the Community object and is autowired by spring
This class should never be accessed directly.
- Author:
- kevinvandevelde at atmire.com
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintfindAll(Context context, MetadataField sortField) Get a list of all communities in the system.findAll(Context context, MetadataField sortField, Integer limit, Integer offset) findAllNoParent(Context context, MetadataField sortField) findAuthorized(Context context, EPerson ePerson, List<Integer> actions) findAuthorizedByGroup(Context context, EPerson ePerson, List<Integer> actions) findByAdminGroup(Context context, Group group) Methods inherited from class org.dspace.core.AbstractHibernateDSODAO
addMetadataLeftJoin, addMetadataSortQuery, addMetadataSortQuery, addMetadataValueWhereQuery, findByLegacyIdMethods inherited from class org.dspace.core.AbstractHibernateDAO
count, count, countLong, create, createQuery, createQuery, delete, executeCriteriaQuery, findAll, findAll, findByID, findByID, findByID, findByX, findMany, findMany, findUnique, getCriteriaBuilder, getCriteriaQuery, getHibernateSession, iterate, list, list, list, list, save, singleResult, singleResult, uniqueResult, uniqueResultMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.content.dao.DSpaceObjectLegacySupportDAO
findByLegacyId
-
Constructor Details
-
CommunityDAOImpl
protected CommunityDAOImpl()
-
-
Method Details
-
findAll
Get a list of all communities in the system. These are alphabetically sorted by community name.- Specified by:
findAllin interfaceCommunityDAO- Parameters:
context- DSpace context objectsortField- sort field- Returns:
- the communities in the system
- Throws:
SQLException- if database error
-
findAll
public List<Community> findAll(Context context, MetadataField sortField, Integer limit, Integer offset) throws SQLException - Specified by:
findAllin interfaceCommunityDAO- Throws:
SQLException
-
findByAdminGroup
- Specified by:
findByAdminGroupin interfaceCommunityDAO- Throws:
SQLException
-
findAllNoParent
public List<Community> findAllNoParent(Context context, MetadataField sortField) throws SQLException - Specified by:
findAllNoParentin interfaceCommunityDAO- Throws:
SQLException
-
findAuthorized
public List<Community> findAuthorized(Context context, EPerson ePerson, List<Integer> actions) throws SQLException - Specified by:
findAuthorizedin interfaceCommunityDAO- Throws:
SQLException
-
findAuthorizedByGroup
public List<Community> findAuthorizedByGroup(Context context, EPerson ePerson, List<Integer> actions) throws SQLException - Specified by:
findAuthorizedByGroupin interfaceCommunityDAO- Throws:
SQLException
-
countRows
- Specified by:
countRowsin interfaceCommunityDAO- Throws:
SQLException
-