|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | 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(java.lang.String host)
Create and return a new Subscription associated with this
User, for the specified host name. |
Subscription |
findSubscription(java.lang.String host)
Find and return the Subscription associated with the specified
host. |
UserDatabase |
getDatabase()
Return the UserDatabase with which we are associated. |
java.lang.String |
getFromAddress()
Return the from address. |
java.lang.String |
getFullName()
Return the full name. |
java.lang.String |
getPassword()
Return the password. |
java.lang.String |
getReplyToAddress()
Return the reply-to address. |
Subscription[] |
getSubscriptions()
Find and return all Subscription s associated with this user. |
java.lang.String |
getUsername()
Return the username. |
void |
removeSubscription(Subscription subscription)
Remove the specified Subscription from being associated
with this User. |
void |
setFromAddress(java.lang.String fromAddress)
Set the from address. |
void |
setFullName(java.lang.String fullName)
Set the full name. |
void |
setPassword(java.lang.String password)
Set the password. |
void |
setReplyToAddress(java.lang.String replyToAddress)
Set the reply-to address. |
Method Detail |
public UserDatabase getDatabase()
UserDatabase
with which we are associated.public java.lang.String getFromAddress()
public void setFromAddress(java.lang.String fromAddress)
fromAddress
- The new from addresspublic java.lang.String getFullName()
public void setFullName(java.lang.String fullName)
fullName
- The new full namepublic java.lang.String getPassword()
public void setPassword(java.lang.String password)
password
- The new passwordpublic java.lang.String getReplyToAddress()
public void setReplyToAddress(java.lang.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 java.lang.String getUsername()
public Subscription createSubscription(java.lang.String host)
Subscription
associated with this
User, for the specified host name.host
- Host name for which to create a subscriptionjava.lang.IllegalArgumentException
- if the host name is not unique
for this userpublic Subscription findSubscription(java.lang.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 removedjava.lang.IllegalArgumentException
- if the specified subscription is not
associated with this User
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |