THIS IS A TEST INSTANCE. ALL YOUR CHANGES WILL BE LOST!!!!
...
- Get an AccessController instance from Security the Authorization Manager by calling the getAccessController method
- Call the checkPermission method with the desired permission(s)
Code Block | ||||
---|---|---|---|---|
| ||||
// An artifact update method public void doUpdateTask(ExecutionContext executionContext) throws AccessControlException { SecurityAuthorizationManager security = executionContext.getSecurity(); AccessController accessController = security.getAccessController(executionContext); accessController.checkPermission(new UpdatePermission()); ... } |