FileDocCategorySizeDatePackage
User.javaAPI DocExample5849Sun Mar 07 19:48:42 GMT 2004org.apache.struts.webapp.example

User

public interface User

A User which is stored, along with his or her associated {@link Subscription}s, in a {@link UserDatabase}.

author
Craig R. McClanahan
version
$Revision: 1.3 $ $Date: 2002/03/05 04:23:56 $
since
Struts 1.1

Fields Summary
Constructors Summary
Methods Summary
public SubscriptioncreateSubscription(java.lang.String host)
Create and return a new {@link Subscription} associated with this User, for the specified host name.

param
host Host name for which to create a subscription
exception
IllegalArgumentException if the host name is not unique for this user

public SubscriptionfindSubscription(java.lang.String host)
Find and return the {@link Subscription} associated with the specified host. If none is found, return null.

param
host Host name to look up

public UserDatabasegetDatabase()
Return the {@link UserDatabase} with which we are associated.

public java.lang.StringgetFromAddress()
Return the from address.

public java.lang.StringgetFullName()
Return the full name.

public java.lang.StringgetPassword()
Return the password.

public java.lang.StringgetReplyToAddress()
Return the reply-to address.

public Subscription[]getSubscriptions()
Find and return all {@link Subscription}s associated with this user. If there are none, a zero-length array is returned.

public java.lang.StringgetUsername()
Return the username.

public voidremoveSubscription(Subscription subscription)
Remove the specified {@link Subscription} from being associated with this User.

param
subscription Subscription to be removed
exception
IllegalArgumentException if the specified subscription is not associated with this User

public voidsetFromAddress(java.lang.String fromAddress)
Set the from address.

param
fromAddress The new from address

public voidsetFullName(java.lang.String fullName)
Set the full name.

param
fullName The new full name

public voidsetPassword(java.lang.String password)
Set the password.

param
password The new password

public voidsetReplyToAddress(java.lang.String replyToAddress)
Set the reply-to address.

param
replyToAddress The new reply-to address