Package org.dspace.app.rest.converter
Class WorkflowItemConverter
java.lang.Object
org.dspace.app.rest.converter.AInprogressItemConverter<XmlWorkflowItem,WorkflowItemRest>
org.dspace.app.rest.converter.WorkflowItemConverter
- All Implemented Interfaces:
DSpaceConverter<XmlWorkflowItem,,WorkflowItemRest> IndexableObjectConverter<XmlWorkflowItem,WorkflowItemRest>
@Component
public class WorkflowItemConverter
extends AInprogressItemConverter<XmlWorkflowItem,WorkflowItemRest>
This is the converter from/to the WorkflowItem in the DSpace API data model
and the REST data model
- Author:
- Andrea Bollini (andrea.bollini at 4science.it), Luigi Andrea Pascarelli (luigiandrea.pascarelli at 4science.it)
-
Field Summary
Fields inherited from class org.dspace.app.rest.converter.AInprogressItemConverter
submissionConfigService -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionconvert(XmlWorkflowItem obj, Projection projection) Convert a DSpace model object into its equivalent REST resource, applying a given projection.For what DSpace API model class does this converter convert?booleansupportsModel(IndexableObject object) Methods inherited from class org.dspace.app.rest.converter.AInprogressItemConverter
fillFromModel
-
Constructor Details
-
WorkflowItemConverter
- Throws:
SubmissionConfigReaderException
-
-
Method Details
-
convert
Description copied from interface:DSpaceConverterConvert a DSpace model object into its equivalent REST resource, applying a given projection.- Parameters:
obj- a DSpace API model object.- Returns:
- a resource representing the model object.
-
getModelClass
Description copied from interface:DSpaceConverterFor what DSpace API model class does this converter convert?- Returns:
- Class of model objects represented.
-
supportsModel
- Parameters:
object- the IndexableObject to check- Returns:
- true if the actual converter implementation is able to manage the supplied IndexableObject
-