Where does the bootstrapping begin (in Aggregate)?

Hello,

Where is the entry point to the code that sets off the creation of a
minimal set of database tables and an admin user when Aggregate begins for
the first time?

Thanks,

Caden

ODK Aggregate makes extensive use of the Spring Framework, and, in
particular Spring Security.

The definition for the beans used in configuring the security apparatus are
in:

https://github.com/opendatakit/aggregate/blob/master/war-base/WEB-INF/applicationContext-security.xml

In general, database tables are constructed on a first-reference basis.
This is done via the calls to assertRelation on the Datastore interface.
at

The kick-off to table creation and population begins in the loading of the
Spring beans defined in the above xml file.

Some of these beans have an afterPropertiesSet() method that verifies or
configures data tables.

I think of the RoleHierarchyImpl class as the first class to go through
this processing.

That class configures the superuser and sanitizes the granted authority
hierarchy. And, in the course of doing that, creates the task lock table,
etc.

Because Spring manages the order of bean construction, something else might
do something first, but this is the class that does the most significant
security-layer initialization actions.

ยทยทยท On Mon, Apr 3, 2017 at 2:11 PM, C. Howell wrote:

Hello,

Where is the entry point to the code that sets off the creation of a
minimal set of database tables and an admin user when Aggregate begins for
the first time?

Thanks,

Caden

--
You received this message because you are subscribed to the Google Groups
"ODK Developers" group.
To unsubscribe from this group and stop receiving emails from it, send an
email to opendatakit-developers+unsubscribe@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

--
Mitch Sundt
Software Engineer
University of Washington
mitchellsundt@gmail.com