

![]() | Start a set with this search |
![]() | Include this search in one of my sets |
![]() | Exclude this search from one of my sets |
![]() | Permalink to these results Paste this link in email or IM: |
| Atom feed for tracking future search results Paste this URL into your reader: |
8 messages in org.apache.james.server-userRE: Using the API to Dynamically Add ...| From | Sent On | Attachments |
|---|---|---|
| Don Kim | Apr 12, 2005 9:30 am | |
| Alan Gerhard | Apr 13, 2005 4:26 pm | |
| Daniel Perry | Apr 14, 2005 2:26 am | |
| Davide Dalla Rosa | Apr 14, 2005 2:41 am | |
| Daniel Perry | Apr 14, 2005 2:43 am | |
| Jason Webb | Apr 14, 2005 3:38 am | |
| Steve Short | Apr 14, 2005 9:52 am | |
| John G. Norman | Apr 16, 2005 4:45 am |

![]() | Permalink for this message Paste this link in email or IM: |
![]() | Permalink for this thread Paste this link in email or IM: |
| Atom feed for this thread Paste this URL into your reader: |
| Subject: | RE: Using the API to Dynamically Add Users | Actions... |
|---|---|---|
| From: | Daniel Perry (d.pe...@netcase.co.uk) | |
| Date: | Apr 14, 2005 2:26:21 am | |
| List: | org.apache.james.server-user | |
Are you planning on doing this inside of james? (ie in a mailet) or outside of james (eg webapp)?
From a mailet you can work directly with user repositories. See commandlistservmanager for an example - it adds users in subscribe-confirm command.
From outside of james, if you use a database, you can add entries directly (ie using jdbc / any database connectivity provided by other languages).
Not sure how easy it is to work with file repositories from outside of james.
Daniel.
-----Original Message----- From: Don Kim [mailto:dk...@compsych.com] Sent: 12 April 2005 17:31 To: serv...@james.apache.org Subject: Using the API to Dynamically Add Users
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.
Thanks, Don Kim
DISCLAIMER: The information contained in this e-mail may be confidential and is intended solely for the use of the named addressee. Access, copying or re-use of the e-mail or any information contained herein by any other person is not authorized. If you are not the intended recipient please notify us immediately by returning the e-mail to the originator.







