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>
28 <field-validator type="requiredstring">
29 <message>You must enter the repository name.</message>
33 <field-validator type="requiredstring">
34 <message>Select repository type.</message>
36 <field-validator type="fieldexpression">
37 <param name="expression">layout in {"legacy", "default"} </param>
38 <message>Invalid repository type.</message>
41 <field name="managedRepository">
42 <field-validator type="requiredstring">
43 <message>A managed repository must be selected.</message>
47 <validator type="syncedrepo">
51 <!-- TODO: validate managed repository -->
52 <!-- TODO: validate layout -->
53 <!-- TODO: validate sync settings, depending on what method -->