public class FollowUpManager extends Object
Provides the ability to set and handle follow-up Outlook flags and categories.
Supports the features to add and remove a flag in
MapiMessage
, and mark it as completed as well.
Constructor and Description |
---|
FollowUpManager() |
Modifier and Type | Method and Description |
---|---|
static void |
addCategory(MapiMessage message,
String categoryName)
Adds the category for a message.
|
static void |
addVotingButton(MapiMessage message,
String displayName)
Adds the voting button.
|
static void |
clearCategories(MapiMessage message)
Clears the categories.
|
static void |
clearFlag(MapiMessage message)
Clears the follow-up flag and reminder.
|
static void |
clearVotingButtons(MapiMessage message)
Deletes the voting buttons.
|
static com.aspose.ms.System.Collections.IList |
getCategories(MapiMessage message)
Get the available message categories.
|
static FollowUpOptions |
getOptions(MapiMessage message)
Gets the follow-up options of a message.
|
static com.aspose.ms.System.Collections.IList |
getVotingButtons(MapiMessage message)
Get the available message voting buttons.
|
static String[] |
getVotingButtonsArray(MapiMessage message)
Get the available message voting buttons.
|
static void |
markAsCompleted(MapiMessage message)
Marks the flagged message as completed.
|
static void |
removeCategory(MapiMessage message,
String categoryName)
Removes the category.
|
static void |
removeVotingButton(MapiMessage message,
String displayName)
Removes the voting button.
|
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)
Sets the follow-up flag for a message.
|
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)
Sets the flag for a draft message
to remind recipients to follow-up.
|
static void |
setOptions(MapiMessage message,
FollowUpOptions options)
Sets the additional follow-up options for a message.
|
public static void setFlag(MapiMessage message, String flagRequest)
Sets the follow-up flag for a message.
message
- The MapiMessage
in which a flag will be set.flagRequest
- A string indicating the requested
action for an e-mail message.com.aspose.ms.System.ArgumentException
- If flagRequest
is null or empty.com.aspose.ms.System.ArgumentNullException
- If message
is null.public static void setFlag(MapiMessage message, String flagRequest, Date startDate, Date dueDate)
Sets the follow-up flag for a message.
message
- The MapiMessage
in which a flag will be set.flagRequest
- A string indicating the requested
action for an e-mail message.startDate
- The start date.dueDate
- The due date.com.aspose.ms.System.ArgumentException
- If flagRequest
is null or empty.com.aspose.ms.System.ArgumentNullException
- If message
is null.public static void setFlagForRecipients(MapiMessage message, String flagRequest)
Sets the flag for a draft message to remind recipients to follow-up.
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.com.aspose.ms.System.ArgumentNullException
- If message
is null.com.aspose.ms.System.ArgumentException
- If flagRequest
is null or empty.com.aspose.ms.System.InvalidOperationException
- If message is not set on a draft mode.public static void setFlagForRecipients(MapiMessage message, String flagRequest, Date reminderTime)
Sets the flag for a draft message to remind recipients to follow-up.
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.reminderTime
- A date indicating the date and time
at which the reminder should occur.com.aspose.ms.System.ArgumentNullException
- If message
is null.com.aspose.ms.System.ArgumentException
- If flagRequest
is null or empty.com.aspose.ms.System.InvalidOperationException
- If message is not set on a draft mode.public static void markAsCompleted(MapiMessage message)
Marks the flagged message as completed.
message
- The MapiMessage
in which a flag is set.com.aspose.ms.System.ArgumentNullException
- If message
is null.public static void clearFlag(MapiMessage message)
Clears the follow-up flag and reminder.
message
- The MapiMessage
in which a flag is set.com.aspose.ms.System.ArgumentNullException
- If message
is null.public static void addCategory(MapiMessage message, String categoryName)
Adds the category for a message.
message
- The MapiMessage
in which a category will be added.categoryName
- Category name.com.aspose.ms.System.ArgumentNullException
- If message
is null.com.aspose.ms.System.ArgumentException
- If categoryName
is null or empty.public static void removeCategory(MapiMessage message, String categoryName)
Removes the category.
message
- The message.categoryName
- Name of the category.com.aspose.ms.System.ArgumentNullException
- If message
is null.com.aspose.ms.System.ArgumentException
- If categoryName
is null or empty.public static void clearCategories(MapiMessage message)
Clears the categories.
message
- The MapiMessage
in which the categories will be cleared.com.aspose.ms.System.ArgumentNullException
- If message
is null.public static com.aspose.ms.System.Collections.IList getCategories(MapiMessage message)
Get the available message categories.
message
- The MapiMessage
in which the categories are added.com.aspose.ms.System.ArgumentNullException
- If message
is null.public static void addVotingButton(MapiMessage message, String displayName)
Adds the voting button.
message
- The MapiMessage
in which the voting button is added.displayName
- The display name of button.com.aspose.ms.System.ArgumentNullException
- If message
is null.com.aspose.ms.System.ArgumentException
- If displayName
is null or empty.public static void clearVotingButtons(MapiMessage message)
Deletes the voting buttons.
message
- The MapiMessage
in which the categories will be cleared.com.aspose.ms.System.ArgumentNullException
- If message
is null.public static void removeVotingButton(MapiMessage message, String displayName)
Removes the voting button.
message
- The MapiMessage
in which the voting button is removed.displayName
- The display name of button.com.aspose.ms.System.ArgumentNullException
- If message
is null.com.aspose.ms.System.ArgumentException
- If displayName
is null or empty.public static com.aspose.ms.System.Collections.IList getVotingButtons(MapiMessage message)
Get the available message voting buttons.
message
- The MapiMessage
in which the buttons are added.com.aspose.ms.System.ArgumentNullException
- If message
is null.public static String[] getVotingButtonsArray(MapiMessage message)
Get the available message voting buttons.
message
- The MapiMessage
in which the buttons are added.com.aspose.ms.System.ArgumentNullException
- If message
is null.public static void setOptions(MapiMessage message, FollowUpOptions options)
Sets the additional follow-up options for a message.
message
- The MapiMessage
in which a flag will be set.options
- The FollowUpOptions
that represents options for using
follow-up flags and reminders.com.aspose.ms.System.ArgumentNullException
- If message
is null.com.aspose.ms.System.ArgumentNullException
- If options
is null.public static FollowUpOptions getOptions(MapiMessage message)
Gets the follow-up options of a message.
message
- The MapiMessage
in which options is set.FollowUpOptions
that represents options for using
follow-up flags, reminders, category and voting buttons.com.aspose.ms.System.ArgumentNullException
- If message
is null.