@Deprecated public final class Calendar extends AlternateView
Represents a calendar to an e-mail.
This example demonstrates how to add a calendar to an E-Mail message.
[Java]
MailMessage msg = new MailMessage(); //attendees for the event MailAddressCollection attendees = new MailAddressCollection(); attendees.add(new MailAddress("person1@domain.com")); attendees.add(new MailAddress("person2@domain.com")); attendees.add(new MailAddress("person3@domain.com")); //create calendar Calendar cal = new Calendar("Room 112", new Date(2006,7,17,13,0,0), new Date(2006,7,17,14,0,0), new MailAddress("somebody@domain.com"), attendees ); cal.setSummary("Release Meetting"); cal.setDescription("Discuss for the next release"); //add calendar to the message msg.addCalendar(cal);
Constructor and Description |
---|
Calendar(String location,
Date startDate,
Date endDate,
MailAddress organizer,
MailAddressCollection attendees)
Deprecated.
|
Calendar(String location,
String summary,
String description,
Date startDate,
Date endDate,
MailAddress organizer,
MailAddressCollection attendees)
Deprecated.
|
Calendar(String location,
String summary,
String description,
Date startDate,
Date endDate,
MailAddress organizer,
MailAddressCollection attendees,
CalendarRecurrencePattern recurrencePattern)
Deprecated.
|
Modifier and Type | Method and Description |
---|---|
static AlternateView |
createCancelRequestFrom(Calendar calendar,
String uniqueId,
int sequenceId)
Deprecated.
Creates the cancel request from.
|
MailAddressCollection |
getAttendees()
Deprecated.
Gets or sets the attendees.
|
String |
getCalendarHtml()
Deprecated.
Gets the calendar HTML.
|
String |
getCalendarText()
Deprecated.
Gets the calendar text.
|
String |
getDescription()
Deprecated.
Gets or sets the description.
|
Date |
getEndDate()
Deprecated.
|
String |
getLocation()
Deprecated.
Gets or sets the location.
|
MailAddress |
getOrganizer()
Deprecated.
Gets or sets the organizer.
|
CalendarRecurrencePattern |
getRecurrencePattern()
Deprecated.
Gets or sets the recurrence pattern.
|
String |
getSequenceId()
Deprecated.
Gets the sequence id.
|
Date |
getStartDate()
Deprecated.
|
String |
getSummary()
Deprecated.
Gets or sets the summary.
|
String |
getUniqueId()
Deprecated.
Gets or sets the unique id.
|
void |
saveCalendar(OutputStream stream)
Deprecated.
|
void |
saveCalendar(String fileName)
Deprecated.
Saves the specified file name.
|
void |
setAttendees(MailAddressCollection value)
Deprecated.
|
void |
setDescription(String value)
Deprecated.
|
void |
setEndDate(Date value)
Deprecated.
|
void |
setLocation(String value)
Deprecated.
|
void |
setOrganizer(MailAddress value)
Deprecated.
|
void |
setRecurrencePattern(CalendarRecurrencePattern value)
Deprecated.
|
void |
setStartDate(Date value)
Deprecated.
|
void |
setSummary(String value)
Deprecated.
|
void |
setUniqueId(String value)
Deprecated.
|
createAlternateViewFromString, createAlternateViewFromString, createAlternateViewFromString, createAlternateViewFromString, getBaseUri, getLinkedResources, setBaseUri
dispose, getContentId, getContentStream, getContentType, getTransferEncoding, save, save, saveRawContent, setContentId, setContentStream, setContentType, setTransferEncoding
public Calendar(String location, Date startDate, Date endDate, MailAddress organizer, MailAddressCollection attendees)
public Calendar(String location, String summary, String description, Date startDate, Date endDate, MailAddress organizer, MailAddressCollection attendees)
public Calendar(String location, String summary, String description, Date startDate, Date endDate, MailAddress organizer, MailAddressCollection attendees, CalendarRecurrencePattern recurrencePattern)
public String getLocation()
Gets or sets the location.
public void setLocation(String value)
public String getSummary()
Gets or sets the summary.
public void setSummary(String value)
public String getDescription()
Gets or sets the description.
public void setDescription(String value)
public Date getStartDate()
public void setStartDate(Date value)
public Date getEndDate()
public void setEndDate(Date value)
public MailAddressCollection getAttendees()
Gets or sets the attendees.
public void setAttendees(MailAddressCollection value)
public MailAddress getOrganizer()
Gets or sets the organizer.
public void setOrganizer(MailAddress value)
public CalendarRecurrencePattern getRecurrencePattern()
Gets or sets the recurrence pattern.
Value: The recurrence pattern.public void setRecurrencePattern(CalendarRecurrencePattern value)
public String getUniqueId()
Gets or sets the unique id.
Value: The unique id.public void setUniqueId(String value)
public String getSequenceId()
Gets the sequence id.
Value: The sequence id.public void saveCalendar(OutputStream stream)
public void saveCalendar(String fileName)
Saves the specified file name.
fileName
- Name of the file.public String getCalendarHtml()
Gets the calendar HTML.
public String getCalendarText()
Gets the calendar text.
public static AlternateView createCancelRequestFrom(Calendar calendar, String uniqueId, int sequenceId)
Creates the cancel request from.
calendar
- The calendar.uniqueId
- The unique id.sequenceId
- The sequence id.Copyright (c) 2008-2013 Aspose Pty Ltd. All Rights Reserved.