/** * {@inheritDoc} */ @Override public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) { String name = Operations.getAttributeName(operation); ModelNode value = Operations.getAttributeValue(operation); ModelNode legacyOperation = org.jboss.as.controller.client.helpers.Operations.createWriteAttributeOperation(this.addressTransformer.transform(address).toModelNode(), name, value); return new TransformedOperation(legacyOperation, OperationResultTransformer.ORIGINAL_RESULT); } }
/** * {@inheritDoc} */ @Override public TransformedOperation transformOperation(TransformationContext context, PathAddress address, ModelNode operation) { String name = Operations.getAttributeName(operation); ModelNode value = Operations.getAttributeValue(operation); ModelNode legacyOperation = org.jboss.as.controller.client.helpers.Operations.createWriteAttributeOperation(this.addressTransformer.transform(address).toModelNode(), name, value); return new TransformedOperation(legacyOperation, OperationResultTransformer.ORIGINAL_RESULT); } }
final ModelNode op = Operations.createWriteAttributeOperation(current.address.toModelNode(), attribute, remote.add.get(attribute)); if (remoteAttributes.containsKey(attribute)) { throw new IllegalStateException();
final ModelNode op = Operations.createWriteAttributeOperation(current.address.toModelNode(), attribute, remote.add.get(attribute)); if (remoteAttributes.containsKey(attribute)) { throw new IllegalStateException();