Class: SCIMMY.Messages.SearchRequest
SCIM Search Request Message
Description
Summary:
- Encapsulates HTTP POST data as SCIM SearchRequest messages.
- Provides a method to perform the search request against the declared or specified resource types.
Usage
Instantiate a new SCIM SearchRequest message from the supplied request
                    
                        new SCIMMY.Messages.SearchRequest(requestopt)
                    
                
            - Since:
- 1.0.0
Parameters:
| Name | Type | Description | |||||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
                        requestopt
                     | 
    Object
 | contents of the SearchRequest received by the service provider Properties
 | 
Properties:
| Name | Type | Description | 
|---|---|---|
| 
                        schemas
                     | 
    SCIMMY.Messages.SearchRequest.id[]
 | list exclusively containing the SCIM SearchRequest message schema ID | 
| 
                        filteropt
                     | 
    String
 | the filter to be applied on ingress/egress by implementing resource | 
| 
                        excludedAttributesopt
                     | 
    String[]
 | the string list of attributes or filters to exclude on egress | 
| 
                        attributesopt
                     | 
    String[]
 | the string list of attributes or filters to include on egress | 
| 
                        sortByopt
                     | 
    String
 | the attribute retrieved resources should be sorted by | 
| 
                        sortOrderopt
                     | 
    String
 | the direction retrieved resources should be sorted in | 
| 
                        startIndexopt
                     | 
    Number
 | offset index that retrieved resources should start from | 
| 
                        countopt
                     | 
    Number
 | maximum number of retrieved resources that should be returned in one operation | 
Members
(static) id: "urn:ietf:params:scim:api:messages:2.0:SearchRequest"
SCIM SearchRequest Message Schema ID
- Type:
- {"urn:ietf:params:scim:api:messages:2.0:SearchRequest"}
Methods
prepare(paramsopt) → {SCIMMY.Messages.SearchRequest}
Prepare a new search request for transmission to a service provider
Parameters:
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| 
                        paramsopt
                     | 
    Object
 | details of the search request to be sent to a service provider Properties
 | 
Returns:
this SearchRequest instance for chaining
(async) apply(resourceTypesopt, ctxopt) → {SCIMMY.Messages.ListResponse}
Apply a search request operation, retrieving results from specified resource types
Parameters:
| Name | Type | Description | 
|---|---|---|
| 
                        resourceTypesopt
                     | 
    SCIMMY.Types.Resource[]
 | resource type classes to be used while processing the search request, defaults to declared resources | 
| 
                        ctxopt
                     | 
    *
 | any additional context information to pass to the egress handler | 
Returns:
a ListResponse message with results of the search request
