com.aspose.email

com.aspose.email

Class 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
 
Method Summary
staticvoid
clearFlag(MapiMessage message)
Clears the follow-up flag and reminder.
getFlag(MapiMessage message)
Gets the follow-up flag of a message.
staticvoid
markAsCompleted(MapiMessage message)
Marks the flagged message as completed.
staticvoid
setFlag(MapiMessage message, FollowUpOptions options)
Sets the follow-up flag for a message.
staticvoid
setFlag(MapiMessage message, String flagRequest)
Sets the follow-up flag for a message.
staticvoid
setFlag(MapiMessage message, String flagRequest, Date startDate, Date dueDate)
staticvoid
setFlagForRecipients(MapiMessage message, String flagRequest)
Sets the flag for a draft message to remind recipients to follow-up.
staticvoid
setFlagForRecipients(MapiMessage message, String flagRequest, Date reminderTime)
 
Methods inherited from class java.lang.Object
 

    • 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.
      • 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.