posted 16 years ago
Sorry, I've been hit with another project and have had to lay this one aside for a while. I'm storing user information in a user.properties file for this application. My goal in the end is to have a My Account page where users can change their passwords and a User Accounts page for administrators to view/create/modify current user accounts.
What I've found so far: I've decided to just inject the InMemoryDAOImpl bean into my application using Spring's inversion of control. Acegi however is very tight about it's UserMap. I can see who is currently logged in and search users by username. I can't, however, select arbitrary user let alone modify the UserMap.
Purposed solution: Since Acegi locks the properties file once it's loaded I can't read from it, let alone modify it. So, I'll have two identical files, one for Acegi and one for viewing all user information. For saving new information, I'll use InMemoryDaoImpl.setUserProperties() to switch between the two files. I just hope Acegi will release the original user.properties file so I can modify it. I'll try this as soon as I get a chance.
When you break the big rules, you get a lot of little rules.