This is an automated email from the git hooks/post-receive script. New commit to branch feature/7600-PS-VerifOperationSurObjetFlottant in repository tutti. See http://git.codelutin.com/tutti.git commit 14ee8a4455e91cda234c659cffecb6b97566bc12 Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Mon Mar 7 15:04:56 2016 +0100 Ajout des validateurs pour les bouées de transmissions --- ...nsmittingBuoyDto-n1-update-error-validation.xml | 75 ++++++++++++++++++++++ ...mittingBuoyDto-n1-update-warning-validation.xml | 38 +++++++++++ 2 files changed, 113 insertions(+) diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/seine/TransmittingBuoyDto-n1-update-error-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/seine/TransmittingBuoyDto-n1-update-error-validation.xml new file mode 100644 index 0000000..59aaf76 --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/seine/TransmittingBuoyDto-n1-update-error-validation.xml @@ -0,0 +1,75 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2010 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="transmittingBuoyType"> + + <!-- pas de type renseigne --> + <field-validator type="required" short-circuit="true"> + <message>validator.transmittingBuoy.required.transmittingBuoyType</message> + </field-validator> + + <!-- type desactive --> + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ transmittingBuoyType.enabled ]]> + </param> + <message>validator.transmittingBuoy.desactivated.transmittingBuoyType</message> + </field-validator> + + </field> + + <field name="transmittingBuoyOperation"> + + <!-- pas de transmittingBuoyOperation renseigne --> + <field-validator type="required" short-circuit="true"> + <message>validator.transmittingBuoy.required.transmittingBuoyOperation</message> + </field-validator> + + <!-- transmittingBuoyOperation desactive --> + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ transmittingBuoyOperation.enabled ]]> + </param> + <message>validator.transmittingBuoy.desactivated.transmittingBuoyOperation</message> + </field-validator> + + </field> + + <field name="country"> + + <!-- country desactive --> + <field-validator type="fieldexpression" short-circuit="true"> + <param name="expression"> + <![CDATA[ country == null || country.enabled ]]> + </param> + <message>validator.transmittingBuoy.desactivated.country</message> + </field-validator> + + </field> + +</validators> diff --git a/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/seine/TransmittingBuoyDto-n1-update-warning-validation.xml b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/seine/TransmittingBuoyDto-n1-update-warning-validation.xml new file mode 100644 index 0000000..fe4e653 --- /dev/null +++ b/observe-application-swing/src/main/resources/fr/ird/observe/services/dto/seine/TransmittingBuoyDto-n1-update-warning-validation.xml @@ -0,0 +1,38 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + #%L + ObServe :: Validation + %% + Copyright (C) 2008 - 2010 IRD, Codelutin, Tony Chemit + %% + This program is free software: you can redistribute it and/or modify + it under the terms of the GNU General Public License as + published by the Free Software Foundation, either version 3 of the + License, or (at your option) any later version. + + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. + + You should have received a copy of the GNU General Public + License along with this program. If not, see + <http://www.gnu.org/licenses/gpl-3.0.html>. + #L% + --> + +<!DOCTYPE validators PUBLIC + "-//Apache Struts//XWork Validator 1.0.3//EN" + "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd"> +<validators> + + <field name="code"> + + <!-- pas de code renseigne --> + <field-validator type="requiredstring" short-circuit="true"> + <message>validator.transmittingBuoy.null.code</message> + </field-validator> + + </field> + +</validators> -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@codelutin.com>.