Package org.dspace.app.rest.converter
Class SubmissionSectionConverter
- java.lang.Object
-
- org.dspace.app.rest.converter.SubmissionSectionConverter
-
- All Implemented Interfaces:
DSpaceConverter<org.dspace.app.util.SubmissionStepConfig,SubmissionSectionRest>
@Component public class SubmissionSectionConverter extends Object implements DSpaceConverter<org.dspace.app.util.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(org.dspace.app.util.SubmissionStepConfig step, Projection projection)Convert a DSpace model object into its equivalent REST resource, applying a given projection.Class<org.dspace.app.util.SubmissionStepConfig>getModelClass()For what DSpace API model class does this converter convert?org.dspace.app.util.SubmissionConfigReadergetSubmissionConfigReader()org.dspace.app.util.SubmissionStepConfigtoModel(SubmissionSectionRest obj)
-
-
-
Method Detail
-
convert
public SubmissionSectionRest convert(org.dspace.app.util.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<org.dspace.app.util.SubmissionStepConfig,SubmissionSectionRest>- Parameters:
step- a DSpace API model object.- Returns:
- a resource representing the model object.
-
toModel
public org.dspace.app.util.SubmissionStepConfig toModel(SubmissionSectionRest obj)
-
getModelClass
public Class<org.dspace.app.util.SubmissionStepConfig> getModelClass()
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Specified by:
getModelClassin interfaceDSpaceConverter<org.dspace.app.util.SubmissionStepConfig,SubmissionSectionRest>- Returns:
- Class of model objects represented.
-
getSubmissionConfigReader
public org.dspace.app.util.SubmissionConfigReader getSubmissionConfigReader() throws org.dspace.app.util.SubmissionConfigReaderException- Throws:
org.dspace.app.util.SubmissionConfigReaderException
-
-