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