Package org.dspace.app.rest
Class WorkflowDefinitionStepsLinkRepository
- java.lang.Object
-
- org.dspace.app.rest.repository.AbstractDSpaceRestRepository
-
- org.dspace.app.rest.WorkflowDefinitionStepsLinkRepository
-
- All Implemented Interfaces:
LinkRestRepository
@Component("config.workflowdefinition.steps") public class WorkflowDefinitionStepsLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepositoryLink repository for "steps" subresource of an individual workflow definition.- Author:
- Maria Verdonck (Atmire) on 24/02/2020
-
-
Field Summary
Fields Modifier and Type Field Description protected XmlWorkflowFactoryxmlWorkflowFactory-
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils
-
-
Constructor Summary
Constructors Constructor Description WorkflowDefinitionStepsLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.domain.Page<WorkflowStepRest>getSteps(javax.servlet.http.HttpServletRequest request, String workflowName, org.springframework.data.domain.Pageable optionalPageable, Projection projection)GET endpoint that returns the list of steps of a workflow-definition.-
Methods inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
getRequestService, obtainContext
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.dspace.app.rest.repository.LinkRestRepository
isEmbeddableRelation
-
-
-
-
Field Detail
-
xmlWorkflowFactory
@Autowired protected XmlWorkflowFactory xmlWorkflowFactory
-
-
Method Detail
-
getSteps
@PreAuthorize("hasAuthority(\'AUTHENTICATED\')") public org.springframework.data.domain.Page<WorkflowStepRest> getSteps(@Nullable javax.servlet.http.HttpServletRequest request, String workflowName, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection)GET endpoint that returns the list of steps of a workflow-definition.- Parameters:
request- The request objectworkflowName- Name of workflow we want the steps from- Returns:
- List of steps of the requested workflow
-
-