-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
237 changed files
with
54,677 additions
and
108,168 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,7 @@ | ||
languages = {"en": "English", "fr": "Fran\u00e7ais", "es": "Espa\u00f1ol"} | ||
recaptcha.publickey = 6Ld5ydQSAAAAAGtZJG67QkQM7Z13X6MGf72RtmDE | ||
recaptcha.privatekey = 6Ld5ydQSAAAAAJW3To_tN6czS7C-HCnsBVhENfD9 | ||
layers.rootFolder=/var/portal/indicators | ||
layers.rootFolder=/tmp | ||
info.queryUrl=http://demo1.geo-solutions.it/diss_geoserver/wms | ||
info.layerUrl=http://demo1.geo-solutions.it/diss_geoserver/gwc/service/wms | ||
client.modules=layers,communication,iso8601,error-management,map,banner,toolbar,time-slider,layer-list,info-control,info-dialog,center,zoom-bar,layer-list-selector,active-layer-list,legend-button,legend-panel |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,37 @@ | ||
package org.fao.unredd; | ||
|
||
import java.io.File; | ||
import java.util.Properties; | ||
|
||
import javax.servlet.ServletContext; | ||
import javax.servlet.ServletContextEvent; | ||
import javax.servlet.ServletContextListener; | ||
|
||
import org.fao.unredd.layers.LayerFactory; | ||
import org.fao.unredd.layers.folder.FolderLayerFactory; | ||
import org.fao.unredd.portal.Config; | ||
|
||
public class AppContextListener implements ServletContextListener { | ||
|
||
@Override | ||
public void contextInitialized(ServletContextEvent sce) { | ||
ServletContext servletContext = sce.getServletContext(); | ||
String rootPath = servletContext.getRealPath("/"); | ||
String configInitParameter = servletContext | ||
.getInitParameter("PORTAL_CONFIG_DIR"); | ||
Config config = new Config(rootPath, configInitParameter); | ||
servletContext.setAttribute("config", config); | ||
|
||
Properties configurationProperties = config.getProperties(); | ||
String indicatorsFolder = configurationProperties | ||
.getProperty("layers.rootFolder"); | ||
LayerFactory layerFactory = new FolderLayerFactory(new File( | ||
indicatorsFolder)); | ||
servletContext.setAttribute("layer-factory", layerFactory); | ||
} | ||
|
||
@Override | ||
public void contextDestroyed(ServletContextEvent sce) { | ||
} | ||
|
||
} |
104 changes: 104 additions & 0 deletions
104
src/main/java/org/fao/unredd/charts/generated/DataType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,104 @@ | ||
// | ||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.2-hudson-jaxb-ri-2.2-63- | ||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> | ||
// Any modifications to this file will be lost upon recompilation of the source schema. | ||
// Generated on: 2013.10.11 at 09:17:10 AM CEST | ||
// | ||
|
||
|
||
package org.fao.unredd.charts.generated; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlAttribute; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for DataType complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="DataType"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="value" type="{http://www.w3.org/2001/XMLSchema}double" maxOccurs="unbounded"/> | ||
* </sequence> | ||
* <attribute name="zone-id" use="required" type="{http://www.w3.org/2001/XMLSchema}string" /> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "DataType", propOrder = { | ||
"value" | ||
}) | ||
public class DataType { | ||
|
||
@XmlElement(type = Double.class) | ||
protected List<Double> value; | ||
@XmlAttribute(name = "zone-id", required = true) | ||
protected String zoneId; | ||
|
||
/** | ||
* Gets the value of the value property. | ||
* | ||
* <p> | ||
* This accessor method returns a reference to the live list, | ||
* not a snapshot. Therefore any modification you make to the | ||
* returned list will be present inside the JAXB object. | ||
* This is why there is not a <CODE>set</CODE> method for the value property. | ||
* | ||
* <p> | ||
* For example, to add a new item, do as follows: | ||
* <pre> | ||
* getValue().add(newItem); | ||
* </pre> | ||
* | ||
* | ||
* <p> | ||
* Objects of the following type(s) are allowed in the list | ||
* {@link Double } | ||
* | ||
* | ||
*/ | ||
public List<Double> getValue() { | ||
if (value == null) { | ||
value = new ArrayList<Double>(); | ||
} | ||
return this.value; | ||
} | ||
|
||
/** | ||
* Gets the value of the zoneId property. | ||
* | ||
* @return | ||
* possible object is | ||
* {@link String } | ||
* | ||
*/ | ||
public String getZoneId() { | ||
return zoneId; | ||
} | ||
|
||
/** | ||
* Sets the value of the zoneId property. | ||
* | ||
* @param value | ||
* allowed object is | ||
* {@link String } | ||
* | ||
*/ | ||
public void setZoneId(String value) { | ||
this.zoneId = value; | ||
} | ||
|
||
} |
76 changes: 76 additions & 0 deletions
76
src/main/java/org/fao/unredd/charts/generated/LabelType.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,76 @@ | ||
// | ||
// This file was generated by the JavaTM Architecture for XML Binding(JAXB) Reference Implementation, v2.2.2-hudson-jaxb-ri-2.2-63- | ||
// See <a href="http://java.sun.com/xml/jaxb">http://java.sun.com/xml/jaxb</a> | ||
// Any modifications to this file will be lost upon recompilation of the source schema. | ||
// Generated on: 2013.10.11 at 09:17:10 AM CEST | ||
// | ||
|
||
|
||
package org.fao.unredd.charts.generated; | ||
|
||
import java.util.ArrayList; | ||
import java.util.List; | ||
import javax.xml.bind.annotation.XmlAccessType; | ||
import javax.xml.bind.annotation.XmlAccessorType; | ||
import javax.xml.bind.annotation.XmlElement; | ||
import javax.xml.bind.annotation.XmlType; | ||
|
||
|
||
/** | ||
* <p>Java class for LabelType complex type. | ||
* | ||
* <p>The following schema fragment specifies the expected content contained within this class. | ||
* | ||
* <pre> | ||
* <complexType name="LabelType"> | ||
* <complexContent> | ||
* <restriction base="{http://www.w3.org/2001/XMLSchema}anyType"> | ||
* <sequence> | ||
* <element name="label" type="{http://www.w3.org/2001/XMLSchema}string" maxOccurs="unbounded"/> | ||
* </sequence> | ||
* </restriction> | ||
* </complexContent> | ||
* </complexType> | ||
* </pre> | ||
* | ||
* | ||
*/ | ||
@XmlAccessorType(XmlAccessType.FIELD) | ||
@XmlType(name = "LabelType", propOrder = { | ||
"label" | ||
}) | ||
public class LabelType { | ||
|
||
@XmlElement(required = true) | ||
protected List<String> label; | ||
|
||
/** | ||
* Gets the value of the label property. | ||
* | ||
* <p> | ||
* This accessor method returns a reference to the live list, | ||
* not a snapshot. Therefore any modification you make to the | ||
* returned list will be present inside the JAXB object. | ||
* This is why there is not a <CODE>set</CODE> method for the label property. | ||
* | ||
* <p> | ||
* For example, to add a new item, do as follows: | ||
* <pre> | ||
* getLabel().add(newItem); | ||
* </pre> | ||
* | ||
* | ||
* <p> | ||
* Objects of the following type(s) are allowed in the list | ||
* {@link String } | ||
* | ||
* | ||
*/ | ||
public List<String> getLabel() { | ||
if (label == null) { | ||
label = new ArrayList<String>(); | ||
} | ||
return this.label; | ||
} | ||
|
||
} |
Oops, something went wrong.