Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge deegree master into latlon master #23

Merged
merged 70 commits into from
Apr 17, 2013
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
70 commits
Select commit Hold shift + click to select a range
34a7922
fixed actual bug that caused regressions
hwbllmnn Jan 23, 2013
85df715
changed db access to use a proper workspace resource
hwbllmnn Mar 11, 2013
6583b90
removed static connection manager calls from shape module
hwbllmnn Mar 11, 2013
770611a
removed static connection manager calls from wms module
hwbllmnn Mar 11, 2013
fb82b4b
removed static addConnection call
hwbllmnn Mar 11, 2013
4cff4ba
removed more static references to connection manager functionality
hwbllmnn Mar 11, 2013
3487944
removed static connection mgr references from crs package
hwbllmnn Mar 11, 2013
a5d4f94
removed obsolete, non working test
hwbllmnn Mar 11, 2013
dadf218
removed static connection creation code from feature/metadata modules
hwbllmnn Mar 11, 2013
bddd86e
removed most getConnectionIds calls
hwbllmnn Mar 11, 2013
8afd4f9
removed some reference to static getConnection calls from sql dialect…
hwbllmnn Mar 11, 2013
c73d720
removed static getConnection calls from observation stores
hwbllmnn Mar 11, 2013
406ee18
removed static getConnection calls from feature related modules
hwbllmnn Mar 11, 2013
96b485d
removed static getConnection calls from some console/jsf classes and …
hwbllmnn Mar 11, 2013
049d470
fixed a couple of newly introduced bugs, removed last call to getConn…
hwbllmnn Mar 11, 2013
9d25959
Preparing GetFeatureInfo support for remotewmts backends
hwbllmnn Mar 20, 2013
9a308d7
bumped dependency versions
hwbllmnn Mar 21, 2013
d6cbbf0
fixed compile errors
hwbllmnn Mar 21, 2013
616f4e5
fixed test failures
hwbllmnn Mar 21, 2013
3380f47
fixed remaining test failure
hwbllmnn Mar 21, 2013
10d0553
merged master
hwbllmnn Mar 21, 2013
ec7fb9b
Improved type preservation when performing binary comparisons of Type…
MrSnyder Mar 21, 2013
98da108
extracted out feature info parsing/sanitizing from protocol-wms to co…
hwbllmnn Mar 22, 2013
2e850f4
added GFI parsing/handling to wmts client
hwbllmnn Mar 22, 2013
b910c4c
implemented GFI handling for remotewmts tile store
hwbllmnn Mar 22, 2013
bb8e5a2
made note that GFI is now supported for remotewmts servers
hwbllmnn Mar 22, 2013
c1392bd
updated description for remotewmts tile stores (scope)
hwbllmnn Mar 22, 2013
86ef3bb
Update layers.rst
Mar 22, 2013
44e8983
better error messages when no fitting infoformat is found
hwbllmnn Mar 22, 2013
22e7f22
added auto-repairing of namespaces when writing out GML
hwbllmnn Mar 22, 2013
c57dc59
added unit tests for esri featureinfo workaround
hwbllmnn Mar 22, 2013
e7f4eb6
added test and workaround for esri collections with namespace (namesp…
hwbllmnn Mar 22, 2013
032865c
adapted configuration to new demo
hwbllmnn Mar 23, 2013
a2e53a9
fixed more expected responses
hwbllmnn Mar 24, 2013
846bd96
fixed schema validation tests
hwbllmnn Mar 24, 2013
28a9484
removed syso
hwbllmnn Mar 24, 2013
385509e
fixed remotewms tests
hwbllmnn Mar 24, 2013
7077b31
bumped config version to allow 3.3.0
hwbllmnn Mar 25, 2013
a4acf68
Do not output queryable attribute for layers without names
hwbllmnn Mar 25, 2013
6d50551
fix compliance workspace jar dependencies
hwbllmnn Mar 26, 2013
1c5cd0f
Inserted missing read timeout parameter
Mar 6, 2013
846d0d0
manually repaired interval boundaries for coverage elevation layers
hwbllmnn Mar 27, 2013
65269e8
added proper extent configuration
hwbllmnn Mar 27, 2013
33d597a
bumped more dependency versions identified by the versions plugin
hwbllmnn Mar 28, 2013
45bb799
bumped plugin updates suggested by the versions maven plugin
hwbllmnn Mar 28, 2013
340b9aa
spotted another batik dependency problem
hwbllmnn Mar 28, 2013
4f3fae2
sort config list in console
hwbllmnn Mar 29, 2013
3e4dc4f
Write out codeSpace for ServiceType
hwbllmnn Mar 30, 2013
60fd3ad
Merge remote-tracking branch 'deegree/master' into umn-getfeatureinfo…
hwbllmnn Mar 31, 2013
c36c954
improved umn featureinfo guessing
hwbllmnn Mar 31, 2013
01e1db6
Remove features from cache when deleted
hwbllmnn Apr 1, 2013
bb33f88
Merge pull request #78 from lat-lon/webservices-handbook
hwbllmnn Apr 2, 2013
35422f1
Merge pull request #60 from occamlabs/static-jdbc-connections
hwbllmnn Apr 2, 2013
62c97b1
Merge pull request #72 from occamlabs/remotewmts-featureinfo
hwbllmnn Apr 2, 2013
4d97827
Merge pull request #73 from occamlabs/update-dependencies
hwbllmnn Apr 2, 2013
8728e87
Merge pull request #75 from occamlabs/it-test-fixes
hwbllmnn Apr 2, 2013
2c1f8e5
Merge pull request #76 from occamlabs/primitive-comparison-fix
hwbllmnn Apr 2, 2013
313f206
Merge pull request #79 from occamlabs/wmts-it-tests-fix
hwbllmnn Apr 2, 2013
d10f376
Merge pull request #80 from occamlabs/remotewms-test-fix
hwbllmnn Apr 2, 2013
e586069
Merge pull request #81 from occamlabs/queryable-flag
hwbllmnn Apr 2, 2013
38c01ca
Merge pull request #82 from occamlabs/compliance-workspace-fix
hwbllmnn Apr 2, 2013
dae67a6
Merge pull request #83 from lat-lon/csw-read-timeout
hwbllmnn Apr 2, 2013
363e661
Merge pull request #84 from occamlabs/coverage-layer-extent-fix
hwbllmnn Apr 2, 2013
e401a80
Merge pull request #87 from occamlabs/console-sort-resources
hwbllmnn Apr 2, 2013
215725e
Merge pull request #88 from occamlabs/wfs-200-codespace
hwbllmnn Apr 2, 2013
9eca961
Merge pull request #89 from occamlabs/umn-getfeatureinfo-fix
hwbllmnn Apr 2, 2013
2c0164d
Merge pull request #90 from occamlabs/blobmode-delete-cache-fix
hwbllmnn Apr 2, 2013
92e5670
Fixing test issues caused by removal of Jersey and OWSCapabilitiesXML…
MrSnyder Apr 2, 2013
9e7f268
[maven-release-plugin] prepare release deegree-3.3-pre1
deegree-ci Apr 3, 2013
7d596fe
[maven-release-plugin] prepare for next development iteration
deegree-ci Apr 3, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion deegree-client/deegree-jsf-console/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-client</artifactId>
<version>3.3-pre1-SNAPSHOT</version>
<version>3.3-pre2-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -403,4 +403,5 @@ public void setAutoActivate( boolean autoActivate ) {
public void setState( ResourceState<?> state ) {
this.state = state;
}
}

}
Original file line number Diff line number Diff line change
Expand Up @@ -207,6 +207,7 @@ public List<Config> getAvailableResources() {
configs.add( new Config( state, this, currentResourceManager.getManager(),
currentResourceManager.getStartView(), true ) );
}
Collections.sort( configs );
return configs;
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,9 +83,14 @@ public class FeatureStoreConfig implements Serializable {
private String id;

private FeatureStoreManager getFeatureStoreManager() {
DeegreeWorkspace ws = getWorkspace();
return ws.getSubsystemManager( FeatureStoreManager.class );
}

private DeegreeWorkspace getWorkspace() {
ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
DeegreeWorkspace ws = ( (WorkspaceBean) ctx.getApplicationMap().get( "workspace" ) ).getActiveWorkspace();
return ws.getSubsystemManager( FeatureStoreManager.class );
return ws;
}

public boolean getSql() {
Expand All @@ -104,7 +109,7 @@ public String createTables() {
SQLFeatureStore fs = (SQLFeatureStore) getFeatureStoreManager().get( getId() );
String connId = fs.getConnId();
String[] sql = DDLCreator.newInstance( fs.getSchema(), fs.getDialect() ).getDDL();
SQLExecution execution = new SQLExecution( connId, sql, "/console/featurestore/buttons" );
SQLExecution execution = new SQLExecution( connId, sql, "/console/featurestore/buttons", getWorkspace() );

FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put( "execution", execution );
return "/console/generic/sql.jsf?faces-redirect=true";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@
import org.deegree.client.core.utils.SQLExecution;
import org.deegree.commons.config.DeegreeWorkspace;
import org.deegree.commons.config.ResourceState;
import org.deegree.commons.config.ResourceState.StateType;
import org.deegree.commons.jdbc.ConnectionManager;
import org.deegree.commons.jdbc.ConnectionManager.Type;
import org.deegree.commons.utils.FileUtils;
Expand Down Expand Up @@ -133,10 +134,24 @@ public String getFeatureStoreId()
return mgr.getNewConfigId();
}

private DeegreeWorkspace getWorkspace() {
ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
DeegreeWorkspace ws = ( (WorkspaceBean) ctx.getApplicationMap().get( "workspace" ) ).getActiveWorkspace();
return ws;
}

public SortedSet<String> getAvailableJdbcConns() {
SortedSet<String> conns = new TreeSet<String>( ConnectionManager.getConnectionIds() );
// TODO remove this hack
conns.remove( "LOCK_DB" );
ConnectionManager mgr = getWorkspace().getSubsystemManager( ConnectionManager.class );
SortedSet<String> conns = new TreeSet<String>();
for ( ResourceState<?> rs : mgr.getStates() ) {
// TODO remove this hack
if ( rs.getId().equals( "LOCK_DB" ) ) {
continue;
}
if ( rs.getType().equals( StateType.init_ok ) ) {
conns.add( rs.getId() );
}
}
return conns;
}

Expand Down Expand Up @@ -335,7 +350,7 @@ public String createTables() {
SQLFeatureStore store = (SQLFeatureStore) resourceState.getResource();
String[] createStmts = DDLCreator.newInstance( store.getSchema(), store.getDialect() ).getDDL();
resourceState = fsMgr.deactivate( resourceState.getId() );
SQLExecution execution = new SQLExecution( jdbcId, createStmts, "/console/featurestore/sql/wizard5" );
SQLExecution execution = new SQLExecution( jdbcId, createStmts, "/console/featurestore/sql/wizard5", ws );
FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put( "execution", execution );
return "/console/generic/sql.jsf?faces-redirect=true";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -41,9 +41,12 @@
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;

import org.deegree.commons.config.DeegreeWorkspace;
import org.deegree.commons.jdbc.ConnectionManager;
import org.deegree.console.WorkspaceBean;

/**
* JSF Bean for testing the availability of connections offered by {@link ConnectionManager}.
Expand All @@ -58,10 +61,17 @@
@SessionScoped
public class ConnectionTester {

private DeegreeWorkspace getWorkspace() {
ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
DeegreeWorkspace ws = ( (WorkspaceBean) ctx.getApplicationMap().get( "workspace" ) ).getActiveWorkspace();
return ws;
}

public void test() {
String id = (String) getParam1();
try {
ConnectionManager.getConnection( id ).close();
ConnectionManager mgr = getWorkspace().getSubsystemManager( ConnectionManager.class );
mgr.get( id ).close();
FacesMessage fm = new FacesMessage( SEVERITY_INFO, "Connection '" + id + "' ok", null );
FacesContext.getCurrentInstance().addMessage( null, fm );
} catch ( Throwable t ) {
Expand All @@ -70,11 +80,12 @@ public void test() {
FacesContext.getCurrentInstance().addMessage( null, fm );
}
}

public String testAndSave() {
String id = (String) getParam1();
try {
ConnectionManager.getConnection( id ).close();
ConnectionManager mgr = getWorkspace().getSubsystemManager( ConnectionManager.class );
mgr.get( id ).close();
FacesMessage fm = new FacesMessage( SEVERITY_INFO, "Connection '" + id + "' ok", null );
FacesContext.getCurrentInstance().addMessage( null, fm );
} catch ( Throwable t ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,9 +75,13 @@ public class MetadataStoreConfig implements Serializable {
private String id;

private MetadataStoreManager getMetadataStoreManager() {
return getWorkspace().getSubsystemManager( MetadataStoreManager.class );
}

private DeegreeWorkspace getWorkspace() {
ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
DeegreeWorkspace ws = ( (WorkspaceBean) ctx.getApplicationMap().get( "workspace" ) ).getActiveWorkspace();
return ws.getSubsystemManager( MetadataStoreManager.class );
return ws;
}

public String getId() {
Expand Down Expand Up @@ -109,13 +113,12 @@ public String createTables()
String[] sql;
try {
String connId = ms.getConnId();
ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
DeegreeWorkspace ws = ( (WorkspaceBean) ctx.getApplicationMap().get( "workspace" ) ).getActiveWorkspace();
DeegreeWorkspace ws = getWorkspace();
ConnectionManager connManager = ws.getSubsystemManager( ConnectionManager.class );

sql = provider.getCreateStatements( connManager.getType( connId ) );

SQLExecution execution = new SQLExecution( connId, sql, "/console/metadatastore/buttons" );
SQLExecution execution = new SQLExecution( connId, sql, "/console/metadatastore/buttons", ws );

FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put( "execution", execution );
} catch ( UnsupportedEncodingException e ) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,12 @@

import javax.faces.bean.ManagedBean;
import javax.faces.bean.RequestScoped;
import javax.faces.context.ExternalContext;
import javax.faces.context.FacesContext;

import org.deegree.commons.config.DeegreeWorkspace;
import org.deegree.commons.jdbc.ConnectionManager;
import org.deegree.console.WorkspaceBean;

/**
* TODO add class documentation here
Expand All @@ -60,6 +64,12 @@ public class Connection implements Serializable {

private String status = "OK";

private DeegreeWorkspace getWorkspace() {
ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
DeegreeWorkspace ws = ( (WorkspaceBean) ctx.getApplicationMap().get( "workspace" ) ).getActiveWorkspace();
return ws;
}

public String getId() {
return id;
}
Expand All @@ -71,7 +81,8 @@ public String getStatus() {
Connection( String id ) {
try {
this.id = id;
ConnectionManager.getConnection( id ).close();
ConnectionManager mgr = getWorkspace().getSubsystemManager( ConnectionManager.class );
mgr.get( id ).close();
} catch ( Exception e ) {
status = "ERROR: " + e.getMessage();
}
Expand Down
15 changes: 0 additions & 15 deletions deegree-client/deegree-jsf-console/src/main/webapp/WEB-INF/web.xml
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,6 @@
<load-on-startup>2</load-on-startup>
</servlet>

<servlet>
<servlet-name>Jersey Web Application</servlet-name>
<servlet-class>com.sun.jersey.spi.container.servlet.ServletContainer</servlet-class>
<init-param>
<param-name>com.sun.jersey.config.property.packages</param-name>
<param-value>org.deegree.services</param-value>
</init-param>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet-mapping>
<servlet-name>Jersey Web Application</servlet-name>
<url-pattern>/rest/*</url-pattern>
</servlet-mapping>

<servlet-mapping>
<servlet-name>services</servlet-name>
<url-pattern>/services</url-pattern>
Expand Down
2 changes: 1 addition & 1 deletion deegree-client/deegree-jsf-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-client</artifactId>
<version>3.3-pre1-SNAPSHOT</version>
<version>3.3-pre2-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@
import javax.faces.context.FacesContext;

import org.deegree.commons.annotations.LoggingNotes;
import org.deegree.commons.config.DeegreeWorkspace;
import org.deegree.commons.jdbc.ConnectionManager;
import org.deegree.commons.utils.JDBCUtils;
import org.slf4j.Logger;
Expand All @@ -67,10 +68,13 @@ public class SQLExecution implements Serializable {

private String backOutcome;

public SQLExecution( String connId, String[] sqlStatements, String backOutcome ) {
private DeegreeWorkspace workspace;

public SQLExecution( String connId, String[] sqlStatements, String backOutcome, DeegreeWorkspace workspace ) {
this.connId = connId;
this.sqlStatements = sqlStatements;
this.backOutcome = backOutcome;
this.workspace = workspace;
}

public String getMessage() {
Expand Down Expand Up @@ -102,16 +106,18 @@ public String execute() {
Connection conn = null;
Statement stmt = null;
try {
conn = ConnectionManager.getConnection( connId );
ConnectionManager mgr = workspace.getSubsystemManager( ConnectionManager.class );
conn = mgr.get( connId );
conn.setAutoCommit( false );
stmt = conn.createStatement();
for ( String sql : sqlStatements ) {
LOG.debug( "Executing: {}", sql );
stmt.execute( sql );
}
conn.commit();
FacesMessage fm = new FacesMessage( SEVERITY_INFO, "Executed " + sqlStatements.length + " statements successfully.", null );
FacesContext.getCurrentInstance().addMessage( null, fm );
FacesMessage fm = new FacesMessage( SEVERITY_INFO, "Executed " + sqlStatements.length
+ " statements successfully.", null );
FacesContext.getCurrentInstance().addMessage( null, fm );
} catch ( Throwable t ) {
if ( conn != null ) {
try {
Expand Down
2 changes: 1 addition & 1 deletion deegree-client/deegree-sos-webclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-client</artifactId>
<version>3.3-pre1-SNAPSHOT</version>
<version>3.3-pre2-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-client/deegree-wps-webclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-client</artifactId>
<version>3.3-pre1-SNAPSHOT</version>
<version>3.3-pre2-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-client/deegree-wpsprinter-webclient/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-client</artifactId>
<version>3.3-pre1-SNAPSHOT</version>
<version>3.3-pre2-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-client/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree</artifactId>
<version>3.3-pre1-SNAPSHOT</version>
<version>3.3-pre2-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-core/deegree-core-3d/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-core</artifactId>
<version>3.3-pre1-SNAPSHOT</version>
<version>3.3-pre2-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-core/deegree-core-annotations/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-core</artifactId>
<version>3.3-pre1-SNAPSHOT</version>
<version>3.3-pre2-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
2 changes: 1 addition & 1 deletion deegree-core/deegree-core-base/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<parent>
<groupId>org.deegree</groupId>
<artifactId>deegree-core</artifactId>
<version>3.3-pre1-SNAPSHOT</version>
<version>3.3-pre2-SNAPSHOT</version>
</parent>

<repositories>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
----------------------------------------------------------------------------*/
package org.deegree.feature.types;

import static javax.xml.XMLConstants.NULL_NS_URI;

import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
Expand Down Expand Up @@ -193,7 +191,7 @@ public GenericAppSchema( FeatureType[] fts, Map<FeatureType, FeatureType> ftToSu
// add namespaces of feature types
for ( FeatureType ft : getFeatureTypes() ) {
String ns = ft.getName().getNamespaceURI();
if ( !( NULL_NS_URI.equals( ns ) ) ) {
if ( !( "".equals( ns ) ) ) {
if ( !this.prefixToNs.values().contains( ns ) && this.prefixToNs != null ) {
String prefix = nsToPrefix.get( ns );
if ( prefix == null ) {
Expand All @@ -212,7 +210,7 @@ public GenericAppSchema( FeatureType[] fts, Map<FeatureType, FeatureType> ftToSu
XSNamespaceItemList nsItems = xsModel.getNamespaces();
for ( int i = 0; i < nsItems.getLength(); i++ ) {
String ns = nsItems.item( i ).getSchemaNamespace();
if ( !NULL_NS_URI.equals( ns ) && !( CommonNamespaces.isCoreNamespace( ns ) ) ) {
if ( !"".equals( ns ) && !( CommonNamespaces.isCoreNamespace( ns ) ) ) {
if ( !this.prefixToNs.values().contains( ns ) && this.prefixToNs != null ) {
String prefix = nsToPrefix.get( ns );
if ( prefix == null ) {
Expand Down
Loading