Package org.dspace.app.rest.converter
Class VocabularyRestConverter
java.lang.Object
org.dspace.app.rest.converter.VocabularyRestConverter
- All Implemented Interfaces:
DSpaceConverter<ChoiceAuthority,VocabularyRest>
@Component
public class VocabularyRestConverter
extends Object
implements DSpaceConverter<ChoiceAuthority,VocabularyRest>
This is the converter from/to the ChoiceAuthority in the DSpace API data
model and the REST data model
TODO please do not use this convert but use the wrapper
AuthorityUtils#convertAuthority(ChoiceAuthority, String, String)- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(ChoiceAuthority authority, Projection projection) Convert a DSpace model object into its equivalent REST resource, applying a given projection.For what DSpace API model class does this converter convert?
-
Constructor Details
-
VocabularyRestConverter
public VocabularyRestConverter()
-
-
Method Details
-
convert
Description copied from interface:DSpaceConverterConvert a DSpace model object into its equivalent REST resource, applying a given projection.- Specified by:
convertin interfaceDSpaceConverter<ChoiceAuthority,VocabularyRest> - Parameters:
authority- a DSpace API model object.- Returns:
- a resource representing the model object.
-
getModelClass
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Specified by:
getModelClassin interfaceDSpaceConverter<ChoiceAuthority,VocabularyRest> - Returns:
- Class of model objects represented.
-