@Policy(permissionRoots = {"CUSTOMER", "CUSTOMER_PROFILE"} # (1)
operationTypes = OperationType.UPDATE, # (2)
permissionMatchingStrategy = PermissionMatchingStrategy.ANY, # (3)
identityTypes = {IdentityType.ADMIN, IdentityType.OWNER}, # (4)
ownerIdentifier = “customer_id”, # (5)
ownerIdentifierParam = 0, # (6)
param = 1) # (7)
@FrameworkGetMapping("/customers/{customerId}")
public void updateCustomer(
@PathVariable("customerId") String customerId, # (6)
@RequestBody Customer customer, # (7)
@ContextOperation(OperationType.UPDATE) ContextInfo contextInfo) {...} # (2)