This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes JForum and the fly likes Default user settings.. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » JForum
Bookmark "Default user settings.." Watch "Default user settings.." New topic

Default user settings..

Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
I cant figure out where to set the defaults settings for when theres a new user registered.

What im trying to do, is to set the "Send notification for all new messages:
Keep sending notifications even if the other messages weren't read yet." to default True.

Can anyone help me out with this?
[originally posted on by Trout]
Migrated From
Ranch Hand

Joined: Apr 22, 2012
Posts: 17424
There are two possible places to modify this.

First, the very basic stuff gets set in the insertNew() method of the class. E.g., username, password, and e-mail.

The second place is in the addNew(User u) method of the class that impliments the UserDAO interface.

The second is probably the correct place to add in custom settings since the "view" classes should probably just collect form data and process it. In addition, overriding a few DAO implimentations if fairly simple. Just subclass your DB server's DataAccessDriver implimentation so that it uses your custom UserDAO implimentation (which can be a subclass of the DB specific one) and then change your config properties to use your DataAccessDriver.
[originally posted on by monroe]
It is sorta covered in the JavaRanch Style Guide.
subject: Default user settings..
Similar Threads
jar stops during execution
login using x509 certificates
Error in code when using assertion
[URLyBird] What are the persistent properties