Interface DiscardAttributesTransformer.DiscardApprover

All Known Implementing Classes:
DiscardAttributesTransformer.AttributeValueDiscardApprover
Enclosing class:
DiscardAttributesTransformer

public static interface DiscardAttributesTransformer.DiscardApprover
Approves the transformation of the resource or operation.
  • Method Details

    • isResourceDiscardAllowed

      boolean isResourceDiscardAllowed(TransformationContext context, PathAddress address, Resource resource)
      Replies with whether resource transformation should be done.
      Parameters:
      context - the context
      address - the address of the resource to transform
      resource - the resource
      Returns:
      true if transformation should be done; false if the resource should be left as is
    • isOperationDiscardAllowed

      boolean isOperationDiscardAllowed(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation)
      Replies with whether operation transformation should be done.
      Parameters:
      context - the context
      address - the address of the resource to transform
      operation - the operation
      Returns:
      true if transformation should be done; false if the operation should be left as is