org.apache.james.userrepository
Class DefaultJamesUser

java.lang.Object
  extended by org.apache.james.userrepository.DefaultUser
      extended by org.apache.james.userrepository.DefaultJamesUser
All Implemented Interfaces:
java.io.Serializable, org.apache.avalon.framework.activity.Initializable, JamesUser, User

public class DefaultJamesUser
extends DefaultUser
implements JamesUser, org.apache.avalon.framework.activity.Initializable

Implementation of User Interface.

Version:
$Revision: 450935 $
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 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(java.lang.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

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)
Method Detail

initialize

public void initialize()
Specified by:
initialize in interface org.apache.avalon.framework.activity.Initializable
See Also:
Initializable.initialize()

setForwarding

public void setForwarding(boolean forward)
Set whether mail to this user is to be forwarded to another email address

Specified by:
setForwarding in interface JamesUser
Parameters:
forward - whether mail is forwarded

getForwarding

public boolean getForwarding()
Get whether mail to this user is to be forwarded to another email address.

Specified by:
getForwarding in interface JamesUser
Returns:
forward whether mail is forwarded

setForwardingDestination

public boolean setForwardingDestination(MailAddress address)
Set the destination address to which mail to this user will be forwarded.

Specified by:
setForwardingDestination in interface JamesUser
Parameters:
address - the forward-to address

getForwardingDestination

public MailAddress getForwardingDestination()
Get the destination address to which mail to this user will be forwarded.

Specified by:
getForwardingDestination in interface JamesUser
Returns:
the forward-to address

setAliasing

public void setAliasing(boolean alias)
Set whether this user id is an alias.

Specified by:
setAliasing in interface JamesUser
Parameters:
alias - whether this id is an alias

getAliasing

public boolean getAliasing()
Get whether this user id is an alias.

Specified by:
getAliasing in interface JamesUser
Returns:
whether this id is an alias

setAlias

public boolean setAlias(java.lang.String address)
Set the user id for which this id is an alias.

Specified by:
setAlias in interface JamesUser
Parameters:
address - the user id for which this id is an alias
Returns:
true if successful

getAlias

public java.lang.String getAlias()
Get the user id for which this id is an alias.

Specified by:
getAlias in interface JamesUser
Returns:
the user id for which this id is an alias


Copyright © 2002-2007 The Apache Software Foundation. All Rights Reserved.