Interface DiscardAttributesTransformer.DiscardApprover
-
- All Known Implementing Classes:
DiscardAttributesTransformer.AttributeValueDiscardApprover
- Enclosing class:
- DiscardAttributesTransformer
public static interface DiscardAttributesTransformer.DiscardApproverApproves the transformation of the resource or operation.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleanisOperationDiscardAllowed(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 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:
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
-
-