Package org.dspace.app.rest
Class WorkflowDefinitionCollectionsLinkRepository
- java.lang.Object
-
- org.dspace.app.rest.repository.AbstractDSpaceRestRepository
-
- org.dspace.app.rest.WorkflowDefinitionCollectionsLinkRepository
-
- All Implemented Interfaces:
LinkRestRepository
@Component("config.workflowdefinition.collections") public class WorkflowDefinitionCollectionsLinkRepository extends AbstractDSpaceRestRepository implements LinkRestRepositoryLink repository for "collections" subresource of an individual workflow definition.- Author:
- Maria Verdonck (Atmire) on 11/12/2019
-
-
Field Summary
Fields Modifier and Type Field Description protected org.dspace.xmlworkflow.factory.XmlWorkflowFactoryxmlWorkflowFactory-
Fields inherited from class org.dspace.app.rest.repository.AbstractDSpaceRestRepository
converter, requestService, utils
-
-
Constructor Summary
Constructors Constructor Description WorkflowDefinitionCollectionsLinkRepository()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.data.domain.Page<CollectionRest>getCollections(javax.servlet.http.HttpServletRequest request, String workflowName, 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.-
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
-
-
-
-
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 objectworkflowName- Name of workflow we want the collections of that are mapped to is- Returns:
- List of collections mapped to the requested workflow
-
-