public interface UsersRepositoryManagementMBean
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)
Deprecated.
|
String |
getForwardAddress(String userName)
Deprecated.
|
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 |
unsetAlias(String userName)
Deprecated.
|
void |
unsetForwardAddress(String userName)
Deprecated.
|
boolean |
verifyExists(String userName)
Check if a user exists with the given name.
|
void addUser(String userName, String password) throws Exception
userName
- The name of the user being addedpassword
- The password of the user being addedException
void deleteUser(String userName) throws Exception
userName
- The name of the user being deletedUsersRepositoryException
- if errorException
boolean verifyExists(String userName) throws Exception
userName
- The name of the userUsersRepositoryException
- if errorException
long countUsers() throws Exception
Exception
String[] listAllUsers() throws Exception
UsersRepositoryException
- if errorException
void setPassword(String userName, String password) throws Exception
userName
- The name of the user whose password will be changedpassword
- The new passwordUsersRepositoryException
- if errorException
@Deprecated void unsetAlias(String userName) throws Exception
userName
- The name of the user whose alias is unsetUsersRepositoryException
- if errorException
@Deprecated String getAlias(String userName) throws Exception
UsersRepositoryException
- if errorException
@Deprecated void unsetForwardAddress(String userName) throws Exception
userName
- The name of the user whose forward is unsetUsersRepositoryException
- if errorException
@Deprecated String getForwardAddress(String userName) throws Exception
userName
- The name of the user whose forward is setUsersRepositoryException
- if errorException
boolean getVirtualHostingEnabled() throws Exception
UsersRepositoryException
Exception
Copyright © 2002-2012 The Apache Software Foundation. All Rights Reserved.