Package com.atlassian.bitbucket.job
Interface JobService
public interface JobService
A service for managing
jobs.- Since:
- 5.13
-
Method Summary
Modifier and TypeMethodDescriptionlongcountMessages(JobMessageSearchRequest request) Counts all messages matching the supplied request objectcreate(JobCreationRequest request) Creates a newJobfrom the supplied request objectcreateMessage(JobMessageCreationRequest request) Creates a newJobMessagefrom the supplied request objectgetById(long jobId) Gets aJobby its IDsearch(JobSearchRequest request, PageRequest pageRequest) Finds alljobsmatching the supplied request objectsearchMessages(JobMessageSearchRequest request, PageRequest pageRequest) Finds alljob messagesmatching the supplied request objectupdate(JobUpdateRequest request) Updates aJob
-
Method Details
-
countMessages
Counts all messages matching the supplied request object- Parameters:
request- the request- Returns:
- the number of matching messages
-
create
Creates a newJobfrom the supplied request object- Parameters:
request- the request- Returns:
- the new
Job
-
createMessage
Creates a newJobMessagefrom the supplied request object- Parameters:
request- the request- Returns:
- the new
JobMessage
-
search
Finds alljobsmatching the supplied request object- Parameters:
request- the requestpageRequest- the page request- Returns:
- the page of matching
jobs
-
searchMessages
@Nonnull Page<JobMessage> searchMessages(@Nonnull JobMessageSearchRequest request, @Nonnull PageRequest pageRequest) Finds alljob messagesmatching the supplied request object- Parameters:
request- the requestpageRequest- the page request- Returns:
- the page of matching
job messages
-
getById
Gets aJobby its ID- Parameters:
jobId- the ID of the job- Returns:
- the matching Job or null if no such
Jobexists
-
update
Updates aJob- Parameters:
request- the update request- Returns:
- the updated job
-