Package org.dspace.contentreport
Class FilteredCollections
java.lang.Object
org.dspace.contentreport.FilteredCollections
- All Implemented Interfaces:
Serializable
This class represents the complete result of a Filtered Collections report query.
In addition to the list of FilteredCollection entries, it contains the lazily computed
summary to be included in the completed report.
- Author:
- Jean-François Morin (Université Laval)
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds aFilteredCollectionRestobject to this report.Returns a defensive copy of the collections included in this report.Returns the report summary.static FilteredCollectionsof(Collection<FilteredCollection> collections) Shortcut method that builds a FilteredCollectionsRest instance from its building blocks.voidsetCollections(List<FilteredCollection> collections) Sets all collections for this report.
-
Constructor Details
-
FilteredCollections
public FilteredCollections()
-
-
Method Details
-
of
Shortcut method that builds a FilteredCollectionsRest instance from its building blocks.- Parameters:
collections- a list of FilteredCollectionRest instances- Returns:
- a FilteredCollectionsRest instance built from the provided parameters
-
getCollections
Returns a defensive copy of the collections included in this report.- Returns:
- the collections included in this report
-
addCollection
Adds aFilteredCollectionRestobject to this report.- Parameters:
coll-FilteredCollectionRestto add to this report
-
setCollections
Sets all collections for this report. The contents are copied into this object's internal list, which is protected against further tampering with the provided list.- Parameters:
collections- Values that replace the current ones
-
getSummary
Returns the report summary. If the summary has not been computed yet and/or the report includes non-sealed collections, it will be regenerated.- Returns:
- the generated report summary
-