Package org.dspace.contentreport.service
Interface ContentReportService
- All Known Implementing Classes:
ContentReportServiceImpl
public interface ContentReportService
-
Method Summary
Modifier and TypeMethodDescriptionfindFilteredCollections(Context context, Collection<Filter> filters) Retrieves item statistics per collection according to a set of Boolean filters.findFilteredItems(Context context, FilteredItemsQuery query) Retrieves a list of items according to a set of criteria.booleanReturnstrue<if Content Reports are enabled.getMetadataFields(Context context, String metadataField) Converts a metadata field name to a list ofMetadataFieldinstances (one if no wildcards are used, possibly more otherwise).
-
Method Details
-
getEnabled
boolean getEnabled()Returnstrue<if Content Reports are enabled.- Returns:
true<if Content Reports are enabled
-
findFilteredCollections
Retrieves item statistics per collection according to a set of Boolean filters.- Parameters:
context- DSpace contextfilters- Set of filters- Returns:
- a list of collections with the requested statistics for each of them
-
findFilteredItems
Retrieves a list of items according to a set of criteria.- Parameters:
context- DSpace contextquery- structured query to find items against- Returns:
- a list of items filtered according to the provided query
-
getMetadataFields
Converts a metadata field name to a list ofMetadataFieldinstances (one if no wildcards are used, possibly more otherwise).- Parameters:
context- DSpace contextmetadataField- field to search for- Returns:
- a corresponding list of
MetadataFieldentries - Throws:
SQLException
-