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
Modifier and TypeMethodDescriptionbooleanisOperationDiscardAllowed(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation) Replies with whether operation transformation should be done.booleanisResourceDiscardAllowed(TransformationContext context, PathAddress address, Resource resource) Replies with whether resource transformation should be done.
-
Method Details
-
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:
trueif transformation should be done;falseif 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:
trueif transformation should be done;falseif the operation should be left as is
-