Interface PaginatedJobService

All Known Implementing Classes:
PaginatedJobServiceImpl

public interface PaginatedJobService
  • Method Details

    • getJobsMatchingCapabilities

      @Nonnull PaginationResult<ImmutableJob> getJobsMatchingCapabilities(int start, int limit, @Nonnull ReadOnlyCapabilitySet capabilitySet, @Nullable String filter, @Nonnull Iterable<AgentAssignmentService.AgentAssignmentExecutor> agentDedications)
      Returns a paginated list of jobs matching given capabilities. List is ordered by the job's project name, plan name and job name.
      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.