com.aspose.email
Class FollowUpManager

java.lang.Object
  extended by com.aspose.email.FollowUpManager

public class FollowUpManager
extends Object

Provides the ability to set and handle follow-up Outlook flags. Supports the features to add and remove a flag in MapiMessage, and mark it as completed as well.


Constructor Summary
FollowUpManager()
           
 
Method Summary
static void clearFlag(MapiMessage message)
           Clears the follow-up flag and reminder.
static FollowUpOptions getFlag(MapiMessage message)
           Gets the follow-up flag of a message.
static void markAsCompleted(MapiMessage message)
           Marks the flagged message as completed.
static void setFlag(MapiMessage message, FollowUpOptions options)
           Sets the follow-up flag for a message.
static void setFlag(MapiMessage message, String flagRequest)
           Sets the follow-up flag for a message.
static void setFlag(MapiMessage message, String flagRequest, Date startDate, Date dueDate)
           
static void setFlagForRecipients(MapiMessage message, String flagRequest)
           Sets the flag for a draft message to remind recipients to follow-up.
static void setFlagForRecipients(MapiMessage message, String flagRequest, Date reminderTime)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FollowUpManager

public FollowUpManager()
Method Detail

setFlag

public static void setFlag(MapiMessage message,
                           FollowUpOptions options)

Sets the follow-up flag for a message.

Parameters:
message - The MapiMessage in which a flag will be set.
options - The FollowUpOptions that represents options for using follow-up flags and reminders.
Throws:
com.aspose.email.ms.System.IllegalArgumentException - If message is null.
com.aspose.email.ms.System.IllegalArgumentException - If options is null.

setFlag

public static void setFlag(MapiMessage message,
                           String flagRequest)

Sets the follow-up flag for a message.

Parameters:
message - The MapiMessage in which a flag will be set.
flagRequest - A string indicating the requested action for an e-mail message.
Throws:
com.aspose.email.ms.System.IllegalArgumentException - If flagRequest is null or empty.
com.aspose.email.ms.System.IllegalArgumentException - If message is null.

setFlag

public static void setFlag(MapiMessage message,
                           String flagRequest,
                           Date startDate,
                           Date dueDate)

setFlagForRecipients

public static void setFlagForRecipients(MapiMessage message,
                                        String flagRequest)

Sets the flag for a draft message to remind recipients to follow-up.

Parameters:
message - The MapiMessage in which a flag will be set.
flagRequest - A string indicating the requested action action for recipients of an e-mail message.
Throws:
com.aspose.email.ms.System.IllegalArgumentException - If message is null.
com.aspose.email.ms.System.IllegalArgumentException - If flagRequest is null or empty.
IllegalStateException - If message is not set on a draft mode.

setFlagForRecipients

public static void setFlagForRecipients(MapiMessage message,
                                        String flagRequest,
                                        Date reminderTime)

markAsCompleted

public static void markAsCompleted(MapiMessage message)

Marks the flagged message as completed.

Parameters:
message - The MapiMessage in which a flag is set.
Throws:
com.aspose.email.ms.System.IllegalArgumentException - If message is null.

clearFlag

public static void clearFlag(MapiMessage message)

Clears the follow-up flag and reminder.

Parameters:
message - The MapiMessage in which a flag is set.
Throws:
com.aspose.email.ms.System.IllegalArgumentException - If message is null.

getFlag

public static FollowUpOptions getFlag(MapiMessage message)

Gets the follow-up flag of a message.

Parameters:
message - The MapiMessage in which a flag is set.
Returns:
The FollowUpOptions that represents options for using follow-up flags and reminders.
Throws:
com.aspose.email.ms.System.IllegalArgumentException - If message is null.


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