Move configuration of the servlet to the constructor.
authorBen Konrath <ben@bagu.org>
Tue, 12 Apr 2011 12:55:54 +0000 (14:55 +0200)
committerBen Konrath <ben@bagu.org>
Tue, 12 Apr 2011 12:55:54 +0000 (14:55 +0200)
commit43438ce9e17eb92ac6d1da34b9fe3366ffbe07ee
tree0855d86a6acb62e06d4079d842dbd67ff9aee796
parent3b139f5d6b562eea310d9061b6f1b84fb3b93585
Move configuration of the servlet to the constructor.

The servlet will be initialized even if the database authentication
information is not set or correct. I still need to add the UI for prompting
the user for the authentication information when it's required.

* src/main/java/org/glom/web/client/OnlineGlomService.java: Add
javadocs for getDocumentTitles() method.
* src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java:
Set error message when RPC fails.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Get the
glom files directory from the configuration file. Try to set the
database authentication information for the specific document if it's
set and works otherwise try to use the global authentication
information set for the directory.
* src/main/resources/onlineglom.properties: Moved from
src/main/webapp/WEB-INF/OnlineGlom.properties. Updated with new keys.
Added detailed comments for the new keys.
ChangeLog
src/main/java/org/glom/web/client/OnlineGlomService.java
src/main/java/org/glom/web/client/activity/DocumentSelectionActivity.java
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
src/main/resources/onlineglom.properties [new file with mode: 0644]
src/main/webapp/WEB-INF/OnlineGlom.properties [deleted file]