• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Preference Manager

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
We come across many Prefrences that are managed within application, OS level, windows, MAC, handheld devices. Can any one point me - different design patterns, ideas to design Preference Manager.

Some of the things it should do
Some preferences are by deafult assigned,
Some preferences are subscription based,

What is the best underlying data structure to store these preferences?
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Do you have any design ideas yourself? If so, please share them.

Before you can efficiently design something, you need to have requirements and/or specifications. Do you have any of these?
 
Vis Deo
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Simplest solution can be xml based per user.
Define schema for different types of preferences

If I am designing preference manager for Internet option,
Default browser, size, default site to open, pop up blocker etc can be required preferences,
Subsciption based preferences may be allowed sites, user can be asked to subscribe for allowed sites..

Irrespesctive of the requirements, I would like to understand best way of storing the preferences and retrival using Java.

If you have to design preference Manager for Internet Options - what are different types to design?

One part of it is storing preferences per user, that is going to be simple
Difficult part would be Providing new preferences on Fly. Let's say x Company has y applications and each applications is allowing 1-n number of preferences to set. Preference Manager sould allow to save these preferences. Also new application comes up and Preference manager should allow to provide preferences for this new application with no code changes.
 
Marshal
Posts: 28263
95
Eclipse IDE Firefox Browser MySQL Database
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Vis Deo wrote:Simplest solution can be xml based per user.


Stop right there. If you don't have any requirements yet, it's too early to decide how you're going to store the preferences.

Irrespesctive of the requirements, I would like to understand best way of storing the preferences and retrival using Java.


Nope. There is no "best" way until you have some requirements to guide your choice.
 
I'd appreciate it if you pronounced my name correctly. Pinhead, with a silent "H". Petite ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic