public class CredentialReferenceWriteAttributeHandler extends ReloadRequiredWriteAttributeHandler
AbstractWriteAttributeHandler.HandbackHolder<T>| Constructor and Description |
|---|
CredentialReferenceWriteAttributeHandler(AttributeDefinition... attributes) |
CredentialReferenceWriteAttributeHandler(AttributeDefinition attribute) |
| Modifier and Type | Method and Description |
|---|---|
protected boolean |
applyUpdateToRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode resolvedValue,
org.jboss.dmr.ModelNode currentValue,
AbstractWriteAttributeHandler.HandbackHolder<Void> handbackHolder)
Hook to allow subclasses to make runtime changes to effect the attribute value change.
|
protected void |
finishModelStage(OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode newValue,
org.jboss.dmr.ModelNode oldValue,
Resource resource)
Hook to allow subclasses to do any final
OperationContext.Stage.MODEL processing following the
application of the new attribute value. |
protected void |
revertUpdateToRuntime(OperationContext context,
org.jboss.dmr.ModelNode operation,
String attributeName,
org.jboss.dmr.ModelNode valueToRestore,
org.jboss.dmr.ModelNode resolvedValue,
Void handback)
Hook to allow subclasses to revert runtime changes made in
AbstractWriteAttributeHandler.applyUpdateToRuntime(OperationContext, ModelNode, String, ModelNode, ModelNode, HandbackHolder). |
execute, getAttributeDefinition, recordCapabilitiesAndRequirements, requiresRuntime, validateUpdatedModelpublic CredentialReferenceWriteAttributeHandler(AttributeDefinition... attributes)
public CredentialReferenceWriteAttributeHandler(AttributeDefinition attribute)
protected void finishModelStage(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode newValue, org.jboss.dmr.ModelNode oldValue, Resource resource) throws OperationFailedException
AbstractWriteAttributeHandlerOperationContext.Stage.MODEL processing following the
application of the new attribute value. This default implementation calls
AbstractWriteAttributeHandler.validateUpdatedModel(OperationContext, Resource).
NOTE: Implementations must not call
OperationContext.completeStep(OperationContext.ResultHandler) or any of its variants. The method that
calls this one handles step completion.
finishModelStage in class AbstractWriteAttributeHandler<Void>context - the operation contextoperation - the operationattributeName - the name of the attribute being modifiednewValue - the new value for the attributeoldValue - the previous value for the attributeresource - the updated model resourceOperationFailedExceptionprotected boolean applyUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode resolvedValue, org.jboss.dmr.ModelNode currentValue, AbstractWriteAttributeHandler.HandbackHolder<Void> handbackHolder) throws OperationFailedException
AbstractWriteAttributeHandlerapplyUpdateToRuntime in class ReloadRequiredWriteAttributeHandlercontext - the context of the operationoperation - the operationattributeName - the name of the attribute being modifiedresolvedValue - the new value for the attribute, after any ValueExpression has been resolvedcurrentValue - the existing value for the attributehandbackHolder - holder for an arbitrary object to pass to
AbstractWriteAttributeHandler.revertUpdateToRuntime(OperationContext, ModelNode, String, ModelNode, ModelNode, Object) if
the operation needs to be rolled backtrue if the server requires reload to effect the attribute
value change; false if notOperationFailedExceptionprotected void revertUpdateToRuntime(OperationContext context, org.jboss.dmr.ModelNode operation, String attributeName, org.jboss.dmr.ModelNode valueToRestore, org.jboss.dmr.ModelNode resolvedValue, Void handback) throws OperationFailedException
AbstractWriteAttributeHandlerAbstractWriteAttributeHandler.applyUpdateToRuntime(OperationContext, ModelNode, String, ModelNode, ModelNode, HandbackHolder).revertUpdateToRuntime in class ReloadRequiredWriteAttributeHandlercontext - the context of the operationoperation - the operationattributeName - the name of the attribute being modifiedvalueToRestore - the previous value for the attribute, before this operation was executedresolvedValue - the new value for the attribute that should be revertedhandback - an object, if any, passed in to the handbackHolder by the applyUpdateToRuntime
implementationOperationFailedExceptionCopyright © 2021 JBoss by Red Hat. All rights reserved.