Package com.atlassian.bamboo.plan.job
Class PaginatedJobServiceImpl
java.lang.Object
com.atlassian.bamboo.plan.job.PaginatedJobServiceImpl
- All Implemented Interfaces:
PaginatedJobService
-
Constructor Summary
ConstructorDescriptionPaginatedJobServiceImpl
(PaginatedDataCollector paginatedDataCollector, BambooCachingPermissionManagerFacade cachingPermissionManagerFacade, CapabilityRequirementsMatcher capabilityRequirementsMatcher, CachedPlanManager cachedPlanManager, AgentAssignmentService agentAssignmentService) -
Method Summary
Modifier and TypeMethodDescriptiongetJobsMatchingCapabilities
(int start, int limit, ReadOnlyCapabilitySet capabilitySet, String filter, Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentDedications) Returns a paginated list of jobs matching given capabilities.
-
Constructor Details
-
PaginatedJobServiceImpl
@Inject public PaginatedJobServiceImpl(PaginatedDataCollector paginatedDataCollector, BambooCachingPermissionManagerFacade cachingPermissionManagerFacade, CapabilityRequirementsMatcher capabilityRequirementsMatcher, CachedPlanManager cachedPlanManager, AgentAssignmentService agentAssignmentService)
-
-
Method Details
-
getJobsMatchingCapabilities
@Nonnull public PaginationResult<ImmutableJob> getJobsMatchingCapabilities(int start, int limit, @Nonnull ReadOnlyCapabilitySet capabilitySet, @Nullable String filter, @Nonnull Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentDedications) Description copied from interface:PaginatedJobService
Returns a paginated list of jobs matching given capabilities. List is ordered by the job's project name, plan name and job name.- Specified by:
getJobsMatchingCapabilities
in interfacePaginatedJobService
- Parameters:
start
- - first element on a list, zero-indexedlimit
- - maximum number of elements on a list. Method will return smaller amount if the total number of matching elements is lower than the limit.capabilitySet
- - the agent's capability setfilter
- - text that the results will be filtered by. Filtering will return the job if any part of a project, plan or the job name contains the provided string. Filtering is case-insensitive.agentDedications
- - Buildables this executor is dedicated to- Returns:
- list of jobs matching requirement, limited to the requested size.
-