Author: chatellier Date: 2010-12-22 15:14:42 +0000 (Wed, 22 Dec 2010) New Revision: 436 Log: Add zone field to rsufi result Modified: trunk/coser-business/src/main/java/fr/ifremer/coser/bean/RSufiResult.java Modified: trunk/coser-business/src/main/java/fr/ifremer/coser/bean/RSufiResult.java =================================================================== --- trunk/coser-business/src/main/java/fr/ifremer/coser/bean/RSufiResult.java 2010-12-21 15:44:00 UTC (rev 435) +++ trunk/coser-business/src/main/java/fr/ifremer/coser/bean/RSufiResult.java 2010-12-22 15:14:42 UTC (rev 436) @@ -45,6 +45,8 @@ protected String rsufiVersion; + protected String zone; + /** Utilisé seulement pour la validation (sinon, non valorisé). */ protected String dataFile1Path; @@ -75,6 +77,16 @@ getPropertyChangeSupport().firePropertyChange("name", oldValue, name); } + public String getZone() { + return zone; + } + + public void setZone(String zone) { + String oldValue = this.zone; + this.zone = zone; + getPropertyChangeSupport().firePropertyChange("zone", oldValue, zone); + } + public String getDataFile1Path() { return dataFile1Path; } @@ -120,6 +132,9 @@ if (getRsufiVersion() != null) { props.setProperty("result.rsufiversion", getRsufiVersion()); } + if (getZone() != null) { + props.setProperty("result.zone", getZone()); + } if (getDataFile1Name() != null) { props.setProperty("result.datafile1name", getDataFile1Name()); } @@ -133,6 +148,9 @@ if (props.containsKey("result.rsufiversion")) { setRsufiVersion(props.getProperty("result.rsufiversion")); } + if (props.containsKey("result.zone")) { + setZone(props.getProperty("result.zone")); + } if (props.containsKey("result.datafile1name")) { setDataFile1Name(props.getProperty("result.datafile1name")); }