|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A User which is stored, along with his or her
associated Subscription
s, 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 Subscription s 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 |
public UserDatabase getDatabase()
UserDatabase
with which we are associated.
public String getFromAddress()
public void setFromAddress(String fromAddress)
fromAddress
- The new from addresspublic String getFullName()
public void setFullName(String fullName)
fullName
- The new full namepublic String getPassword()
public void setPassword(String password)
password
- The new passwordpublic String getReplyToAddress()
public void setReplyToAddress(String replyToAddress)
replyToAddress
- The new reply-to addresspublic Subscription[] getSubscriptions()
Subscription
s associated with this user.
If there are none, a zero-length array is returned.
public String getUsername()
public 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 userpublic Subscription findSubscription(String host)
Subscription
associated with the specified
host. If none is found, return null
.
host
- Host name to look uppublic void 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 |