Class PaginatedJobServiceImpl

java.lang.Object
com.atlassian.bamboo.plan.job.PaginatedJobServiceImpl
All Implemented Interfaces:
PaginatedJobService

public class PaginatedJobServiceImpl extends Object implements PaginatedJobService
  • Constructor Details

  • Method Details

    • getJobsMatchingCapabilities

      @NotNull public @NotNull PaginationResult<ImmutableJob> getJobsMatchingCapabilities(int start, int limit, @NotNull @NotNull ReadOnlyCapabilitySet capabilitySet, @Nullable @Nullable String filter, @NotNull @NotNull 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 interface PaginatedJobService
      Parameters:
      start - - first element on a list, zero-indexed
      limit - - 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 set
      filter - - 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.