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, setImplementation
public UsersRepositoryManagement() throws NotCompliantMBeanException
NotCompliantMBeanException
public void setUsersRepository(UsersRepository localUsers)
public void addUser(String userName, String password) throws Exception
UsersRepositoryManagementMBean
addUser
in interface UsersRepositoryManagementMBean
userName
- The name of the user being addedpassword
- The password of the user being addedException
UsersRepositoryManagementMBean.addUser(java.lang.String, java.lang.String)
public void deleteUser(String userName) throws Exception
UsersRepositoryManagementMBean
deleteUser
in interface UsersRepositoryManagementMBean
userName
- The name of the user being deletedUsersRepositoryException
- if errorException
UsersRepositoryManagementMBean.deleteUser(java.lang.String)
public boolean verifyExists(String userName) throws Exception
UsersRepositoryManagementMBean
verifyExists
in interface UsersRepositoryManagementMBean
userName
- The name of the userUsersRepositoryException
- if errorException
(java.lang.String)
public long countUsers() throws Exception
UsersRepositoryManagementMBean
countUsers
in interface UsersRepositoryManagementMBean
Exception
UsersRepositoryManagementMBean.countUsers()
public String[] listAllUsers() throws Exception
UsersRepositoryManagementMBean
listAllUsers
in interface UsersRepositoryManagementMBean
UsersRepositoryException
- if errorException
UsersRepositoryManagementMBean.listAllUsers()
public void setPassword(String userName, String password) throws Exception
UsersRepositoryManagementMBean
setPassword
in interface UsersRepositoryManagementMBean
userName
- 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
UsersRepositoryManagementMBean
unsetAlias
in interface UsersRepositoryManagementMBean
userName
- The name of the user whose alias is unsetUsersRepositoryException
- if errorException
UsersRepositoryManagementMBean.unsetAlias(java.lang.String)
public String getAlias(String userName) throws Exception
UsersRepositoryManagementMBean
getAlias
in interface UsersRepositoryManagementMBean
UsersRepositoryException
- if errorException
UsersRepositoryManagementMBean.getAlias(java.lang.String)
public void unsetForwardAddress(String userName) throws Exception
UsersRepositoryManagementMBean
unsetForwardAddress
in interface UsersRepositoryManagementMBean
userName
- The name of the user whose forward is unsetUsersRepositoryException
- if errorException
(java.lang.String)
public String getForwardAddress(String userName) throws Exception
UsersRepositoryManagementMBean
getForwardAddress
in interface UsersRepositoryManagementMBean
userName
- The name of the user whose forward is setUsersRepositoryException
- if errorException
(java.lang.String)
public boolean getVirtualHostingEnabled() throws Exception
UsersRepositoryManagementMBean
getVirtualHostingEnabled
in interface UsersRepositoryManagementMBean
UsersRepositoryException
Exception
UsersRepositoryManagementMBean.getVirtualHostingEnabled()
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.