Eclipse Community Forums - RDF feed
https://www.eclipse.org/forums/
Eclipse Community Forumsapplication configuration management
https://www.eclipse.org/forums/index.php/mv/msg/747717/1349745/#msg_1349745
This data can indeed be handled using a specific form to input/save/delete this data, stored in a one-row table of the database.
But we all know that configuration processes and data access have some special use cases: admin privileges needed, hierarchical grouping of related config settings, storing on db (so on the server side) or in a text file (on the client side)...
Complexity we can be see for example in the gui widgets and load/store mechanics that is available in the android platform.
So, I'm asking if there is any specific way or best practice to input/save/retrieve configuration information in the scout platform
thanks in advance!]]>davide .2014-05-12T10:29:35-00:00Re: application configuration management
https://www.eclipse.org/forums/index.php/mv/msg/747717/1353990/#msg_1353990
you might want to subclass org.eclipse.scout.commons.prefs.AbstractPreferences and create your specific implementation. Your own IUserPreferenceStorageService implementation should in its loadPreferences() method then load such instances.
Storing preferences in the database is recommended. If you ever need to migrate some preferences, you are in trouble if they are stored on the client. Since there will potentially be a lot of UI preference changes (column width adjustments e.g.), pushing accumulated changes async to the database periodically is probably a good idea.
Best wishes
Reto]]>Reto Aschwanden2014-05-14T04:34:51-00:00Re: application configuration management
https://www.eclipse.org/forums/index.php/mv/msg/747717/1354451/#msg_1354451
for configuration options that do not change the best option is to use the config.ini from the server.
For configuration options that are more dynamic I use a database table and created a normal service to update it.