Observe-commits
Threads by month
- ----- 2026 -----
- June
- May
- April
- March
- February
- January
- ----- 2025 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2024 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2023 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2022 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2021 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2020 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2019 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2018 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2017 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2016 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2015 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2014 -----
- December
- November
- October
- September
- August
- July
- June
- May
- April
- March
- February
- January
- ----- 2013 -----
- December
- November
- October
- September
- 7199 discussions
[Git][ultreiaio/ird-observe][develop] 2 commits: Lors de l'ouverture de l'application, si la base locale est déjà occupée par...
by Tony CHEMIT 12 Sep '20
by Tony CHEMIT 12 Sep '20
12 Sep '20
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
64781e1d by Tony Chemit at 2020-09-12T13:26:33+02:00
Lors de l'ouverture de l'application, si la base locale est déjà occupée par une autre application, message erroné - Closes #1598
- - - - -
afaf0e4f by Tony Chemit at 2020-09-12T13:26:33+02:00
Insertion des lots de débarquements - See #1259
Ajout des référentiels
- - - - -
30 changed files:
- client-datasource-editor-api/src/main/i18n/getters/java.getter
- client-datasource-editor-api/src/main/i18n/templates/feedBackOnOpeningLocalDataSource_en_GB.ftl
- client-datasource-editor-api/src/main/i18n/templates/feedBackOnOpeningLocalDataSource_es_ES.ftl
- client-datasource-editor-api/src/main/i18n/templates/feedBackOnOpeningLocalDataSource_fr_FR.ftl
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/DataSourceEditorHelper.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/loading/open/OpenLocalDataSourceFeedBackModel.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/wizard/StorageUIModel.java
- client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/landing/LandingUIHandler.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/WeightCategoryUI.jaxx
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/WeightCategoryUI.jcss
- dto/src/main/java/fr/ird/observe/dto/decoration/ObserveI18nLabelsBuilder.java
- dto/src/main/models/Observe-05-referential-ps-landing.model
- observe-i18n/src/main/i18n/translations/observe_en_GB.properties
- observe-i18n/src/main/i18n/translations/observe_es_ES.properties
- observe-i18n/src/main/i18n/translations/observe_fr_FR.properties
- persistence/src/main/java/fr/ird/observe/entities/migration/DataSourceMigrationForVersion_8_1.java
- persistence/src/main/models/Observe-05-referential-ps-landing.model
- persistence/src/main/resources/db/migration/8.1/11_ps_landing_create_data_model-common.sql → persistence/src/main/resources/db/migration/8.1/10_ps_landing_create_data_model-common.sql
- persistence/src/main/resources/db/migration/8.1/10_ps_landing_create_referential_model-common.sql
- + persistence/src/main/resources/db/migration/8.1/10_ps_landing_fill_referential-common.sql
- test/src/main/resources/db/8.1/dataForTestLongline.sql.gz
- test/src/main/resources/db/8.1/dataForTestSeine.sql.gz
- test/src/main/resources/db/8.1/empty_h2.sql.gz
- test/src/main/resources/db/8.1/empty_pg.sql.gz
- test/src/main/resources/db/8.1/referentiel.sql.gz
- test/src/main/resources/fixtures/count-referential-seine.properties
- test/src/main/resources/fixtures/global.properties
- test/src/main/resources/fixtures/validate-service-referential.properties
- validation/src/main/i18n/getters/validation-fields.getter
Changes:
=====================================
client-datasource-editor-api/src/main/i18n/getters/java.getter
=====================================
@@ -84,6 +84,7 @@ observe.runner.initStorage.choice.useRemoteStorage
observe.runner.initStorage.done
observe.runner.initStorage.label.local
observe.runner.initStorage.local.db.error
+observe.runner.initStorage.local.db.error.notAuthorized
observe.runner.initStorage.title.create.local.db
observe.runner.initStorage.title.load.remote.db
observe.runner.initStorage.title.no.local.db.found
=====================================
client-datasource-editor-api/src/main/i18n/templates/feedBackOnOpeningLocalDataSource_en_GB.ftl
=====================================
@@ -21,6 +21,12 @@
<body>
<h3>${errorTitle}</h3>
<p><b>${error.message!""}</b></p>
+<#if databaseLocked>
+<p style="color: red;font-style: italic;font-weight: bold">
+ Local database seems to be locked by another application, please check this before continue...
+</p>
+</#if>
+
<hr/>
<p>At this point, we can produce a feed back archive with the local data source and any stuff to be able to fix the
problem.</p>
=====================================
client-datasource-editor-api/src/main/i18n/templates/feedBackOnOpeningLocalDataSource_es_ES.ftl
=====================================
@@ -22,6 +22,11 @@
#TODO
<h3>${errorTitle}</h3>
<p><b>${error.message!""}</b></p>
+<#if databaseLocked>
+<p style="color: red;font-style: italic;font-weight: bold">
+ Local database seems to be locked by another application, please check this before continue...
+</p>
+</#if>
<hr/>
<p>At this point, we can produce a feed back archive with the local data source and any stuff to be able to fix the
=====================================
client-datasource-editor-api/src/main/i18n/templates/feedBackOnOpeningLocalDataSource_fr_FR.ftl
=====================================
@@ -22,6 +22,12 @@
<h3>${errorTitle}</h3>
<p><b>${error.message!""}</b></p>
+<#if databaseLocked>
+ <p style="color: red;font-style: italic;font-weight: bold">
+ La base locale semble utilisée par une autre application, vérifier cela avant de continuer...
+ </p>
+
+</#if>
<hr/>
<br/>
=====================================
client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/DataSourceEditorHelper.java
=====================================
@@ -37,6 +37,7 @@ import fr.ird.observe.services.configuration.DataSourceCreateConfigurationDto;
import fr.ird.observe.services.configuration.ObserveDataSourceConfiguration;
import fr.ird.observe.services.configuration.ObserveDataSourceInformation;
import fr.ird.observe.services.configuration.topia.ObserveDataSourceConfigurationTopiaH2;
+import fr.ird.observe.services.service.DatabaseConnexionNotAuthorizedException;
import io.ultreia.java4all.i18n.I18n;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -93,6 +94,16 @@ public class DataSourceEditorHelper {
mainUI.getMainUIBodyContentManager().getBodyTyped(DataSourceEditor.class, DataSourceEditorBodyContent.class).loadStorage(mainUI, dataSource);
askToCreate = false;
+ } catch (DatabaseConnexionNotAuthorizedException e) {
+ // May be data source is locked
+ log.error("Could not load local database", e);
+ JOptionPane.showMessageDialog(
+ mainUI,
+ t("observe.runner.initStorage.local.db.error.notAuthorized"),
+ t("observe.runner.title.error.dialog"),
+ JOptionPane.WARNING_MESSAGE
+ );
+ return;
} catch (Exception e) {
if (lastAutomaticBackup != null) {
=====================================
client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/loading/open/OpenLocalDataSourceFeedBackModel.java
=====================================
@@ -26,6 +26,7 @@ import fr.ird.observe.client.action.api.ActionStep;
import fr.ird.observe.client.action.api.FeedBackBuilder;
import fr.ird.observe.client.configuration.ClientConfig;
import fr.ird.observe.client.datasource.editor.loading.LoadingDataSourceContext;
+import fr.ird.observe.services.service.DatabaseConnexionNotAuthorizedException;
import io.ultreia.java4all.application.template.spi.GenerateTemplate;
import java.util.List;
@@ -37,7 +38,7 @@ import static io.ultreia.java4all.i18n.I18n.t;
public class OpenLocalDataSourceFeedBackModel extends FeedBackBuilder.FeedBackBuilderModel {
public OpenLocalDataSourceFeedBackModel(ClientConfig config, List<ActionStep<LoadingDataSourceContext>> stepsFailed) {
- super(config, stepsFailed,t("observe.error.storage.could.not.open.data.source.title"));
+ super(config, stepsFailed, t("observe.error.storage.could.not.open.data.source.title"));
}
@Override
@@ -45,5 +46,8 @@ public class OpenLocalDataSourceFeedBackModel extends FeedBackBuilder.FeedBackBu
return OpenLocalDataSourceFeedBackModelTemplate.generate(this);
}
+ public boolean isDatabaseLocked() {
+ return getError() instanceof DatabaseConnexionNotAuthorizedException;
+ }
}
=====================================
client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/wizard/StorageUIModel.java
=====================================
@@ -184,6 +184,10 @@ public class StorageUIModel extends WizardModel<StorageStep> implements WithClie
* Connexion status error (if any!).
*/
protected String connexionStatusError;
+ /**
+ * Connexion status error (if any!).
+ */
+ protected Throwable connexionError;
/**
* Can use local data source?
*/
@@ -1876,6 +1880,7 @@ public class StorageUIModel extends WizardModel<StorageStep> implements WithClie
if (e instanceof UndeclaredThrowableException) {
e = ((UndeclaredThrowableException) e).getUndeclaredThrowable();
}
+ connexionError = e;
connexionStatusError = e.getMessage();
log.error("Error in test remote", e);
setConnexionStatus(ConnexionStatus.FAILED);
@@ -1921,6 +1926,10 @@ public class StorageUIModel extends WizardModel<StorageStep> implements WithClie
return connexionStatusError;
}
+ public Throwable getConnexionError() {
+ return connexionError;
+ }
+
public boolean isShowMigrationSql() {
return pgConfig.isShowMigrationSql();
}
=====================================
client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
=====================================
@@ -401,6 +401,8 @@ observe.referential.Referential.validityDateRange
observe.referential.ps.common.SpeciesFate.discard
observe.referential.ps.common.TransmittingBuoyType.technology
observe.referential.ps.common.VesselActivity.allowFad
+observe.referential.ps.landing.WeightCategory.sovLabel
+observe.referential.ps.landing.WeightCategory.starLabel
observe.referential.ps.localmarket.Packaging.harbour
observe.referential.ps.localmarket.Packaging.weight
observe.referential.ps.logbook.ObjectMaterial.biodegradable
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/landing/LandingUIHandler.java
=====================================
@@ -37,6 +37,7 @@ import java.awt.Component;
import java.beans.PropertyChangeListener;
import java.util.Collections;
import java.util.List;
+import java.util.Objects;
import java.util.stream.Collectors;
/**
@@ -109,7 +110,7 @@ class LandingUIHandler extends ContentTableUIHandler<TripLandingDto, LandingDto,
newCategories = Collections.emptyList();
} else {
List<WeightCategoryReference> referentialReferences = getModel().getReferenceCache().getReferentialReferences(LandingDto.PROPERTY_WEIGHT_CATEGORY);
- newCategories = referentialReferences.stream().filter(r -> r.getSpecies().equals(species)).collect(Collectors.toList());
+ newCategories = referentialReferences.stream().filter(r -> Objects.equals(species, r.getSpecies())).collect(Collectors.toList());
WeightCategoryReference weightCategory = getModel().getTableEditBean().getWeightCategory();
if (weightCategory != null && newCategories.contains(weightCategory)) {
newCategory = weightCategory;
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/WeightCategoryUI.jaxx
=====================================
@@ -81,6 +81,25 @@
</cell>
</row>
+ <!-- sovLabel -->
+ <row>
+ <cell anchor="west">
+ <JLabel id='sovLabelLabel'/>
+ </cell>
+ <cell anchor='east' weightx="1" fill="both">
+ <NormalTextEditor id='sovLabel'/>
+ </cell>
+ </row>
+ <!-- starLabel -->
+ <row>
+ <cell anchor="west">
+ <JLabel id='starLabelLabel'/>
+ </cell>
+ <cell anchor='east' weightx="1" fill="both">
+ <NormalTextEditor id='starLabel'/>
+ </cell>
+ </row>
+
<!-- needComment -->
<row>
<cell anchor='east' weightx="1" fill="both" columns="2">
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/WeightCategoryUI.jcss
=====================================
@@ -24,8 +24,3 @@
font-style:"italic";
}
-#species {
- property:{WeightCategoryDto.PROPERTY_SPECIES};
- selectedItem:{bean.getSpecies()};
-}
-
=====================================
dto/src/main/java/fr/ird/observe/dto/decoration/ObserveI18nLabelsBuilder.java
=====================================
@@ -29,6 +29,9 @@ import fr.ird.observe.dto.data.DataDto;
import fr.ird.observe.dto.referential.I18nReferentialDto;
import fr.ird.observe.dto.referential.ReferentialDto;
import fr.ird.observe.dto.referential.WithFormula;
+import fr.ird.observe.dto.referential.common.SpeciesDto;
+import fr.ird.observe.dto.referential.common.VesselSizeCategoryDto;
+import fr.ird.observe.dto.referential.ps.landing.WeightCategoryDto;
import fr.ird.observe.spi.type.TypeTranslators;
import io.ultreia.java4all.i18n.spi.bean.BeanPropertyI18nKeyProducerSupport;
import org.apache.commons.lang3.StringUtils;
@@ -216,9 +219,11 @@ public class ObserveI18nLabelsBuilder extends BeanPropertyI18nKeyProducerSupport
private static final ImmutableSet<String> SKIP_LABEL = ImmutableSet.of(
"speciesLabel",
- "scientificLabel",
- "capacityLabel",
- "gaugeLabel",
+ SpeciesDto.PROPERTY_SCIENTIFIC_LABEL,
+ VesselSizeCategoryDto.PROPERTY_CAPACITY_LABEL,
+ VesselSizeCategoryDto.PROPERTY_GAUGE_LABEL,
+ WeightCategoryDto.PROPERTY_SOV_LABEL,
+ WeightCategoryDto.PROPERTY_STAR_LABEL,
WithStartEndDate.PROPERTY_VALIDITY_RANGE_LABEL,
WithStartEndDate.PROPERTY_START_END_DATE_LABEL
);
=====================================
dto/src/main/models/Observe-05-referential-ps-landing.model
=====================================
@@ -4,3 +4,5 @@ referential.ps.landing.Fate > referential.I18nReferential
referential.ps.landing.WeightCategory > referential.I18nReferential >> reference.ReferentialDtoReferenceWithNoCodeAware | references=code,label,uri,species
species {*:1} fr.ird.observe.dto.referential.common.SpeciesReference
+sovLabel + {*:1} String | notNull
+starLabel + {*:1} String | notNull
=====================================
observe-i18n/src/main/i18n/translations/observe_en_GB.properties
=====================================
@@ -2195,6 +2195,8 @@ observe.referential.ps.common.TransmittingBuoyTypeDto.validation.technology.too.
observe.referential.ps.common.VesselActivity.allowFad=Allow Fad ?
observe.referential.ps.common.VesselActivity.type=Vessel activity (Seine)
observe.referential.ps.landing.Fate.type=Fate
+observe.referential.ps.landing.WeightCategory.sovLabel=Sov label
+observe.referential.ps.landing.WeightCategory.starLabel=Star label
observe.referential.ps.landing.WeightCategory.type=Weight category
observe.referential.ps.localmarket.Packaging.harbour=Harbour
observe.referential.ps.localmarket.Packaging.packagingType=Packaging type
@@ -2265,6 +2267,7 @@ observe.runner.initStorage.choice.useRemoteStorage=Use a remote storage
observe.runner.initStorage.done=Init of Persistent Service done.
observe.runner.initStorage.label.local=Local database
observe.runner.initStorage.local.db.error=Could not find local database, will load last backup (%s)
+observe.runner.initStorage.local.db.error.notAuthorized=Could not find local database, maybe it is locked. Please check.
observe.runner.initStorage.title.create.local.db=Loading local database
observe.runner.initStorage.title.load.remote.db=Load remote database
observe.runner.initStorage.title.no.local.db.found=No local database found.
=====================================
observe-i18n/src/main/i18n/translations/observe_es_ES.properties
=====================================
@@ -2195,6 +2195,8 @@ observe.referential.ps.common.TransmittingBuoyTypeDto.validation.technology.too.
observe.referential.ps.common.VesselActivity.allowFad=Utilisation Object flottant ? \#TODO
observe.referential.ps.common.VesselActivity.type=Actividad buque \#TODO-SP
observe.referential.ps.landing.Fate.type=Fate \#TODO
+observe.referential.ps.landing.WeightCategory.sovLabel=Sov label \#TODO
+observe.referential.ps.landing.WeightCategory.starLabel=Star label \#TODO
observe.referential.ps.landing.WeightCategory.type=Weight category \#
observe.referential.ps.localmarket.Packaging.harbour=Harbour
observe.referential.ps.localmarket.Packaging.packagingType=Packaging type
@@ -2265,6 +2267,7 @@ observe.runner.initStorage.choice.useRemoteStorage=Usar la base de datos remota
observe.runner.initStorage.done=Inicialización del servicio de persistencia terminado.
observe.runner.initStorage.label.local=Base local
observe.runner.initStorage.local.db.error=Imposible cargar la base local, se cargará el último backup
+observe.runner.initStorage.local.db.error.notAuthorized=Could not find local database, maybe it is locked. Please check. \#TODO
observe.runner.initStorage.title.create.local.db=Cargando una base local
observe.runner.initStorage.title.load.remote.db=Cargando una base remota
observe.runner.initStorage.title.no.local.db.found=Ninguna base local fue encontrada
=====================================
observe-i18n/src/main/i18n/translations/observe_fr_FR.properties
=====================================
@@ -2195,6 +2195,8 @@ observe.referential.ps.common.TransmittingBuoyTypeDto.validation.technology.too.
observe.referential.ps.common.VesselActivity.allowFad=Utilisation Object flottant ?
observe.referential.ps.common.VesselActivity.type=Activité bateau (Senne)
observe.referential.ps.landing.Fate.type=Devenir
+observe.referential.ps.landing.WeightCategory.sovLabel=Sov libellé
+observe.referential.ps.landing.WeightCategory.starLabel=Star libellé
observe.referential.ps.landing.WeightCategory.type=Catégorie de poids
observe.referential.ps.localmarket.Packaging.harbour=Port
observe.referential.ps.localmarket.Packaging.packagingType=Type de conditionnement
@@ -2265,6 +2267,7 @@ observe.runner.initStorage.choice.useRemoteStorage=Utiliser une base distante
observe.runner.initStorage.done=Initialisation du service de persistance terminé.
observe.runner.initStorage.label.local=Base locale
observe.runner.initStorage.local.db.error=Impossible de charger la base locale, la dernière sauvegarde (du %s) va être utilisée
+observe.runner.initStorage.local.db.error.notAuthorized=Impossible de charger la base locale, elle semble etre déjà utilisée par une autre application.
observe.runner.initStorage.title.create.local.db=Chargement d'une base locale
observe.runner.initStorage.title.load.remote.db=Chargement d'une base distante
observe.runner.initStorage.title.no.local.db.found=Aucune base locale trouvée
=====================================
persistence/src/main/java/fr/ird/observe/entities/migration/DataSourceMigrationForVersion_8_1.java
=====================================
@@ -69,8 +69,13 @@ public class DataSourceMigrationForVersion_8_1 extends MigrationVersionResource
executor.addScript("07", "ps_common_adapt_trip");
executor.addScript("08", "ps_logbook_create_data_model");
executor.executeForPG(this::fixPostgisTriggers);
+
executor.addScript("10", "ps_landing_create_referential_model");
- executor.addScript("11", "ps_landing_create_data_model");
+ executor.addScript("10", "ps_landing_create_data_model");
+ if (withIds) {
+ executor.addScript("10", "ps_landing_fill_referential");
+ }
+
executor.addScript("12", "ps_wellplan_create_referential_model");
executor.addScript("13", "ps_wellplan_create_data_model");
executor.addScript("14", "ps_logbook_create_sample_referential_model");
=====================================
persistence/src/main/models/Observe-05-referential-ps-landing.model
=====================================
@@ -4,3 +4,5 @@ referential.ps.landing.Fate > referential.I18nReferentialEntity | entity
referential.ps.landing.WeightCategory > referential.I18nReferentialEntity | entity
species {*:1} referential.common.Species | lazy=false
+sovLabel + {*:1} String
+starLabel + {*:1} String
=====================================
persistence/src/main/resources/db/migration/8.1/11_ps_landing_create_data_model-common.sql → persistence/src/main/resources/db/migration/8.1/10_ps_landing_create_data_model-common.sql
=====================================
=====================================
persistence/src/main/resources/db/migration/8.1/10_ps_landing_create_referential_model-common.sql
=====================================
@@ -22,7 +22,7 @@
CREATE SCHEMA ps_landing;
CREATE TABLE ps_landing.Fate(topiaId VARCHAR(255) NOT NULL CONSTRAINT pk_ps_landing_Fate PRIMARY KEY, topiaVersion BIGINT NOT NULL, topiaCreateDate DATE, code VARCHAR(255) NOT NULL, uri VARCHAR(255), homeId VARCHAR(255), status INTEGER DEFAULT 1, needComment BOOLEAN DEFAULT FALSE,lastUpdateDate TIMESTAMP DEFAULT now() NOT NULL, label1 VARCHAR(255), label2 VARCHAR(255), label3 VARCHAR(255), label4 VARCHAR(255), label5 VARCHAR(255), label6 VARCHAR(255), label7 VARCHAR(255), label8 VARCHAR(255));
-CREATE TABLE ps_landing.weightCategory(topiaId VARCHAR(255) NOT NULL CONSTRAINT pk_ps_landing_weightCategory PRIMARY KEY, topiaVersion BIGINT NOT NULL, topiaCreateDate TIMESTAMP, code VARCHAR(255), uri VARCHAR(255), homeId VARCHAR(255), status INTEGER DEFAULT 1, needComment BOOLEAN DEFAULT FALSE, lastUpdateDate TIMESTAMP DEFAULT now() NOT NULL, label1 VARCHAR(255), label2 VARCHAR(255), label3 VARCHAR(255), label4 VARCHAR(255), label5 VARCHAR(255), label6 VARCHAR(255), label7 VARCHAR(255), label8 VARCHAR(255), species VARCHAR(255));
+CREATE TABLE ps_landing.weightCategory(topiaId VARCHAR(255) NOT NULL CONSTRAINT pk_ps_landing_weightCategory PRIMARY KEY, topiaVersion BIGINT NOT NULL, topiaCreateDate TIMESTAMP, code VARCHAR(255), uri VARCHAR(255), homeId VARCHAR(255), status INTEGER DEFAULT 1, needComment BOOLEAN DEFAULT FALSE, lastUpdateDate TIMESTAMP DEFAULT now() NOT NULL, label1 VARCHAR(255), label2 VARCHAR(255), label3 VARCHAR(255), label4 VARCHAR(255), label5 VARCHAR(255), label6 VARCHAR(255), label7 VARCHAR(255), label8 VARCHAR(255), sovLabel VARCHAR(255) NOT NULL, starLabel VARCHAR(255) NOT NULL, species VARCHAR(255));
ALTER TABLE ps_landing.weightCategory ADD CONSTRAINT fk_ps_landing_weightCategory_species FOREIGN KEY(species) REFERENCES common.species;
=====================================
persistence/src/main/resources/db/migration/8.1/10_ps_landing_fill_referential-common.sql
=====================================
@@ -0,0 +1,102 @@
+---
+-- #%L
+-- ObServe :: Persistence
+-- %%
+-- Copyright (C) 2008 - 2020 IRD, Code Lutin, Ultreia.io
+-- %%
+-- 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%
+---
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528897#0.9849989043584604', 0, 1, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.279'::timestamp, 'Albacore -10', 'Yellowfin R1 + R2+ R3');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528897#0.37431829932158744', 0, 2, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp, 'Albacore +10', 'GG');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528897#0.5314676874701734', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp, 'Albacore ?', 'Yellowfin ?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528897#0.12396399303506567', 0, 10, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp, 'Albacore frais (canneurs)', 'Albacore frais (canneurs)');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528897#0.9880486795552492', 0, 50, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp, 'Inconnu', 'GG + 13.6 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528897#0.846209974442883', 0, 51, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp, 'Inconnu', 'R1 entre 13.6 et 3.4 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528897#0.7042864703615278', 0, 52, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp, 'Inconnu', 'R2 entre 3.4 et 1.8 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.49007162713264407', 0, 53, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp, 'Inconnu', 'R3 moins de 1.8 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.6025938943078754', 0, 70, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp , 'Inconnu', 'GG + 13.6 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.7173389548457879', 0, 71, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp, 'Inconnu', 'R1 entre 13.6 et 3.4 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.5739515277681424', 0, 72, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp, 'Inconnu', 'R2 entre 3.4 et 1.8 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.9007932955815551', 0, 73, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.288'::timestamp, 'Inconnu', 'R3 moins de 1.8 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.9187448106864885', 0, 1, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.289'::timestamp, 'Listao - 1.8', 'Skipjack R2 + R3');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.25771673830083053', 0, 2, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.289'::timestamp, 'Listao + 1.8', 'Skipjack R1 + Jumbo');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.9366187356366772', 0, 3, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.289'::timestamp, 'Listao -1.5', 'Skipjack ?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.45933952568779757', 0, 4, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.289'::timestamp, 'Listao 1.5 à 1.8', 'Skipjack ?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.984474862871156', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.29'::timestamp, 'Listao ?', 'Skipjack ?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528898#0.682911685142915', 0, 50, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.29'::timestamp, '+3.4 Kg', 'JUMBO + 3.4 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528899#0.7220987469827985', 0, 51, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.29'::timestamp, '+1.8 Kg à +3.4 Kg', 'R1 entre 3.4 et 1.8 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528899#0.04293797444920311', 0, 52, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.29'::timestamp, '-1.8 Kg', 'R2 entre 1.8 et 1.4 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528899#0.9216790161293088', 0, 53, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.29'::timestamp, '-1.5 Kg', 'R3 moins de 1.4 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528899#0.6371301485277248', 0, 70, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.29'::timestamp, 'Inconnu', 'JUMBO + 3.4 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528899#0.09257426517648015', 0, 71, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.29'::timestamp, 'Inconnu', 'R1 entre 3.4 et 1.8 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528899#0.5717845604984648', 0, 72, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.29'::timestamp, 'Inconnu', 'R2 entre 1.8 et 1.4 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528899#0.3686414703255526', 0, 73, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.29'::timestamp, 'Inconnu', 'R3 moins de 1.4 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528899#0.55718847508238', 0, 1, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.29'::timestamp, 'Patudo - 10', 'Bigeye?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528899#0.1154225150942314', 0, 2, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.29'::timestamp, 'Patudo + 10', 'Bigeye?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528899#0.2685200181978007', 0, 3, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.29'::timestamp, 'Patudo - 15', 'Bigeye?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528900#0.6722831615934043', 0, 4, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Patudo + 15', 'Bigeye?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528900#0.19938872094926574', 0, 5, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Patudo + 35', 'Bigeye?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528900#0.5746266936785298', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Patudo ?', 'Bigeye ?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528900#0.25713892292707874', 0, 10, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Patudo frais (canneurs)', 'Patudo frais (canneurs)');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528900#0.6685982018841194', 0, 50, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Inconnu', 'GG + 13.6 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528900#0.6904127607618373', 0, 51, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Inconnu', 'R1 entre 13.6 et 3.4 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528900#0.2909239953543622', 0, 52, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Inconnu', 'R2 entre 3.4 et 1.8 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528900#0.9449657799790759', 0, 53, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Inconnu', 'R3 moins de 1.8 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528900#0.33597810152594676', 0, 70, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Inconnu', 'GG + 13.6 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528900#0.8237006835612211', 0, 71, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Inconnu', 'R1 entre 13.6 et 3.4 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.657751933189818', 0, 72, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Inconnu', 'R2 entre 3.4 et 1.8 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.5073081843096476', 0, 73, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.291'::timestamp, 'Inconnu', 'R3 moins de 1.8 kg');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.0836610498990451', 0, 2, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685476#0.5618871286604711', '2011-02-13 08:02:06.291'::timestamp, 'Germon ', 'Albacora');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.9643811025507996', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685476#0.5618871286604711', '2011-02-13 08:02:06.291'::timestamp, 'Germon ?', 'Abacora ?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.9682190838497855', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685477#0.8024257002747615', '2011-02-13 08:02:06.291'::timestamp, 'Thonine ', 'undefined');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.45162453191323304', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685477#0.3846921632590058', '2011-02-13 08:02:06.291'::timestamp, 'Auxide ', 'undefined');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.9463330829438842', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832684157#0.9835191073325458', '2011-02-13 08:02:06.291'::timestamp, 'Requins ', 'undefined');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.8486727929567192', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1433499266610#0.696541526820511', '2011-02-13 08:02:06.291'::timestamp, 'Rejets', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.5077396278663612', 0, 1, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1433499266610#0.696541526820511', '2011-02-13 08:02:06.291'::timestamp, 'Thonidés - 10 Kg', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.676520211264963', 0, 2, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1433499266610#0.696541526820511', '2011-02-13 08:02:06.291'::timestamp, 'Thonidés +10 Kg', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528901#0.4959464977070138', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1433499266610#0.696541526820511', '2011-02-13 08:02:06.291'::timestamp, 'Thonidés', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.76777812435383', 0, 10, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1433499266610#0.696541526820511', '2011-02-13 08:02:06.292'::timestamp, 'Albacore et Patudo frais (canneurs)', 'Albacore et Patudo frais (canneurs)');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.3176362508792657', 0, 50, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1433499266610#0.696541526820511', '2011-02-13 08:02:06.292'::timestamp, 'SJ YF BE 3.4-10', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.6606118784093948', 0, 51, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1433499266610#0.696541526820511', '2011-02-13 08:02:06.292'::timestamp, 'SJ YF BE 1.8-3.4', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.8531106782664439', 0, 52, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1433499266610#0.696541526820511', '2011-02-13 08:02:06.292'::timestamp, 'SJ YF BE 1.5-1.8', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.1116407842625079', 0, 53, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1433499266610#0.696541526820511', '2011-02-13 08:02:06.292'::timestamp, 'SJ YF BE 1-1.5', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.9969288992557673', 0, 54, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1433499266610#0.696541526820511', '2011-02-13 08:02:06.292'::timestamp, 'SJ YF BE under 1', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.41727746602759885', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685477#0.2673009297087321', '2011-02-13 08:02:06.292'::timestamp, 'Thonine orientale', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.7829486684431057', 0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685478#0.7676744877900202', '2011-02-13 08:02:06.292'::timestamp, 'Thon mignon', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.014541584988570166',0, 9, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685477#0.2908846499255108', '2011-02-13 08:02:06.292'::timestamp, 'Thon à nageoires noires', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.902691806614427', 0, 54, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.8943253454598569', '2011-02-13 08:02:06.292'::timestamp, 'YFT -3.4 Kg', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528902#0.6335347201678889', 0, 54, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685474#0.975344121171992', '2011-02-13 08:02:06.292'::timestamp, 'SKJ -3.4 Kg', '?');
+INSERT INTO ps_landing.WeightCategory (topiaid, topiaversion, code, status, lastUpdateDate, species, topiacreatedate, sovLabel, starLabel) VALUES ('fr.ird.referential.ps.landing.WeightCategory#1297580528903#0.49410286646783097', 0, 54, 1, ${CURRENT_TIMESTAMP}, 'fr.ird.referential.common.Species#1239832685475#0.13349466123905152', '2011-02-13 08:02:06.292'::timestamp, 'BET -3.4 Kg', '?');
+UPDATE ps_landing.WeightCategory SET label2 = sovLabel, label1 = sovLabel || ' #TODO', label3 = sovLabel || ' #TODO';
+
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.1', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 1, 'Castelli');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.2', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 2, 'SCODI');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.3', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 3, 'PFCI');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.4', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 4, 'Cargo');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.5', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 5, 'Conteneur');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.6', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 6, 'SOGEF');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.7', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 7, 'IOT');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.8', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 8, 'PFOI');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.9', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 9, 'SENEMER');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.10', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 10, 'PIONNER FOOD CANNERY LTD');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.11', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 11, 'SOCOFROID');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.12', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 12, 'PFC TEMA');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.13', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 13, 'AIRONE CI');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.14', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 14, 'SCASA');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.15', 0, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 15, 'SOCEF');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1464000000000#0.0001616', 0, 1, '2018-03-09 21:57:34'::timestamp, ${CURRENT_TIMESTAMP}, 16, 'PRINCES TUNA LIMITED');
+INSERT INTO ps_landing.Fate (topiaid, topiaversion, status, topiacreatedate, lastUpdateDate, code, label1) VALUES ('fr.ird.referential.ps.landing.Fate#1454009635524#0.16', 1, 1, '2016-01-28 00:00:00'::timestamp, ${CURRENT_TIMESTAMP}, 999, 'Autre');
+UPDATE ps_landing.Fate SET label2 = label1, label3 = label1;
=====================================
test/src/main/resources/db/8.1/dataForTestLongline.sql.gz
=====================================
Binary files a/test/src/main/resources/db/8.1/dataForTestLongline.sql.gz and b/test/src/main/resources/db/8.1/dataForTestLongline.sql.gz differ
=====================================
test/src/main/resources/db/8.1/dataForTestSeine.sql.gz
=====================================
Binary files a/test/src/main/resources/db/8.1/dataForTestSeine.sql.gz and b/test/src/main/resources/db/8.1/dataForTestSeine.sql.gz differ
=====================================
test/src/main/resources/db/8.1/empty_h2.sql.gz
=====================================
Binary files a/test/src/main/resources/db/8.1/empty_h2.sql.gz and b/test/src/main/resources/db/8.1/empty_h2.sql.gz differ
=====================================
test/src/main/resources/db/8.1/empty_pg.sql.gz
=====================================
Binary files a/test/src/main/resources/db/8.1/empty_pg.sql.gz and b/test/src/main/resources/db/8.1/empty_pg.sql.gz differ
=====================================
test/src/main/resources/db/8.1/referentiel.sql.gz
=====================================
Binary files a/test/src/main/resources/db/8.1/referentiel.sql.gz and b/test/src/main/resources/db/8.1/referentiel.sql.gz differ
=====================================
test/src/main/resources/fixtures/count-referential-seine.properties
=====================================
@@ -46,7 +46,7 @@ ps_logbook.objectmaterial=80
ps_logbook.observedsystem=24
ps_logbook.samplequality=5
ps_logbook.sampletype=6
-ps_landing.fate=0
-ps_landing.weightcategory=0
+ps_landing.fate=17
+ps_landing.weightcategory=61
ps_localmarket.packaging=49
ps_localmarket.packagingtype=4
=====================================
test/src/main/resources/fixtures/global.properties
=====================================
@@ -38,7 +38,7 @@ DATA_FORM_COUNT=55
ENTITY_BINDER_REFERENTIAL_COUNT=87
# for fr.ird.observe.services.local.service.referential.differential.DifferentialModelTest
-REFERENTIAL_COUNT=3194
+REFERENTIAL_COUNT=3272
# for fr.ird.observe.validation.BeanValidatorDetectorTest
VALIDATORS_COUNT=92
=====================================
test/src/main/resources/fixtures/validate-service-referential.properties
=====================================
@@ -94,6 +94,9 @@ ps.logbook.SampleTypeDto=3
ps.logbook.WeightCategoryDto=3
#FIXME Should be 0 when I18n will be ok
ps.logbook.WellsStateDto=1
+ps.landing.FateDto=3
+#FIXME Should be 0 when I18n will be ok
+ps.landing.WeightCategoryDto=3
ps.observation.DetectionModeDto=3
#FIXME Should be 0 when I18n will be ok
ps.observation.InformationSourceDto=1
=====================================
validation/src/main/i18n/getters/validation-fields.getter
=====================================
@@ -459,6 +459,8 @@ observe.referential.common.Wind.speedRange
observe.referential.common.Wind.waveHeight
observe.referential.ll.observation.SensorBrand.brandName
observe.referential.ps.common.TransmittingBuoyType.technology
+observe.referential.ps.landing.WeightCategory.sovLabel
+observe.referential.ps.landing.WeightCategory.starLabel
observe.referential.ps.localmarket.Packaging.harbour
observe.referential.ps.localmarket.Packaging.packagingType
observe.referential.ps.logbook.ObjectMaterial.legacyCode
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/37d8e4d41891e14e748fbaf4…
--
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/37d8e4d41891e14e748fbaf4…
You're receiving this email because of your account on gitlab.com.
1
0
[Git][ultreiaio/ird-observe][develop] Insertion du suivi du marché local - See #1262
by Tony CHEMIT 09 Sep '20
by Tony CHEMIT 09 Sep '20
09 Sep '20
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
37d8e4d4 by Tony Chemit at 2020-09-09T19:35:45+02:00
Insertion du suivi du marché local - See #1262
- - - - -
30 changed files:
- client-configuration/src/main/config/Client.ini
- client-configuration/src/main/i18n/getters/config.getter
- client-core/src/main/java/fr/ird/observe/client/main/body/ClientConfigUI.java
- client-core/src/main/java/fr/ird/observe/client/util/DtoIconHelper.java
- client-datasource-editor-api/src/main/i18n/getters/java.getter
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/content/data/open/ContentOpenableUILayoutFocusTraversalPolicy.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/content/data/open/actions/Create.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/DataSourceEditorNavigationMenu.jaxx
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/DataSourceEditorNavigationMenuHandler.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineCommonReferentialAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLandingReferentialAction.java
- + client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLocalmarketReferentialAction.java
- + client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLocalmarketSampleAction.java
- + client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLocalmarketSurveyAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLogbookReferentialAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineObsReferentialAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/NavigationTreeNodeSupport.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/validation/ClientValidationContext.java
- client-datasource-editor-common/src/main/java/fr/ird/observe/client/datasource/editor/content/data/TripActionHelper.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ll/logbook/actions/ActivityUIDelete.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ll/logbook/actions/LandingUIDelete.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ll/observation/actions/ActivityUIDelete.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ll/logbook/ActivityListNavigationTreeNode.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ll/logbook/TripLandingListNavigationTreeNode.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ll/logbook/TripSampleListNavigationTreeNode.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ll/observation/ActivityListNavigationTreeNode.java
- client-datasource-editor-ps/src/main/i18n/getters/java.getter
- client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ObservePsKeyStrokes.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUI.jaxx
The diff was not included because it is too large.
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/37d8e4d41891e14e748fbaf47…
--
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/37d8e4d41891e14e748fbaf47…
You're receiving this email because of your account on gitlab.com.
1
0
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
4ddcd796 by Tony Chemit at 2020-09-09T17:55:50+02:00
stash 3
- - - - -
23 changed files:
- client-core/src/main/java/fr/ird/observe/client/util/DtoIconHelper.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/content/data/open/actions/Create.java
- client-datasource-editor-common/src/main/java/fr/ird/observe/client/datasource/editor/content/data/TripActionHelper.java
- client-datasource-editor-ps/src/main/i18n/getters/java.getter
- client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ObservePsKeyStrokes.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/LocalmarketUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/LocalmarketUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/LocalmarketUIModel.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyPartUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/LocalmarketUIActionSupport.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/LocalmarketUIAddBatch.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/LocalmarketUIAddSample.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/LocalmarketUIAddSurvey.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ps/localmarket/LocalmarketNavigationTreeNode.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ps/localmarket/SampleNavigationTreeNode.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ps/localmarket/SurveyNavigationTreeNode.java
- observe-i18n/src/main/i18n/translations/observe_en_GB.properties
- observe-i18n/src/main/i18n/translations/observe_es_ES.properties
- observe-i18n/src/main/i18n/translations/observe_fr_FR.properties
- test/src/main/resources/db/8.1/dataForTestLongline.sql.gz
- test/src/main/resources/db/8.1/dataForTestSeine.sql.gz
- test/src/main/resources/db/8.1/referentiel.sql.gz
Changes:
=====================================
client-core/src/main/java/fr/ird/observe/client/util/DtoIconHelper.java
=====================================
@@ -72,7 +72,10 @@ public class DtoIconHelper {
}
public static String getIconPath(String iconPathPrefix, boolean small) {
- String iconPath = "navigation." + iconPathPrefix;
+ String iconPath = iconPathPrefix;
+ if (!iconPath.startsWith("navigation.")) {
+ iconPath = "navigation."+iconPath;
+ }
if (small) {
iconPath += "-small";
}
=====================================
client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/content/data/open/actions/Create.java
=====================================
@@ -26,6 +26,7 @@ import fr.ird.observe.client.datasource.editor.DataSourceEditor;
import fr.ird.observe.client.datasource.editor.content.actions.ContentUIActionSupport;
import fr.ird.observe.client.datasource.editor.content.data.edit.ContentEditUIModel;
import fr.ird.observe.client.datasource.editor.content.data.open.ContentOpenableUI;
+import fr.ird.observe.client.datasource.editor.content.data.simple.ContentSimpleUIModel;
import fr.ird.observe.client.datasource.editor.tree.navigation.NavigationTree;
import fr.ird.observe.client.util.ObserveKeyStrokesSupport;
import fr.ird.observe.navigation.model.edit.CloseEditNodeVetoException;
@@ -49,7 +50,7 @@ public class Create extends ContentUIActionSupport<ContentOpenableUI> {
super(null, null, "add", ObserveKeyStrokesSupport.KEY_STROKE_NEW_NEXT_DATA);
}
- public static void closeAndCreate(DataSourceEditor dataSourceEditor, MultipleReferenceContainerNode<?, ?> parentNode, NavigationTree tree, ContentEditUIModel<?, ?> model) {
+ public static void closeAndCreate(DataSourceEditor dataSourceEditor, MultipleReferenceContainerNode<?, ?> parentNode, NavigationTree tree, ContentSimpleUIModel model) {
try {
Close.closeData(dataSourceEditor, model.getEditNode());
tree.addUnsavedNode(parentNode);
=====================================
client-datasource-editor-common/src/main/java/fr/ird/observe/client/datasource/editor/content/data/TripActionHelper.java
=====================================
@@ -22,11 +22,14 @@ package fr.ird.observe.client.datasource.editor.content.data;
* #L%
*/
+import fr.ird.observe.client.datasource.editor.content.ContentUI;
import fr.ird.observe.client.datasource.editor.content.data.list.ContentListUI;
import fr.ird.observe.client.datasource.editor.tree.navigation.NavigationTree;
import fr.ird.observe.client.main.ObserveMainUI;
import fr.ird.observe.client.util.UIHelper;
import fr.ird.observe.dto.data.TripAware;
+import fr.ird.observe.dto.data.ps.common.TripReference;
+import fr.ird.observe.navigation.tree.ReferenceNode;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;
@@ -43,6 +46,15 @@ import static io.ultreia.java4all.i18n.I18n.t;
public class TripActionHelper {
private static final Logger log = LogManager.getLogger(TripActionHelper.class);
+ public static boolean gotoTripLogbookTab(ObserveMainUI mainui, ContentUI ui, String tripId, Function<String, TripAware> servicesProvider, String message) {
+ TripAware tripDto = servicesProvider.apply(tripId);
+ boolean canExecuteAction = tripDto.isLogbookAvailability();
+ if (!canExecuteAction) {
+ askAndGotoTripMetaDataTab(mainui, ui, message, TripAware.PROPERTY_LOGBOOK_AVAILABILITY, 3);
+ }
+ return canExecuteAction;
+ }
+
public static boolean gotoTripLogbookTab(ObserveMainUI mainui, ContentListUI<?, ?, ?, ?> ui, Function<String, TripAware> servicesProvider, String message) {
String tripId = ui.getModel().getSelectedParentId();
TripAware tripDto = servicesProvider.apply(tripId);
@@ -63,7 +75,7 @@ public class TripActionHelper {
return canExecuteAction;
}
- private static void askAndGotoTripMetaDataTab(ObserveMainUI mainui, ContentListUI<?, ?, ?, ?> ui, String message, String availabilityPropertyName, int tabIndex) {
+ private static void askAndGotoTripMetaDataTab(ObserveMainUI mainui, ContentUI ui, String message, String availabilityPropertyName, int tabIndex) {
// Let's ask user to fill them
int response = UIHelper.askUser(
mainui,
@@ -81,7 +93,7 @@ public class TripActionHelper {
// go to trip form
NavigationTree tree = ui.getDataSourceEditor().getNavigationUI().getTree();
- TreeNode tripNode = ui.getModel().upToParentReferenceNode(tree);
+ TreeNode tripNode = ReferenceNode.upToReferenceNode(TripReference.class, tree.getSelectedNode());
tree.selectSafeNode(tripNode);
TripUI tripUI = (TripUI) ui.getDataSourceEditor().getContentUIManager().getSelectedContentUI();
// set availability flag to true
=====================================
client-datasource-editor-ps/src/main/i18n/getters/java.getter
=====================================
@@ -40,6 +40,8 @@ observe.data.ps.landing.Landing.table.weight
observe.data.ps.landing.Landing.table.weight.tip
observe.data.ps.landing.Landing.table.weightCategory
observe.data.ps.landing.Landing.table.weightCategory.tip
+observe.data.ps.localmarket.Batch.action.create
+observe.data.ps.localmarket.Batch.action.create.tip
observe.data.ps.localmarket.Batch.table.count
observe.data.ps.localmarket.Batch.table.count.tip
observe.data.ps.localmarket.Batch.table.packaging
=====================================
client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
=====================================
@@ -121,6 +121,7 @@ observe.data.ps.localmarket.SurveyPart.action.create
observe.data.ps.localmarket.SurveyPart.action.create.tip
observe.data.ps.localmarket.SurveyPart.proportion
observe.data.ps.localmarket.SurveyPart.title
+observe.data.ps.localmarket.title
observe.data.ps.logbook.Activity.action.close.tip
observe.data.ps.logbook.Activity.action.create
observe.data.ps.logbook.Activity.action.create.tip
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ObservePsKeyStrokes.java
=====================================
@@ -40,4 +40,7 @@ public class ObservePsKeyStrokes extends ObserveKeyStrokesSupport {
public static final KeyStroke KEY_STROKE_COPY_FLOATING_OBJECT_PART_TO_LEFT = KeyStroke.getKeyStroke("ctrl L");
public static final KeyStroke KEY_STROKE_ADD_SET_SEINE = KeyStroke.getKeyStroke("ctrl pressed L");
public static final KeyStroke KEY_STROKE_ADD_SAMPLE = KeyStroke.getKeyStroke("ctrl pressed S");
+ public static final KeyStroke KEY_STROKE_LOCALMARKET_ADD_BATCH = KeyStroke.getKeyStroke("ctrl pressed F1");
+ public static final KeyStroke KEY_STROKE_LOCALMARKET_ADD_SURVEY = KeyStroke.getKeyStroke("ctrl pressed F2");
+ public static final KeyStroke KEY_STROKE_LOCALMARKET_ADD_SAMPLE = KeyStroke.getKeyStroke("ctrl pressed F3");
}
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/LocalmarketUI.jaxx
=====================================
@@ -0,0 +1,45 @@
+<!--
+ #%L
+ ObServe :: Client DataSource Editor PS
+ %%
+ Copyright (C) 2008 - 2020 IRD, Code Lutin, Ultreia.io
+ %%
+ 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%
+ -->
+<fr.ird.observe.client.datasource.editor.content.data.simple.ContentSimpleUI beanScope="bean"
+ i18n="fr.ird.observe.dto.data.ps.common.TripDto"
+ superGenericType='TripDto, LocalmarketUI'
+ contentTitle='{n("observe.data.ps.localmarket.title")}'>
+ <import>
+ fr.ird.observe.dto.data.ps.common.TripDto
+ static io.ultreia.java4all.i18n.I18n.n
+ </import>
+
+ <LocalmarketUIModel id='model' constructorParams='@override'/>
+ <TripDto id='bean'/>
+ <BeanValidator id='validator' context='update' errorTableModel='{getErrorTableModel()}'
+ beanClass='fr.ird.observe.dto.data.ps.common.TripDto'>
+ <field name="localMarketBatch" component="addBatch"/>
+ <field name="localMarketSurvey" component="addSurvey"/>
+ <field name="localMarketSample" component="addSample"/>
+ </BeanValidator>
+
+ <JPanel id="body" layout="{new GridLayout(0,1)}">
+ <JButton id='addBatch'/>
+ <JButton id='addSurvey'/>
+ <JButton id='addSample'/>
+ </JPanel>
+</fr.ird.observe.client.datasource.editor.content.data.simple.ContentSimpleUI>
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/LocalmarketUIHandler.java
=====================================
@@ -0,0 +1,74 @@
+package fr.ird.observe.client.datasource.editor.content.data.ps.localmarket;
+
+/*-
+ * #%L
+ * ObServe :: Client DataSource Editor PS
+ * %%
+ * Copyright (C) 2008 - 2020 IRD, Code Lutin, Ultreia.io
+ * %%
+ * 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%
+ */
+
+import fr.ird.observe.client.datasource.editor.content.data.simple.ContentSimpleUIHandler;
+import fr.ird.observe.client.datasource.editor.content.ui.ObserveLayoutFocusTraversalPolicy;
+import fr.ird.observe.dto.data.ps.common.TripDto;
+import fr.ird.observe.dto.form.Form;
+import org.apache.logging.log4j.LogManager;
+import org.apache.logging.log4j.Logger;
+import org.nuiton.jaxx.runtime.spi.UIHandler;
+
+import java.awt.Component;
+import java.awt.Container;
+
+/**
+ * Created on 09/09/2020.
+ *
+ * @author Tony Chemit - dev(a)tchemit.fr
+ * @since 8.1.0
+ */
+class LocalmarketUIHandler extends ContentSimpleUIHandler<TripDto, LocalmarketUI> implements UIHandler<LocalmarketUI> {
+ private static final Logger log = LogManager.getLogger(LocalmarketUIHandler.class);
+
+ @Override
+ protected ObserveLayoutFocusTraversalPolicy<LocalmarketUI> createFocusTraversalPolicy() {
+ return new ObserveLayoutFocusTraversalPolicy<LocalmarketUI>() {
+ @Override
+ protected Component getFirstComponentForEdit(Container aContainer) {
+ return ui.getAddBatch();
+ }
+
+ @Override
+ protected Component getLastComponentForEdit(Container aContainer) {
+ return ui.getAddBatch();
+ }
+ };
+ }
+
+ @Override
+ public LocalmarketUIModel getModel() {
+ return (LocalmarketUIModel) super.getModel();
+ }
+
+ @Override
+ protected void onOpenModel() {
+ super.onOpenModel();
+ LocalmarketUIModel model = getModel();
+ String tripId = model.getSelectedId();
+ log.info(prefix + "tripId = " + tripId);
+ Form<TripDto> form = getPsCommonTripService().loadForm(tripId);
+ model.openForm(form);
+ }
+}
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/LocalmarketUIModel.java
=====================================
@@ -0,0 +1,53 @@
+package fr.ird.observe.client.datasource.editor.content.data.ps.localmarket;
+
+/*-
+ * #%L
+ * ObServe :: Client DataSource Editor PS
+ * %%
+ * Copyright (C) 2008 - 2020 IRD, Code Lutin, Ultreia.io
+ * %%
+ * 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%
+ */
+
+import fr.ird.observe.client.datasource.editor.content.ContentMode;
+import fr.ird.observe.client.datasource.editor.content.data.simple.ContentSimpleUIModel;
+import fr.ird.observe.dto.data.ps.common.TripDto;
+import fr.ird.observe.dto.form.Form;
+import io.ultreia.java4all.bean.spi.GenerateJavaBeanDefinition;
+
+/**
+ * Created on 09/09/2020.
+ *
+ * @author Tony Chemit - dev(a)tchemit.fr
+ * @since 8.1.0
+ */
+@GenerateJavaBeanDefinition
+public class LocalmarketUIModel extends ContentSimpleUIModel<TripDto> {
+
+ public LocalmarketUIModel() {
+ super(TripDto.class);
+ }
+
+ @Override
+ protected ContentMode computeMode(boolean canWrite) {
+ return canWrite ? getContentModeFromSelf() : ContentMode.READ;
+ }
+
+ @Override
+ public void openForm(Form<TripDto> form) {
+ super.openForm(form);
+ }
+}
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyPartUI.jaxx
=====================================
@@ -67,7 +67,7 @@ public SwingValidatorMessageTableModel getErrorTableModel() {
]]>
</script>
- <Table id='editorPanel' fill='both' insets='1'>
+ <Table id='editorPanel' fill='both' insets='1' beanScope="tableEditBean">
<!-- species -->
<row>
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/LocalmarketUIActionSupport.java
=====================================
@@ -0,0 +1,60 @@
+package fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.actions;
+
+/*-
+ * #%L
+ * ObServe :: Client DataSource Editor PS
+ * %%
+ * Copyright (C) 2008 - 2020 IRD, Code Lutin, Ultreia.io
+ * %%
+ * 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%
+ */
+
+import fr.ird.observe.client.datasource.editor.content.actions.ContentUIActionSupport;
+import fr.ird.observe.client.datasource.editor.content.data.TripActionHelper;
+import fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.LocalmarketUI;
+import fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.LocalmarketUIModel;
+import fr.ird.observe.client.util.DtoIconHelper;
+
+import javax.swing.KeyStroke;
+import java.awt.event.ActionEvent;
+
+import static io.ultreia.java4all.i18n.I18n.t;
+
+/**
+ * Created on 09/09/2020.
+ *
+ * @author Tony Chemit - dev(a)tchemit.fr
+ * @since 8.1.0
+ */
+public abstract class LocalmarketUIActionSupport extends ContentUIActionSupport<LocalmarketUI> {
+
+ protected LocalmarketUIActionSupport(String label, String shortDescription, String actionIcon, KeyStroke acceleratorKey) {
+ super(label, shortDescription, actionIcon, acceleratorKey);
+ setIcon(DtoIconHelper.getIcon(actionIcon));
+ }
+
+
+ @Override
+ protected boolean canExecuteAction(ActionEvent e) {
+ boolean canExecuteAction = super.canExecuteAction(e);
+ //FIXME Finshi this
+ if (canExecuteAction) {
+ LocalmarketUIModel model = ui.getModel();
+ canExecuteAction = TripActionHelper.gotoTripLogbookTab(getMainUI(), ui, model.getBean().getId(), getServicesProvider().getPsCommonTripService()::loadDto, t("observe.data.ps.common.Trip.message.missing.observation.metadata"));
+ }
+ return canExecuteAction;
+ }
+}
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/LocalmarketUIAddBatch.java
=====================================
@@ -0,0 +1,75 @@
+package fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.actions;
+
+/*-
+ * #%L
+ * ObServe :: Client DataSource Editor PS
+ * %%
+ * Copyright (C) 2008 - 2020 IRD, Code Lutin, Ultreia.io
+ * %%
+ * 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%
+ */
+
+import fr.ird.observe.client.datasource.editor.content.ObservePsKeyStrokes;
+import fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.BatchUI;
+import fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.LocalmarketUI;
+import fr.ird.observe.client.datasource.editor.tree.navigation.NavigationTree;
+import fr.ird.observe.client.datasource.editor.tree.navigation.nodes.NavigationTreeNodeSupport;
+import fr.ird.observe.client.datasource.editor.tree.navigation.nodes.data.ps.localmarket.BatchNavigationTreeNode;
+import fr.ird.observe.client.datasource.editor.tree.navigation.nodes.data.ps.localmarket.LocalmarketNavigationTreeNode;
+import fr.ird.observe.client.util.DtoIconHelper;
+import fr.ird.observe.dto.data.ps.localmarket.BatchDto;
+
+import javax.swing.SwingUtilities;
+import java.awt.event.ActionEvent;
+import java.awt.event.KeyListener;
+
+import static io.ultreia.java4all.i18n.I18n.t;
+
+/**
+ * Created on 09/09/2020.
+ *
+ * @author Tony Chemit - dev(a)tchemit.fr
+ * @since 8.1.0
+ */
+public class LocalmarketUIAddBatch extends LocalmarketUIActionSupport {
+
+ public LocalmarketUIAddBatch() {
+ super(t("observe.data.ps.localmarket.Batch.action.create"), t("observe.data.ps.localmarket.Batch.action.create.tip"), DtoIconHelper.getIconPath(BatchDto.class), ObservePsKeyStrokes.KEY_STROKE_LOCALMARKET_ADD_BATCH);
+ }
+
+ @Override
+ public void init() {
+ super.init();
+ //FIXME Make this in UIHelper at least for any
+ for (KeyListener keyListener : editor.getKeyListeners()) {
+ if (keyListener.getClass().getName().contains("javax.swing.ToolTipManager$AccessibilityKeyListener")) {
+ editor.removeKeyListener(keyListener);
+ break;
+ }
+ }
+ }
+
+ @Override
+ protected void doActionPerformed(ActionEvent e, LocalmarketUI ui) {
+ NavigationTree tree = getDataSourceEditor().getNavigationUI().getTree();
+ LocalmarketNavigationTreeNode parentNode = (LocalmarketNavigationTreeNode) tree.getSelectedNode();
+ NavigationTreeNodeSupport<?> nodeToSelect = parentNode.findChildByType(BatchNavigationTreeNode.class);
+ tree.selectSafeNode(nodeToSelect);
+ BatchUI content = getDataSourceEditor().getContentUIManager().getContent();
+ SwingUtilities.invokeLater(() -> content.getNewEntry().doClick());
+
+ }
+}
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/LocalmarketUIAddSample.java
=====================================
@@ -0,0 +1,62 @@
+package fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.actions;
+
+/*-
+ * #%L
+ * ObServe :: Client DataSource Editor PS
+ * %%
+ * Copyright (C) 2008 - 2020 IRD, Code Lutin, Ultreia.io
+ * %%
+ * 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%
+ */
+
+import fr.ird.observe.client.datasource.editor.content.ObservePsKeyStrokes;
+import fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.LocalmarketUI;
+import fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.SampleListUI;
+import fr.ird.observe.client.datasource.editor.tree.navigation.NavigationTree;
+import fr.ird.observe.client.datasource.editor.tree.navigation.nodes.data.ps.localmarket.LocalmarketNavigationTreeNode;
+import fr.ird.observe.client.datasource.editor.tree.navigation.nodes.data.ps.localmarket.SampleListNavigationTreeNode;
+import fr.ird.observe.client.util.DtoIconHelper;
+import fr.ird.observe.dto.data.ps.localmarket.SampleDto;
+
+import javax.swing.SwingUtilities;
+import java.awt.event.ActionEvent;
+
+import static io.ultreia.java4all.i18n.I18n.t;
+
+/**
+ * Created on 09/09/2020.
+ *
+ * @author Tony Chemit - dev(a)tchemit.fr
+ * @since 8.1.0
+ */
+public class LocalmarketUIAddSample extends LocalmarketUIActionSupport {
+
+ public LocalmarketUIAddSample() {
+ super(t("observe.data.ps.localmarket.Sample.action.create"), t("observe.data.ps.localmarket.Sample.action.create.tip"), DtoIconHelper.getIconPath(SampleDto.class), ObservePsKeyStrokes.KEY_STROKE_LOCALMARKET_ADD_SAMPLE);
+ }
+
+
+ @Override
+ protected void doActionPerformed(ActionEvent e, LocalmarketUI ui) {
+ NavigationTree tree = getDataSourceEditor().getNavigationUI().getTree();
+ LocalmarketNavigationTreeNode parentNode = (LocalmarketNavigationTreeNode) tree.getSelectedNode();
+ SampleListNavigationTreeNode nodeToSelect = (SampleListNavigationTreeNode) parentNode.findChildByType(SampleListNavigationTreeNode.class);
+ tree.selectSafeNode(nodeToSelect);
+ SampleListUI content = getDataSourceEditor().getContentUIManager().getContent();
+ SwingUtilities.invokeLater(() -> content.getCreate().doClick());
+
+ }
+}
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/LocalmarketUIAddSurvey.java
=====================================
@@ -0,0 +1,61 @@
+package fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.actions;
+
+/*-
+ * #%L
+ * ObServe :: Client DataSource Editor PS
+ * %%
+ * Copyright (C) 2008 - 2020 IRD, Code Lutin, Ultreia.io
+ * %%
+ * 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%
+ */
+
+import fr.ird.observe.client.datasource.editor.content.ObservePsKeyStrokes;
+import fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.LocalmarketUI;
+import fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.SurveyListUI;
+import fr.ird.observe.client.datasource.editor.tree.navigation.NavigationTree;
+import fr.ird.observe.client.datasource.editor.tree.navigation.nodes.data.ps.localmarket.LocalmarketNavigationTreeNode;
+import fr.ird.observe.client.datasource.editor.tree.navigation.nodes.data.ps.localmarket.SurveyListNavigationTreeNode;
+import fr.ird.observe.client.util.DtoIconHelper;
+import fr.ird.observe.dto.data.ps.localmarket.SurveyDto;
+
+import javax.swing.SwingUtilities;
+import java.awt.event.ActionEvent;
+
+import static io.ultreia.java4all.i18n.I18n.t;
+
+/**
+ * Created on 09/09/2020.
+ *
+ * @author Tony Chemit - dev(a)tchemit.fr
+ * @since 8.1.0
+ */
+public class LocalmarketUIAddSurvey extends LocalmarketUIActionSupport {
+
+ public LocalmarketUIAddSurvey() {
+ super(t("observe.data.ps.localmarket.Survey.action.create"), t("observe.data.ps.localmarket.Survey.action.create.tip"), DtoIconHelper.getIconPath(SurveyDto.class), ObservePsKeyStrokes.KEY_STROKE_LOCALMARKET_ADD_SURVEY);
+ }
+
+ @Override
+ protected void doActionPerformed(ActionEvent e, LocalmarketUI ui) {
+ NavigationTree tree = getDataSourceEditor().getNavigationUI().getTree();
+ LocalmarketNavigationTreeNode parentNode = (LocalmarketNavigationTreeNode) tree.getSelectedNode();
+ SurveyListNavigationTreeNode nodeToSelect = (SurveyListNavigationTreeNode) parentNode.findChildByType(SurveyListNavigationTreeNode.class);
+ tree.selectSafeNode(nodeToSelect);
+ SurveyListUI content = getDataSourceEditor().getContentUIManager().getContent();
+ SwingUtilities.invokeLater(() -> content.getCreate().doClick());
+
+ }
+}
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ps/localmarket/LocalmarketNavigationTreeNode.java
=====================================
@@ -22,8 +22,10 @@ package fr.ird.observe.client.datasource.editor.tree.navigation.nodes.data.ps.lo
* #L%
*/
+import fr.ird.observe.client.datasource.editor.content.data.ps.localmarket.LocalmarketUI;
import fr.ird.observe.client.datasource.editor.tree.navigation.nodes.StringNavigationTreeNodeSupport;
import fr.ird.observe.client.util.DtoIconHelper;
+import fr.ird.observe.navigation.model.ObserveNavigationNode;
import javax.swing.Icon;
@@ -44,6 +46,21 @@ public class LocalmarketNavigationTreeNode extends StringNavigationTreeNodeSuppo
add(new SampleListNavigationTreeNode());
}
+ @Override
+ public ObserveNavigationNode<?> getEditNode() {
+ return getEditNodeOrParentEditNode();
+ }
+
+ @Override
+ public Class<LocalmarketUI> getContentClass() {
+ return LocalmarketUI.class;
+ }
+
+ @Override
+ public boolean isOpen() {
+ return super.isOpen();
+ }
+
@Override
public final Icon getIcon(boolean small) {
return DtoIconHelper.getIcon("data.ps.localmarket", small);
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ps/localmarket/SampleNavigationTreeNode.java
=====================================
@@ -27,6 +27,7 @@ import fr.ird.observe.client.datasource.editor.tree.navigation.nodes.ReferenceNa
import fr.ird.observe.dto.data.ps.localmarket.SampleDto;
import fr.ird.observe.dto.data.ps.localmarket.SampleReference;
import fr.ird.observe.navigation.model.edit.seine.node.ObserveSeineLocalmarketSampleEditNode;
+import fr.ird.observe.navigation.model.select.seine.node.ObserveSeineLocalmarketSampleSelectNode;
import static io.ultreia.java4all.i18n.I18n.t;
@@ -34,15 +35,12 @@ import static io.ultreia.java4all.i18n.I18n.t;
* Created on 06/09/2020.
*
* @author Tony Chemit - dev(a)tchemit.fr
- * @since
+ * @since 8.1.0
*/
public class SampleNavigationTreeNode extends ReferenceNavigationTreeNodeSupport<SampleDto, SampleReference> {
public SampleNavigationTreeNode(SampleReference data) {
- super(data, ObserveSeineLocalmarketSampleEditNode.class, ObserveSeineLocalmarketSampleEditNode.class, true);
- if (isPersisted()) {
-// add(new ActivityListNavigationTreeNode());
- }
+ super(data, ObserveSeineLocalmarketSampleSelectNode.class, ObserveSeineLocalmarketSampleEditNode.class, false);
}
@Override
@@ -53,7 +51,7 @@ public class SampleNavigationTreeNode extends ReferenceNavigationTreeNodeSupport
@Override
public boolean isLeaf() {
- return !isPersisted();
+ return true;
}
@Override
=====================================
client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ps/localmarket/SurveyNavigationTreeNode.java
=====================================
@@ -27,6 +27,7 @@ import fr.ird.observe.client.datasource.editor.tree.navigation.nodes.ReferenceNa
import fr.ird.observe.dto.data.ps.localmarket.SurveyDto;
import fr.ird.observe.dto.data.ps.localmarket.SurveyReference;
import fr.ird.observe.navigation.model.edit.seine.node.ObserveSeineLocalmarketSurveyEditNode;
+import fr.ird.observe.navigation.model.select.seine.node.ObserveSeineLocalmarketSurveySelectNode;
import static io.ultreia.java4all.i18n.I18n.t;
@@ -39,10 +40,7 @@ import static io.ultreia.java4all.i18n.I18n.t;
public class SurveyNavigationTreeNode extends ReferenceNavigationTreeNodeSupport<SurveyDto, SurveyReference> {
public SurveyNavigationTreeNode(SurveyReference data) {
- super(data, ObserveSeineLocalmarketSurveyEditNode.class, ObserveSeineLocalmarketSurveyEditNode.class, true);
- if (isPersisted()) {
-// add(new ActivityListNavigationTreeNode());
- }
+ super(data, ObserveSeineLocalmarketSurveySelectNode.class, ObserveSeineLocalmarketSurveyEditNode.class, false);
}
@Override
@@ -53,7 +51,7 @@ public class SurveyNavigationTreeNode extends ReferenceNavigationTreeNodeSupport
@Override
public boolean isLeaf() {
- return !isPersisted();
+ return true;
}
@Override
=====================================
observe-i18n/src/main/i18n/translations/observe_en_GB.properties
=====================================
@@ -1380,6 +1380,7 @@ observe.data.ps.landing.Landing.title=Landing
observe.data.ps.landing.Landing.type=Landing
observe.data.ps.landing.Landing.weight=Weight (t)
observe.data.ps.landing.Landing.weightCategory=Weight category
+observe.data.ps.localmarket.Batch.action.create=Add a new batch
observe.data.ps.localmarket.Batch.action.create.tip=Insert this batch
observe.data.ps.localmarket.Batch.action.create.tip.tip=Insert this batch
observe.data.ps.localmarket.Batch.count=Count
@@ -1455,6 +1456,7 @@ observe.data.ps.localmarket.SurveyPart.table.species=Species
observe.data.ps.localmarket.SurveyPart.table.species.tip=Species
observe.data.ps.localmarket.SurveyPart.title=Survey part
observe.data.ps.localmarket.SurveyPart.type=Survey part
+observe.data.ps.localmarket.title=Local market
observe.data.ps.logbook.Activity.action.addFloatingObject=Add FAD
observe.data.ps.logbook.Activity.action.addFloatingObject.tip=Add a FAD to the activity
observe.data.ps.logbook.Activity.action.addSet=Add a Set
=====================================
observe-i18n/src/main/i18n/translations/observe_es_ES.properties
=====================================
@@ -1380,6 +1380,7 @@ observe.data.ps.landing.Landing.title=Landing \#TODO
observe.data.ps.landing.Landing.type=Landing \#TODO
observe.data.ps.landing.Landing.weight=Weight (t) \#TODO
observe.data.ps.landing.Landing.weightCategory=Weight category \#TODO
+observe.data.ps.localmarket.Batch.action.create=Add a new batch \#TODO
observe.data.ps.localmarket.Batch.action.create.tip=Insert this batch
observe.data.ps.localmarket.Batch.action.create.tip.tip=Insert this batch
observe.data.ps.localmarket.Batch.count=Count
@@ -1455,6 +1456,7 @@ observe.data.ps.localmarket.SurveyPart.table.species=Species
observe.data.ps.localmarket.SurveyPart.table.species.tip=Species
observe.data.ps.localmarket.SurveyPart.title=Survey part
observe.data.ps.localmarket.SurveyPart.type=Survey part
+observe.data.ps.localmarket.title=Local market \#TODO
observe.data.ps.logbook.Activity.action.addFloatingObject=Añadir un FOB
observe.data.ps.logbook.Activity.action.addFloatingObject.tip=Añadir un objeto flotante a la actividad
observe.data.ps.logbook.Activity.action.addSet=Añadir un lance
=====================================
observe-i18n/src/main/i18n/translations/observe_fr_FR.properties
=====================================
@@ -1380,6 +1380,7 @@ observe.data.ps.landing.Landing.title=Débarquements
observe.data.ps.landing.Landing.type=Débarquements
observe.data.ps.landing.Landing.weight=Poids (en t)
observe.data.ps.landing.Landing.weightCategory=Catégorie de poids
+observe.data.ps.localmarket.Batch.action.create=Ajouter un lot
observe.data.ps.localmarket.Batch.action.create.tip=Insérer ce lot
observe.data.ps.localmarket.Batch.action.create.tip.tip=Insérer ce lot
observe.data.ps.localmarket.Batch.count=Nombre
@@ -1455,6 +1456,7 @@ observe.data.ps.localmarket.SurveyPart.table.species=Espèce
observe.data.ps.localmarket.SurveyPart.table.species.tip=Espèce
observe.data.ps.localmarket.SurveyPart.title=Données de sondage
observe.data.ps.localmarket.SurveyPart.type=Données de sondage
+observe.data.ps.localmarket.title=Marché local
observe.data.ps.logbook.Activity.action.addFloatingObject=Ajouter un DCP
observe.data.ps.logbook.Activity.action.addFloatingObject.tip=Ajouter un objet flottant à l'activité
observe.data.ps.logbook.Activity.action.addSet=Ajouter la calée
=====================================
test/src/main/resources/db/8.1/dataForTestLongline.sql.gz
=====================================
Binary files a/test/src/main/resources/db/8.1/dataForTestLongline.sql.gz and b/test/src/main/resources/db/8.1/dataForTestLongline.sql.gz differ
=====================================
test/src/main/resources/db/8.1/dataForTestSeine.sql.gz
=====================================
Binary files a/test/src/main/resources/db/8.1/dataForTestSeine.sql.gz and b/test/src/main/resources/db/8.1/dataForTestSeine.sql.gz differ
=====================================
test/src/main/resources/db/8.1/referentiel.sql.gz
=====================================
Binary files a/test/src/main/resources/db/8.1/referentiel.sql.gz and b/test/src/main/resources/db/8.1/referentiel.sql.gz differ
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/4ddcd7967fe72221aeeb6dbbd…
--
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/4ddcd7967fe72221aeeb6dbbd…
You're receiving this email because of your account on gitlab.com.
1
0
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
dfe532a3 by Tony Chemit at 2020-09-07T19:09:48+02:00
stash 2
- - - - -
30 changed files:
- client-configuration/src/main/config/Client.ini
- client-configuration/src/main/i18n/getters/config.getter
- client-core/src/main/java/fr/ird/observe/client/main/body/ClientConfigUI.java
- client-datasource-editor-api/src/main/i18n/getters/java.getter
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLocalmarketSurveyAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/NavigationTreeNodeSupport.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ll/logbook/actions/ActivityUIDelete.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ll/logbook/actions/LandingUIDelete.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ll/observation/actions/ActivityUIDelete.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ll/logbook/ActivityListNavigationTreeNode.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ll/logbook/TripLandingListNavigationTreeNode.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ll/logbook/TripSampleListNavigationTreeNode.java
- client-datasource-editor-ll/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ll/observation/ActivityListNavigationTreeNode.java
- client-datasource-editor-ps/src/main/i18n/getters/java.getter
- client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUI.jaxx
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUI.jcss
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUIHandler.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUIModel.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUITableModel.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SampleListUI.jcss
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyListUI.jcss
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyPartUI.jcss
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyPartUIImpl.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyPartUITableModel.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/SampleListUICreate.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/SampleListUIDelete.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/SampleListUIMove.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/actions/SurveyListUICreate.java
The diff was not included because it is too large.
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/dfe532a3493b40e3a1759e0b8…
--
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/dfe532a3493b40e3a1759e0b8…
You're receiving this email because of your account on gitlab.com.
1
0
[Git][ultreiaio/ird-observe][develop] 5 commits: Add WellIdAware contract and his validator
by Tony CHEMIT 06 Sep '20
by Tony CHEMIT 06 Sep '20
06 Sep '20
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
67289180 by Tony Chemit at 2020-09-06T20:14:10+02:00
Add WellIdAware contract and his validator
- - - - -
3d11849b by Tony Chemit at 2020-09-06T20:14:10+02:00
Fix Some menu shortcuts
- - - - -
4eadb4af by Tony Chemit at 2020-09-06T20:14:10+02:00
Fix how to save a entity list from a reference list (a first one here...)
- - - - -
65042178 by Tony Chemit at 2020-09-06T20:15:34+02:00
Insertion de l’échantillonnage au port - See #1261
Finitions
- - - - -
a19d356a by Tony Chemit at 2020-09-07T00:26:04+02:00
Stash...
- - - - -
30 changed files:
- client-datasource-editor-api/src/main/i18n/getters/java.getter
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/content/data/open/ContentOpenableUILayoutFocusTraversalPolicy.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/DataSourceEditorNavigationMenu.jaxx
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/DataSourceEditorNavigationMenuHandler.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineCommonReferentialAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLandingReferentialAction.java
- + client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLocalmarketReferentialAction.java
- + client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLocalmarketSampleAction.java
- + client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLocalmarketSurveyAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLogbookReferentialAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineObsReferentialAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/validation/ClientValidationContext.java
- client-datasource-editor-ps/src/main/i18n/getters/java.getter
- client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/BatchUITableModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SampleListUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SampleListUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SampleListUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SampleListUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyListUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyListUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyListUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyListUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyPartUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyPartUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/localmarket/SurveyPartUIHandler.java
The diff was not included because it is too large.
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/89908caa5e3789d1ec1b8aab…
--
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/89908caa5e3789d1ec1b8aab…
You're receiving this email because of your account on gitlab.com.
1
0
[Git][ultreiaio/ird-observe][develop] 3 commits: Let's clone nuiton-validator to fix it (no time to create a new project now...)
by Tony CHEMIT 06 Sep '20
by Tony CHEMIT 06 Sep '20
06 Sep '20
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
18b0ce37 by Tony Chemit at 2020-09-06T13:38:42+02:00
Let's clone nuiton-validator to fix it (no time to create a new project now...)
- - - - -
1ab196b5 by Tony Chemit at 2020-09-06T13:40:07+02:00
Nuiton-Validator : Fix ValidatorComparator (was based on simple name... need fully qualified name to deal with synonyms)
- - - - -
89908caa by Tony Chemit at 2020-09-06T13:40:38+02:00
Insertion de l’échantillonnage au port - See #1261
- - - - -
30 changed files:
- client-core/pom.xml
- client-datasource-actions/pom.xml
- client-datasource-editor-api/pom.xml
- client-datasource-editor-api/src/main/i18n/getters/java.getter
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/content/spi/ContentUIReferenceCache.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/DataSourceEditorNavigationMenu.jaxx
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/DataSourceEditorNavigationMenuHandler.java
- + client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLogbookSampleAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/validation/ClientValidationContext.java
- client-datasource-editor-common/pom.xml
- client-datasource-editor-ll/pom.xml
- client-datasource-editor-ps/pom.xml
- client-datasource-editor-ps/src/main/i18n/getters/java.getter
- client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ObservePsKeyStrokes.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleListUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleListUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleListUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleListUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUIImpl.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUITableModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleUI.jaxx
The diff was not included because it is too large.
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/dee29b2db024e02e07593eee…
--
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/dee29b2db024e02e07593eee…
You're receiving this email because of your account on gitlab.com.
1
0
[Git][ultreiaio/ird-observe][develop] 2 commits: Deal with relation nm of data references
by Tony CHEMIT 05 Sep '20
by Tony CHEMIT 05 Sep '20
05 Sep '20
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
2dcc3e6d by Tony Chemit at 2020-09-05T14:39:29+02:00
Deal with relation nm of data references
- - - - -
dee29b2d by Tony Chemit at 2020-09-05T20:22:49+02:00
Insertion de l’échantillonnage au port - See #1261
- - - - -
30 changed files:
- client-datasource-editor-api/src/main/i18n/getters/java.getter
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/content/spi/ContentUIReferenceCache.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/DataSourceEditorNavigationMenu.jaxx
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/DataSourceEditorNavigationMenuHandler.java
- + client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLogbookSampleAction.java
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/validation/ClientValidationContext.java
- client-datasource-editor-ps/src/main/i18n/getters/java.getter
- client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ObservePsKeyStrokes.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleListUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleListUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleListUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleListUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUIImpl.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesSizeUITableModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleSpeciesUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/SampleUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/actions/SampleListUICreate.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/actions/SampleListUIDelete.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/logbook/actions/SampleListUIMove.java
The diff was not included because it is too large.
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/cc21991f0dbd39f7a45a64bd…
--
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/cc21991f0dbd39f7a45a64bd…
You're receiving this email because of your account on gitlab.com.
1
0
[Git][ultreiaio/ird-observe][develop] Insertion du plan de cuves - See #1260
by Tony CHEMIT 04 Sep '20
by Tony CHEMIT 04 Sep '20
04 Sep '20
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
cc21991f by Tony Chemit at 2020-09-04T18:21:45+02:00
Insertion du plan de cuves - See #1260
- - - - -
30 changed files:
- client-datasource-editor-ps/src/main/i18n/getters/java.getter
- client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/wellplan/WellPlanUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/wellplan/WellPlanUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/wellplan/WellPlanUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/wellplan/WellPlanUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/wellplan/WellPlanUITableModel.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ps/common/TripNavigationTreeNode.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ps/wellplan/WellPlanNavigationTreeNode.java
- + client-datasource-editor-ps/src/main/resources/icons/navigation/default/data/ps/wellplan/WellPlan-small_16x16.png
- + client-datasource-editor-ps/src/main/resources/icons/navigation/default/data/ps/wellplan/WellPlan_24x24.png
- client-datasource-editor-ps/src/main/resources/observe-ui-navigation-ps.properties
- dto/src/main/i18n/getters/eugene.getter
- dto/src/main/java/fr/ird/observe/dto/decoration/DecoratorServiceInitializer.java
- + dto/src/main/java/fr/ird/observe/dto/decoration/init/DataPsWellplanModelDecoratorInitializer.java
- dto/src/main/java/fr/ird/observe/spi/DtoModelClasses.java
- + dto/src/main/models/Observe-06-referential-ps-wellplan.model
- + dto/src/main/models/Observe-23-data-ps-wellplan.model
- dto/src/main/models/Observe-25-data-ps.model
- observe-i18n/src/main/i18n/translations/observe_en_GB.properties
- observe-i18n/src/main/i18n/translations/observe_es_ES.properties
- observe-i18n/src/main/i18n/translations/observe_fr_FR.properties
- persistence/src/main/java/fr/ird/observe/entities/data/ps/logbook/ActivityTopiaDao.java
- persistence/src/main/java/fr/ird/observe/entities/migration/DataSourceMigrationForVersion_8_1.java
- + persistence/src/main/models/Observe-06-referential-ps-wellplan.model
- + persistence/src/main/models/Observe-23-data-ps-wellplan.model
- persistence/src/main/models/Observe-25-data-ps-common.model
- + persistence/src/main/resources/db/migration/8.1/12_ps_wellplan_create_referential_model-common.sql
- + persistence/src/main/resources/db/migration/8.1/13_ps_wellplan_create_data_model-common.sql
- server-core/src/main/filtered-resources/mapping
The diff was not included because it is too large.
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/cc21991f0dbd39f7a45a64bde…
--
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/cc21991f0dbd39f7a45a64bde…
You're receiving this email because of your account on gitlab.com.
1
0
[Git][ultreiaio/ird-observe][develop] 2 commits: Have a new case to deal with (collection of data references)
by Tony CHEMIT 04 Sep '20
by Tony CHEMIT 04 Sep '20
04 Sep '20
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
3fe9f524 by Tony Chemit at 2020-09-04T13:38:09+02:00
Have a new case to deal with (collection of data references)
- - - - -
92a7abbf by Tony Chemit at 2020-09-04T16:01:20+02:00
Insertion des lots de débarquements - See #1259
- - - - -
30 changed files:
- client-datasource-editor-api/src/main/i18n/getters/java.getter
- client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/DataSourceEditorNavigationMenu.jaxx
- + client-datasource-editor-api/src/main/java/fr/ird/observe/client/datasource/editor/menu/actions/SelectSeineLandingReferentialAction.java
- client-datasource-editor-ps/src/main/i18n/getters/java.getter
- client-datasource-editor-ps/src/main/i18n/getters/jaxx.getter
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/landing/LandingUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/landing/LandingUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/landing/LandingUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/data/ps/landing/LandingUITableModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/FateUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/FateUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/FateUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/ReferentialHomeUI.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/ReferentialHomeUIModel.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/WeightCategoryUI.jaxx
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/WeightCategoryUI.jcss
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/WeightCategoryUIHandler.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/content/ref/ps/landing/WeightCategoryUIModel.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/PsRootNavigationTreeNodeProvider.java
- client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ps/common/TripNavigationTreeNode.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/data/ps/landing/LandingNavigationTreeNode.java
- + client-datasource-editor-ps/src/main/java/fr/ird/observe/client/datasource/editor/tree/navigation/nodes/ref/ps/landing/ReferentialListNavigationTreeNode.java
- + client-datasource-editor-ps/src/main/resources/icons/navigation/default/data/ps/landing/Landing_16x16.png
- + client-datasource-editor-ps/src/main/resources/icons/navigation/default/data/ps/landing/Landing_24x24.png
- client-datasource-editor-ps/src/main/resources/observe-ui-navigation-ps.properties
- common-persistence/src/main/java/fr/ird/observe/entities/EntityHelper.java
- dto/src/main/i18n/getters/eugene.getter
- dto/src/main/i18n/getters/java.getter
- dto/src/main/java/fr/ird/observe/dto/decoration/DecoratorServiceInitializer.java
- dto/src/main/java/fr/ird/observe/dto/decoration/ObserveI18nDecoratorHelper.java
The diff was not included because it is too large.
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/9e77378e489e9eee50548816…
--
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/compare/9e77378e489e9eee50548816…
You're receiving this email because of your account on gitlab.com.
1
0
Tony CHEMIT pushed to branch develop at ultreiaio / ird-observe
Commits:
9e77378e by Tony Chemit at 2020-09-03T04:53:52+02:00
update pom
- - - - -
1 changed file:
- pom.xml
Changes:
=====================================
pom.xml
=====================================
@@ -24,7 +24,7 @@
<parent>
<groupId>io.ultreia.maven</groupId>
<artifactId>pom</artifactId>
- <version>2020.52</version>
+ <version>2020.53</version>
</parent>
<groupId>fr.ird.observe</groupId>
@@ -176,7 +176,7 @@
<!-- <lib.version.java4all.topia>1.26-SNAPSHOT</lib.version.java4all.topia>-->
<!-- <lib.version.java4all.eugene>3.0-alpha-34-SNAPSHOT</lib.version.java4all.eugene>-->
- <lib.version.java4all.jaxx>3.0-alpha-79-SNAPSHOT</lib.version.java4all.jaxx>
+<!-- <lib.version.java4all.jaxx>3.0-alpha-79-SNAPSHOT</lib.version.java4all.jaxx>-->
<!--<lib.version.java4all.application-context>1.0.3-SNAPSHOT</lib.version.java4all.application-context>-->
<!--<lib.version.java4all.application-template>1.0.2-SNAPSHOT</lib.version.java4all.application-template>-->
<!--<lib.version.java4all.i18n>4.0-beta-3-SNAPSHOT</lib.version.java4all.i18n>-->
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/9e77378e489e9eee505488165…
--
View it on GitLab: https://gitlab.com/ultreiaio/ird-observe/-/commit/9e77378e489e9eee505488165…
You're receiving this email because of your account on gitlab.com.
1
0