public class Attendee extends TextProperty
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.Code sample:
VEvent event = new VEvent();
Attendee attendee = Attendee.email("johndoe@example.com")
attendee.setCommonName("John Doe");
attendee.setRsvp(true);
attendee.setRole(Role.CHAIR);
attendee.setParticipationStatus(ParticipationStatus.ACCEPTED);
event.addAttendee(attendee);
valueparameters| Constructor and Description |
|---|
Attendee(String uri)
Creates an attendee property.
|
| Modifier and Type | Method and Description |
|---|---|
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.
|
getValue, setValue, validateaddParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validatepublic 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()
ICalPropertypublic void setSentBy(String uri)
ICalPropertyuri - a URI representing the person (typically, an email URI, e.g.
"mailto:janedoe@example.com") or null to removepublic String getCommonName()
ICalPropertypublic void setCommonName(String commonName)
ICalPropertycommonName - the display name (e.g. "John Doe") or null to removepublic String getDirectoryEntry()
ICalPropertypublic void setDirectoryEntry(String uri)
ICalPropertyuri - 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 removeCopyright © 2013-2014 Michael Angstadt. All Rights Reserved.