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

Commits:

30 changed files:

Changes:

  • .mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • .mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • client-configuration/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • client-configuration/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • client/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • client/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • dto/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • dto/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • dto/src/main/java/fr/ird/observe/dto/decoration/decorators/GearCaracteristicDtoDecorator.java
    1 1
     package fr.ird.observe.dto.decoration.decorators;
    
    2 2
     
    
    3
    +/*-
    
    4
    + * #%L
    
    5
    + * ObServe :: Dto
    
    6
    + * %%
    
    7
    + * Copyright (C) 2008 - 2018 IRD, Code Lutin, Ultreia.io
    
    8
    + * %%
    
    9
    + * This program is free software: you can redistribute it and/or modify
    
    10
    + * it under the terms of the GNU General Public License as
    
    11
    + * published by the Free Software Foundation, either version 3 of the
    
    12
    + * License, or (at your option) any later version.
    
    13
    + * 
    
    14
    + * This program is distributed in the hope that it will be useful,
    
    15
    + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    16
    + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    17
    + * GNU General Public License for more details.
    
    18
    + * 
    
    19
    + * You should have received a copy of the GNU General Public
    
    20
    + * License along with this program.  If not, see
    
    21
    + * <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    22
    + * #L%
    
    23
    + */
    
    24
    +
    
    3 25
     import fr.ird.observe.dto.referential.GearCaracteristicDto;
    
    4 26
     
    
    5 27
     import static org.nuiton.i18n.I18n.t;
    

  • dto/src/main/java/fr/ird/observe/dto/decoration/decorators/GearCaracteristicDtoDecorator.java~
    1
    +package fr.ird.observe.dto.decoration.decorators;
    
    2
    +
    
    3
    +<<<<<<< HEAD
    
    4
    +=======
    
    5
    +/*-
    
    6
    + * #%L
    
    7
    + * ObServe :: Dto
    
    8
    + * %%
    
    9
    + * Copyright (C) 2008 - 2018 IRD, Code Lutin, Ultreia.io
    
    10
    + * %%
    
    11
    + * This program is free software: you can redistribute it and/or modify
    
    12
    + * it under the terms of the GNU General Public License as
    
    13
    + * published by the Free Software Foundation, either version 3 of the
    
    14
    + * License, or (at your option) any later version.
    
    15
    + * 
    
    16
    + * This program is distributed in the hope that it will be useful,
    
    17
    + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    18
    + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    19
    + * GNU General Public License for more details.
    
    20
    + * 
    
    21
    + * You should have received a copy of the GNU General Public
    
    22
    + * License along with this program.  If not, see
    
    23
    + * <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    24
    + * #L%
    
    25
    + */
    
    26
    +
    
    27
    +>>>>>>> refs/heads/master-7.x
    
    28
    +import fr.ird.observe.dto.referential.GearCaracteristicDto;
    
    29
    +
    
    30
    +import static org.nuiton.i18n.I18n.t;
    
    31
    +
    
    32
    +/**
    
    33
    + * Created by tchemit on 13/06/2018.
    
    34
    + *
    
    35
    + * @author Tony Chemit - dev@tchemit.fr
    
    36
    + */
    
    37
    +public class GearCaracteristicDtoDecorator extends ObserveDecorator<GearCaracteristicDto> {
    
    38
    +
    
    39
    +    public GearCaracteristicDtoDecorator(String libelle) {
    
    40
    +        super(GearCaracteristicDto.class, "${code}$s##${" + libelle + "}$s##${unit}$s", " ");
    
    41
    +    }
    
    42
    +
    
    43
    +    @Override
    
    44
    +    protected Comparable<?> getDefaultNullValue(String token) {
    
    45
    +        Comparable<?> defaultNullValue = super.getDefaultNullValue(token);
    
    46
    +        if (defaultNullValue == null && token.equals(GearCaracteristicDto.PROPERTY_UNIT)) {
    
    47
    +            return t("observe.common.no.unit");
    
    48
    +        }
    
    49
    +        return defaultNullValue;
    
    50
    +    }
    
    51
    +}

  • dto/src/main/java/fr/ird/observe/dto/decoration/decorators/GeatCaracteristicReferenceDecorator.java
    1 1
     package fr.ird.observe.dto.decoration.decorators;
    
    2 2
     
    
    3
    +/*-
    
    4
    + * #%L
    
    5
    + * ObServe :: Dto
    
    6
    + * %%
    
    7
    + * Copyright (C) 2008 - 2018 IRD, Code Lutin, Ultreia.io
    
    8
    + * %%
    
    9
    + * This program is free software: you can redistribute it and/or modify
    
    10
    + * it under the terms of the GNU General Public License as
    
    11
    + * published by the Free Software Foundation, either version 3 of the
    
    12
    + * License, or (at your option) any later version.
    
    13
    + * 
    
    14
    + * This program is distributed in the hope that it will be useful,
    
    15
    + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    16
    + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    17
    + * GNU General Public License for more details.
    
    18
    + * 
    
    19
    + * You should have received a copy of the GNU General Public
    
    20
    + * License along with this program.  If not, see
    
    21
    + * <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    22
    + * #L%
    
    23
    + */
    
    24
    +
    
    3 25
     import fr.ird.observe.dto.referential.GearCaracteristicDto;
    
    4 26
     import fr.ird.observe.dto.referential.GearCaracteristicReference;
    
    5 27
     
    

  • dto/src/main/java/fr/ird/observe/dto/decoration/decorators/GeatCaracteristicReferenceDecorator.java~
    1
    +package fr.ird.observe.dto.decoration.decorators;
    
    2
    +
    
    3
    +<<<<<<< HEAD
    
    4
    +=======
    
    5
    +/*-
    
    6
    + * #%L
    
    7
    + * ObServe :: Dto
    
    8
    + * %%
    
    9
    + * Copyright (C) 2008 - 2018 IRD, Code Lutin, Ultreia.io
    
    10
    + * %%
    
    11
    + * This program is free software: you can redistribute it and/or modify
    
    12
    + * it under the terms of the GNU General Public License as
    
    13
    + * published by the Free Software Foundation, either version 3 of the
    
    14
    + * License, or (at your option) any later version.
    
    15
    + * 
    
    16
    + * This program is distributed in the hope that it will be useful,
    
    17
    + * but WITHOUT ANY WARRANTY; without even the implied warranty of
    
    18
    + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    
    19
    + * GNU General Public License for more details.
    
    20
    + * 
    
    21
    + * You should have received a copy of the GNU General Public
    
    22
    + * License along with this program.  If not, see
    
    23
    + * <http://www.gnu.org/licenses/gpl-3.0.html>.
    
    24
    + * #L%
    
    25
    + */
    
    26
    +
    
    27
    +>>>>>>> refs/heads/master-7.x
    
    28
    +import fr.ird.observe.dto.referential.GearCaracteristicDto;
    
    29
    +import fr.ird.observe.dto.referential.GearCaracteristicReference;
    
    30
    +
    
    31
    +import static org.nuiton.i18n.I18n.t;
    
    32
    +
    
    33
    +/**
    
    34
    + * Created by tchemit on 13/06/2018.
    
    35
    + *
    
    36
    + * @author Tony Chemit - dev@tchemit.fr
    
    37
    + */
    
    38
    +public class GeatCaracteristicReferenceDecorator extends ReferentialReferenceDecorator<GearCaracteristicReference> {
    
    39
    +    public GeatCaracteristicReferenceDecorator( ) {
    
    40
    +        super(GearCaracteristicReference.class, "${code}$s##${label}$s##${unit}$s");
    
    41
    +    }
    
    42
    +
    
    43
    +    @Override
    
    44
    +    protected Comparable<?> getDefaultNullValue(String token) {
    
    45
    +        Comparable<?> defaultNullValue = super.getDefaultNullValue(token);
    
    46
    +        if (defaultNullValue == null && token.equals(GearCaracteristicDto.PROPERTY_UNIT)) {
    
    47
    +            return t("observe.common.no.unit");
    
    48
    +        }
    
    49
    +        return defaultNullValue;
    
    50
    +    }
    
    51
    +}

  • observe/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • observe/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • persistence/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • persistence/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • server-configuration/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • server-configuration/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • server/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • server/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • services-client/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • services-client/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • services-local/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • services-local/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • services/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • services/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • test/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • test/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file

  • validation/.mvn/pom.gitflow.develop
    1
    -develop
    \ No newline at end of file
    1
    +develop-7.x
    \ No newline at end of file

  • validation/.mvn/pom.gitflow.master
    1
    -master
    \ No newline at end of file
    1
    +master-7.x
    \ No newline at end of file