public class UsersRepositoryManagement extends StandardMBean implements org.apache.james.user.api.UsersRepositoryManagementMBean
| Constructor and Description |
|---|
UsersRepositoryManagement() |
| Modifier and Type | Method and Description |
|---|---|
void |
addUser(String userName,
String password) |
long |
countUsers() |
void |
deleteUser(String userName) |
String |
getAlias(String userName) |
String |
getForwardAddress(String userName) |
boolean |
getVirtualHostingEnabled() |
String[] |
listAllUsers() |
void |
setPassword(String userName,
String password) |
void |
setUsersRepository(org.apache.james.user.api.UsersRepository usersRepository) |
void |
unsetAlias(String userName) |
void |
unsetForwardAddress(String userName) |
boolean |
verifyExists(String userName) |
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
NotCompliantMBeanException@Inject public void setUsersRepository(org.apache.james.user.api.UsersRepository usersRepository)
public void addUser(String userName, String password) throws Exception
addUser in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionpublic void deleteUser(String userName) throws Exception
deleteUser in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionpublic boolean verifyExists(String userName) throws Exception
verifyExists in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionpublic long countUsers() throws Exception
countUsers in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionpublic String[] listAllUsers() throws Exception
listAllUsers in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionpublic void setPassword(String userName, String password) throws Exception
setPassword in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionpublic void unsetAlias(String userName) throws Exception
unsetAlias in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionpublic String getAlias(String userName) throws Exception
getAlias in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionpublic void unsetForwardAddress(String userName) throws Exception
unsetForwardAddress in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionpublic String getForwardAddress(String userName) throws Exception
getForwardAddress in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionpublic boolean getVirtualHostingEnabled() throws Exception
getVirtualHostingEnabled in interface org.apache.james.user.api.UsersRepositoryManagementMBeanExceptionCopyright © 2002-2017 The Apache Software Foundation. All Rights Reserved.