branch feature/7608 updated (5f6f1c9 -> b6c9899)
This is an automated email from the git hooks/post-receive script. New change to branch feature/7608 in repository observe. See http://git.codelutin.com/observe.git from 5f6f1c9 ajout des validateurs (refs #7608) new b6c9899 correction de la supression des échantillons associés aux captures de faunes accesoires supprimées (refs #7608 #7609) The 1 revisions listed above as "new" are entirely new to this repository and will be described in separate emails. The revisions listed as "adds" were already present in the repository and have only been added to this reference. Detailed log of new commits: commit b6c98994beb07135881c3fb534a7eeefd3c0bdeb Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Wed Oct 21 16:00:39 2015 +0200 correction de la supression des échantillons associés aux captures de faunes accesoires supprimées (refs #7608 #7609) Summary of changes: .../resources/i18n/observe-application-swing_fr_FR.properties | 4 ++-- .../entities/seine/{TargetLenghts.java => NonTargetCatchs.java} | 8 ++++---- .../services/service/seine/NonTargetCatchServiceTopia.java | 6 +++--- .../services/service/seine/NonTargetSampleServiceTopia.java | 2 +- 4 files changed, 10 insertions(+), 10 deletions(-) copy observe-entities/src/main/java/fr/ird/observe/entities/seine/{TargetLenghts.java => NonTargetCatchs.java} (57%) -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
This is an automated email from the git hooks/post-receive script. New commit to branch feature/7608 in repository observe. See http://git.codelutin.com/observe.git commit b6c98994beb07135881c3fb534a7eeefd3c0bdeb Author: Sylvain Bavencoff <bavencoff@codelutin.com> Date: Wed Oct 21 16:00:39 2015 +0200 correction de la supression des échantillons associés aux captures de faunes accesoires supprimées (refs #7608 #7609) --- .../i18n/observe-application-swing_fr_FR.properties | 4 ++-- .../ird/observe/entities/seine/NonTargetCatchs.java | 20 ++++++++++++++++++++ .../service/seine/NonTargetCatchServiceTopia.java | 6 +++--- .../service/seine/NonTargetSampleServiceTopia.java | 2 +- 4 files changed, 26 insertions(+), 6 deletions(-) diff --git a/observe-application-swing/src/main/resources/i18n/observe-application-swing_fr_FR.properties b/observe-application-swing/src/main/resources/i18n/observe-application-swing_fr_FR.properties index e45f8e4..667f550 100644 --- a/observe-application-swing/src/main/resources/i18n/observe-application-swing_fr_FR.properties +++ b/observe-application-swing/src/main/resources/i18n/observe-application-swing_fr_FR.properties @@ -1538,7 +1538,7 @@ observe.message.warning.will.be.delete=%1$s\n\nAttention, l'export remplacera la observe.model.version=Version du modèle de données observe.navigationMenu.moveTrip=Réallocation du programme observe.navigationMenu.noAction=< Aucune action définie > -observe.nonTargetCatch.message.table.will.delete.nonTargetSample=En confirmant la sauvegarde des objets vont être supprimés\!\n\nLes espèces suivantes ne seront plus utilisables dans des échantillonages \:\n%1$s\nCela entrainera la suppression des échantillonages suivants \:\n%2$s +observe.nonTargetCatch.message.table.will.delete.nonTargetSample=En confirmant la sauvegarde des objets vont être supprimés\!\n\nLes espèces suivantes ne seront plus utilisables dans des échantillonages \:\n%1$s\nCela entrainera la suppression des échantillonages des ces espèces observe.nonTargetCatch.table.catchWeight=Poids observe.nonTargetCatch.table.catchWeight.tip=Poids estimé (en t) observe.nonTargetCatch.table.comment=Com @@ -2046,7 +2046,7 @@ observe.targetCatch.table.weightCategory=Catégorie de poids observe.targetCatch.table.weightCategory.tip=Catégorie de poids observe.targetCatch.table.well=Cuve observe.targetCatch.table.well.tip=Cuve -observe.targetDiscarded.message.table.will.delete.targetLength=En confirmant la sauvegarde des objets vont être supprimés\!\n\nLes espèces suivantes ne seront plus utilisables dans des échantillonages \:\n%1$s\nCela entrainera la suppression des échantillonnages des ses espèces +observe.targetDiscarded.message.table.will.delete.targetLength=En confirmant la sauvegarde des objets vont être supprimés\!\n\nLes espèces suivantes ne seront plus utilisables dans des échantillonages \:\n%1$s\nCela entrainera la suppression des échantillonnages des ces espèces observe.targetDiscarded.table.broughtOnDeck=M observe.targetDiscarded.table.broughtOnDeck.tip=Monté sur le pont ? observe.targetDiscarded.table.comment=Comm diff --git a/observe-entities/src/main/java/fr/ird/observe/entities/seine/NonTargetCatchs.java b/observe-entities/src/main/java/fr/ird/observe/entities/seine/NonTargetCatchs.java new file mode 100644 index 0000000..779473d --- /dev/null +++ b/observe-entities/src/main/java/fr/ird/observe/entities/seine/NonTargetCatchs.java @@ -0,0 +1,20 @@ +package fr.ird.observe.entities.seine; + +import com.google.common.base.Function; +import fr.ird.observe.entities.referentiel.Species; + +/** + * @author Sylvain Bavencoff - bavencoff@codelutin.com + */ +public class NonTargetCatchs { + + public static Function<NonTargetCatch, Species> getSpeciesFunction() { + return new Function<NonTargetCatch, Species>() { + @Override + public Species apply(NonTargetCatch input) { + return input.getSpecies(); + } + }; + } + +} diff --git a/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/NonTargetCatchServiceTopia.java b/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/NonTargetCatchServiceTopia.java index 74e5811..fc9a0d1 100644 --- a/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/NonTargetCatchServiceTopia.java +++ b/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/NonTargetCatchServiceTopia.java @@ -28,11 +28,11 @@ import com.google.common.collect.Sets; import fr.ird.observe.entities.referentiel.Ocean; import fr.ird.observe.entities.referentiel.Species; import fr.ird.observe.entities.seine.NonTargetCatch; +import fr.ird.observe.entities.seine.NonTargetCatchs; import fr.ird.observe.entities.seine.NonTargetLenghts; import fr.ird.observe.entities.seine.NonTargetLength; import fr.ird.observe.entities.seine.NonTargetSample; import fr.ird.observe.entities.seine.SetSeine; -import fr.ird.observe.entities.seine.TargetCatchs; import fr.ird.observe.entities.seine.TripSeine; import fr.ird.observe.services.ObserveServiceTopia; import fr.ird.observe.services.dto.FormDto; @@ -133,8 +133,8 @@ public class NonTargetCatchServiceTopia extends ObserveServiceTopia implements N NonTargetSample nonTargetSample = Iterables.get(setSeine.getNonTargetSample(), 0); Set<Species> speciesCatchs = Sets.newHashSet(Iterables.transform( - setSeine.getTargetCatch(), - TargetCatchs.getSpeciesFunction())); + setSeine.getNonTargetCatch(), + NonTargetCatchs.getSpeciesFunction())); Set<NonTargetLength> nonTargetLengthToDelete = Sets.newHashSet(); diff --git a/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/NonTargetSampleServiceTopia.java b/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/NonTargetSampleServiceTopia.java index 2272856..fb02144 100644 --- a/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/NonTargetSampleServiceTopia.java +++ b/observe-services-topia/src/main/java/fr/ird/observe/services/service/seine/NonTargetSampleServiceTopia.java @@ -98,7 +98,7 @@ public class NonTargetSampleServiceTopia extends ObserveServiceTopia implements NonTargetSample.class, nonTargetSample, new ReferenceTypeName(NonTargetLengthDto.class, SexDto.class, NonTargetLengthDto.PROPERTY_SEX), - new ReferenceTypeName(NonTargetLengthDto.class, SexDto.class, NonTargetLengthDto.PROPERTY_SPECIES) + new ReferenceTypeName(NonTargetLengthDto.class, SpeciesDto.class, NonTargetLengthDto.PROPERTY_SPECIES) ); // on filtre la list des espéces cibles -- To stop receiving notification emails like this one, please contact codelutin.com SCM administrator <admin+scm@list.forge.codelutin.com>.
participants (1)
-
codelutin.com scm