com.aspose.email
Class Calendar

java.lang.Object
  extended by com.aspose.email.AttachmentBase
      extended by com.aspose.email.AlternateView
          extended by com.aspose.email.Calendar
All Implemented Interfaces:
com.aspose.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
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.  
 
Methods inherited from class com.aspose.email.AlternateView
createAlternateViewFromString, createAlternateViewFromString, createAlternateViewFromString, createAlternateViewFromString, getBaseUri, getLinkedResources, setBaseUri
 
Methods inherited from class com.aspose.email.AttachmentBase
dispose, getContentId, getContentStream, getContentType, getTransferEncoding, save, save, saveRawContent, setContentId, setContentStream, setContentType, setTransferEncoding
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Calendar

public Calendar(String location,
                Date startDate,
                Date endDate,
                MailAddress organizer,
                MailAddressCollection attendees)
Deprecated. 

Calendar

public Calendar(String location,
                String summary,
                String description,
                Date startDate,
                Date endDate,
                MailAddress organizer,
                MailAddressCollection attendees)
Deprecated. 

Calendar

public Calendar(String location,
                String summary,
                String description,
                Date startDate,
                Date endDate,
                MailAddress organizer,
                MailAddressCollection attendees,
                CalendarRecurrencePattern recurrencePattern)
Deprecated. 
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. 

getAttendees

public MailAddressCollection getAttendees()
Deprecated. 

Gets or sets the attendees.


setAttendees

public void setAttendees(MailAddressCollection 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.


setRecurrencePattern

public void setRecurrencePattern(CalendarRecurrencePattern value)
Deprecated. 

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:


Copyright (c) 2002-2012 Aspose Pty Ltd. All Rights Reserved.