Class 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)
  • Constructor Details

  • Method Details

    • convert

      public WorkflowItemRest convert(XmlWorkflowItem obj, Projection projection)
      Description copied from interface: DSpaceConverter
      Convert 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

      public Class<XmlWorkflowItem> getModelClass()
      Description copied from interface: DSpaceConverter
      For what DSpace API model class does this converter convert?
      Returns:
      Class of model objects represented.
    • supportsModel

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