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 wrapper
AuthorityUtils#convertEntry(Choice, String, String)- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(Choice choice, 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
-
VocabularyEntryDetailsRestConverter
public VocabularyEntryDetailsRestConverter()
-
-
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<Choice,VocabularyEntryDetailsRest> - Parameters:
choice- 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<Choice,VocabularyEntryDetailsRest> - Returns:
- Class of model objects represented.
-