Package org.dspace.app.rest.model
Class VersionRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<Integer>
-
- org.dspace.app.rest.model.VersionRest
-
- All Implemented Interfaces:
Serializable,RestModel
@LinkRest(name="versionhistory",method="getVersionHistory") @LinkRest(name="item",method="getVersionItem") public class VersionRest extends BaseObjectRest<Integer>
The REST object for theVersionobjects- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORYstatic StringITEMstatic StringNAMEstatic StringVERSION_HISTORY-
Fields inherited from interface org.dspace.app.rest.model.RestModel
AUTHENTICATION, AUTHORIZATION, CONFIGURATION, CORE, DISCOVER, EPERSON, INTEGRATION, ROOT, STATISTICS, SUBMISSION, SYSTEM, TOOLS, VERSIONING, WORKFLOW
-
-
Constructor Summary
Constructors Constructor Description VersionRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()ClassgetController()DategetCreated()Generic getter for the createdIntegergetId()Generic getter for the idStringgetSubmitterName()Generic getter for the submitterNameStringgetSummary()Generic getter for the summaryStringgetType()IntegergetVersion()Generic getter for the versionvoidsetCreated(Date created)Generic setter for the createdvoidsetId(Integer id)Generic setter for the idvoidsetSubmitterName(String submitterName)Generic setter for the submitterNamevoidsetSummary(String summary)Generic setter for the summaryvoidsetVersion(Integer version)Generic setter for the version-
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
-
VERSION_HISTORY
public static final String VERSION_HISTORY
- See Also:
- Constant Field Values
-
ITEM
public static final String ITEM
- See Also:
- Constant Field Values
-
-
Method Detail
-
getId
public Integer getId()
Generic getter for the id- Overrides:
getIdin classBaseObjectRest<Integer>- Returns:
- the id value of this VersionRest
-
setId
public void setId(Integer id)
Generic setter for the id- Overrides:
setIdin classBaseObjectRest<Integer>- Parameters:
id- The id to be set on this VersionRest
-
getVersion
public Integer getVersion()
Generic getter for the version- Returns:
- the version value of this VersionRest
-
setVersion
public void setVersion(Integer version)
Generic setter for the version- Parameters:
version- The version to be set on this VersionRest
-
getCreated
public Date getCreated()
Generic getter for the created- Returns:
- the created value of this VersionRest
-
setCreated
public void setCreated(Date created)
Generic setter for the created- Parameters:
created- The created to be set on this VersionRest
-
getSummary
public String getSummary()
Generic getter for the summary- Returns:
- the summary value of this VersionRest
-
setSummary
public void setSummary(String summary)
Generic setter for the summary- Parameters:
summary- The summary to be set on this VersionRest
-
getSubmitterName
public String getSubmitterName()
Generic getter for the submitterName- Returns:
- the submitterName value of this VersionRest
-
setSubmitterName
public void setSubmitterName(String submitterName)
Generic setter for the submitterName- Parameters:
submitterName- The submitterName to be set on this VersionRest
-
getCategory
public String getCategory()
- Specified by:
getCategoryin classRestAddressableModel
-
getController
public Class getController()
- Specified by:
getControllerin classRestAddressableModel
-
getType
public String getType()
-
-