Package org.dspace.app.rest.model
Class UsageReportRest
- All Implemented Interfaces:
Serializable,RestModel
This class serves as a REST representation of a Usage Report from the DSpace statistics
- Author:
- Maria Verdonck (Atmire) on 08/06/2020
- See Also:
-
Field Summary
FieldsFields 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 TypeMethodDescriptionvoidaddPoint(UsageReportPointRest point) Adds aUsageReportPointRestobject to thisUsageReportRestobjectReturns the category of this Rest object,CATEGORYReturn controller class responsible for this Rest objectReturns the list ofUsageReportPointRestobjects attached to thisUsageReportRestobject, or empty list if noneReturns the report type of this UsageReport, options listed inUsageReportUtils, e.g.getType()Returns the type of thisUsageReportRestobjectvoidsetPoints(List<UsageReportPointRest> points) Set allUsageReportPointRestobjects on thisUsageReportRestobjectvoidsetReportType(String reportType) Sets the report type of this UsageReport, options listed inUsageReportUtils, e.g.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
- See Also:
-
PLURAL_NAME
- See Also:
-
CATEGORY
- See Also:
-
-
Constructor Details
-
UsageReportRest
public UsageReportRest()
-
-
Method Details
-
getCategory
Returns the category of this Rest object,CATEGORY- Specified by:
getCategoryin classRestAddressableModel- Returns:
- The category of this Rest object,
CATEGORY
-
getController
Return controller class responsible for this Rest object- Specified by:
getControllerin classRestAddressableModel- Returns:
- Controller class responsible for this Rest object
-
getType
Returns the type of thisUsageReportRestobject- Returns:
- Type of this
UsageReportRestobject
-
getTypePlural
-
getReportType
Returns the report type of this UsageReport, options listed inUsageReportUtils, e.g.UsageReportUtils.TOTAL_VISITS_REPORT_ID- Returns:
- The report type of this UsageReport, options listed in
UsageReportUtils, e.g.UsageReportUtils.TOTAL_VISITS_REPORT_ID
-
setReportType
Sets the report type of this UsageReport, options listed inUsageReportUtils, e.g.UsageReportUtils.TOTAL_VISITS_REPORT_ID- Parameters:
reportType- The report type of this UsageReport, options listed inUsageReportUtils, e.g.UsageReportUtils.TOTAL_VISITS_REPORT_ID
-
getPoints
Returns the list ofUsageReportPointRestobjects attached to thisUsageReportRestobject, or empty list if none- Returns:
- The list of
UsageReportPointRestobjects attached to thisUsageReportRestobject, or empty list if none
-
addPoint
Adds aUsageReportPointRestobject to thisUsageReportRestobject- Parameters:
point-UsageReportPointRestto add to thisUsageReportRestobject
-
setPoints
Set allUsageReportPointRestobjects on thisUsageReportRestobject- Parameters:
points- AllUsageReportPointRestobjects on thisUsageReportRestobject
-