com.hs.mail.imap.user
Interface UserManager
- All Known Implementing Classes:
- DefaultUserManager
public interface UserManager
- Since:
- Jun 24, 2010
- Author:
- Won Chul Doh
login
long login(String username,
String password)
throws LoginException
- Authenticate the given user against the given password. When
authenticated, the ID of the user will be supplied.
- Parameters:
username
- user namepassword
- password supplied
- Returns:
- id of the user when authenticated
- Throws:
LoginException
- when the user does not exist or not authenticated
getUser
User getUser(long id)
getUserID
long getUserID(String address)
getUserByAddress
User getUserByAddress(String address)
getUserCount
int getUserCount(String domain)
getUserList
List<User> getUserList(String domain,
int page,
int pageSize)
addUser
long addUser(User user)
updateUser
int updateUser(User user)
deleteUser
void deleteUser(long id)
emptyUser
void emptyUser(long id)
getAlias
Alias getAlias(long id)
getAliasCount
int getAliasCount(String domain)
getAliasList
List<Alias> getAliasList(String domain,
int page,
int pageSize)
expandAlias
List<Alias> expandAlias(String alias)
addAlias
long addAlias(Alias alias)
updateAlias
int updateAlias(Alias alias)
deleteAlias
void deleteAlias(long id)
getQuotaUsage
long getQuotaUsage(long ownerID)
getQuota
javax.mail.Quota getQuota(long ownerID,
String quotaRoot)
setQuota
void setQuota(long ownerID,
javax.mail.Quota quota)
getUserHome
File getUserHome(MailAddress user)
Copyright © 2011. All Rights Reserved.