comparison artifacts/src/main/java/org/dive4elements/river/artifacts/datacage/Recommendations.java @ 6178:d0f01bc92fd0

Datacage: If there is an artifact you likely need the artifact database, too.
author Sascha L. Teichmann <teichmann@intevation.de>
date Tue, 04 Jun 2013 12:26:27 +0200
parents af13ceeba52a
children 25230bc3137c
comparison
equal deleted inserted replaced
6177:573112007ec7 6178:d0f01bc92fd0
255 { 255 {
256 List<Builder.NamedConnection> connections = 256 List<Builder.NamedConnection> connections =
257 new ArrayList<Builder.NamedConnection>(3); 257 new ArrayList<Builder.NamedConnection>(3);
258 258
259 Connection userConnection = userId != null 259 Connection userConnection = userId != null
260 || parameters.containsKey("ARTIFACT-ID")
260 ? DBConfig 261 ? DBConfig
261 .getInstance() 262 .getInstance()
262 .getDBConnection() 263 .getDBConnection()
263 .getDataSource() 264 .getDataSource()
264 .getConnection() 265 .getConnection()

http://dive4elements.wald.intevation.org