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 -
Method Summary
Modifier and TypeMethodDescriptionconvert(HarvestedCollection obj, Projection projection) Convert a DSpace model object into its equivalent REST resource, applying a given projection.fromModel(HarvestedCollection obj, Collection collection, List<Map<String, String>> metadata_configs, Projection projection) For what DSpace API model class does this converter convert?
-
Constructor Details
-
HarvestedCollectionConverter
public HarvestedCollectionConverter()
-
-
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<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
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.
-