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 Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description boolean
isOperationDiscardAllowed(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation)
Replies with whether operation transformation should be done.boolean
isResourceDiscardAllowed(TransformationContext context, PathAddress address, Resource resource)
Replies with whether resource transformation should be done.
-
-
-
Method Detail
-
isResourceDiscardAllowed
boolean isResourceDiscardAllowed(TransformationContext context, PathAddress address, Resource resource)
Replies with whether resource transformation should be done.- Parameters:
context
- the contextaddress
- the address of the resource to transformresource
- 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 contextaddress
- the address of the resource to transformoperation
- the operation- Returns:
true
if transformation should be done;false
if the operation should be left as is
-
-