Package org.dspace.app.rest.model
Class SuggestionRest
- All Implemented Interfaces:
Serializable,RestModel
@LinksRest(links=@LinkRest(name="target",method="getTarget"))
public class SuggestionRest
extends BaseObjectRest<String>
The Suggestion REST Resource. A suggestion is an object, usually a
publication, proposed by a source related to a specific Person (target) to be
imported in the system.
- Author:
- Andrea Bollini (andrea.bollini at 4science.it)
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classinner class to encapsulate score & notes and mapSuggestionEvidence -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final StringFields 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptiongetScore()getType()voidsetDisplay(String display) voidsetEvidences(Map<String, SuggestionRest.EvidenceRest> evidences) voidsetExternalSourceUri(String externalSourceUri) voidsetMetadata(MetadataRest metadata) voidvoidMethods inherited from class org.dspace.app.rest.model.BaseObjectRest
getErrors, getId, 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:
-
TARGET
- See Also:
-
CATEGORY
- See Also:
-
-
Constructor Details
-
SuggestionRest
public SuggestionRest()
-
-
Method Details
-
getType
-
getTypePlural
-
getCategory
- Specified by:
getCategoryin classRestAddressableModel
-
getController
- Specified by:
getControllerin classRestAddressableModel
-
getDisplay
-
setDisplay
-
getSource
-
setSource
-
getExternalSourceUri
-
setExternalSourceUri
-
setScore
-
getScore
-
getEvidences
-
setEvidences
-
getMetadata
-
setMetadata
-