|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface EventControllerInterface
| Method Summary | |
|---|---|
void |
addResponse(EmailAddressInterface guest,
int status,
java.lang.String comment)
Adds a new response to this event, indicating whether or not a particular guest can attend. |
void |
delete(java.lang.String passcode)
Deletes the given Event by invoking its delete() method. |
SimpleDate |
getEventDate()
Returns the date of this event. |
java.lang.String |
getEventLocation()
Returns the location of this event. |
java.lang.String |
getEventName()
Returns the name of this event. |
EmailAddressInterface |
getEventOrganizer()
Returns the EmailAddress of this event's organizer or host. |
ResponseControllerInterface |
getResponseController(int id)
Returns a ResponseController to mediate access to the Response with the given ID. |
void |
setEventDate(SimpleDate date,
java.lang.String passcode)
Updates this event by changing its date. |
void |
setEventLocation(java.lang.String newLoc,
java.lang.String passcode)
Updates this event by changing its location. |
void |
setEventName(java.lang.String newName,
java.lang.String passcode)
Updates this event by changing its name. |
void |
setEventOrganizer(EmailAddressInterface email,
java.lang.String passcode)
Updates this event by changing its organizer. |
int |
totalResponsesForEvent()
Returns the total number of responses for this event, including "yes", "no", and "maybe" responses. |
int |
yesResponsesForEvent()
Returns the total number of "yes" responses for this event. |
| Method Detail |
|---|
void delete(java.lang.String passcode)
passcode - the passcode for this Event
void setEventName(java.lang.String newName,
java.lang.String passcode)
newName - passcode -
void setEventOrganizer(EmailAddressInterface email,
java.lang.String passcode)
email - the email address of the new organizerpasscode -
void setEventDate(SimpleDate date,
java.lang.String passcode)
date - the new datepasscode -
void setEventLocation(java.lang.String newLoc,
java.lang.String passcode)
newLoc - the new Location of this eventpasscode - java.lang.String getEventName()
EmailAddressInterface getEventOrganizer()
SimpleDate getEventDate()
java.lang.String getEventLocation()
int totalResponsesForEvent()
int yesResponsesForEvent()
void addResponse(EmailAddressInterface guest,
int status,
java.lang.String comment)
Preconditions: see below.
guest - the email address of the responding guest. Must correspond to a valid email address -- if it does not, this method will throw a BogusParameterException.status - the response status. Must be one of Response.YES, Response.NO, or Response.MAYBE -- if it is not, this method will throw a BogusParameterException.comment - the text of any explanatory comment that this guest has included with her reply.ResponseControllerInterface getResponseController(int id)
Preconditions: id must be valid, as below.
id - a valid response identifier -- that is, one that is between 0 (inclusive) and totalResponsesForEvent() (exclusive)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||