Hi all,

I'm trying to build a web app so that my users can login and change their
user passwords, so I'm trying to figure out the best way to go about
updating the table.

I figured I could either a) use the DigestUtil to encode the password and
then do my own SQL to update the user table, or I could b) use the existing
James objects to interface with the database.

Option B sounds best to me, so I went digging. I'll explain more below, but
the roadblock that I'm stopped at is... I can't find the
RemoteManagerHandlerConfigurationDataImpl class.

This is how I got there (tell me if I'm approaching this poorly):

I looked in the RemoteManagerHandler to see how it added users, and found
that it interacts with a UsersRepository (an instance of
JamesUsersJdbcRepository in my case). I looked up the UsersRespository
interface and found an updateUser(User) method, which appears to be exactly
what I'm looking for.

So, I need to get an instance of the UsersRepository, and found that it is
fetched from getUsersRepository() in an instance of a
RemoteManagerHandlerConfigurationData which is actually an instance of
RemoteManagerHandlerConfigurationDataImpl.

RemoteManager gets one by simply calling the constructor, I'm hoping that
all I have to do is call the constructor on it too, but I can't find the
source file anywhere to peek inside and see what it's doing.

As always, any pointers to docs or direct help appreciated,

Kenny Smith
JournalScape.com


--
To unsubscribe, e-mail:   <mailto:james-dev-unsubscribe@;jakarta.apache.org>
For additional commands, e-mail: <mailto:james-dev-help@;jakarta.apache.org>

Reply via email to