Class LinksetConverter
- java.lang.Object
-
- org.dspace.app.rest.signposting.converter.LinksetConverter
-
- All Implemented Interfaces:
DSpaceConverter<List<Linkset>,LinksetRest>
@Component public class LinksetConverter extends Object implements DSpaceConverter<List<Linkset>,LinksetRest>
This is the converter from/to the Linkset in the DSpace API data model and the REST data model.- Author:
- Francesco Pio Scognamiglio (francescopio.scognamiglio at 4science.com)
-
-
Constructor Summary
Constructors Constructor Description LinksetConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LinksetRestconvert(List<Linkset> linksets, Projection projection)Convert a DSpace model object into its equivalent REST resource, applying a given projection.Class<List<Linkset>>getModelClass()For what DSpace API model class does this converter convert?
-
-
-
Method Detail
-
convert
public LinksetRest convert(List<Linkset> linksets, Projection projection)
Description copied from interface:DSpaceConverterConvert a DSpace model object into its equivalent REST resource, applying a given projection.- Specified by:
convertin interfaceDSpaceConverter<List<Linkset>,LinksetRest>- Parameters:
linksets- a DSpace API model object.- Returns:
- a resource representing the model object.
-
getModelClass
public Class<List<Linkset>> getModelClass()
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Specified by:
getModelClassin interfaceDSpaceConverter<List<Linkset>,LinksetRest>- Returns:
- Class of model objects represented.
-
-