The EnvironmentChangeActor allows an agent to work with the current catalog. The path to this actor is: /atg/commerce/custsvc/environment/EnvironmentChangeActor.
This actor contains the following catalog actor-chains:
Actor-Chain | Description |
|---|---|
| Selects a catalog and makes it the current catalog. |
| Retrieves the user’s current catalog. |
| Resets the user’s default catalog |
Selecting a Current Catalog
The setCurrentCatalog actor-chain allows an agent to select a catalog and make it the current catalog.
Parameter | Description |
|---|---|
| The ID of the catalog to find. |
Select Catalog Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json"
-d "{\"catalogId\" : \"homeStoreCatalog\"}" "http://localhost:8080/rest/model/
atg/commerce/custsvc/environment/EnvironmentChangeActor/setCurrentCatalog"Retrieving the Current Catalog
The getCurrentCatalog actor-chain retrieves the user’s current catalog.
Parameters: None
Retrieve Current Catalog Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" "http://localhost:8080/rest/model/atg/commerce/custsvc/environment/ EnvironmentChangeActor/getCurrentCatalog"
Resetting the Current Catalog
The setDefaultCatalog actor-chain resets the user’s current default catalog.
Parameters: None
Reset Current Catalog Example
curl -L -v -b agent_cookies.txt -H "Content-Type: application/json" "http://localhost:8080/rest/model/atg/commerce/custsvc/environment/ EnvironmentChangeActor/setDefaultCatalog"

