Package org.dspace.app.rest.model
Class UsageReportRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<String>
-
- org.dspace.app.rest.model.UsageReportRest
-
- All Implemented Interfaces:
Serializable,RestModel
public class UsageReportRest extends BaseObjectRest<String>
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:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORYstatic StringNAME-
Fields inherited from class org.dspace.app.rest.model.BaseObjectRest
id
-
Fields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CORE, DISCOVER, EPERSON, INTEGRATION, ROOT, STATISTICS, SUBMISSION, SYSTEM, VERSIONING, WORKFLOW
-
-
Constructor Summary
Constructors Constructor Description UsageReportRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddPoint(UsageReportPointRest point)Adds aUsageReportPointRestobject to thisUsageReportRestobjectStringgetCategory()Returns the category of this Rest object,CATEGORYClassgetController()Return controller class responsible for this Rest objectList<UsageReportPointRest>getPoints()Returns the list ofUsageReportPointRestobjects attached to thisUsageReportRestobject, or empty list if noneStringgetReportType()Returns the report type of this UsageReport, options listed inUsageReportUtils, e.g.StringgetType()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, setId
-
Methods inherited from class org.dspace.app.rest.model.RestAddressableModel
getEmbedLevel, getProjection, getUniqueType, setEmbedLevel, setProjection
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.model.RestModel
getTypePlural
-
-
-
-
Field Detail
-
NAME
public static final String NAME
- See Also:
- Constant Field Values
-
CATEGORY
public static final String CATEGORY
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCategory
public String getCategory()
Returns the category of this Rest object,CATEGORY- Specified by:
getCategoryin classRestAddressableModel- Returns:
- The category of this Rest object,
CATEGORY
-
getController
public Class getController()
Return controller class responsible for this Rest object- Specified by:
getControllerin classRestAddressableModel- Returns:
- Controller class responsible for this Rest object
-
getType
public String getType()
Returns the type of thisUsageReportRestobject- Returns:
- Type of this
UsageReportRestobject
-
getReportType
public String 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
public void setReportType(String reportType)
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
public List<UsageReportPointRest> 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
public void addPoint(UsageReportPointRest point)
Adds aUsageReportPointRestobject to thisUsageReportRestobject- Parameters:
point-UsageReportPointRestto add to thisUsageReportRestobject
-
setPoints
public void setPoints(List<UsageReportPointRest> points)
Set allUsageReportPointRestobjects on thisUsageReportRestobject- Parameters:
points- AllUsageReportPointRestobjects on thisUsageReportRestobject
-
-