All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.entando.entando.apsadmin.api.ConsumerAction-validation.xml Maven / Gradle / Ivy

Go to download

Entando Administration Console: an agile, modern and user-centric open source Portal platform.

There is a newer version: 6.2.38
Show newest version
<!DOCTYPE validators PUBLIC
        "-//Apache Struts//XWork Validator 1.0.2//EN"
        "http://struts.apache.org/dtds/xwork-validator-1.0.2.dtd">

<validators>
    
    <field name="consumerKey">
        <field-validator type="requiredstring" short-circuit="true">
            <message key="requiredstring"/>
        </field-validator>
        <field-validator type="stringlength" short-circuit="true">
            <param name="minLength">4</param>
            <param name="maxLength">100</param>
            <param name="trim">true</param>
            <message key="stringlength" />
        </field-validator>
        <field-validator type="regex" short-circuit="true">
            <param name="regex"><![CDATA[([a-zA-Z0-9_\.])+]]></param>
            <message key="wrongCharacters" />
        </field-validator>
    </field>
    
    <field name="secret">
        <field-validator type="fieldexpression">
			<param name="expression"><![CDATA[!(strutsAction == 1 && secret.trim().length() == 0)]]></param>
			<message key="requiredstring" />
        </field-validator>
        <field-validator type="stringlength" short-circuit="true">
            <param name="maxLength">100</param>
            <param name="trim">true</param>
            <message key="stringlength" />
        </field-validator>
        <field-validator type="regex" short-circuit="true">
            <param name="regex"><![CDATA[([a-zA-Z0-9_\.])+]]></param>
            <message key="wrongCharacters" />
        </field-validator>
    </field>
    
    <field name="name">
        <field-validator type="requiredstring" short-circuit="true">
            <message key="requiredstring"/>
        </field-validator>
        <field-validator type="stringlength" short-circuit="true">
            <param name="maxLength">100</param>
            <param name="trim">true</param>
            <message key="stringlength" />
        </field-validator>
    </field>
    
    <field name="description">
        <field-validator type="requiredstring" short-circuit="true">
            <message key="requiredstring"/>
        </field-validator>
        <field-validator type="stringlength" short-circuit="true">
            <param name="maxLength">500</param>
            <param name="trim">true</param>
            <message key="stringlength" />
        </field-validator>
    </field>
    
</validators>




© 2015 - 2025 Weber Informatics LLC | Privacy Policy