com.aspose.email

com.aspose.email

Class Calendar

All Implemented Interfaces:
com.aspose.email.ms.System.IDisposable
Deprecated.

@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 Summary
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. 
 
Method Summary
createCancelRequestFrom(Calendar calendar, String uniqueId, intsequenceId)
Deprecated.  Creates the cancel request from.
getAttendees()
Deprecated.  Gets or sets the attendees.
getCalendarHtml()
Deprecated.  Gets the calendar HTML.
getCalendarText()
Deprecated.  Gets the calendar text.
getDescription()
Deprecated.  Gets or sets the description.
getEndDate()
Deprecated. 
getLocation()
Deprecated.  Gets or sets the location.
getOrganizer()
Deprecated.  Gets or sets the organizer.
getRecurrencePattern()
Deprecated.  Gets or sets the recurrence pattern.
getSequenceId()
Deprecated.  Gets the sequence id.
getStartDate()
Deprecated. 
getSummary()
Deprecated.  Gets or sets the summary.
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
void
setStartDate(Date value)
Deprecated. 
void
setSummary(String value)
Deprecated. 
void
setUniqueId(String value)
Deprecated. 
 
Methods inherited from class com.aspose.email.AlternateView
 
Methods inherited from class com.aspose.email.AttachmentBase
 
Methods inherited from class java.lang.Object
 

    • Method Detail

      • getLocation

        public String getLocation()
        Deprecated. 

        Gets or sets the location.

      • setLocation

        public void setLocation(String value)
        Deprecated. 
      • getSummary

        public String getSummary()
        Deprecated. 

        Gets or sets the summary.

      • setSummary

        public void setSummary(String value)
        Deprecated. 
      • getDescription

        public String getDescription()
        Deprecated. 

        Gets or sets the description.

      • setDescription

        public void setDescription(String value)
        Deprecated. 
      • getStartDate

        public Date getStartDate()
        Deprecated. 
      • setStartDate

        public void setStartDate(Date value)
        Deprecated. 
      • getEndDate

        public Date getEndDate()
        Deprecated. 
      • setEndDate

        public void setEndDate(Date value)
        Deprecated. 
      • getOrganizer

        public MailAddress getOrganizer()
        Deprecated. 

        Gets or sets the organizer.

      • setOrganizer

        public void setOrganizer(MailAddress value)
        Deprecated. 
      • getRecurrencePattern

        public CalendarRecurrencePattern getRecurrencePattern()
        Deprecated. 

        Gets or sets the recurrence pattern.

        Value: The recurrence pattern.

      • getUniqueId

        public String getUniqueId()
        Deprecated. 

        Gets or sets the unique id.

        Value: The unique id.

      • setUniqueId

        public void setUniqueId(String value)
        Deprecated. 
      • getSequenceId

        public String getSequenceId()
        Deprecated. 

        Gets the sequence id.

        Value: The sequence id.

      • saveCalendar

        public void saveCalendar(OutputStream stream)
        Deprecated. 
      • saveCalendar

        public void saveCalendar(String fileName)
        Deprecated. 

        Saves the specified file name.

        Parameters:
        fileName - Name of the file.
      • getCalendarHtml

        public String getCalendarHtml()
        Deprecated. 

        Gets the calendar HTML.

        Returns:
      • getCalendarText

        public String getCalendarText()
        Deprecated. 

        Gets the calendar text.

        Returns:
      • createCancelRequestFrom

        public static AlternateView createCancelRequestFrom(Calendar calendar,
                                                            String uniqueId,
                                                            int sequenceId)
        Deprecated. 

        Creates the cancel request from.

        Parameters:
        calendar - The calendar.
        uniqueId - The unique id.
        sequenceId - The sequence id.
        Returns: