Package org.jboss.as.controller.operations.validation

Examples of org.jboss.as.controller.operations.validation.StringLengthValidator


    protected AbstractQueueControlHandler(final ParameterValidator messageIdValidator) {
        //populate validators

        final ParameterValidator filterValidator = new ModelTypeValidator(ModelType.STRING, true, false);
        final ParameterValidator queueNameValidator = new StringLengthValidator(1);
        final ParameterValidator rejectDuplicatesValidator = new ModelTypeValidator(ModelType.BOOLEAN, true);
        final ParameterValidator priorityValidator = new IntRangeValidator(0, 9, false, false);

        singleOptionalFilterValidator.registerValidator(FILTER.getName(), filterValidator);
        singleMessageIdValidator.registerValidator(MESSAGE_ID, messageIdValidator);
View Full Code Here


    public static final ConnectorRefsAttribute BROADCAST_GROUP = new ConnectorRefsAttribute(CommonAttributes.CONNECTORS, false, true);

    private final boolean wrap;

    private ConnectorRefsAttribute(final String name, boolean wrap, boolean allowNull) {
        super(name, CommonAttributes.CONNECTOR_REF_STRING, allowNull, 1, Integer.MAX_VALUE, new StringLengthValidator(1));
        this.wrap = wrap;
    }
View Full Code Here

    private static final String STOP = "stop";

    private ParametersValidator readAttributeValidator = new ParametersValidator();

    protected AbstractHornetQComponentControlHandler() {
        readAttributeValidator.registerValidator(NAME, new StringLengthValidator(1));
    }
View Full Code Here

    public static final RemotingInterceptorsAttribute INSTANCE = new RemotingInterceptorsAttribute();

    private RemotingInterceptorsAttribute() {
        super(CommonAttributes.REMOTING_INTERCEPTORS_STRING, CommonAttributes.REMOTING_INTERCEPTORS_STRING, true, 1,
                Integer.MAX_VALUE, new StringLengthValidator(1), null, null, AttributeAccess.Flag.RESTART_ALL_SERVICES);
    }
View Full Code Here

public class JPADefaultDatasourceWriteHandler extends AbstractWriteAttributeHandler<String> {

    static final JPADefaultDatasourceWriteHandler INSTANCE = new JPADefaultDatasourceWriteHandler();

    private JPADefaultDatasourceWriteHandler() {
        super(new StringLengthValidator(0, Integer.MAX_VALUE, true, true), new StringLengthValidator(0, Integer.MAX_VALUE, true, false));
    }
View Full Code Here

            EXPIRY_ADDRESS.getName(), DEAD_LETTER_ADDRESS.getName(), PAUSED, TEMPORARY );

    private ParametersValidator validator = new ParametersValidator();

    private JMSQueueReadAttributeHandler() {
        validator.registerValidator(NAME, new StringLengthValidator(1));
    }
View Full Code Here

    public static final List<String> READ_ATTRIBUTES = Arrays.asList( TOPIC_ADDRESS, TEMPORARY );

    private ParametersValidator validator = new ParametersValidator();

    private JMSTopicReadAttributeHandler() {
        validator.registerValidator(NAME, new StringLengthValidator(1));
    }
View Full Code Here

public class JMSQueueControlHandler extends AbstractQueueControlHandler<JMSQueueControl> {

    public static final JMSQueueControlHandler INSTANCE = new JMSQueueControlHandler();

    private JMSQueueControlHandler() {
        super(new StringLengthValidator(1));
    }
View Full Code Here

    public static final List<String> READ_ATTRIBUTES = Arrays.asList( FACTORY_TYPE, INITIAL_MESSAGE_PACKET_SIZE );

    private ParametersValidator validator = new ParametersValidator();

    private ConnectionFactoryReadAttributeHandler() {
        validator.registerValidator(NAME, new StringLengthValidator(1));
    }
View Full Code Here

    private final ParametersValidator connectionIdValidator = new ParametersValidator();
    private final ParametersValidator sessionIdValidator = new ParametersValidator();
    private final ParametersValidator lastSentValidator = new ParametersValidator();

    private JMSServerControlHandler() {
        final StringLengthValidator stringLengthValidator = new StringLengthValidator(1);
        connectionIdValidator.registerValidator(CONNECTION_ID, stringLengthValidator);
        sessionIdValidator.registerValidator(SESSION_ID, stringLengthValidator);
        lastSentValidator.registerValidator(SESSION_ID, stringLengthValidator);
        lastSentValidator.registerValidator(ADDRESS_NAME, stringLengthValidator);
    }
View Full Code Here

TOP

Related Classes of org.jboss.as.controller.operations.validation.StringLengthValidator

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.