Interface CustomerRequestQuery
@PublicApi
public interface CustomerRequestQuery
Parameters to query
CustomerRequest
which a user has access to.
The following are examples to construct common queries:
// Query of customer requests where the executing user is the creator
CustomerRequestQuery query = customerRequestService.newQueryBuilder().requestStatus(OWNED_REQUESTS).build();
// Query of open customer requests in a service project
CustomerRequestQuery query = customerRequestService.newQueryBuilder().requestOwnership(OPEN_REQUESTS).serviceDesk(serviceDeskId).build();
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic interface
Builder to construct theCustomerRequestQuery
.static enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionTo request a page ofCustomerRequest
Limited result customer requests to those which are raised by executing user, or requests he participated in, or bothLimit result customer requests to those are open, closed, or bothUse thisrequestType()
in combination withserviceDesk()
to narrow the query to theCustomerRequest
's that belong to aRequestType
Filter a customer request on itsIssue
's SummaryNarrows the query to theCustomerRequest
's that belong to aServiceDesk
-
Method Details
-
searchTerm
Filter a customer request on itsIssue
's Summary -
requestOwnership
Optional<CustomerRequestQuery.REQUEST_OWNERSHIP> requestOwnership()Limited result customer requests to those which are raised by executing user, or requests he participated in, or both -
requestStatus
Optional<CustomerRequestQuery.REQUEST_STATUS> requestStatus()Limit result customer requests to those are open, closed, or both -
serviceDesk
Narrows the query to theCustomerRequest
's that belong to aServiceDesk
-
requestType
Use thisrequestType()
in combination withserviceDesk()
to narrow the query to theCustomerRequest
's that belong to aRequestType
-
pagedRequest
LimitedPagedRequest pagedRequest()To request a page ofCustomerRequest
-