Interface FailedOperationTransformationConfig.PathAddressConfig

All Known Implementing Classes:
FailedOperationTransformationConfig.AttributesPathAddressConfig, FailedOperationTransformationConfig.ChainedConfig, FailedOperationTransformationConfig.NewAttributesConfig, FailedOperationTransformationConfig.RejectExpressionsConfig
Enclosing class:
FailedOperationTransformationConfig

public static interface FailedOperationTransformationConfig.PathAddressConfig
Configuration of how to deal with rejected operations transformations for a PathAddress. See ModelTestUtils.checkFailedTransformedBootOperations(ModelTestKernelServices, org.jboss.as.controller.ModelVersion, List, FailedOperationTransformationConfig) for the mechanics of how it is used
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
    canCorrectMore(org.jboss.dmr.ModelNode operation)
    Whether something can be corrected in the operation to make it pass.
    org.jboss.dmr.ModelNode
    correctOperation(org.jboss.dmr.ModelNode operation)
    Correct the operation, only called if canCorrectMore(ModelNode) returned true It is preferable to correct one attribute at a time.
    org.jboss.dmr.ModelNode
    correctWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
    Correct the operation.
    List<org.jboss.dmr.ModelNode>
    createWriteAttributeOperations(org.jboss.dmr.ModelNode operation)
    Creates write attribute operations for the add operations
    boolean
    expectDiscarded(org.jboss.dmr.ModelNode operation)
    Whether the operation is expected to be discarded
    boolean
    expectFailed(org.jboss.dmr.ModelNode operation)
    Whether it is expected that the following operation should fail
    boolean
    expectFailedWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
    Whether it is expected that the following write attribute operation should fail
    default void
    operationDone(org.jboss.dmr.ModelNode operation)
    Called by the framework when the operation has been all fixed up.
  • Method Details

    • expectFailed

      boolean expectFailed(org.jboss.dmr.ModelNode operation)
      Whether it is expected that the following operation should fail
      Parameters:
      operation - the operation to check
      Returns:
      true if expected to fail
    • canCorrectMore

      boolean canCorrectMore(org.jboss.dmr.ModelNode operation)
      Whether something can be corrected in the operation to make it pass. It is preferable to correct one attribute at a time.
      Parameters:
      operation - the operation to check
      Returns:
      true if expected to fail, false otherwise
    • correctOperation

      org.jboss.dmr.ModelNode correctOperation(org.jboss.dmr.ModelNode operation)
      Correct the operation, only called if canCorrectMore(ModelNode) returned true It is preferable to correct one attribute at a time.
      Parameters:
      operation - the operation to correct
      Returns:
      the corrected operation
    • createWriteAttributeOperations

      List<org.jboss.dmr.ModelNode> createWriteAttributeOperations(org.jboss.dmr.ModelNode operation)
      Creates write attribute operations for the add operations
    • expectFailedWriteAttributeOperation

      boolean expectFailedWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
      Whether it is expected that the following write attribute operation should fail
      Parameters:
      operation - the 'add' operation to correct
      Returns:
      true if expected to fail
    • correctWriteAttributeOperation

      org.jboss.dmr.ModelNode correctWriteAttributeOperation(org.jboss.dmr.ModelNode operation)
      Correct the operation. This only deals with one attribute, and the framework will only call this once if it failed and correctWriteAttributeOperation(ModelNode) returned true, so make sure to do everything to correct the value attribute.
      Parameters:
      operation - the 'write-attribute' operation to correct
      Returns:
      the corrected operation
    • expectDiscarded

      boolean expectDiscarded(org.jboss.dmr.ModelNode operation)
      Whether the operation is expected to be discarded
      Parameters:
      operation - the operation to check
      Returns:
      true if expected to fail
    • operationDone

      default void operationDone(org.jboss.dmr.ModelNode operation)
      Called by the framework when the operation has been all fixed up.
      Parameters:
      operation - the operation