Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe

Commits:

9 changed files:

Changes:

  • core/api/validation/src/main/filtered-resources/META-INF/validation/mapping.json
    ... ... @@ -331,6 +331,10 @@
    331 331
       "fr.ird.observe.dto.referential.common.DataQualityDto-create-warning": "fr.ird.observe.dto.referential.common.DataQualityDtoValidatorOnCreateForWarning",
    
    332 332
       "fr.ird.observe.dto.referential.common.DataQualityDto-update-error": "fr.ird.observe.dto.referential.common.DataQualityDtoValidatorOnUpdateForError",
    
    333 333
       "fr.ird.observe.dto.referential.common.DataQualityDto-update-warning": "fr.ird.observe.dto.referential.common.DataQualityDtoValidatorOnUpdateForWarning",
    
    334
    +  "fr.ird.observe.dto.referential.common.EngineMakeDto-create-error": "fr.ird.observe.dto.referential.common.EngineMakeDtoValidatorOnCreateForError",
    
    335
    +  "fr.ird.observe.dto.referential.common.EngineMakeDto-create-warning": "fr.ird.observe.dto.referential.common.EngineMakeDtoValidatorOnCreateForWarning",
    
    336
    +  "fr.ird.observe.dto.referential.common.EngineMakeDto-update-error": "fr.ird.observe.dto.referential.common.EngineMakeDtoValidatorOnUpdateForError",
    
    337
    +  "fr.ird.observe.dto.referential.common.EngineMakeDto-update-warning": "fr.ird.observe.dto.referential.common.EngineMakeDtoValidatorOnUpdateForWarning",
    
    334 338
       "fr.ird.observe.dto.referential.common.FpaZoneDto-create-error": "fr.ird.observe.dto.referential.common.FpaZoneDtoValidatorOnCreateForError",
    
    335 339
       "fr.ird.observe.dto.referential.common.FpaZoneDto-create-warning": "fr.ird.observe.dto.referential.common.FpaZoneDtoValidatorOnCreateForWarning",
    
    336 340
       "fr.ird.observe.dto.referential.common.FpaZoneDto-update-error": "fr.ird.observe.dto.referential.common.FpaZoneDtoValidatorOnUpdateForError",
    
    ... ... @@ -355,6 +359,10 @@
    355 359
       "fr.ird.observe.dto.referential.common.HarbourDto-create-warning": "fr.ird.observe.dto.referential.common.HarbourDtoValidatorOnCreateForWarning",
    
    356 360
       "fr.ird.observe.dto.referential.common.HarbourDto-update-error": "fr.ird.observe.dto.referential.common.HarbourDtoValidatorOnUpdateForError",
    
    357 361
       "fr.ird.observe.dto.referential.common.HarbourDto-update-warning": "fr.ird.observe.dto.referential.common.HarbourDtoValidatorOnUpdateForWarning",
    
    362
    +  "fr.ird.observe.dto.referential.common.HullMaterialDto-create-error": "fr.ird.observe.dto.referential.common.HullMaterialDtoValidatorOnCreateForError",
    
    363
    +  "fr.ird.observe.dto.referential.common.HullMaterialDto-create-warning": "fr.ird.observe.dto.referential.common.HullMaterialDtoValidatorOnCreateForWarning",
    
    364
    +  "fr.ird.observe.dto.referential.common.HullMaterialDto-update-error": "fr.ird.observe.dto.referential.common.HullMaterialDtoValidatorOnUpdateForError",
    
    365
    +  "fr.ird.observe.dto.referential.common.HullMaterialDto-update-warning": "fr.ird.observe.dto.referential.common.HullMaterialDtoValidatorOnUpdateForWarning",
    
    358 366
       "fr.ird.observe.dto.referential.common.LengthLengthParameterDto-create-error": "fr.ird.observe.dto.referential.common.LengthLengthParameterDtoValidatorOnCreateForError",
    
    359 367
       "fr.ird.observe.dto.referential.common.LengthLengthParameterDto-create-warning": "fr.ird.observe.dto.referential.common.LengthLengthParameterDtoValidatorOnCreateForWarning",
    
    360 368
       "fr.ird.observe.dto.referential.common.LengthLengthParameterDto-update-error": "fr.ird.observe.dto.referential.common.LengthLengthParameterDtoValidatorOnUpdateForError",
    

  • core/api/validation/src/main/resources/fr/ird/observe/dto/referential/common/EngineMakeDto-create-error-validation.xml deleted
    1
    -<!--
    
    2
    -  #%L
    
    3
    -  ObServe Core :: API :: Validation
    
    4
    -  %%
    
    5
    -  Copyright (C) 2008 - 2024 IRD, Ultreia.io
    
    6
    -  %%
    
    7
    -  This program is free software: you can redistribute it and/or modify
    
    8
    -  it under the terms of the GNU General Public License as
    
    9
    -  published by the Free Software Foundation, either version 3 of the
    
    10
    -  License, or (at your option) any later version.
    
    11
    -
    
    12
    -  This program is distributed in the hope that it will be useful,
    
    13
    -  but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    14
    -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    15
    -  GNU General Public License for more details.
    
    16
    -
    
    17
    -  You should have received a copy of the GNU General Public
    
    18
    -  License along with this program.  If not, see
    
    19
    -  <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    20
    -  #L%
    
    21
    -  -->
    
    22
    -<!DOCTYPE validators PUBLIC
    
    23
    -    "-//Apache Struts//XWork Validator 1.0.3//EN"
    
    24
    -    "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd">
    
    25
    -<validators>
    
    26
    -
    
    27
    -  <field name="code">
    
    28
    -    <!-- code is a mandatory string -->
    
    29
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    30
    -      <message/>
    
    31
    -    </field-validator>
    
    32
    -
    
    33
    -    <!-- code (if not null) is not a blank string -->
    
    34
    -    <field-validator type="notBlankString">
    
    35
    -      <message/>
    
    36
    -    </field-validator>
    
    37
    -
    
    38
    -    <!-- code should be unique -->
    
    39
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    40
    -      <message/>
    
    41
    -    </field-validator>
    
    42
    -  </field>
    
    43
    -
    
    44
    -  <field name="homeId">
    
    45
    -    <!-- homeId (if not null) is not a blank string -->
    
    46
    -    <field-validator type="notBlankString">
    
    47
    -      <message/>
    
    48
    -    </field-validator>
    
    49
    -
    
    50
    -    <!-- homeId should be unique -->
    
    51
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    52
    -      <message/>
    
    53
    -    </field-validator>
    
    54
    -  </field>
    
    55
    -
    
    56
    -  <field name="label1">
    
    57
    -    <!-- label1 is a mandatory string -->
    
    58
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    59
    -      <message/>
    
    60
    -    </field-validator>
    
    61
    -
    
    62
    -    <!-- label1 (if not null) is not a blank string -->
    
    63
    -    <field-validator type="notBlankString">
    
    64
    -      <message/>
    
    65
    -    </field-validator>
    
    66
    -  </field>
    
    67
    -
    
    68
    -  <field name="label2">
    
    69
    -    <!-- label2 is a mandatory string -->
    
    70
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    71
    -      <message/>
    
    72
    -    </field-validator>
    
    73
    -
    
    74
    -    <!-- label2 (if not null) is not a blank string -->
    
    75
    -    <field-validator type="notBlankString">
    
    76
    -      <message/>
    
    77
    -    </field-validator>
    
    78
    -  </field>
    
    79
    -
    
    80
    -  <field name="label3">
    
    81
    -    <!-- label3 is a mandatory string -->
    
    82
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    83
    -      <message/>
    
    84
    -    </field-validator>
    
    85
    -
    
    86
    -    <!-- label3 (if not null) is not a blank string -->
    
    87
    -    <field-validator type="notBlankString">
    
    88
    -      <message/>
    
    89
    -    </field-validator>
    
    90
    -  </field>
    
    91
    -
    
    92
    -  <field name="label4">
    
    93
    -    <!-- label4 (if not null) is not a blank string -->
    
    94
    -    <field-validator type="notBlankString">
    
    95
    -      <message/>
    
    96
    -    </field-validator>
    
    97
    -  </field>
    
    98
    -
    
    99
    -  <field name="label5">
    
    100
    -    <!-- label5 (if not null) is not a blank string -->
    
    101
    -    <field-validator type="notBlankString">
    
    102
    -      <message/>
    
    103
    -    </field-validator>
    
    104
    -  </field>
    
    105
    -
    
    106
    -  <field name="label6">
    
    107
    -    <!-- label6 (if not null) is not a blank string -->
    
    108
    -    <field-validator type="notBlankString">
    
    109
    -      <message/>
    
    110
    -    </field-validator>
    
    111
    -  </field>
    
    112
    -
    
    113
    -  <field name="label7">
    
    114
    -    <!-- label7 (if not null) is not a blank string -->
    
    115
    -    <field-validator type="notBlankString">
    
    116
    -      <message/>
    
    117
    -    </field-validator>
    
    118
    -  </field>
    
    119
    -
    
    120
    -  <field name="label8">
    
    121
    -    <!-- label8 (if not null) is not a blank string -->
    
    122
    -    <field-validator type="notBlankString">
    
    123
    -      <message/>
    
    124
    -    </field-validator>
    
    125
    -  </field>
    
    126
    -
    
    127
    -  <field name="uri">
    
    128
    -    <!-- uri (if not null) is not a blank string -->
    
    129
    -    <field-validator type="notBlankString">
    
    130
    -      <message/>
    
    131
    -    </field-validator>
    
    132
    -
    
    133
    -    <!-- uri should be unique -->
    
    134
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    135
    -      <message/>
    
    136
    -    </field-validator>
    
    137
    -  </field>
    
    138
    -
    
    139
    -</validators>

  • core/api/validation/src/main/resources/fr/ird/observe/dto/referential/common/EngineMakeDto-create-warning-validation.xml deleted
    1
    -<!--
    
    2
    -  #%L
    
    3
    -  ObServe Core :: API :: Validation
    
    4
    -  %%
    
    5
    -  Copyright (C) 2008 - 2024 IRD, Ultreia.io
    
    6
    -  %%
    
    7
    -  This program is free software: you can redistribute it and/or modify
    
    8
    -  it under the terms of the GNU General Public License as
    
    9
    -  published by the Free Software Foundation, either version 3 of the
    
    10
    -  License, or (at your option) any later version.
    
    11
    -
    
    12
    -  This program is distributed in the hope that it will be useful,
    
    13
    -  but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    14
    -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    15
    -  GNU General Public License for more details.
    
    16
    -
    
    17
    -  You should have received a copy of the GNU General Public
    
    18
    -  License along with this program.  If not, see
    
    19
    -  <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    20
    -  #L%
    
    21
    -  -->
    
    22
    -<!DOCTYPE validators PUBLIC
    
    23
    -    "-//Apache Struts//XWork Validator 1.0.3//EN"
    
    24
    -    "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd">
    
    25
    -<validators>
    
    26
    -
    
    27
    -  <field name="label1">
    
    28
    -   <!-- label1 is not translated -->
    
    29
    -    <field-validator type="fieldexpression">
    
    30
    -      <param name="expression">
    
    31
    -        <![CDATA[ isLabelTranslated(label1, label2, label3) ]]>
    
    32
    -      </param>
    
    33
    -      <message>observe.referential.Referential.validation.label1.untranslated</message>
    
    34
    -    </field-validator>
    
    35
    -  </field>
    
    36
    -
    
    37
    -  <field name="label2">
    
    38
    -    <!-- label2 is not translated -->
    
    39
    -    <field-validator type="fieldexpression">
    
    40
    -      <param name="expression">
    
    41
    -        <![CDATA[ isLabelTranslated(label2, null, null) ]]>
    
    42
    -      </param>
    
    43
    -      <message>observe.referential.Referential.validation.label2.untranslated</message>
    
    44
    -    </field-validator>
    
    45
    -  </field>
    
    46
    -
    
    47
    -  <field name="label3">
    
    48
    -    <!-- label3 is not translated -->
    
    49
    -    <field-validator type="fieldexpression">
    
    50
    -      <param name="expression">
    
    51
    -        <![CDATA[ isLabelTranslated(label3, label1, label2) ]]>
    
    52
    -      </param>
    
    53
    -      <message>observe.referential.Referential.validation.label3.untranslated</message>
    
    54
    -    </field-validator>
    
    55
    -  </field>
    
    56
    -
    
    57
    -  <field name="status">
    
    58
    -    <!-- referential is enabled -->
    
    59
    -    <field-validator type="fieldexpression" short-circuit="true">
    
    60
    -      <param name="expression">
    
    61
    -        <![CDATA[ enabled ]]>
    
    62
    -      </param>
    
    63
    -      <message>observe.referential.Referential.validation.disabled</message>
    
    64
    -    </field-validator>
    
    65
    -  </field>
    
    66
    -
    
    67
    -  <field name="uri">
    
    68
    -    <!-- uri string should be filled -->
    
    69
    -    <field-validator type="stringNotFilled">
    
    70
    -      <message/>
    
    71
    -    </field-validator>
    
    72
    -  </field>
    
    73
    -
    
    74
    -</validators>

  • core/api/validation/src/main/resources/fr/ird/observe/dto/referential/common/EngineMakeDto-update-error-validation.xml deleted
    1
    -<!--
    
    2
    -  #%L
    
    3
    -  ObServe Core :: API :: Validation
    
    4
    -  %%
    
    5
    -  Copyright (C) 2008 - 2024 IRD, Ultreia.io
    
    6
    -  %%
    
    7
    -  This program is free software: you can redistribute it and/or modify
    
    8
    -  it under the terms of the GNU General Public License as
    
    9
    -  published by the Free Software Foundation, either version 3 of the
    
    10
    -  License, or (at your option) any later version.
    
    11
    -
    
    12
    -  This program is distributed in the hope that it will be useful,
    
    13
    -  but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    14
    -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    15
    -  GNU General Public License for more details.
    
    16
    -
    
    17
    -  You should have received a copy of the GNU General Public
    
    18
    -  License along with this program.  If not, see
    
    19
    -  <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    20
    -  #L%
    
    21
    -  -->
    
    22
    -<!DOCTYPE validators PUBLIC
    
    23
    -    "-//Apache Struts//XWork Validator 1.0.3//EN"
    
    24
    -    "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd">
    
    25
    -<validators>
    
    26
    -
    
    27
    -  <field name="code">
    
    28
    -    <!-- code is a mandatory string -->
    
    29
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    30
    -      <message/>
    
    31
    -    </field-validator>
    
    32
    -
    
    33
    -    <!-- code (if not null) is not a blank string -->
    
    34
    -    <field-validator type="notBlankString">
    
    35
    -      <message/>
    
    36
    -    </field-validator>
    
    37
    -
    
    38
    -    <!-- code should be unique -->
    
    39
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    40
    -      <message/>
    
    41
    -    </field-validator>
    
    42
    -  </field>
    
    43
    -
    
    44
    -  <field name="homeId">
    
    45
    -    <!-- homeId (if not null) is not a blank string -->
    
    46
    -    <field-validator type="notBlankString">
    
    47
    -      <message/>
    
    48
    -    </field-validator>
    
    49
    -
    
    50
    -    <!-- homeId should be unique -->
    
    51
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    52
    -      <message/>
    
    53
    -    </field-validator>
    
    54
    -  </field>
    
    55
    -
    
    56
    -  <field name="label1">
    
    57
    -    <!-- label1 is a mandatory string -->
    
    58
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    59
    -      <message/>
    
    60
    -    </field-validator>
    
    61
    -
    
    62
    -    <!-- label1 (if not null) is not a blank string -->
    
    63
    -    <field-validator type="notBlankString">
    
    64
    -      <message/>
    
    65
    -    </field-validator>
    
    66
    -  </field>
    
    67
    -
    
    68
    -  <field name="label2">
    
    69
    -    <!-- label2 is a mandatory string -->
    
    70
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    71
    -      <message/>
    
    72
    -    </field-validator>
    
    73
    -
    
    74
    -    <!-- label2 (if not null) is not a blank string -->
    
    75
    -    <field-validator type="notBlankString">
    
    76
    -      <message/>
    
    77
    -    </field-validator>
    
    78
    -  </field>
    
    79
    -
    
    80
    -  <field name="label3">
    
    81
    -    <!-- label3 is a mandatory string -->
    
    82
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    83
    -      <message/>
    
    84
    -    </field-validator>
    
    85
    -
    
    86
    -    <!-- label3 (if not null) is not a blank string -->
    
    87
    -    <field-validator type="notBlankString">
    
    88
    -      <message/>
    
    89
    -    </field-validator>
    
    90
    -  </field>
    
    91
    -
    
    92
    -  <field name="label4">
    
    93
    -    <!-- label4 (if not null) is not a blank string -->
    
    94
    -    <field-validator type="notBlankString">
    
    95
    -      <message/>
    
    96
    -    </field-validator>
    
    97
    -  </field>
    
    98
    -
    
    99
    -  <field name="label5">
    
    100
    -    <!-- label5 (if not null) is not a blank string -->
    
    101
    -    <field-validator type="notBlankString">
    
    102
    -      <message/>
    
    103
    -    </field-validator>
    
    104
    -  </field>
    
    105
    -
    
    106
    -  <field name="label6">
    
    107
    -    <!-- label6 (if not null) is not a blank string -->
    
    108
    -    <field-validator type="notBlankString">
    
    109
    -      <message/>
    
    110
    -    </field-validator>
    
    111
    -  </field>
    
    112
    -
    
    113
    -  <field name="label7">
    
    114
    -    <!-- label7 (if not null) is not a blank string -->
    
    115
    -    <field-validator type="notBlankString">
    
    116
    -      <message/>
    
    117
    -    </field-validator>
    
    118
    -  </field>
    
    119
    -
    
    120
    -  <field name="label8">
    
    121
    -    <!-- label8 (if not null) is not a blank string -->
    
    122
    -    <field-validator type="notBlankString">
    
    123
    -      <message/>
    
    124
    -    </field-validator>
    
    125
    -  </field>
    
    126
    -
    
    127
    -  <field name="uri">
    
    128
    -    <!-- uri (if not null) is not a blank string -->
    
    129
    -    <field-validator type="notBlankString">
    
    130
    -      <message/>
    
    131
    -    </field-validator>
    
    132
    -
    
    133
    -    <!-- uri should be unique -->
    
    134
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    135
    -      <message/>
    
    136
    -    </field-validator>
    
    137
    -  </field>
    
    138
    -
    
    139
    -</validators>

  • core/api/validation/src/main/resources/fr/ird/observe/dto/referential/common/EngineMakeDto-update-warning-validation.xml deleted
    1
    -<!--
    
    2
    -  #%L
    
    3
    -  ObServe Core :: API :: Validation
    
    4
    -  %%
    
    5
    -  Copyright (C) 2008 - 2024 IRD, Ultreia.io
    
    6
    -  %%
    
    7
    -  This program is free software: you can redistribute it and/or modify
    
    8
    -  it under the terms of the GNU General Public License as
    
    9
    -  published by the Free Software Foundation, either version 3 of the
    
    10
    -  License, or (at your option) any later version.
    
    11
    -
    
    12
    -  This program is distributed in the hope that it will be useful,
    
    13
    -  but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    14
    -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    15
    -  GNU General Public License for more details.
    
    16
    -
    
    17
    -  You should have received a copy of the GNU General Public
    
    18
    -  License along with this program.  If not, see
    
    19
    -  <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    20
    -  #L%
    
    21
    -  -->
    
    22
    -<!DOCTYPE validators PUBLIC
    
    23
    -    "-//Apache Struts//XWork Validator 1.0.3//EN"
    
    24
    -    "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd">
    
    25
    -<validators>
    
    26
    -
    
    27
    -  <field name="label1">
    
    28
    -    <!-- label1 is not translated -->
    
    29
    -    <field-validator type="fieldexpression">
    
    30
    -      <param name="expression">
    
    31
    -        <![CDATA[ isLabelTranslated(label1, label2, label3) ]]>
    
    32
    -      </param>
    
    33
    -      <message>observe.referential.Referential.validation.label1.untranslated</message>
    
    34
    -    </field-validator>
    
    35
    -  </field>
    
    36
    -
    
    37
    -  <field name="label2">
    
    38
    -    <!-- label2 is not translated -->
    
    39
    -    <field-validator type="fieldexpression">
    
    40
    -      <param name="expression">
    
    41
    -        <![CDATA[ isLabelTranslated(label2, null, null) ]]>
    
    42
    -      </param>
    
    43
    -      <message>observe.referential.Referential.validation.label2.untranslated</message>
    
    44
    -    </field-validator>
    
    45
    -  </field>
    
    46
    -
    
    47
    -  <field name="label3">
    
    48
    -    <!-- label3 is not translated -->
    
    49
    -    <field-validator type="fieldexpression">
    
    50
    -      <param name="expression">
    
    51
    -        <![CDATA[ isLabelTranslated(label3, label1, label2) ]]>
    
    52
    -      </param>
    
    53
    -      <message>observe.referential.Referential.validation.label3.untranslated</message>
    
    54
    -    </field-validator>
    
    55
    -  </field>
    
    56
    -
    
    57
    -  <field name="status">
    
    58
    -    <!-- referential is enabled-->
    
    59
    -    <field-validator type="fieldexpression" short-circuit="true">
    
    60
    -      <param name="expression">
    
    61
    -        <![CDATA[ enabled ]]>
    
    62
    -      </param>
    
    63
    -      <message>observe.referential.Referential.validation.disabled</message>
    
    64
    -    </field-validator>
    
    65
    -  </field>
    
    66
    -
    
    67
    -  <field name="uri">
    
    68
    -    <!-- uri string should be filled -->
    
    69
    -    <field-validator type="stringNotFilled">
    
    70
    -      <message/>
    
    71
    -    </field-validator>
    
    72
    -  </field>
    
    73
    -
    
    74
    -</validators>

  • core/api/validation/src/main/resources/fr/ird/observe/dto/referential/common/HullMaterialDto-create-error-validation.xml deleted
    1
    -<!--
    
    2
    -  #%L
    
    3
    -  ObServe Core :: API :: Validation
    
    4
    -  %%
    
    5
    -  Copyright (C) 2008 - 2024 IRD, Ultreia.io
    
    6
    -  %%
    
    7
    -  This program is free software: you can redistribute it and/or modify
    
    8
    -  it under the terms of the GNU General Public License as
    
    9
    -  published by the Free Software Foundation, either version 3 of the
    
    10
    -  License, or (at your option) any later version.
    
    11
    -
    
    12
    -  This program is distributed in the hope that it will be useful,
    
    13
    -  but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    14
    -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    15
    -  GNU General Public License for more details.
    
    16
    -
    
    17
    -  You should have received a copy of the GNU General Public
    
    18
    -  License along with this program.  If not, see
    
    19
    -  <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    20
    -  #L%
    
    21
    -  -->
    
    22
    -<!DOCTYPE validators PUBLIC
    
    23
    -    "-//Apache Struts//XWork Validator 1.0.3//EN"
    
    24
    -    "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd">
    
    25
    -<validators>
    
    26
    -
    
    27
    -  <field name="code">
    
    28
    -    <!-- code is a mandatory string -->
    
    29
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    30
    -      <message/>
    
    31
    -    </field-validator>
    
    32
    -
    
    33
    -    <!-- code (if not null) is not a blank string -->
    
    34
    -    <field-validator type="notBlankString">
    
    35
    -      <message/>
    
    36
    -    </field-validator>
    
    37
    -
    
    38
    -    <!-- code should be unique -->
    
    39
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    40
    -      <message/>
    
    41
    -    </field-validator>
    
    42
    -  </field>
    
    43
    -
    
    44
    -  <field name="comment">
    
    45
    -    <!-- comment (if not null) is not a blank string -->
    
    46
    -    <field-validator type="notBlankString">
    
    47
    -      <message/>
    
    48
    -    </field-validator>
    
    49
    -
    
    50
    -    <!-- comment length <= 512 -->
    
    51
    -    <field-validator type="stringMaxLength">
    
    52
    -      <param name="maxLength">512</param>
    
    53
    -      <message/>
    
    54
    -    </field-validator>
    
    55
    -  </field>
    
    56
    -
    
    57
    -  <field name="homeId">
    
    58
    -    <!-- homeId (if not null) is not a blank string -->
    
    59
    -    <field-validator type="notBlankString">
    
    60
    -      <message/>
    
    61
    -    </field-validator>
    
    62
    -
    
    63
    -    <!-- homeId should be unique -->
    
    64
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    65
    -      <message/>
    
    66
    -    </field-validator>
    
    67
    -  </field>
    
    68
    -
    
    69
    -  <field name="label1">
    
    70
    -    <!-- label1 is a mandatory string -->
    
    71
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    72
    -      <message/>
    
    73
    -    </field-validator>
    
    74
    -
    
    75
    -    <!-- label1 (if not null) is not a blank string -->
    
    76
    -    <field-validator type="notBlankString">
    
    77
    -      <message/>
    
    78
    -    </field-validator>
    
    79
    -  </field>
    
    80
    -
    
    81
    -  <field name="label2">
    
    82
    -    <!-- label2 is a mandatory string -->
    
    83
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    84
    -      <message/>
    
    85
    -    </field-validator>
    
    86
    -
    
    87
    -    <!-- label2 (if not null) is not a blank string -->
    
    88
    -    <field-validator type="notBlankString">
    
    89
    -      <message/>
    
    90
    -    </field-validator>
    
    91
    -  </field>
    
    92
    -
    
    93
    -  <field name="label3">
    
    94
    -    <!-- label3 is a mandatory string -->
    
    95
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    96
    -      <message/>
    
    97
    -    </field-validator>
    
    98
    -
    
    99
    -    <!-- label3 (if not null) is not a blank string -->
    
    100
    -    <field-validator type="notBlankString">
    
    101
    -      <message/>
    
    102
    -    </field-validator>
    
    103
    -  </field>
    
    104
    -
    
    105
    -  <field name="label4">
    
    106
    -    <!-- label4 (if not null) is not a blank string -->
    
    107
    -    <field-validator type="notBlankString">
    
    108
    -      <message/>
    
    109
    -    </field-validator>
    
    110
    -  </field>
    
    111
    -
    
    112
    -  <field name="label5">
    
    113
    -    <!-- label5 (if not null) is not a blank string -->
    
    114
    -    <field-validator type="notBlankString">
    
    115
    -      <message/>
    
    116
    -    </field-validator>
    
    117
    -  </field>
    
    118
    -
    
    119
    -  <field name="label6">
    
    120
    -    <!-- label6 (if not null) is not a blank string -->
    
    121
    -    <field-validator type="notBlankString">
    
    122
    -      <message/>
    
    123
    -    </field-validator>
    
    124
    -  </field>
    
    125
    -
    
    126
    -  <field name="label7">
    
    127
    -    <!-- label7 (if not null) is not a blank string -->
    
    128
    -    <field-validator type="notBlankString">
    
    129
    -      <message/>
    
    130
    -    </field-validator>
    
    131
    -  </field>
    
    132
    -
    
    133
    -  <field name="label8">
    
    134
    -    <!-- label8 (if not null) is not a blank string -->
    
    135
    -    <field-validator type="notBlankString">
    
    136
    -      <message/>
    
    137
    -    </field-validator>
    
    138
    -  </field>
    
    139
    -
    
    140
    -  <field name="source">
    
    141
    -    <!-- source (if not null) is not a blank string -->
    
    142
    -    <field-validator type="notBlankString">
    
    143
    -      <message/>
    
    144
    -    </field-validator>
    
    145
    -
    
    146
    -    <!-- source length <= 512 -->
    
    147
    -    <field-validator type="stringMaxLength">
    
    148
    -      <param name="maxLength">512</param>
    
    149
    -      <message/>
    
    150
    -    </field-validator>
    
    151
    -  </field>
    
    152
    -
    
    153
    -  <field name="uri">
    
    154
    -    <!-- uri (if not null) is not a blank string -->
    
    155
    -    <field-validator type="notBlankString">
    
    156
    -      <message/>
    
    157
    -    </field-validator>
    
    158
    -
    
    159
    -    <!-- uri should be unique -->
    
    160
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    161
    -      <message/>
    
    162
    -    </field-validator>
    
    163
    -  </field>
    
    164
    -
    
    165
    -</validators>

  • core/api/validation/src/main/resources/fr/ird/observe/dto/referential/common/HullMaterialDto-create-warning-validation.xml deleted
    1
    -<!--
    
    2
    -  #%L
    
    3
    -  ObServe Core :: API :: Validation
    
    4
    -  %%
    
    5
    -  Copyright (C) 2008 - 2024 IRD, Ultreia.io
    
    6
    -  %%
    
    7
    -  This program is free software: you can redistribute it and/or modify
    
    8
    -  it under the terms of the GNU General Public License as
    
    9
    -  published by the Free Software Foundation, either version 3 of the
    
    10
    -  License, or (at your option) any later version.
    
    11
    -
    
    12
    -  This program is distributed in the hope that it will be useful,
    
    13
    -  but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    14
    -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    15
    -  GNU General Public License for more details.
    
    16
    -
    
    17
    -  You should have received a copy of the GNU General Public
    
    18
    -  License along with this program.  If not, see
    
    19
    -  <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    20
    -  #L%
    
    21
    -  -->
    
    22
    -<!DOCTYPE validators PUBLIC
    
    23
    -    "-//Apache Struts//XWork Validator 1.0.3//EN"
    
    24
    -    "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd">
    
    25
    -<validators>
    
    26
    -
    
    27
    -  <field name="label1">
    
    28
    -   <!-- label1 is not translated -->
    
    29
    -    <field-validator type="fieldexpression">
    
    30
    -      <param name="expression">
    
    31
    -        <![CDATA[ isLabelTranslated(label1, label2, label3) ]]>
    
    32
    -      </param>
    
    33
    -      <message>observe.referential.Referential.validation.label1.untranslated</message>
    
    34
    -    </field-validator>
    
    35
    -  </field>
    
    36
    -
    
    37
    -  <field name="label2">
    
    38
    -    <!-- label2 is not translated -->
    
    39
    -    <field-validator type="fieldexpression">
    
    40
    -      <param name="expression">
    
    41
    -        <![CDATA[ isLabelTranslated(label2, null, null) ]]>
    
    42
    -      </param>
    
    43
    -      <message>observe.referential.Referential.validation.label2.untranslated</message>
    
    44
    -    </field-validator>
    
    45
    -  </field>
    
    46
    -
    
    47
    -  <field name="label3">
    
    48
    -    <!-- label3 is not translated -->
    
    49
    -    <field-validator type="fieldexpression">
    
    50
    -      <param name="expression">
    
    51
    -        <![CDATA[ isLabelTranslated(label3, label1, label2) ]]>
    
    52
    -      </param>
    
    53
    -      <message>observe.referential.Referential.validation.label3.untranslated</message>
    
    54
    -    </field-validator>
    
    55
    -  </field>
    
    56
    -
    
    57
    -  <field name="status">
    
    58
    -    <!-- referential is enabled -->
    
    59
    -    <field-validator type="fieldexpression" short-circuit="true">
    
    60
    -      <param name="expression">
    
    61
    -        <![CDATA[ enabled ]]>
    
    62
    -      </param>
    
    63
    -      <message>observe.referential.Referential.validation.disabled</message>
    
    64
    -    </field-validator>
    
    65
    -  </field>
    
    66
    -
    
    67
    -  <field name="uri">
    
    68
    -    <!-- uri string should be filled -->
    
    69
    -    <field-validator type="stringNotFilled">
    
    70
    -      <message/>
    
    71
    -    </field-validator>
    
    72
    -  </field>
    
    73
    -
    
    74
    -</validators>

  • core/api/validation/src/main/resources/fr/ird/observe/dto/referential/common/HullMaterialDto-update-error-validation.xml deleted
    1
    -<!--
    
    2
    -  #%L
    
    3
    -  ObServe Core :: API :: Validation
    
    4
    -  %%
    
    5
    -  Copyright (C) 2008 - 2024 IRD, Ultreia.io
    
    6
    -  %%
    
    7
    -  This program is free software: you can redistribute it and/or modify
    
    8
    -  it under the terms of the GNU General Public License as
    
    9
    -  published by the Free Software Foundation, either version 3 of the
    
    10
    -  License, or (at your option) any later version.
    
    11
    -
    
    12
    -  This program is distributed in the hope that it will be useful,
    
    13
    -  but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    14
    -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    15
    -  GNU General Public License for more details.
    
    16
    -
    
    17
    -  You should have received a copy of the GNU General Public
    
    18
    -  License along with this program.  If not, see
    
    19
    -  <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    20
    -  #L%
    
    21
    -  -->
    
    22
    -<!DOCTYPE validators PUBLIC
    
    23
    -    "-//Apache Struts//XWork Validator 1.0.3//EN"
    
    24
    -    "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd">
    
    25
    -<validators>
    
    26
    -
    
    27
    -  <field name="code">
    
    28
    -    <!-- code is a mandatory string -->
    
    29
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    30
    -      <message/>
    
    31
    -    </field-validator>
    
    32
    -
    
    33
    -    <!-- code (if not null) is not a blank string -->
    
    34
    -    <field-validator type="notBlankString">
    
    35
    -      <message/>
    
    36
    -    </field-validator>
    
    37
    -
    
    38
    -    <!-- code should be unique -->
    
    39
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    40
    -      <message/>
    
    41
    -    </field-validator>
    
    42
    -  </field>
    
    43
    -
    
    44
    -  <field name="comment">
    
    45
    -    <!-- comment (if not null) is not a blank string -->
    
    46
    -    <field-validator type="notBlankString">
    
    47
    -      <message/>
    
    48
    -    </field-validator>
    
    49
    -
    
    50
    -    <!-- comment length <= 512 -->
    
    51
    -    <field-validator type="stringMaxLength">
    
    52
    -      <param name="maxLength">512</param>
    
    53
    -      <message/>
    
    54
    -    </field-validator>
    
    55
    -  </field>
    
    56
    -
    
    57
    -  <field name="homeId">
    
    58
    -    <!-- homeId (if not null) is not a blank string -->
    
    59
    -    <field-validator type="notBlankString">
    
    60
    -      <message/>
    
    61
    -    </field-validator>
    
    62
    -
    
    63
    -    <!-- homeId should be unique -->
    
    64
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    65
    -      <message/>
    
    66
    -    </field-validator>
    
    67
    -  </field>
    
    68
    -
    
    69
    -  <field name="label1">
    
    70
    -    <!-- label1 is a mandatory string -->
    
    71
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    72
    -      <message/>
    
    73
    -    </field-validator>
    
    74
    -
    
    75
    -    <!-- label1 (if not null) is not a blank string -->
    
    76
    -    <field-validator type="notBlankString">
    
    77
    -      <message/>
    
    78
    -    </field-validator>
    
    79
    -  </field>
    
    80
    -
    
    81
    -  <field name="label2">
    
    82
    -    <!-- label2 is a mandatory string -->
    
    83
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    84
    -      <message/>
    
    85
    -    </field-validator>
    
    86
    -
    
    87
    -    <!-- label2 (if not null) is not a blank string -->
    
    88
    -    <field-validator type="notBlankString">
    
    89
    -      <message/>
    
    90
    -    </field-validator>
    
    91
    -  </field>
    
    92
    -
    
    93
    -  <field name="label3">
    
    94
    -    <!-- label3 is a mandatory string -->
    
    95
    -    <field-validator type="mandatoryString" short-circuit="true">
    
    96
    -      <message/>
    
    97
    -    </field-validator>
    
    98
    -
    
    99
    -    <!-- label3 (if not null) is not a blank string -->
    
    100
    -    <field-validator type="notBlankString">
    
    101
    -      <message/>
    
    102
    -    </field-validator>
    
    103
    -  </field>
    
    104
    -
    
    105
    -  <field name="label4">
    
    106
    -    <!-- label4 (if not null) is not a blank string -->
    
    107
    -    <field-validator type="notBlankString">
    
    108
    -      <message/>
    
    109
    -    </field-validator>
    
    110
    -  </field>
    
    111
    -
    
    112
    -  <field name="label5">
    
    113
    -    <!-- label5 (if not null) is not a blank string -->
    
    114
    -    <field-validator type="notBlankString">
    
    115
    -      <message/>
    
    116
    -    </field-validator>
    
    117
    -  </field>
    
    118
    -
    
    119
    -  <field name="label6">
    
    120
    -    <!-- label6 (if not null) is not a blank string -->
    
    121
    -    <field-validator type="notBlankString">
    
    122
    -      <message/>
    
    123
    -    </field-validator>
    
    124
    -  </field>
    
    125
    -
    
    126
    -  <field name="label7">
    
    127
    -    <!-- label7 (if not null) is not a blank string -->
    
    128
    -    <field-validator type="notBlankString">
    
    129
    -      <message/>
    
    130
    -    </field-validator>
    
    131
    -  </field>
    
    132
    -
    
    133
    -  <field name="label8">
    
    134
    -    <!-- label8 (if not null) is not a blank string -->
    
    135
    -    <field-validator type="notBlankString">
    
    136
    -      <message/>
    
    137
    -    </field-validator>
    
    138
    -  </field>
    
    139
    -
    
    140
    -  <field name="source">
    
    141
    -    <!-- source (if not null) is not a blank string -->
    
    142
    -    <field-validator type="notBlankString">
    
    143
    -      <message/>
    
    144
    -    </field-validator>
    
    145
    -
    
    146
    -    <!-- source length <= 512 -->
    
    147
    -    <field-validator type="stringMaxLength">
    
    148
    -      <param name="maxLength">512</param>
    
    149
    -      <message/>
    
    150
    -    </field-validator>
    
    151
    -  </field>
    
    152
    -
    
    153
    -  <field name="uri">
    
    154
    -    <!-- uri (if not null) is not a blank string -->
    
    155
    -    <field-validator type="notBlankString">
    
    156
    -      <message/>
    
    157
    -    </field-validator>
    
    158
    -
    
    159
    -    <!-- uri should be unique -->
    
    160
    -    <field-validator type="referentialUniqueField" short-circuit="true">
    
    161
    -      <message/>
    
    162
    -    </field-validator>
    
    163
    -  </field>
    
    164
    -
    
    165
    -</validators>

  • core/api/validation/src/main/resources/fr/ird/observe/dto/referential/common/HullMaterialDto-update-warning-validation.xml deleted
    1
    -<!--
    
    2
    -  #%L
    
    3
    -  ObServe Core :: API :: Validation
    
    4
    -  %%
    
    5
    -  Copyright (C) 2008 - 2024 IRD, Ultreia.io
    
    6
    -  %%
    
    7
    -  This program is free software: you can redistribute it and/or modify
    
    8
    -  it under the terms of the GNU General Public License as
    
    9
    -  published by the Free Software Foundation, either version 3 of the
    
    10
    -  License, or (at your option) any later version.
    
    11
    -
    
    12
    -  This program is distributed in the hope that it will be useful,
    
    13
    -  but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    14
    -  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    15
    -  GNU General Public License for more details.
    
    16
    -
    
    17
    -  You should have received a copy of the GNU General Public
    
    18
    -  License along with this program.  If not, see
    
    19
    -  <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    20
    -  #L%
    
    21
    -  -->
    
    22
    -<!DOCTYPE validators PUBLIC
    
    23
    -    "-//Apache Struts//XWork Validator 1.0.3//EN"
    
    24
    -    "http://struts.apache.org/dtds/xwork-validator-1.0.3.dtd">
    
    25
    -<validators>
    
    26
    -
    
    27
    -  <field name="label1">
    
    28
    -    <!-- label1 is not translated -->
    
    29
    -    <field-validator type="fieldexpression">
    
    30
    -      <param name="expression">
    
    31
    -        <![CDATA[ isLabelTranslated(label1, label2, label3) ]]>
    
    32
    -      </param>
    
    33
    -      <message>observe.referential.Referential.validation.label1.untranslated</message>
    
    34
    -    </field-validator>
    
    35
    -  </field>
    
    36
    -
    
    37
    -  <field name="label2">
    
    38
    -    <!-- label2 is not translated -->
    
    39
    -    <field-validator type="fieldexpression">
    
    40
    -      <param name="expression">
    
    41
    -        <![CDATA[ isLabelTranslated(label2, null, null) ]]>
    
    42
    -      </param>
    
    43
    -      <message>observe.referential.Referential.validation.label2.untranslated</message>
    
    44
    -    </field-validator>
    
    45
    -  </field>
    
    46
    -
    
    47
    -  <field name="label3">
    
    48
    -    <!-- label3 is not translated -->
    
    49
    -    <field-validator type="fieldexpression">
    
    50
    -      <param name="expression">
    
    51
    -        <![CDATA[ isLabelTranslated(label3, label1, label2) ]]>
    
    52
    -      </param>
    
    53
    -      <message>observe.referential.Referential.validation.label3.untranslated</message>
    
    54
    -    </field-validator>
    
    55
    -  </field>
    
    56
    -
    
    57
    -  <field name="status">
    
    58
    -    <!-- referential is enabled-->
    
    59
    -    <field-validator type="fieldexpression" short-circuit="true">
    
    60
    -      <param name="expression">
    
    61
    -        <![CDATA[ enabled ]]>
    
    62
    -      </param>
    
    63
    -      <message>observe.referential.Referential.validation.disabled</message>
    
    64
    -    </field-validator>
    
    65
    -  </field>
    
    66
    -
    
    67
    -  <field name="uri">
    
    68
    -    <!-- uri string should be filled -->
    
    69
    -    <field-validator type="stringNotFilled">
    
    70
    -      <message/>
    
    71
    -    </field-validator>
    
    72
    -  </field>
    
    73
    -
    
    74
    -</validators>