|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.james.impl.user.UserManagement
public class UserManagement
Constructor Summary | |
---|---|
UserManagement()
|
Method Summary | |
---|---|
boolean |
addUser(java.lang.String userName,
java.lang.String password,
java.lang.String repositoryName)
Adds a user to this mail server. |
long |
countUsers(java.lang.String repositoryName)
Total count of existing users |
boolean |
deleteUser(java.lang.String userName,
java.lang.String repositoryName)
Deletes a user from this mail server. |
java.lang.String |
getAlias(java.lang.String userName,
java.lang.String repositoryName)
Retrieves the user's alias, if set |
java.lang.String |
getForwardAddress(java.lang.String userName,
java.lang.String repositoryName)
Retrieves the user's forward, if set |
java.util.List |
getUserRepositoryNames()
Retrieves a list of the names of all available user repositories |
java.lang.String[] |
listAllUsers(java.lang.String repositoryName)
List the names of all users |
void |
service(org.apache.avalon.framework.service.ServiceManager componentManager)
|
boolean |
setAlias(java.lang.String userName,
java.lang.String aliasUserName,
java.lang.String repositoryName)
Set a user's alias to whom all mail is forwarded to |
boolean |
setForwardAddress(java.lang.String userName,
java.lang.String forwardEmailAddress,
java.lang.String repositoryName)
Set a user's forward email address to whom all mail is forwarded to |
void |
setLocalUsers(UsersRepository localUsers)
|
boolean |
setPassword(java.lang.String userName,
java.lang.String password,
java.lang.String repositoryName)
Set a user's password |
void |
setUsersStore(UsersStore usersStore)
|
boolean |
unsetAlias(java.lang.String userName,
java.lang.String repositoryName)
Removes a user's alias which terminates local mail forwarding |
boolean |
unsetForwardAddress(java.lang.String userName,
java.lang.String repositoryName)
Removes a user's forward email address which terminates remote mail forwarding |
boolean |
verifyExists(java.lang.String userName,
java.lang.String repositoryName)
Check if a user exists with the given name. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public UserManagement()
Method Detail |
---|
public void setLocalUsers(UsersRepository localUsers)
public void setUsersStore(UsersStore usersStore)
public void service(org.apache.avalon.framework.service.ServiceManager componentManager) throws org.apache.avalon.framework.service.ServiceException
service
in interface org.apache.avalon.framework.service.Serviceable
org.apache.avalon.framework.service.ServiceException
Serviceable.service(org.apache.avalon.framework.service.ServiceManager)
public boolean addUser(java.lang.String userName, java.lang.String password, java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
addUser
in interface UserManagementMBean
userName
- The name of the user being addedpassword
- The password of the user being addedrepositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.addUser(java.lang.String, java.lang.String, java.lang.String)
public boolean deleteUser(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
deleteUser
in interface UserManagementMBean
userName
- The name of the user being deletedrepositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.deleteUser(java.lang.String, java.lang.String)
public boolean verifyExists(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
verifyExists
in interface UserManagementMBean
userName
- The name of the userrepositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.verifyExists(java.lang.String, java.lang.String)
public long countUsers(java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
countUsers
in interface UserManagementMBean
repositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.countUsers(java.lang.String)
public java.lang.String[] listAllUsers(java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
listAllUsers
in interface UserManagementMBean
repositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.listAllUsers(java.lang.String)
public boolean setPassword(java.lang.String userName, java.lang.String password, java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
setPassword
in interface UserManagementMBean
userName
- The name of the user whose password will be changedpassword
- The new passwordrepositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.setPassword(java.lang.String, java.lang.String, java.lang.String)
public boolean setAlias(java.lang.String userName, java.lang.String aliasUserName, java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
setAlias
in interface UserManagementMBean
userName
- The name of the user whose alias is setaliasUserName
- The user becoming the new aliasrepositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.setAlias(java.lang.String, java.lang.String, java.lang.String)
public boolean unsetAlias(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
unsetAlias
in interface UserManagementMBean
userName
- The name of the user whose alias is unsetrepositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.unsetAlias(java.lang.String, java.lang.String)
public java.lang.String getAlias(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
getAlias
in interface UserManagementMBean
repositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.getAlias(java.lang.String, java.lang.String)
public boolean setForwardAddress(java.lang.String userName, java.lang.String forwardEmailAddress, java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
setForwardAddress
in interface UserManagementMBean
userName
- The name of the user whose forward is setforwardEmailAddress
- The new forward email addressrepositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.setForwardAddress(java.lang.String, java.lang.String, java.lang.String)
public boolean unsetForwardAddress(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
unsetForwardAddress
in interface UserManagementMBean
userName
- The name of the user whose forward is unsetrepositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.unsetForwardAddress(java.lang.String, java.lang.String)
public java.lang.String getForwardAddress(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
UserManagementMBean
getForwardAddress
in interface UserManagementMBean
userName
- The name of the user whose forward is setrepositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
UserManagementMBean.getForwardAddress(java.lang.String, java.lang.String)
public java.util.List getUserRepositoryNames()
UserManagementMBean
getUserRepositoryNames
in interface UserManagementMBean
UserManagementMBean.getUserRepositoryNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |