public interface JobService
jobs.| Modifier and Type | Method and Description |
|---|---|
long |
countMessages(JobMessageSearchRequest request)
Counts all messages matching the supplied request object
|
Job |
create(JobCreationRequest request)
Creates a new
Job from the supplied request object |
JobMessage |
createMessage(JobMessageCreationRequest request)
Creates a new
JobMessage from the supplied request object |
Optional<Job> |
getById(long jobId)
Gets a
Job by its ID |
Page<Job> |
search(JobSearchRequest request,
PageRequest pageRequest)
Finds all
jobs matching the supplied request object |
Page<JobMessage> |
searchMessages(JobMessageSearchRequest request,
PageRequest pageRequest)
Finds all
job messages matching the supplied request object |
Job |
update(JobUpdateRequest request)
Updates a
Job |
long countMessages(@Nonnull JobMessageSearchRequest request)
request - the request@Nonnull Job create(@Nonnull JobCreationRequest request)
Job from the supplied request objectrequest - the requestJob@Nonnull JobMessage createMessage(@Nonnull JobMessageCreationRequest request)
JobMessage from the supplied request objectrequest - the requestJobMessage@Nonnull Page<Job> search(@Nonnull JobSearchRequest request, @Nonnull PageRequest pageRequest)
jobs matching the supplied request objectrequest - the requestpageRequest - the page requestjobs@Nonnull Page<JobMessage> searchMessages(@Nonnull JobMessageSearchRequest request, @Nonnull PageRequest pageRequest)
job messages matching the supplied request objectrequest - the requestpageRequest - the page requestjob messages@Nonnull Optional<Job> getById(long jobId)
Job by its IDjobId - the ID of the jobJob exists@Nonnull Job update(@Nonnull JobUpdateRequest request)
Jobrequest - the update requestCopyright © 2019 Atlassian. All rights reserved.