Package org.dspace.contentreport
Class ContentReportServiceImpl
java.lang.Object
org.dspace.contentreport.ContentReportServiceImpl
- All Implemented Interfaces:
ContentReportService
-
Field Summary
Fields -
Constructor Summary
Constructors -
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).
-
Field Details
-
configurationService
-
-
Constructor Details
-
ContentReportServiceImpl
public ContentReportServiceImpl()
-
-
Method Details
-
getEnabled
public boolean getEnabled()Returnstrue<if Content Reports are enabled.- Specified by:
getEnabledin interfaceContentReportService- Returns:
true<if Content Reports are enabled
-
findFilteredCollections
public List<FilteredCollection> findFilteredCollections(Context context, Collection<Filter> filters) Retrieves item statistics per collection according to a set of Boolean filters.- Specified by:
findFilteredCollectionsin interfaceContentReportService- 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.- Specified by:
findFilteredItemsin interfaceContentReportService- Parameters:
context- DSpace contextquery- structured query to find items against- Returns:
- a list of items filtered according to the provided query
-
getMetadataFields
public List<MetadataField> getMetadataFields(Context context, String metadataField) throws SQLException Converts a metadata field name to a list ofMetadataFieldinstances (one if no wildcards are used, possibly more otherwise).- Specified by:
getMetadataFieldsin interfaceContentReportService- Parameters:
context- DSpace contextmetadataField- field to search for- Returns:
- a corresponding list of
MetadataFieldentries - Throws:
SQLException
-