Breakup the OnlineGlomServiceImpl class to make it more manageable.
authorBen Konrath <ben@bagu.org>
Thu, 15 Sep 2011 12:13:21 +0000 (14:13 +0200)
committerBen Konrath <ben@bagu.org>
Thu, 15 Sep 2011 12:13:21 +0000 (14:13 +0200)
commitf830bca08ca75d8f8e8fdc241fb1841c7c23ae7b
tree40868fbccf81accc219f99bacabcaadb78997741
parent228bcd85fa49ebf1490d76eb1b5f550943af79a8
Breakup the OnlineGlomServiceImpl class to make it more manageable.

This sets things up to make it easier to add the data retrieval for
related lists (portals). No user noticeable changes were made with
this commit.

* src/main/java/org/glom/web/server/ConfiguredDocument.java: This
class has the code to retrieve the layouts and access the
database using the new database helper classes.
* src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java:
Most of the functionality has been removed from this class. This
class now represents the public interface for the client side
code. It also deals with configuring the servlet and cleaning
things up when the servlet is stopped.
* src/main/java/org/glom/web/server/Utils.java: Extract a couple
of static methods into this utility class.
* src/main/java/org/glom/web/server/database/DBAccess.java:
* src/main/java/org/glom/web/server/database/DetailsDBAccess.java:
* src/main/java/org/glom/web/server/database/ListDBAccess.java:
* src/main/java/org/glom/web/server/database/ListViewDBAccess.java:
These classes have the database retrieval code. The class hierarchy
has been setup to make it easy to reuse code for similar
functionality.
ChangeLog
src/main/java/org/glom/web/server/ConfiguredDocument.java
src/main/java/org/glom/web/server/OnlineGlomServiceImpl.java
src/main/java/org/glom/web/server/Utils.java [new file with mode: 0644]
src/main/java/org/glom/web/server/database/DBAccess.java [new file with mode: 0644]
src/main/java/org/glom/web/server/database/DetailsDBAccess.java [new file with mode: 0644]
src/main/java/org/glom/web/server/database/ListDBAccess.java [new file with mode: 0644]
src/main/java/org/glom/web/server/database/ListViewDBAccess.java [new file with mode: 0644]