Class WorkflowItemConverter

  • All Implemented Interfaces:
    DSpaceConverter<org.dspace.xmlworkflow.storedcomponents.XmlWorkflowItem,​WorkflowItemRest>, IndexableObjectConverter<org.dspace.xmlworkflow.storedcomponents.XmlWorkflowItem,​WorkflowItemRest>

    @Component
    public class WorkflowItemConverter
    extends AInprogressItemConverter<org.dspace.xmlworkflow.storedcomponents.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)
    • Constructor Detail

      • WorkflowItemConverter

        public WorkflowItemConverter()
                              throws org.dspace.app.util.SubmissionConfigReaderException
        Throws:
        org.dspace.app.util.SubmissionConfigReaderException
    • Method Detail

      • convert

        public WorkflowItemRest convert​(org.dspace.xmlworkflow.storedcomponents.XmlWorkflowItem obj,
                                        Projection projection)
      • getModelClass

        public Class<org.dspace.xmlworkflow.storedcomponents.XmlWorkflowItem> getModelClass()
      • supportsModel

        public boolean supportsModel​(org.dspace.discovery.IndexableObject object)
        Parameters:
        object - the IndexableObject to check
        Returns:
        true if the actual converter implementation is able to manage the supplied IndexableObject