|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectbiweekly.property.ICalProperty
biweekly.property.ValuedProperty<String>
biweekly.property.TextProperty
biweekly.property.Attendee
public class Attendee
Defines an attendee (such as a person attending an event). This property has different meanings depending on the component that it belongs to:
VAlarm
(with "EMAIL" action) - An email address that is to
receive the alarm.Examples:
Attendee attendee = Attendee.email("johndoe@example.com") attendee.setCommonName("John Doe"); attendee.setRsvp(true); attendee.setRole(Role.CHAIR); attendee.setParticipationStatus(ParticipationStatus.ACCEPTED);
Field Summary |
---|
Fields inherited from class biweekly.property.ValuedProperty |
---|
value |
Fields inherited from class biweekly.property.ICalProperty |
---|
parameters |
Constructor Summary | |
---|---|
Attendee(String uri)
Creates an attendee property. |
Method Summary | |
---|---|
void |
addDelegatedFrom(String uri)
Adds a person who has delegated his or her responsibility to the attendee. |
void |
addDelegatedTo(String uri)
Adds a person to which the attendee has delegated his or her responsibility. |
void |
addMember(String uri)
Adds a group that the attendee is a member of. |
static Attendee |
email(String email)
Creates an attendee property using an email address as its value. |
CalendarUserType |
getCalendarUserType()
Gets the type of user the attendee is (for example, an "individual" or a "room"). |
String |
getCommonName()
Gets the display name of the person. |
List<String> |
getDelegatedFrom()
Gets the people who have delegated their responsibility to the attendee. |
List<String> |
getDelegatedTo()
Gets the people to which the attendee has delegated his or her responsibility. |
String |
getDirectoryEntry()
Gets a URI that contains additional information about the person. |
String |
getLanguage()
Gets the language that the common name parameter is written in. |
List<String> |
getMembers()
Gets the groups that the attendee is a member of. |
ParticipationStatus |
getParticipationStatus()
Gets the attendee's level of participation. |
Role |
getRole()
Gets the attendee's role (for example, "chair" or "required participant"). |
Boolean |
getRsvp()
Gets whether the organizer requests a response from the attendee. |
String |
getSentBy()
Gets a person that is acting on behalf of the person defined in the property. |
void |
setCalendarUserType(CalendarUserType cutype)
Sets the type of user the attendee is (for example, an "individual" or a "room"). |
void |
setCommonName(String commonName)
Sets the display name of the person. |
void |
setDirectoryEntry(String uri)
Sets a URI that contains additional information about the person. |
void |
setLanguage(String language)
Sets the language that the common name parameter is written in. |
void |
setParticipationStatus(ParticipationStatus status)
Sets the attendee's level of participation. |
void |
setRole(Role role)
Sets the attendee's role (for example, "chair" or "required participant"). |
void |
setRsvp(Boolean rsvp)
Sets whether the organizer requests a response from the attendee. |
void |
setSentBy(String uri)
Sets a person that is acting on behalf of the person defined in the property. |
Methods inherited from class biweekly.property.ValuedProperty |
---|
getValue, setValue, validate |
Methods inherited from class biweekly.property.ICalProperty |
---|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public Attendee(String uri)
uri
- a URI representing the attendee (typically, an email address,
e.g. "mailto:johndoe@example.com")Method Detail |
---|
public static Attendee email(String email)
email
- the email address (e.g. "johndoe@example.com")
public CalendarUserType getCalendarUserType()
public void setCalendarUserType(CalendarUserType cutype)
cutype
- the calendar user type or null to removepublic List<String> getMembers()
public void addMember(String uri)
uri
- the group URI (typically, an email address URI, e.g.
"mailto:mailinglist@example.com")public Role getRole()
public void setRole(Role role)
role
- the role or null to removepublic ParticipationStatus getParticipationStatus()
public void setParticipationStatus(ParticipationStatus status)
status
- the participation status or null to removepublic Boolean getRsvp()
public void setRsvp(Boolean rsvp)
rsvp
- true if an RSVP has been requested, false if not, null to
removepublic List<String> getDelegatedFrom()
public void addDelegatedFrom(String uri)
uri
- the delegator (typically an email URI, e.g.
"mailto:janedoe@example.com")public List<String> getDelegatedTo()
public void addDelegatedTo(String uri)
uri
- the delegatee (typically an email URI, e.g.
"mailto:janedoe@example.com")public String getSentBy()
ICalProperty
public void setSentBy(String uri)
ICalProperty
uri
- a URI representing the person (typically, an email URI, e.g.
"mailto:janedoe@example.com") or null to removepublic String getCommonName()
ICalProperty
public void setCommonName(String commonName)
ICalProperty
commonName
- the display name (e.g. "John Doe") or null to removepublic String getDirectoryEntry()
ICalProperty
public void setDirectoryEntry(String uri)
ICalProperty
uri
- the URI (e.g. an LDAP URI) or null to removepublic String getLanguage()
public void setLanguage(String language)
language
- the language (e.g. "en" for English) or null to remove
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |