8 messages in org.apache.james.server-userUsing the API to Dynamically Add Users
FromSent OnAttachments
Don KimApr 12, 2005 9:30 am 
Alan GerhardApr 13, 2005 4:26 pm 
Daniel PerryApr 14, 2005 2:26 am 
Davide Dalla RosaApr 14, 2005 2:41 am 
Daniel PerryApr 14, 2005 2:43 am 
Jason WebbApr 14, 2005 3:38 am 
Steve ShortApr 14, 2005 9:52 am 
John G. NormanApr 16, 2005 4:45 am 
Actions with this message:
Paste this link in email or IM:
Paste this link in email or IM:
Atom feed for this thread
Paste this URL into your reader:
Subject:Using the API to Dynamically Add UsersActions...
From:Don Kim (dk@compsych.com)
Date:Apr 12, 2005 9:30:16 am
List:org.apache.james.server-user

Hi all,

I was looking for some help with user creation in James. I have read the
documention that explains how to manage users via the James admin, however, we
would like to be able to add users programmatically. Looking at the API, I'm
going to assume that I should primarily be concerned with the
org.apache.james.userrepository package, but I have a few questions:

1) Does anyone know of a "starting point?"

Right now, I am struggling with basics, such as how do I initiate a connection
to the server to even start trying to make modifictions? I guess a parallel to
this would be that if I were trying to connect to a DB, I'd be setting up all of
the JDBC info. Would I be doing this in the configure() method of one of the
user repositories? Or should I be looking elsewhere?

2) Does it matter if I'm using the file system or DB storage methods?

I contacted someone from a James mailing list to ask some basic question (that
person had originally been asking if anyone knew of any additional doc/training
info/examples). Anyway, this person stated that if I wanted to add users
programmatically, that I should go with DB storage. Can anyone comment on this?
I see that in the UsersFileRepository class, there is an addUser() method, so
I'd assume it didn't matter.

Any help or pointers would be greatly appreciated.