Examples of validateOperation()


Examples of org.jboss.as.controller.AttributeDefinition.validateOperation()

            attributeDefinition = getAttributeDefinition(attributeName);
            if (attributeDefinition != null) {
                final ModelNode syntheticOp = new ModelNode();
                syntheticOp.get(attributeName).set(newValue);
                attributeDefinition.validateOperation(syntheticOp);
            }
            CacheMode mode = getCacheMode(operation) ;
            submodel.get(ModelKeys.MODE).set(Mode.valueOf(newValue.asString()).apply(mode).name());
        }
        else {
View Full Code Here

Examples of org.jboss.as.controller.AttributeDefinition.validateOperation()

                AttributeDefinition def = MANAGED_CONTENT_ATTRIBUTES.get(key);
                if (def == null) {
                    def = UNMANAGED_CONTENT_ATTRIBUTES.get(key);
                }
                if (def != null) {
                    def.validateOperation(contentItemNode);
                }
            }
        }
    }
View Full Code Here

Examples of org.jboss.as.controller.AttributeDefinition.validateOperation()

            attributeDefinition = getAttributeDefinition(attributeName);
            if (attributeDefinition != null) {
                final ModelNode syntheticOp = new ModelNode();
                syntheticOp.get(attributeName).set(newValue);
                attributeDefinition.validateOperation(syntheticOp);
            }
            CacheMode mode = getCacheMode(operation) ;
            submodel.get(ModelKeys.MODE).set(Mode.valueOf(newValue.asString()).apply(mode).name());
        }
        else {
View Full Code Here

Examples of org.jboss.as.subsystem.test.KernelServices.validateOperation()

            }
        });
        ModelNode operation = createAddOperation();
        KernelServices services = installInController(AdditionalInitialization.MANAGEMENT, Collections.singletonList(operation));

        services.validateOperation(operation);
    }

    /**
     * Tests that a valid operation passes validation
     */
 
View Full Code Here

Examples of org.jboss.as.subsystem.test.KernelServices.validateOperation()

        });
        ModelNode operation = createAddOperation();
        operation.get("test").set(1);
        KernelServices services = installInController(AdditionalInitialization.MANAGEMENT, Collections.singletonList(operation));

        services.validateOperation(operation);
    }

    @Test
    public void testNonExistantParameter() throws Exception {
        getMainExtension().setAddDescriptionProvider(new DescriptionProvider() {
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.