org.apache.james.userrepository
Class DefaultJamesUser
java.lang.Object
|
+--org.apache.james.userrepository.DefaultUser
|
+--org.apache.james.userrepository.DefaultJamesUser
- All Implemented Interfaces:
- org.apache.avalon.framework.activity.Initializable, JamesUser, java.io.Serializable, User
- public class DefaultJamesUser
- extends DefaultUser
- implements JamesUser, org.apache.avalon.framework.activity.Initializable
Implementation of User Interface.
- Author:
- Charles Benett
Last changed by: $Author: charlesb $ on $Date: 2001/06/11 09:29:35 $
$Revision: 1.1 $
- See Also:
- Serialized Form
Constructor Summary |
DefaultJamesUser(java.lang.String name,
java.lang.String alg)
|
DefaultJamesUser(java.lang.String name,
java.lang.String passwordHash,
java.lang.String hashAlg)
|
Method Summary |
java.lang.String |
getAlias()
Get local address to which mail should be delivered. |
boolean |
getAliasing()
Return true if emails should be dlivered locally to an alias. |
boolean |
getForwarding()
Return true if mail for this user should be forwarded |
MailAddress |
getForwardingDestination()
Return the destination to which email should be forwarded |
void |
initialize()
Call initialize when creating a new instance. |
boolean |
setAlias(java.lang.String address)
Set local address to which email should be delivered. |
void |
setAliasing(boolean alias)
Indicate if mail received for this user should be delivered locally to
a different address. |
void |
setForwarding(boolean forward)
Indicate if mail for this user should be forwarded to some other mail
server. |
boolean |
setForwardingDestination(MailAddress address)
Set destination for forwading mail
Should we use a MailAddress? |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DefaultJamesUser
public DefaultJamesUser(java.lang.String name,
java.lang.String alg)
DefaultJamesUser
public DefaultJamesUser(java.lang.String name,
java.lang.String passwordHash,
java.lang.String hashAlg)
initialize
public void initialize()
- Call initialize when creating a new instance.
- Specified by:
initialize
in interface org.apache.avalon.framework.activity.Initializable
setForwarding
public void setForwarding(boolean forward)
- Description copied from interface:
JamesUser
- Indicate if mail for this user should be forwarded to some other mail
server.
- Specified by:
setForwarding
in interface JamesUser
getForwarding
public boolean getForwarding()
- Description copied from interface:
JamesUser
- Return true if mail for this user should be forwarded
- Specified by:
getForwarding
in interface JamesUser
setForwardingDestination
public boolean setForwardingDestination(MailAddress address)
- Description copied from interface:
JamesUser
- Set destination for forwading mail
Should we use a MailAddress?
- Specified by:
setForwardingDestination
in interface JamesUser
getForwardingDestination
public MailAddress getForwardingDestination()
- Description copied from interface:
JamesUser
- Return the destination to which email should be forwarded
- Specified by:
getForwardingDestination
in interface JamesUser
setAliasing
public void setAliasing(boolean alias)
- Description copied from interface:
JamesUser
- Indicate if mail received for this user should be delivered locally to
a different address.
- Specified by:
setAliasing
in interface JamesUser
getAliasing
public boolean getAliasing()
- Description copied from interface:
JamesUser
- Return true if emails should be dlivered locally to an alias.
- Specified by:
getAliasing
in interface JamesUser
setAlias
public boolean setAlias(java.lang.String address)
- Description copied from interface:
JamesUser
- Set local address to which email should be delivered.
- Specified by:
setAlias
in interface JamesUser
getAlias
public java.lang.String getAlias()
- Description copied from interface:
JamesUser
- Get local address to which mail should be delivered.
- Specified by:
getAlias
in interface JamesUser
"Copyright © 2001 Apache Jakarta Project. All Rights Reserved."