org.keycloak.subsystem.extension

## Class RealmWriteAttributeHandler

- java.lang.Object
- - org.jboss.as.controller.AbstractWriteAttributeHandler<KeycloakAdapterConfigService>
  - - org.keycloak.subsystem.extension.RealmWriteAttributeHandler

- All Implemented Interfaces:
    org.jboss.as.controller.OperationStepHandler

      public class RealmWriteAttributeHandler
      extends org.jboss.as.controller.AbstractWriteAttributeHandler<KeycloakAdapterConfigService>

  Update an attribute on a realm.
  Author:
    Stan Silvert ssilvert@redhat.com (C) 2013 Red Hat Inc.

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler

      `org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<T>`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `RealmWriteAttributeHandler(org.jboss.as.controller.AttributeDefinition... definitions)`
    `RealmWriteAttributeHandler(List<org.jboss.as.controller.AttributeDefinition> definitions)`

  - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `protected boolean` | `applyUpdateToRuntime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode resolvedValue, org.jboss.dmr.ModelNode currentValue, org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<KeycloakAdapterConfigService> hh)`
    `protected void` | `revertUpdateToRuntime(org.jboss.as.controller.OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode valueToRevert, KeycloakAdapterConfigService ckService)`

    - ### Methods inherited from class org.jboss.as.controller.AbstractWriteAttributeHandler

      `execute, finishModelStage, getAttributeDefinition, requiresRuntime, validateResolvedValue, validateUnresolvedValue, validateUpdatedModel`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### RealmWriteAttributeHandler

          public RealmWriteAttributeHandler(List<org.jboss.as.controller.AttributeDefinition> definitions)

    - #### RealmWriteAttributeHandler

          public RealmWriteAttributeHandler(org.jboss.as.controller.AttributeDefinition... definitions)

  - ### Method Detail

    - #### applyUpdateToRuntime

          protected boolean applyUpdateToRuntime(org.jboss.as.controller.OperationContext context,
                                     org.jboss.dmr.ModelNode operation,
                                     String attributeName,
                                     org.jboss.dmr.ModelNode resolvedValue,
                                     org.jboss.dmr.ModelNode currentValue,
                                     org.jboss.as.controller.AbstractWriteAttributeHandler.HandbackHolder<KeycloakAdapterConfigService> hh)
                                          throws org.jboss.as.controller.OperationFailedException

      Specified by:
        `applyUpdateToRuntime` in class `org.jboss.as.controller.AbstractWriteAttributeHandler<KeycloakAdapterConfigService>`
      Throws:
        `org.jboss.as.controller.OperationFailedException`

    - #### revertUpdateToRuntime

          protected void revertUpdateToRuntime(org.jboss.as.controller.OperationContext context,
                                   org.jboss.dmr.ModelNode operation,
                                   String attributeName,
                                   org.jboss.dmr.ModelNode valueToRestore,
                                   org.jboss.dmr.ModelNode valueToRevert,
                                   KeycloakAdapterConfigService ckService)
                                        throws org.jboss.as.controller.OperationFailedException

      Specified by:
        `revertUpdateToRuntime` in class `org.jboss.as.controller.AbstractWriteAttributeHandler<KeycloakAdapterConfigService>`
      Throws:
        `org.jboss.as.controller.OperationFailedException`

Copyright © 2014. All Rights Reserved.