Package org.dspace.app.rest.converter
Class HarvestedCollectionConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.HarvestedCollectionConverter
-
- All Implemented Interfaces:
DSpaceConverter<HarvestedCollection,HarvestedCollectionRest>
@Component public class HarvestedCollectionConverter extends Object implements DSpaceConverter<HarvestedCollection,HarvestedCollectionRest>
This is the converter from/to the HarvestedCollection in the DSpace API data model and the REST data model- Author:
- Jelle Pelgrims (jelle.pelgrims at atmire.com)
-
-
Constructor Summary
Constructors Constructor Description HarvestedCollectionConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description HarvestedCollectionRestconvert(HarvestedCollection obj, Projection projection)Convert a DSpace model object into its equivalent REST resource, applying a given projection.HarvestedCollectionRestfromModel(HarvestedCollection obj, Collection collection, List<Map<String,String>> metadata_configs, Projection projection)Class<HarvestedCollection>getModelClass()For what DSpace API model class does this converter convert?
-
-
-
Method Detail
-
convert
public HarvestedCollectionRest convert(HarvestedCollection obj, Projection projection)
Description copied from interface:DSpaceConverterConvert a DSpace model object into its equivalent REST resource, applying a given projection.- Specified by:
convertin interfaceDSpaceConverter<HarvestedCollection,HarvestedCollectionRest>- Parameters:
obj- a DSpace API model object.- Returns:
- a resource representing the model object.
-
fromModel
public HarvestedCollectionRest fromModel(HarvestedCollection obj, Collection collection, List<Map<String,String>> metadata_configs, Projection projection)
-
getModelClass
public Class<HarvestedCollection> getModelClass()
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Specified by:
getModelClassin interfaceDSpaceConverter<HarvestedCollection,HarvestedCollectionRest>- Returns:
- Class of model objects represented.
-
-