|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface UserManagementMBean
Expose user account management functionality through JMX.
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 |
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 |
boolean |
setPassword(java.lang.String userName,
java.lang.String password,
java.lang.String repositoryName)
Set a user's password |
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. |
Method Detail |
---|
boolean addUser(java.lang.String userName, java.lang.String password, java.lang.String repositoryName) throws UserManagementException
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
boolean deleteUser(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
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
boolean verifyExists(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
userName
- The name of the userrepositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
long countUsers(java.lang.String repositoryName) throws UserManagementException
repositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
java.lang.String[] listAllUsers(java.lang.String repositoryName) throws UserManagementException
repositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
boolean setPassword(java.lang.String userName, java.lang.String password, java.lang.String repositoryName) throws UserManagementException
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
boolean setAlias(java.lang.String userName, java.lang.String aliasUserName, java.lang.String repositoryName) throws UserManagementException
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
boolean unsetAlias(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
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
java.lang.String getAlias(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
repositoryName
- The user repository, to which the operation should be applied. If NULL, the LocalUsers
repository is used.
UserManagementException
boolean setForwardAddress(java.lang.String userName, java.lang.String forwardEmailAddress, java.lang.String repositoryName) throws UserManagementException
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
boolean unsetForwardAddress(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
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
java.lang.String getForwardAddress(java.lang.String userName, java.lang.String repositoryName) throws UserManagementException
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
java.util.List getUserRepositoryNames()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |