Package org.dspace.app.rest.model
Class 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 the
VersionHistory object- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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 TypeMethodDescriptiongetId()Generic getter for the idgetType()voidsetDraftVersion(Boolean draftVersion) voidGeneric setter for the idMethods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, setErrorsMethods 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:
-
VERSIONS
- See Also:
-
DRAFT_VERSION
- See Also:
-
-
Constructor Details
-
VersionHistoryRest
public VersionHistoryRest()
-
-
Method Details
-
getCategory
- Specified by:
getCategoryin classRestAddressableModel
-
getController
- Specified by:
getControllerin classRestAddressableModel
-
getType
-
getTypePlural
-
getId
Generic getter for the id- Overrides:
getIdin classBaseObjectRest<Integer>- Returns:
- the id value of this VersionHistoryRest
-
setId
Generic setter for the id- Overrides:
setIdin classBaseObjectRest<Integer>- Parameters:
id- The id to be set on this VersionHistoryRest
-
getDraftVersion
-
setDraftVersion
-