2 ~ Copyright 2005-2006 The Apache Software Foundation.
4 ~ Licensed under the Apache License, Version 2.0 (the "License");
5 ~ you may not use this file except in compliance with the License.
6 ~ You may obtain a copy of the License at
8 ~ http://www.apache.org/licenses/LICENSE-2.0
10 ~ Unless required by applicable law or agreed to in writing, software
11 ~ distributed under the License is distributed on an "AS IS" BASIS,
12 ~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13 ~ See the License for the specific language governing permissions and
14 ~ limitations under the License.
17 <!DOCTYPE validators PUBLIC "-//OpenSymphony Group//XWork Validator 1.0.2//EN"
18 "http://www.opensymphony.com/xwork/xwork-validator-1.0.2.dtd">
20 <!-- TODO! see MRM-150 for progress on these -->
22 <!-- TODO: constrain more -->
24 <field-validator type="requiredstring">
25 <message>You must enter the repository identifier.</message>
29 <field-validator type="requiredstring">
30 <message>You must enter the repository name.</message>
33 <!-- deng todo: validate if the specified directory exists -->
34 <field name="directory">
35 <field-validator type="requiredstring">
36 <message>You must enter the repository directory.</message>
40 <field-validator type="fieldexpression">
41 <param name="expression">layout in {"legacy", "default"} </param>
42 <message>Invalid repository type.</message>