Package org.dspace.app.rest.converter
Class SubmissionSectionConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.SubmissionSectionConverter
-
- All Implemented Interfaces:
DSpaceConverter<SubmissionStepConfig,SubmissionSectionRest>
@Component public class SubmissionSectionConverter extends Object implements DSpaceConverter<SubmissionStepConfig,SubmissionSectionRest>
This is the converter from/to the SubmissionStepConfig in the DSpace API data model and the REST data model- Author:
- Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
-
Constructor Summary
Constructors Constructor Description SubmissionSectionConverter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SubmissionSectionRestconvert(SubmissionStepConfig step, Projection projection)Convert a DSpace model object into its equivalent REST resource, applying a given projection.Class<SubmissionStepConfig>getModelClass()For what DSpace API model class does this converter convert?SubmissionConfigReadergetSubmissionConfigReader()SubmissionStepConfigtoModel(SubmissionSectionRest obj)
-
-
-
Method Detail
-
convert
public SubmissionSectionRest convert(SubmissionStepConfig step, Projection projection)
Description copied from interface:DSpaceConverterConvert a DSpace model object into its equivalent REST resource, applying a given projection.- Specified by:
convertin interfaceDSpaceConverter<SubmissionStepConfig,SubmissionSectionRest>- Parameters:
step- a DSpace API model object.- Returns:
- a resource representing the model object.
-
toModel
public SubmissionStepConfig toModel(SubmissionSectionRest obj)
-
getModelClass
public Class<SubmissionStepConfig> getModelClass()
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Specified by:
getModelClassin interfaceDSpaceConverter<SubmissionStepConfig,SubmissionSectionRest>- Returns:
- Class of model objects represented.
-
getSubmissionConfigReader
public SubmissionConfigReader getSubmissionConfigReader() throws SubmissionConfigReaderException
- Throws:
SubmissionConfigReaderException
-
-