|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.james.userrepository.DefaultUser | +--org.apache.james.userrepository.DefaultJamesUser
Implementation of User Interface.
Constructor Summary | |
DefaultJamesUser(String name,
String alg)
|
|
DefaultJamesUser(String name,
String passwordHash,
String hashAlg)
|
Method Summary | |
String |
getAlias()
Get the user id for which this id is an alias. |
boolean |
getAliasing()
Get whether this user id is an alias. |
boolean |
getForwarding()
Get whether mail to this user is to be forwarded to another email address. |
MailAddress |
getForwardingDestination()
Get the destination address to which mail to this user will be forwarded. |
void |
initialize()
|
boolean |
setAlias(String address)
Set the user id for which this id is an alias. |
void |
setAliasing(boolean alias)
Set whether this user id is an alias. |
void |
setForwarding(boolean forward)
Set whether mail to this user is to be forwarded to another email address |
boolean |
setForwardingDestination(MailAddress address)
Set the destination address to which mail to this user will be forwarded. |
Methods inherited from class org.apache.james.userrepository.DefaultUser |
getHashAlgorithm, getHashedPassword, getUserName, setPassword, verifyPassword |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.apache.james.services.JamesUser |
setPassword |
Methods inherited from interface org.apache.james.services.User |
getUserName, verifyPassword |
Constructor Detail |
public DefaultJamesUser(String name, String alg)
public DefaultJamesUser(String name, String passwordHash, String hashAlg)
Method Detail |
public void initialize()
initialize
in interface Initializable
Initializable.initialize()
public void setForwarding(boolean forward)
setForwarding
in interface JamesUser
forward
- whether mail is forwardedpublic boolean getForwarding()
getForwarding
in interface JamesUser
public boolean setForwardingDestination(MailAddress address)
setForwardingDestination
in interface JamesUser
address
- the forward-to addresspublic MailAddress getForwardingDestination()
getForwardingDestination
in interface JamesUser
public void setAliasing(boolean alias)
setAliasing
in interface JamesUser
alias
- whether this id is an aliaspublic boolean getAliasing()
getAliasing
in interface JamesUser
public boolean setAlias(String address)
setAlias
in interface JamesUser
address
- the user id for which this id is an alias
public String getAlias()
getAlias
in interface JamesUser
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |