Package org.dspace.app.rest.converter
Class VocabularyRestConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.VocabularyRestConverter
-
- All Implemented Interfaces:
DSpaceConverter<org.dspace.content.authority.ChoiceAuthority,VocabularyRest>
@Component public class VocabularyRestConverter extends Object implements DSpaceConverter<org.dspace.content.authority.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(org.dspace.content.authority.ChoiceAuthority authority, Projection projection)Class<org.dspace.content.authority.ChoiceAuthority>getModelClass()
-
-
-
Method Detail
-
convert
public VocabularyRest convert(org.dspace.content.authority.ChoiceAuthority authority, Projection projection)
- Specified by:
convertin interfaceDSpaceConverter<org.dspace.content.authority.ChoiceAuthority,VocabularyRest>
-
getModelClass
public Class<org.dspace.content.authority.ChoiceAuthority> getModelClass()
- Specified by:
getModelClassin interfaceDSpaceConverter<org.dspace.content.authority.ChoiceAuthority,VocabularyRest>
-
-