Package org.wildfly.extension.picketlink.common.model.validator

Examples of org.wildfly.extension.picketlink.common.model.validator.AlternativeAttributeValidationStepHandler


        return new ReloadRequiredWriteAttributeHandler(attributes.toArray(new AttributeDefinition[attributes.size()])) {
            @Override
            public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
                if (!alternativeAttributes.isEmpty()) {
                    context.addStep(new AlternativeAttributeValidationStepHandler(alternativeAttributes
                            .toArray(new AttributeDefinition[alternativeAttributes.size()])),
                        OperationContext.Stage.MODEL);
                }

                doRegisterModelWriteAttributeHandler(context, operation);
View Full Code Here


                alternativeAttributes.add(attribute);
            }
        }

        if (!alternativeAttributes.isEmpty()) {
            this.modelValidators.add(new AlternativeAttributeValidationStepHandler(
                alternativeAttributes.toArray(new AttributeDefinition[alternativeAttributes.size()]), isAlternativesRequired()));
        }

        if (modelValidators != null) {
            this.modelValidators.addAll(Arrays.asList(modelValidators));
View Full Code Here

        return new IDMConfigWriteAttributeHandler(attributes.toArray(new AttributeDefinition[attributes.size()])) {
            @Override
            public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
                if (!alternativeAttributes.isEmpty()) {
                    context.addStep(new AlternativeAttributeValidationStepHandler(alternativeAttributes
                            .toArray(new AttributeDefinition[alternativeAttributes.size()])),
                        OperationContext.Stage.MODEL);
                }

                doRegisterModelWriteAttributeHandler(context, operation);
View Full Code Here

                1), OperationContext.Stage.MODEL);
        context.addStep(
            new ElementMaxOccurrenceValidationStepHandler(ModelElement.IDENTITY_PROVIDER_ROLE_GENERATOR, ModelElement.IDENTITY_PROVIDER,
                1), OperationContext.Stage.MODEL);
        if (!this.alternativeAttributes.isEmpty()) {
            context.addStep(new AlternativeAttributeValidationStepHandler(
                this.alternativeAttributes.toArray(new AttributeDefinition[this.alternativeAttributes.size()]))
                , OperationContext.Stage.MODEL);
        }
        super.execute(context, operation);
    }
View Full Code Here

        }
    }

    @Override
    public void execute(OperationContext context, ModelNode operation) throws OperationFailedException {
        context.addStep(new AlternativeAttributeValidationStepHandler(new SimpleAttributeDefinition[] {
            HandlerResourceDefinition.CLASS_NAME, HandlerResourceDefinition.CODE
        }), OperationContext.Stage.MODEL);
        context.addStep(new UniqueTypeValidationStepHandler(ModelElement.COMMON_HANDLER) {
            @Override
            protected String getType(OperationContext context, ModelNode model) throws OperationFailedException {
View Full Code Here

TOP

Related Classes of org.wildfly.extension.picketlink.common.model.validator.AlternativeAttributeValidationStepHandler

Copyright © 2018 www.massapicom. 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.