Prompt for db username/password if they haven't been set.
authorBen Konrath <ben@bagu.org>
Thu, 14 Apr 2011 15:44:42 +0000 (17:44 +0200)
committerBen Konrath <ben@bagu.org>
Thu, 14 Apr 2011 15:44:42 +0000 (17:44 +0200)
commit2bf8b83c9e69f286b1a2c188885a1163f1fd96f2
tree88fd527352e4a644175244c2565f078abc6d69fb
parenta95017d205f6cee402f7172a3414439751aa3ca8
Prompt for db username/password if they haven't been set.

This is implemented with a popup widget that is contained within the
OnlineGlomView and managed by the OnlineGlomActivity.

* src/main/java/org/glom/web/client/OnlineGlomService.java: Two new
methods for checking and setting the database username and password.
* src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java: Two
new methods for checking and setting the database username and
password.
* src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java:
Display authentication popup if the JDBC connection to the database
has not been authenticated.
* src/main/java/org/glom/web/client/ui/AuthenticationPopup.java: New
file.
* src/main/java/org/glom/web/client/ui/OnlineGlomView.java: Add methods
for dealing with the authentication popup.
* src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java:
Implement the methods for dealing with the authentication popup.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java: Don't
try to executed queries if the database connection hasn't been
authenticated. Implement methods for checking and setting the
database username and password.
ChangeLog
src/main/java/org/glom/web/client/OnlineGlomService.java
src/main/java/org/glom/web/client/OnlineGlomServiceAsync.java
src/main/java/org/glom/web/client/activity/OnlineGlomActivity.java
src/main/java/org/glom/web/client/ui/AuthenticationPopup.java [new file with mode: 0644]
src/main/java/org/glom/web/client/ui/OnlineGlomView.java
src/main/java/org/glom/web/client/ui/OnlineGlomViewImpl.java
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java