Class WorkflowDefinitionCollectionsLinkRepository

  • All Implemented Interfaces:
    LinkRestRepository

    @Component("config.workflowdefinition.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 Detail

      • xmlWorkflowFactory

        @Autowired
        protected org.dspace.xmlworkflow.factory.XmlWorkflowFactory xmlWorkflowFactory
    • Constructor Detail

      • WorkflowDefinitionCollectionsLinkRepository

        public WorkflowDefinitionCollectionsLinkRepository()
    • Method Detail

      • getCollections

        @PreAuthorize("hasAuthority(\'AUTHENTICATED\')")
        public org.springframework.data.domain.Page<CollectionRest> getCollections​(@Nullable
                                                                                   javax.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