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.workflowdefinitions.steps")
public class WorkflowDefinitionStepsLinkRepository
extends AbstractDSpaceRestRepository
implements LinkRestRepository
Link repository for "steps" subresource of an individual workflow definition.
- Author:
- Maria Verdonck (Atmire) on 24/02/2020
-
Field Summary
FieldsFields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.data.domain.Page<WorkflowStepRest>getSteps(jakarta.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, obtainContextMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.dspace.app.rest.repository.LinkRestRepository
isEmbeddableRelation
-
Field Details
-
xmlWorkflowFactory
-
-
Constructor Details
-
WorkflowDefinitionStepsLinkRepository
public WorkflowDefinitionStepsLinkRepository()
-
-
Method Details
-
getSteps
@PreAuthorize("hasAuthority(\'AUTHENTICATED\')") public org.springframework.data.domain.Page<WorkflowStepRest> getSteps(@Nullable jakarta.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
-