Class WorkflowDefinitionCollectionsLinkRepository

java.lang.Object
org.dspace.app.rest.repository.AbstractDSpaceRestRepository
org.dspace.app.rest.WorkflowDefinitionCollectionsLinkRepository
All Implemented Interfaces:
LinkRestRepository

@Component("config.workflowdefinitions.collections") public class WorkflowDefinitionCollectionsLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepository
Link repository for "collections" subresource of an individual workflow definition.
Author:
Maria Verdonck (Atmire) on 11/12/2019
  • Field Details

  • Constructor Details

    • WorkflowDefinitionCollectionsLinkRepository

      public WorkflowDefinitionCollectionsLinkRepository()
  • Method Details

    • getCollections

      @PreAuthorize("hasAuthority(\'AUTHENTICATED\')") public org.springframework.data.domain.Page<CollectionRest> getCollections(@Nullable jakarta.servlet.http.HttpServletRequest request, String workflowName, @Nullable org.springframework.data.domain.Pageable optionalPageable, Projection projection)
      GET endpoint that returns the list of collections that make an explicit use of the workflow-definition. If a collection doesn't specify the workflow-definition to be used, the default mapping applies, but this collection is not included in the list returned by this method.
      Parameters:
      request - The request object
      workflowName - Name of workflow we want the collections of that are mapped to is
      Returns:
      List of collections mapped to the requested workflow