public void restartRequired() { restart = true; operationContext.restartRequired(); }
public void restartRequired() { restart = true; operationContext.restartRequired(); }
public void restartRequired() { restart = true; operationContext.restartRequired(); }
public void restartRequired() { restart = true; operationContext.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 handleRollback(OperationContext context, ModelNode operation) { if (authorizerConfiguration.removeRoleMappingPrincipal(roleName, principalType, matchType, name, realm) == false) { context.restartRequired(); } } });
@Override public void handleRollback(OperationContext context, ModelNode operation) { if (authorizerConfiguration.addRoleMappingPrincipal(roleName, principalType, matchType, name, realm, false) == false) { context.restartRequired(); } } });
@Override public void handleRollback(OperationContext context, ModelNode operation) { if (authorizerConfiguration.undoRoleMappingRemove(undoKey) == false) { 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 handleRollback(OperationContext context, ModelNode operation) { if (authorizerConfiguration.removeRoleMappingPrincipal(roleName, principalType, matchType, name, realm) == false) { context.restartRequired(); } } });
@Override public void handleRollback(OperationContext context, ModelNode operation) { if (authorizerConfiguration.addRoleMappingPrincipal(roleName, principalType, matchType, name, realm, false) == false) { context.restartRequired(); } } });
@Override public void handleRollback(OperationContext context, ModelNode operation) { if (authorizerConfiguration.undoRoleMappingRemove(undoKey) == false) { 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);
public void execute(final OperationContext context, final ModelNode operation) throws OperationFailedException { context.acquireControllerLock(); context.restartRequired(); context.completeStep(new OperationContext.RollbackHandler() { @Override public void handleRollback(OperationContext context, ModelNode operation) { context.revertRestartRequired(); } }); }
@Override public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { if (authorizerConfiguration.removeRoleMappingPrincipal(roleName, principalType, matchType, name, realm)) { registerRollbackHandler(context, roleName, principalType, name, realm); } else { context.restartRequired(); throw DomainManagementLogger.ROOT_LOGGER.inconsistentRbacRuntimeState(); } } }, 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);
@Override public void execute(OperationContext context, ModelNode operation) throws OperationFailedException { if (authorizerConfiguration.removeRoleMappingPrincipal(roleName, principalType, matchType, name, realm)) { registerRollbackHandler(context, roleName, principalType, name, realm); } else { context.restartRequired(); throw DomainManagementLogger.ROOT_LOGGER.inconsistentRbacRuntimeState(); } } }, Stage.RUNTIME);
@Override protected boolean applyUpdateToRuntime(OperationContext context, ModelNode operation, String attributeName, ModelNode resolvedValue, ModelNode currentValue, HandbackHolder<Void> handbackHolder) throws OperationFailedException { if (!resolvedValue.isDefined() && currentValue.isDefined()) { // We can not capture the existing default as by doing so we would trigger it's initialisation which // could fail in a variety of ways as well as the wasted initialisation, if the attribute is being // changed from defined to undefined the only option is to completely restart the process. context.restartRequired(); return false; } return true; }
@Override protected void performRuntime(OperationContext context, ModelNode operation, ModelNode model) throws OperationFailedException { removeIdentityProviderService(context, model); removeServiceProviderService(context, model); removeFederationService(context, operation); context.restartRequired(); }
private void doExecute(OperationContext context, ModelNode operation) throws OperationFailedException { // Acquire the lock and check the write permissions for this operation context.getServiceRegistry(true); if (reload) { context.reloadRequired(); } else { context.restartRequired(); } context.completeStep(new OperationContext.RollbackHandler() { @Override public void handleRollback(OperationContext context, ModelNode operation) { if (reload) { context.revertReloadRequired(); } else { context.revertRestartRequired(); } } }); }