public class DiscardUndefinedAttributesTransformer extends Object implements ResourceTransformer, OperationTransformer
OperationFailedException
unless the resource is ignored by the target.OperationTransformer.TransformedOperation
DEFAULT, DISCARD
DEFAULT, DEFAULT_REJECTION_POLICY, DISCARD, SUCCESSFUL_RESULT
Constructor and Description |
---|
DiscardUndefinedAttributesTransformer(AttributeDefinition... attributes) |
DiscardUndefinedAttributesTransformer(Set<String> attributeNames) |
DiscardUndefinedAttributesTransformer(String... attributeNames) |
Modifier and Type | Method and Description |
---|---|
OperationTransformer |
getUndefineAttributeTransformer() |
OperationTransformer |
getWriteAttributeTransformer() |
OperationTransformer.TransformedOperation |
transformOperation(TransformationContext context,
PathAddress address,
org.jboss.dmr.ModelNode operation)
Transform the operation.
|
void |
transformResource(ResourceTransformationContext context,
PathAddress address,
Resource resource)
Transform a resource.
|
public DiscardUndefinedAttributesTransformer(AttributeDefinition... attributes)
public DiscardUndefinedAttributesTransformer(String... attributeNames)
public OperationTransformer getWriteAttributeTransformer()
public OperationTransformer getUndefineAttributeTransformer()
public void transformResource(ResourceTransformationContext context, PathAddress address, Resource resource) throws OperationFailedException
ResourceTransformer
transformResource
in interface ResourceTransformer
context
- the resource transformation contextaddress
- the path addressresource
- the resource to transformOperationFailedException
public OperationTransformer.TransformedOperation transformOperation(TransformationContext context, PathAddress address, org.jboss.dmr.ModelNode operation) throws OperationFailedException
OperationTransformer
transformOperation
in interface OperationTransformer
context
- the operation contextaddress
- the path addressoperation
- the operationOperationFailedException
Copyright © 2023 JBoss by Red Hat. All rights reserved.