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 -->
23 <field-validator type="requiredstring">
24 <message>You must enter the repository identifier.</message>
26 <!--field-validator type="regex">
27 <param name="expression"><![CDATA[([A-Z][a-z][0-9])]]></param>
28 <message>Id must not have special characters.</message>
32 <field-validator type="requiredstring">
33 <message>You must enter the repository name.</message>
38 <field-validator type="requiredstring">
39 <message>You must enter the repository URL.</message>
42 <field name="snapshotsInterval">
43 <field-validator type="regex">
44 <param name="expression"><![CDATA[([0-9])]]></param>
45 <message>The value must be numeric</message>
48 <field name="releasesInterval">
49 <field-validator type="regex">
50 <param name="expression"><![CDATA[([0-9])]]></param>
51 <message>The value must be numeric</message>
55 <!-- TODO: is the validation correct? -->
56 <validator type="interval">
61 <field-validator type="required">
62 <message>Repository type is required.</message>
64 <field-validator type="fieldexpression">
65 <param name="expression">layout in {"legacy", "default"} </param>
66 <message>Invalid repository type.</message>
69 <field name="snapshotsPolicy">
70 <field-validator type="fieldexpression">
71 <param name="expression">snapshotsPolicy in { "disabled", "daily", "hourly", "never", "interval" }</param>
72 <message>Invalid snapshot policy.</message>
75 <field name="releasesPolicy">
76 <field-validator type="fieldexpression">
77 <param name="expression">releasesPolicy in { "disabled", "daily", "hourly", "never", "interval" }</param>
78 <message>Invalid releases policy.</message>
82 <field name="managedRepository">
83 <field-validator type="requiredstring">
84 <message>A managed repository must be selected.</message>