Package org.dspace.content.dao
Interface CollectionDAO
-
- All Superinterfaces:
DSpaceObjectDAO<Collection>,DSpaceObjectLegacySupportDAO<Collection>,GenericDAO<Collection>
- All Known Implementing Classes:
CollectionDAOImpl
public interface CollectionDAO extends DSpaceObjectLegacySupportDAO<Collection>
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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description intcountRows(Context context)List<Collection>findAll(Context context, MetadataField order)List<Collection>findAll(Context context, MetadataField order, Integer limit, Integer offset)List<Collection>findAuthorized(Context context, EPerson ePerson, List<Integer> actions)List<Collection>findAuthorizedByGroup(Context context, EPerson ePerson, List<Integer> actions)CollectionfindByGroup(Context context, Group group)CollectionfindByTemplateItem(Context context, Item item)List<Collection>findCollectionsWithSubscribers(Context context)List<Map.Entry<Collection,Long>>getCollectionsWithBitstreamSizesTotal(Context context)-
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<Collection> findAll(Context context, MetadataField order) throws SQLException
- Throws:
SQLException
-
findAll
List<Collection> findAll(Context context, MetadataField order, Integer limit, Integer offset) throws SQLException
- Throws:
SQLException
-
findByTemplateItem
Collection findByTemplateItem(Context context, Item item) throws SQLException
- Throws:
SQLException
-
findByGroup
Collection findByGroup(Context context, Group group) throws SQLException
- 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
List<Collection> findCollectionsWithSubscribers(Context context) throws SQLException
- Throws:
SQLException
-
countRows
int countRows(Context context) throws SQLException
- Throws:
SQLException
-
getCollectionsWithBitstreamSizesTotal
List<Map.Entry<Collection,Long>> getCollectionsWithBitstreamSizesTotal(Context context) throws SQLException
- Throws:
SQLException
-
-