public class UsersRepositoryManagement extends StandardMBean implements UsersRepositoryManagementMBean
| Constructor and Description |
|---|
UsersRepositoryManagement() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(String userName,
String password)
Adds a user to this mail server.
|
long |
countUsers()
Total count of existing users
|
void |
deleteUser(String userName)
Deletes a user from this mail server.
|
String |
getAlias(String userName)
Retrieves the user's alias, if set
|
String |
getForwardAddress(String userName)
Retrieves the user's forward, if set
|
boolean |
getVirtualHostingEnabled()
Return true if the UserRepository has VirtualHosting enabled
|
String[] |
listAllUsers()
List the names of all users
|
void |
setPassword(String userName,
String password)
Set a user's password
|
void |
setUsersRepository(UsersRepository localUsers) |
void |
unsetAlias(String userName)
Removes a user's alias which terminates local mail forwarding
|
void |
unsetForwardAddress(String userName)
Removes a user's forward email address which terminates remote mail
forwarding
|
boolean |
verifyExists(String userName)
Check if a user exists with the given name.
|
cacheMBeanInfo, getAttribute, getAttributes, getCachedMBeanInfo, getClassName, getConstructors, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getDescription, getImpact, getImplementation, getImplementationClass, getMBeanInfo, getMBeanInterface, getParameterName, getParameterName, invoke, postDeregister, postRegister, preDeregister, preRegister, setAttribute, setAttributes, setImplementationpublic UsersRepositoryManagement()
throws NotCompliantMBeanException
NotCompliantMBeanExceptionpublic void setUsersRepository(UsersRepository localUsers)
public void addUser(String userName, String password) throws Exception
UsersRepositoryManagementMBeanaddUser in interface UsersRepositoryManagementMBeanuserName - The name of the user being addedpassword - The password of the user being addedExceptionUsersRepositoryManagementMBean.addUser(java.lang.String, java.lang.String)public void deleteUser(String userName) throws Exception
UsersRepositoryManagementMBeandeleteUser in interface UsersRepositoryManagementMBeanuserName - The name of the user being deletedUsersRepositoryException - if errorExceptionUsersRepositoryManagementMBean.deleteUser(java.lang.String)public boolean verifyExists(String userName) throws Exception
UsersRepositoryManagementMBeanverifyExists in interface UsersRepositoryManagementMBeanuserName - The name of the userUsersRepositoryException - if errorException(java.lang.String)public long countUsers()
throws Exception
UsersRepositoryManagementMBeancountUsers in interface UsersRepositoryManagementMBeanExceptionUsersRepositoryManagementMBean.countUsers()public String[] listAllUsers() throws Exception
UsersRepositoryManagementMBeanlistAllUsers in interface UsersRepositoryManagementMBeanUsersRepositoryException - if errorExceptionUsersRepositoryManagementMBean.listAllUsers()public void setPassword(String userName, String password) throws Exception
UsersRepositoryManagementMBeansetPassword in interface UsersRepositoryManagementMBeanuserName - The name of the user whose password will be changedpassword - The new passwordUsersRepositoryException - if errorException(java.lang.String, java.lang.String)public void unsetAlias(String userName) throws Exception
UsersRepositoryManagementMBeanunsetAlias in interface UsersRepositoryManagementMBeanuserName - The name of the user whose alias is unsetUsersRepositoryException - if errorExceptionUsersRepositoryManagementMBean.unsetAlias(java.lang.String)public String getAlias(String userName) throws Exception
UsersRepositoryManagementMBeangetAlias in interface UsersRepositoryManagementMBeanUsersRepositoryException - if errorExceptionUsersRepositoryManagementMBean.getAlias(java.lang.String)public void unsetForwardAddress(String userName) throws Exception
UsersRepositoryManagementMBeanunsetForwardAddress in interface UsersRepositoryManagementMBeanuserName - The name of the user whose forward is unsetUsersRepositoryException - if errorException(java.lang.String)public String getForwardAddress(String userName) throws Exception
UsersRepositoryManagementMBeangetForwardAddress in interface UsersRepositoryManagementMBeanuserName - The name of the user whose forward is setUsersRepositoryException - if errorException(java.lang.String)public boolean getVirtualHostingEnabled()
throws Exception
UsersRepositoryManagementMBeangetVirtualHostingEnabled in interface UsersRepositoryManagementMBeanUsersRepositoryExceptionExceptionUsersRepositoryManagementMBean.getVirtualHostingEnabled()Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.