Package org.dspace.content.dao
Interface CollectionDAO
- All Superinterfaces:
DSpaceObjectDAO<Collection>,DSpaceObjectLegacySupportDAO<Collection>,GenericDAO<Collection>
- All Known Implementing Classes:
CollectionDAOImpl
Database Access Object interface class for the Collection object.
The implementation of this class is responsible for all database calls for the Collection 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
Modifier and TypeMethodDescriptionintfindAll(Context context, MetadataField order) findAll(Context context, MetadataField order, Integer limit, Integer offset) findAuthorized(Context context, EPerson ePerson, List<Integer> actions) findAuthorizedByGroup(Context context, EPerson ePerson, List<Integer> actions) findByGroup(Context context, Group group) findByTemplateItem(Context context, Item item) findCollectionsWithSubscribers(Context context) Methods inherited from interface org.dspace.content.dao.DSpaceObjectLegacySupportDAO
findByLegacyId
-
Method Details
-
findAll
- Throws:
SQLException
-
findAll
List<Collection> findAll(Context context, MetadataField order, Integer limit, Integer offset) throws SQLException - Throws:
SQLException
-
findByTemplateItem
- Throws:
SQLException
-
findByGroup
- Parameters:
context- DSpace Contextgroup- EPerson Group- Returns:
- the collection, if any, that has the specified group as administrators or submitters
- Throws:
SQLException
-
findAuthorized
List<Collection> findAuthorized(Context context, EPerson ePerson, List<Integer> actions) throws SQLException - Throws:
SQLException
-
findAuthorizedByGroup
List<Collection> findAuthorizedByGroup(Context context, EPerson ePerson, List<Integer> actions) throws SQLException - Throws:
SQLException
-
findCollectionsWithSubscribers
- Throws:
SQLException
-
countRows
- Throws:
SQLException
-
getCollectionsWithBitstreamSizesTotal
List<Map.Entry<Collection,Long>> getCollectionsWithBitstreamSizesTotal(Context context) throws SQLException - Throws:
SQLException
-