The atg/svc/agent/ui/formhandlers/CustomerSearchTreeQueryActor contains actor-chains that perform the following:
Actor-Chain | Description |
|---|---|
| Searches for a customer profile. |
| Clears the saved session search request. |
The search actor-chain is used to search for customer profiles. It identifies the way that the results will display, including the paging and sort order.
Parameter | Description |
|---|---|
| The array size of the fields returned. |
| The number of results per page. The default is set to 10. |
| The page number within the pages of results This parameter is zero-based, with the default set to 0. |
| The maximum number of results to display. The default is set to 100. |
| Which properties should be returned for each result. The default is set to |
| Type of sorting used to display the results. The default is |
| Sets the sort order as ascending or descending. The default is set to |
| The field used to sort the results on. The default is |
| Identifies if the request should be saved within the session. The default is |
| The order property name. |
| The operation, which should be set to |
| The value that is used for searching this field. |
Search Customer Profile Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" -d "{
\"pageNum\":0, \"pageSize\":2, \"fieldCount\":\"1\", \"fields\":
{\"atg-rest-class-type\":\"java.util.ArrayList\", "atg-rest-class-descriptor\" :
{ \"atg-rest-values\" : {\"container-class\" : \"java.util.ArrayList\",
\"element-class\":\"atg.textsearch.client.Field\"}}, \"atg-rest-values\":
[{\"atg-rest-class-type\":\"atg.textsearch.client.Field\", \"name\":
\"lastName\",\"op\": \"starts\",\"value\": \"t\"} ]}}" "http://localhost:8280/
rest/model/atg/svc/agent/ui/formhandlers/CustomerSearchTreeQueryActor/
search"The server response may be similar to the following:
{
"searchResponse": {"items": [
{
"lastName": "Taylor",
"postalCode": "89501",
"phoneNumber": "2125558105",
"email": "chuck@example.com",
"profileId": "se-570105",
"login": "chuck@example.com",
"firstName": "Chuck"
},
{
"lastName": "Thomas",
"postalCode": "59101",
"phoneNumber": "2125558855",
"email": "juan@example.com",
"profileId": "se-570056",
"login": "juan@example.com",
"firstName": "Juan"
}
]},
"pagesAvailable": 2
}
