@Override public void handleRollback(OperationContext context, ModelNode operation) { Object undoKey = authorizerConfiguration.removeRoleMapping(roleName); if (undoKey == null) { // Despite being added the role could not be removed. context.restartRequired(); } } });
@Override public void handleRollback(OperationContext context, ModelNode operation) { Object undoKey = authorizerConfiguration.removeRoleMapping(roleName); if (undoKey == null) { // Despite being added the role could not be removed. context.restartRequired(); } } });
@Override public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { Object undoKey = authorizerConfiguration.removeRoleMapping(roleName); if (undoKey == null) { context.restartRequired(); throw DomainManagementLogger.ROOT_LOGGER.inconsistentRbacRuntimeState(); } registerRollbackHandler(context, undoKey); } }, Stage.RUNTIME);
@Override public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { Object undoKey = authorizerConfiguration.removeRoleMapping(roleName); if (undoKey == null) { context.restartRequired(); throw DomainManagementLogger.ROOT_LOGGER.inconsistentRbacRuntimeState(); } registerRollbackHandler(context, undoKey); } }, Stage.RUNTIME);