Interface RequestTypeQuery.Builder
- Enclosing interface:
- RequestTypeQuery
@PublicApi
public static interface RequestTypeQuery.Builder
Builder to construct the
RequestTypeQuery
.
A LimitedPagedRequest
is always constructed in the query parameter, and used the default value if none is provided
-
Method Summary
Modifier and TypeMethodDescriptionbuild()
Build the queryfilterHidden
(Boolean filter) Limit results to request types that are not hidden (eg, have no groups)Limit results to request types that belong to the specifiedRequestTypeGroup
idRetrieve a specificRequestType
associated to the customer request backed by thisIssue
, if any.Limit results to only request types that are valid.pagedRequest
(PagedRequest pagedRequest) To query a pagePagedRequest
ofRequestType
requestOverrideSecurity
(Boolean requestOverrideSecurity) Use thisrequestOverrideSecurity
flag to execute query without checking permission of the user executing this requestrequestType
(Integer requestType) restrictionStatusFilter
(Collection<RequestTypeRestrictionStatus> restrictionStatus) Limit results to request types that match the restriction status filter.serviceDesk
(Integer serviceDesk) Narrows the query to theRequestType
's that belong to aServiceDesk
-
Method Details
-
serviceDesk
Narrows the query to theRequestType
's that belong to aServiceDesk
-
requestType
-
group
Limit results to request types that belong to the specifiedRequestTypeGroup
id -
issue
Retrieve a specificRequestType
associated to the customer request backed by thisIssue
, if any.This does not work with
RequestTypeQuery.requestType()
orRequestTypeQuery.serviceDesk()
-
requestOverrideSecurity
Use thisrequestOverrideSecurity
flag to execute query without checking permission of the user executing this requestThis should only be used when performing administrative tasks where you need access regardless of permissions or without a user.
- Since:
- v3.7.0
-
pagedRequest
To query a pagePagedRequest
ofRequestType
-
isValid
Limit results to only request types that are valid. Only valid request types appear on the Customer Portal. -
filterHidden
Limit results to request types that are not hidden (eg, have no groups) -
build
RequestTypeQuery build()Build the query -
restrictionStatusFilter
RequestTypeQuery.Builder restrictionStatusFilter(Collection<RequestTypeRestrictionStatus> restrictionStatus) Limit results to request types that match the restriction status filter. When restrictionStatusFilter is empty, this filter will not be considered. When restrictionStatusFilter has OPEN, this filter allow request types that without restrictions. When restrictionStatusFilter has RESTRICTED, this filter allow request types that have restrictions which the user can use to create requests. When restrictionStatusFilter has both OPEN and RESTRICTED, this filter will return both no-restriction and restricted request types that user can use to create requests.- Parameters:
restrictionStatus
- the restriction status to filter by- Since:
- v10.0.0
-