...
clamp GUI - PolicyService.js endpoints
- GET restservices/clds/v2/policies
- POST restservices/clds/v2/policies/{policyModelType}/{policyModelVersion}/{policyName}/{policyVersion}
- DELETE restservices/clds/v2/policies/{policyModelType}/{policyModelVersion}/{policyName}/{policyVersion}
- PUT restservices/clds/v2/policies/pdpDeployment
- POST restservices/clds/v2/policies/policytype
Flow GET restservices/clds/v2/policies
...
Flow POST restservices/clds/v2/policies/policytype
clamp-api-v2.xml:
- call calls "direct:create-policy-type" in policy-flows.xml that calls POST "/policy/api/v1/policytypes"
- call calls PolicyEngineController.synchronizeAllPolicies() that download All PolicyModels
Clamp - @Scheduled(fixedRate = 300000)
- calls PolicyEngineServices.synchronizeAllPolicies() that download All PolicyModels and synchronize the clamp database and the policy engine. So it creates the required PolicyModel.
- calls PolicyEngineServices.downloadPdpGroups that download All PdpGroups and Update the Pdp Group info in Policy Model DB.