public class Organizer extends ICalProperty
This property has different meanings depending on the component it belongs to:
VEvent
- The organizer of the event.VTodo
- The creator of the to-do task.VJournal
- The owner of the journal entry.VFreeBusy
- The person requesting the free/busy time.Code sample:
VEvent event = new VEvent(); Organizer organizer = Organizer.email("johndoe@example.com"); organizer.setCommonName("John Doe"); event.setOrganizer(organizer);
parameters
Constructor and Description |
---|
Organizer(String name,
String email)
Creates an organizer property
|
Modifier and Type | Method and Description |
---|---|
String |
getCommonName()
Gets the display name of the person.
|
String |
getDirectoryEntry()
Gets a URI that contains additional information about the person.
|
String |
getEmail()
Gets the organizer's email
|
String |
getLanguage()
Gets the language that the common name parameter is written in.
|
String |
getSentBy()
Gets a person that is acting on behalf of the person defined in the
property.
|
String |
getUri()
Gets a URI representing the organizer.
|
void |
setCommonName(String commonName)
Sets the display name of the person.
|
void |
setDirectoryEntry(String directoryEntry)
Sets a URI that contains additional information about the person.
|
void |
setEmail(String email)
Sets the organizer's email
|
void |
setLanguage(String language)
Sets the language that the common name parameter is written in.
|
void |
setSentBy(String sentBy)
Sets a person that is acting on behalf of the person defined in the
property.
|
void |
setUri(String uri)
Sets a URI representing the organizer.
|
addParameter, getParameter, getParameters, getParameters, removeParameter, setParameter, setParameter, setParameters, validate, validate
public String getEmail()
public void setEmail(String email)
email
- the email (e.g. "jdoe@company.com")public String getUri()
public void setUri(String uri)
uri
- the URI (e.g. "mailto:jdoe@company.com")public String getSentBy()
ICalProperty
Gets a person that is acting on behalf of the person defined in the property.
Supported versions: 2.0
public void setSentBy(String sentBy)
ICalProperty
Sets a person that is acting on behalf of the person defined in the property.
Supported versions: 2.0
sentBy
- a URI representing the person (typically, an email URI, e.g.
"mailto:janedoe@example.com") or null to removepublic String getCommonName()
ICalProperty
Gets the display name of the person.
Supported versions: 2.0
public void setCommonName(String commonName)
ICalProperty
Sets the display name of the person.
Supported versions: 2.0
commonName
- the display name (e.g. "John Doe") or null to removepublic String getDirectoryEntry()
ICalProperty
Gets a URI that contains additional information about the person.
Supported versions: 2.0
public void setDirectoryEntry(String directoryEntry)
ICalProperty
Sets a URI that contains additional information about the person.
Supported versions: 2.0
directoryEntry
- 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-2015 Michael Angstadt. All Rights Reserved.