Package org.dspace.app.rest.model
Class FilteredItemsRest
- All Implemented Interfaces:
Serializable,RestModel
This class serves as a REST representation of a Filtered Items Report.
The name must match that of the associated resource class (FilteredItemsResource) except for
the suffix. This is why it is not named something like FilteredItemsReportRest.
- Author:
- Jean-François Morin (Université Laval)
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringCategory of instances of this class, used by the DSpace REST infrastructurestatic final StringType of instances of this class, used by the DSpace REST infrastructureFields inherited from class org.dspace.app.rest.model.BaseObjectRest
idFields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CONTENT_REPORT, CORE, DISCOVER, DUPLICATES, EPERSON, INTEGRATION, LDN, PID, ROOT, STATISTICS, SUBMISSION, SYSTEM, TOOLS, VERSIONING, WORKFLOW -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>Return controller class responsible for this Rest objectlonggetItems()Returns a defensive copy of the items included in this report.getType()static FilteredItemsRestof(List<FilteredItemRest> items, long itemCount) Builds a FilteredItemsRest instance from a list of items and an total item count.Methods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, getId, setErrors, setIdMethods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjection
-
Field Details
-
NAME
Type of instances of this class, used by the DSpace REST infrastructure- See Also:
-
CATEGORY
Category of instances of this class, used by the DSpace REST infrastructure- See Also:
-
-
Constructor Details
-
FilteredItemsRest
public FilteredItemsRest()
-
-
Method Details
-
of
Builds a FilteredItemsRest instance from a list of items and an total item count. To avoid adding a dependency to any Spring-managed service here, the items provided here are already converted to FilteredItemRest instances.- Parameters:
items- the items to add to the FilteredItemsRest instance to be createditemCount- total number of items found regardless of any pagination constraint- Returns:
- a FilteredItemsRest instance built from the provided data
-
getCategory
- Specified by:
getCategoryin classRestAddressableModel
-
getController
Return controller class responsible for this Rest object- Specified by:
getControllerin classRestAddressableModel- Returns:
- Controller class responsible for this Rest object
-
getType
-
getTypePlural
-
getItems
Returns a defensive copy of the items included in this report.- Returns:
- the items included in this report
-
getItemCount
public long getItemCount()
-