Package org.dspace.app.rest.model
Class IdentifierRest
- All Implemented Interfaces:
Serializable,RestModel
Implementation of IdentifierRest REST resource, representing some DSpace identifier
for use with the REST API
- Author:
- Kim Shepherd <kim@shepherd.nz>
- See Also:
-
Field Summary
FieldsFields inherited from class org.dspace.app.rest.model.BaseObjectRest
idFields 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
ConstructorsConstructorDescriptionIdentifierRest(String value, String identifierType, String identifierStatus) Constructor that takes a value, type and status for an identifier -
Method Summary
Modifier and TypeMethodDescriptiongetId()Get status of identifier, if relevantGet type of identifier eg 'doi' or 'handle'getType()Return name for getType() - this is the section name and not the type of identifier, see: identifierType stringgetValue()Get the identifier value eg full DOI URLvoidsetIdentifierStatus(String identifierStatus) Set status of identifier, if relevantvoidsetIdentifierType(String identifierType) Set type of identifiervoidSet the identifier valueMethods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, setErrors, setIdMethods 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:
-
-
Constructor Details
-
IdentifierRest
public IdentifierRest() -
IdentifierRest
Constructor that takes a value, type and status for an identifier- Parameters:
value- the identifier value eg. https://doi.org/123/234identifierType- identifier type eg. doiidentifierStatus- identifier status eg. TO_BE_REGISTERED
-
-
Method Details
-
getType
Return name for getType() - this is the section name and not the type of identifier, see: identifierType string -
getTypePlural
- Specified by:
getTypePluralin interfaceRestModel
-
getValue
Get the identifier value eg full DOI URL- Returns:
- identifier value eg. https://doi.org/123/234
-
setValue
Set the identifier value- Parameters:
value- identifier value, eg. https://doi.org/123/234
-
getIdentifierType
Get type of identifier eg 'doi' or 'handle'- Returns:
- type string
-
setIdentifierType
Set type of identifier- Parameters:
identifierType- type string eg 'doi'
-
getIdentifierStatus
Get status of identifier, if relevant- Returns:
- identifierStatus eg. null or TO_BE_REGISTERED
-
setIdentifierStatus
Set status of identifier, if relevant- Parameters:
identifierStatus- eg. null or TO_BE_REGISTERED
-
getCategory
- Specified by:
getCategoryin classRestAddressableModel
-
getId
- Overrides:
getIdin classBaseObjectRest<String>
-
getController
- Specified by:
getControllerin classRestAddressableModel
-