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 wrapperAuthorityUtils#convertAuthority(ChoiceAuthority, String, String)- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description VocabularyRestConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description VocabularyRestconvert(ChoiceAuthority authority, Projection projection)Convert a DSpace model object into its equivalent REST resource, applying a given projection.Class<ChoiceAuthority>getModelClass()For what DSpace API model class does this converter convert?
-
-
-
Method Detail
-
convert
public VocabularyRest convert(ChoiceAuthority authority, Projection projection)
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
public Class<ChoiceAuthority> 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.
-
-