Package org.dspace.app.rest.model
Class VersionHistoryRest
- java.lang.Object
-
- org.dspace.app.rest.model.RestAddressableModel
-
- org.dspace.app.rest.model.BaseObjectRest<Integer>
-
- org.dspace.app.rest.model.VersionHistoryRest
-
- All Implemented Interfaces:
Serializable,RestModel
@LinkRest(name="versions",method="getVersions") @LinkRest(name="draftVersion",method="getDraftVersion") public class VersionHistoryRest extends BaseObjectRest<Integer>
The REST object for theVersionHistoryobject- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description static StringCATEGORYstatic StringDRAFT_VERSIONstatic StringNAMEstatic StringVERSIONS-
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 VersionHistoryRest()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetCategory()ClassgetController()BooleangetDraftVersion()IntegergetId()Generic getter for the idStringgetType()voidsetDraftVersion(Boolean draftVersion)voidsetId(Integer id)Generic setter for the id-
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
-
VERSIONS
public static final String VERSIONS
- See Also:
- Constant Field Values
-
DRAFT_VERSION
public static final String DRAFT_VERSION
- See Also:
- Constant Field Values
-
-
Method Detail
-
getCategory
public String getCategory()
- Specified by:
getCategoryin classRestAddressableModel
-
getController
public Class getController()
- Specified by:
getControllerin classRestAddressableModel
-
getType
public String getType()
-
getId
public Integer getId()
Generic getter for the id- Overrides:
getIdin classBaseObjectRest<Integer>- Returns:
- the id value of this VersionHistoryRest
-
setId
public void setId(Integer id)
Generic setter for the id- Overrides:
setIdin classBaseObjectRest<Integer>- Parameters:
id- The id to be set on this VersionHistoryRest
-
getDraftVersion
public Boolean getDraftVersion()
-
setDraftVersion
public void setDraftVersion(Boolean draftVersion)
-
-