@ParametersAreNonnullByDefault @ReturnValuesAreNonnullByDefault @PublicApi public interface ServiceDeskCustomerRequestService
CustomerRequest
Modifier and Type | Method and Description |
---|---|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> |
createCustomerRequest(com.atlassian.jira.user.ApplicationUser user,
CustomerRequestCreateParameters customerRequestCreateParameters)
Create a customer request using the given parameter
|
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<CustomerRequest>> |
getCustomerRequests(com.atlassian.jira.user.ApplicationUser user,
CustomerRequestQuery customerRequestQuery)
Retrieve a page of
CustomerRequest that satisfies the query parameters |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<CustomerRequest.CustomerRequestStatus>> |
getCustomerRequestStatus(com.atlassian.jira.user.ApplicationUser user,
CustomerRequestStatusQuery query)
Retrieve a page of
CustomerRequest.CustomerRequestStatus of a CustomerRequest by chronological order in which the status transition taken place |
CustomerRequestCreateParameters.Builder |
newCreateBuilder()
Create a builder to build
CustomerRequestCreateParameters |
CustomerRequestQuery.Builder |
newQueryBuilder()
Get the builder to build
CustomerRequestQuery |
CustomerRequestStatusQuery.Builder |
newStatusQueryBuilder()
Create a builder to build
CustomerRequestStatusQuery |
CustomerRequestUpdateParameters.Builder |
newUpdateBuilder()
Create a builder to build
CustomerRequestUpdateParameters |
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> |
updateCustomerRequest(com.atlassian.jira.user.ApplicationUser user,
CustomerRequestUpdateParameters customerRequestUpdateParameters)
Update the
CustomerRequest using the given parameters |
CustomerRequestCreateParameters.Builder newCreateBuilder()
CustomerRequestCreateParameters
com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> createCustomerRequest(@Nullable com.atlassian.jira.user.ApplicationUser user, CustomerRequestCreateParameters customerRequestCreateParameters)
user
- the user exciting the requestcustomerRequestCreateParameters
- the request create parameter. Refer to RequestTypeFieldService.getCustomerRequestCreateMeta(ApplicationUser, RequestTypeFieldQuery)
on how to construct it@Nonnull CustomerRequestQuery.Builder newQueryBuilder()
CustomerRequestQuery
@Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<CustomerRequest>> getCustomerRequests(@Nullable com.atlassian.jira.user.ApplicationUser user, CustomerRequestQuery customerRequestQuery)
CustomerRequest
that satisfies the query parametersuser
- the user executing the requestscustomerRequestQuery
- the query parameterCustomerRequest
if successful retrieval, or AnError
if failure@Nonnull CustomerRequestUpdateParameters.Builder newUpdateBuilder()
CustomerRequestUpdateParameters
@Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,CustomerRequest> updateCustomerRequest(@Nullable com.atlassian.jira.user.ApplicationUser user, @Nonnull CustomerRequestUpdateParameters customerRequestUpdateParameters)
CustomerRequest
using the given parametersuser
- the user executing the requestcustomerRequestUpdateParameters
- parameters to update the customer requestCustomerRequest
if succeeded, or AnError
if update failureCustomerRequestStatusQuery.Builder newStatusQueryBuilder()
CustomerRequestStatusQuery
@Nonnull com.atlassian.fugue.Either<com.atlassian.pocketknife.api.commons.error.AnError,PagedResponse<CustomerRequest.CustomerRequestStatus>> getCustomerRequestStatus(@Nullable com.atlassian.jira.user.ApplicationUser user, CustomerRequestStatusQuery query)
CustomerRequest.CustomerRequestStatus
of a CustomerRequest
by chronological order in which the status transition taken placeuser
- the user executing the queryquery
- the request status queryAnError
if failure, or a paged collection of CustomerRequest.CustomerRequestStatus
Copyright © 2019 Atlassian. All rights reserved.