Package com.atlassian.bitbucket.job
Interface JobService
public interface JobService
A service for managing
jobs
.- Since:
- 5.13
-
Method Summary
Modifier and TypeMethodDescriptionlong
countMessages
(JobMessageSearchRequest request) Counts all messages matching the supplied request objectcreate
(JobCreationRequest request) Creates a newJob
from the supplied request objectcreateMessage
(JobMessageCreationRequest request) Creates a newJobMessage
from the supplied request objectgetById
(long jobId) Gets aJob
by its IDsearch
(JobSearchRequest request, PageRequest pageRequest) Finds alljobs
matching the supplied request objectsearchMessages
(JobMessageSearchRequest request, PageRequest pageRequest) Finds alljob messages
matching 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 newJob
from the supplied request object- Parameters:
request
- the request- Returns:
- the new
Job
-
createMessage
Creates a newJobMessage
from the supplied request object- Parameters:
request
- the request- Returns:
- the new
JobMessage
-
search
Finds alljobs
matching 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 messages
matching the supplied request object- Parameters:
request
- the requestpageRequest
- the page request- Returns:
- the page of matching
job messages
-
getById
Gets aJob
by its ID- Parameters:
jobId
- the ID of the job- Returns:
- the matching Job or null if no such
Job
exists
-
update
Updates aJob
- Parameters:
request
- the update request- Returns:
- the updated job
-