Package org.dspace.content.dao
Interface CommunityDAO
-
- All Superinterfaces:
DSpaceObjectDAO<Community>,DSpaceObjectLegacySupportDAO<Community>,GenericDAO<Community>
- All Known Implementing Classes:
CommunityDAOImpl
public interface CommunityDAO extends DSpaceObjectLegacySupportDAO<Community>
Database Access Object interface class for the Community object. The implementation of this class is responsible for all database calls for the Community object and is autowired by spring This class should only be accessed from a single service and should never be exposed outside of the API- Author:
- kevinvandevelde at atmire.com
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountRows(Context context)List<Community>findAll(Context context, MetadataField sortField)List<Community>findAll(Context context, MetadataField sortField, Integer limit, Integer offset)List<Community>findAllNoParent(Context context, MetadataField sortField)List<Community>findAuthorized(Context context, EPerson ePerson, List<Integer> actions)List<Community>findAuthorizedByGroup(Context context, EPerson currentUser, List<Integer> actions)CommunityfindByAdminGroup(Context context, Group group)-
Methods inherited from interface org.dspace.content.dao.DSpaceObjectLegacySupportDAO
findByLegacyId
-
Methods inherited from interface org.dspace.core.GenericDAO
create, delete, findAll, findAll, findByID, findByID, findMany, findUnique, save
-
-
-
-
Method Detail
-
findAll
List<Community> findAll(Context context, MetadataField sortField) throws SQLException
- Throws:
SQLException
-
findAll
List<Community> findAll(Context context, MetadataField sortField, Integer limit, Integer offset) throws SQLException
- Throws:
SQLException
-
findByAdminGroup
Community findByAdminGroup(Context context, Group group) throws SQLException
- Throws:
SQLException
-
findAllNoParent
List<Community> findAllNoParent(Context context, MetadataField sortField) throws SQLException
- Throws:
SQLException
-
findAuthorized
List<Community> findAuthorized(Context context, EPerson ePerson, List<Integer> actions) throws SQLException
- Throws:
SQLException
-
findAuthorizedByGroup
List<Community> findAuthorizedByGroup(Context context, EPerson currentUser, List<Integer> actions) throws SQLException
- Throws:
SQLException
-
countRows
int countRows(Context context) throws SQLException
- Throws:
SQLException
-
-