Package org.dspace.app.rest.model
Class UsageReportPointRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<String>
-
- org.dspace.app.rest.model.UsageReportPointRest
-
- All Implemented Interfaces:
Serializable,RestModel
- Direct Known Subclasses:
UsageReportPointCityRest,UsageReportPointCountryRest,UsageReportPointDateRest,UsageReportPointDsoTotalVisitsRest
public class UsageReportPointRest extends BaseObjectRest<String>
This class serves as a REST representation of a Point of aUsageReportRestfrom the DSpace statistics- Author:
- Maria Verdonck (Atmire) on 08/06/2020
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORYprotected Stringidprotected Stringlabelstatic StringNAME-
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 UsageReportPointRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddValue(String key, Integer value)Add a value pair to thisUsageReportPointRestobject's valuesStringgetCategory()Returns the category of this Rest object,CATEGORYClassgetController()Return controller class responsible for this Rest objectStringgetId()Returns the id of thisUsageReportPointRestobject, of the form: type of UsageReport_dso uuidStringgetLabel()Returns label of thisUsageReportPointRestobject, e.g.StringgetType()Returns the type of thisUsageReportPointRestobjectMap<String,Integer>getValues()Returns the values of thisUsageReportPointRestobject, containing the amount of viewsvoidsetId(String id)Set the id of thisUsageReportPointRestobject, of the form: type of UsageReport_dso uuidvoidsetLabel(String label)Sets the label of thisUsageReportPointRestobject, e.g.voidsetValues(Map<String,Integer> values)Sets all values of thisUsageReportPointRestobject-
Methods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, setErrors
-
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
-
id
protected String id
-
label
protected String label
-
-
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 thisUsageReportPointRestobject- Returns:
- Type of this
UsageReportPointRestobject
-
getValues
public Map<String,Integer> getValues()
Returns the values of thisUsageReportPointRestobject, containing the amount of views- Returns:
- The values of this
UsageReportPointRestobject, containing the amount of views
-
getId
public String getId()
Returns the id of thisUsageReportPointRestobject, of the form: type of UsageReport_dso uuid- Overrides:
getIdin classBaseObjectRest<String>- Returns:
- The id of this
UsageReportPointRestobject, of the form: type of UsageReport_dso uuid
-
setId
public void setId(String id)
Set the id of thisUsageReportPointRestobject, of the form: type of UsageReport_dso uuid- Overrides:
setIdin classBaseObjectRest<String>- Parameters:
id- The id of thisUsageReportPointRestobject, of the form: type of UsageReport_dso uuid
-
addValue
public void addValue(String key, Integer value)
Add a value pair to thisUsageReportPointRestobject's values- Parameters:
key- Key of new value pairvalue- Value of new value pair
-
setValues
public void setValues(Map<String,Integer> values)
Sets all values of thisUsageReportPointRestobject- Parameters:
values- All values of thisUsageReportPointRestobject
-
getLabel
public String getLabel()
Returns label of thisUsageReportPointRestobject, e.g. the dso's name- Returns:
- Label of this
UsageReportPointRestobject, e.g. the dso's name
-
setLabel
public void setLabel(String label)
Sets the label of thisUsageReportPointRestobject, e.g. the dso's name- Parameters:
label- Label of thisUsageReportPointRestobject, e.g. the dso's name
-
-