| 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface User
A User which is stored, along with his or her
 associated Subscriptions, in a UserDatabase.
| Method Summary | |
|---|---|
 Subscription | 
createSubscription(String host)
Create and return a new Subscription associated with this
 User, for the specified host name. | 
 Subscription | 
findSubscription(String host)
Find and return the Subscription associated with the specified
 host. | 
 UserDatabase | 
getDatabase()
Return the UserDatabase with which we are associated. | 
 String | 
getFromAddress()
Return the from address.  | 
 String | 
getFullName()
Return the full name.  | 
 String | 
getPassword()
Return the password.  | 
 String | 
getReplyToAddress()
Return the reply-to address.  | 
 Subscription[] | 
getSubscriptions()
Find and return all Subscriptions associated with this user. | 
 String | 
getUsername()
Return the username.  | 
 void | 
removeSubscription(Subscription subscription)
Remove the specified Subscription from being associated
 with this User. | 
 void | 
setFromAddress(String fromAddress)
Set the from address.  | 
 void | 
setFullName(String fullName)
Set the full name.  | 
 void | 
setPassword(String password)
Set the password.  | 
 void | 
setReplyToAddress(String replyToAddress)
Set the reply-to address.  | 
| Method Detail | 
|---|
UserDatabase getDatabase()
UserDatabase with which we are associated.
String getFromAddress()
void setFromAddress(String fromAddress)
fromAddress - The new from addressString getFullName()
void setFullName(String fullName)
fullName - The new full nameString getPassword()
void setPassword(String password)
password - The new passwordString getReplyToAddress()
void setReplyToAddress(String replyToAddress)
replyToAddress - The new reply-to addressSubscription[] getSubscriptions()
Subscriptions associated with this user.
 If there are none, a zero-length array is returned.
String getUsername()
Subscription createSubscription(String host)
Subscription associated with this
 User, for the specified host name.
host - Host name for which to create a subscription
IllegalArgumentException - if the host name is not unique
  for this userSubscription findSubscription(String host)
Subscription associated with the specified
 host.  If none is found, return null.
host - Host name to look upvoid removeSubscription(Subscription subscription)
Subscription from being associated
 with this User.
subscription - Subscription to be removed
IllegalArgumentException - if the specified subscription is not
  associated with this User
  | 
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||