Interface DiscardAttributesTransformer.DiscardApprover

    • Method Detail

      • 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