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(MapiMessageItemBase message,
String categoryName)
Adds the category for a message.
|
static void |
addVotingButton(MapiMessageItemBase message,
String displayName)
Adds the voting button.
|
static void |
clearCategories(MapiMessageItemBase message)
Clears the categories.
|
static void |
clearFlag(MapiMessageItemBase message)
Clears the follow-up flag and reminder.
|
static void |
clearVotingButtons(MapiMessageItemBase message)
Deletes the voting buttons.
|
static IList |
getCategories(MapiMessageItemBase message)
Get the available message categories.
|
static FollowUpOptions |
getOptions(MapiMessageItemBase message)
Gets the follow-up options of a message.
|
static IList |
getVotingButtons(MapiMessageItemBase message)
Get the available message voting buttons.
|
static String[] |
getVotingButtonsArray(MapiMessageItemBase message)
Get the available message voting buttons.
|
static void |
markAsCompleted(MapiMessageItemBase message)
Marks the flagged message as completed.
|
static void |
removeCategory(MapiMessageItemBase message,
String categoryName)
Removes the category.
|
static void |
removeVotingButton(MapiMessageItemBase message,
String displayName)
Removes the voting button.
|
static void |
setFlag(MapiMessageItemBase message,
String flagRequest)
Sets the follow-up flag for a message.
|
static void |
setFlag(MapiMessageItemBase message,
String flagRequest,
Date startDate,
Date dueDate)
Sets the follow-up flag for a message.
|
static void |
setFlagForRecipients(MapiMessageItemBase message,
String flagRequest)
Sets the flag for a draft message
to remind recipients to follow-up.
|
static void |
setFlagForRecipients(MapiMessageItemBase message,
String flagRequest,
Date reminderTime)
Sets the flag for a draft message
to remind recipients to follow-up.
|
static void |
setOptions(MapiMessageItemBase message,
FollowUpOptions options)
Sets the additional follow-up options for a message.
|
public static void setFlag(MapiMessageItemBase message, String flagRequest)
Sets the follow-up flag for a message.
message - The MapiMessageItemBase in which a flag will be set.flagRequest - A string indicating the requested
action for an e-mail message.ArgumentException - If flagRequest is null or empty.ArgumentNullException - If message is null.public static void setFlag(MapiMessageItemBase message, String flagRequest, Date startDate, Date dueDate)
Sets the follow-up flag for a message.
message - The MapiMessageItemBase 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.ArgumentException - If flagRequest is null or empty.ArgumentNullException - If message is null.public static void setFlagForRecipients(MapiMessageItemBase message, String flagRequest)
Sets the flag for a draft message to remind recipients to follow-up.
message - The MapiMessageItemBase in which a flag will be set.flagRequest - A string indicating the requested
action action for recipients of an e-mail message.ArgumentNullException - If message is null.ArgumentException - If flagRequest is null or empty.InvalidOperationException - If message is not set on a draft mode.public static void setFlagForRecipients(MapiMessageItemBase message, String flagRequest, Date reminderTime)
Sets the flag for a draft message to remind recipients to follow-up.
message - The MapiMessageItemBase 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.ArgumentNullException - If message is null.ArgumentException - If flagRequest is null or empty.InvalidOperationException - If message is not set on a draft mode.public static void markAsCompleted(MapiMessageItemBase message)
Marks the flagged message as completed.
message - The MapiMessageItemBase in which a flag is set.ArgumentNullException - If message is null.public static void clearFlag(MapiMessageItemBase message)
Clears the follow-up flag and reminder.
message - The MapiMessageItemBase in which a flag is set.ArgumentNullException - If message is null.public static void addCategory(MapiMessageItemBase message, String categoryName)
Adds the category for a message.
message - The MapiMessageItemBase in which a category will be added.categoryName - Category name.ArgumentNullException - If message is null.ArgumentException - If categoryName is null or empty.public static void removeCategory(MapiMessageItemBase message, String categoryName)
Removes the category.
message - The message.categoryName - Name of the category.ArgumentNullException - If message is null.ArgumentException - If categoryName is null or empty.public static void clearCategories(MapiMessageItemBase message)
Clears the categories.
message - The MapiMessageItemBase in which the categories will be cleared.ArgumentNullException - If message is null.public static IList getCategories(MapiMessageItemBase message)
Get the available message categories.
message - The MapiMessageItemBase in which the categories are added.ArgumentNullException - If message is null.public static void addVotingButton(MapiMessageItemBase message, String displayName)
Adds the voting button.
message - The MapiMessageItemBase in which the voting button is added.displayName - The display name of button.ArgumentNullException - If message is null.ArgumentException - If displayName is null or empty.public static void clearVotingButtons(MapiMessageItemBase message)
Deletes the voting buttons.
message - The MapiMessageItemBase in which the categories will be cleared.ArgumentNullException - If message is null.public static void removeVotingButton(MapiMessageItemBase message, String displayName)
Removes the voting button.
message - The MapiMessageItemBase in which the voting button is removed.displayName - The display name of button.ArgumentNullException - If message is null.ArgumentException - If displayName is null or empty.public static IList getVotingButtons(MapiMessageItemBase message)
Get the available message voting buttons.
message - The MapiMessageItemBase in which the buttons are added.ArgumentNullException - If message is null.public static String[] getVotingButtonsArray(MapiMessageItemBase message)
Get the available message voting buttons.
message - The MapiMessageItemBase in which the buttons are added.ArgumentNullException - If message is null.public static void setOptions(MapiMessageItemBase message, FollowUpOptions options)
Sets the additional follow-up options for a message.
message - The MapiMessageItemBase in which a flag will be set.options - The FollowUpOptions that represents options for using
follow-up flags and reminders.ArgumentNullException - If message is null.ArgumentNullException - If options is null.public static FollowUpOptions getOptions(MapiMessageItemBase message)
Gets the follow-up options of a message.
message - The MapiMessageItemBase in which options is set.FollowUpOptions that represents options for using
follow-up flags, reminders, category and voting buttons.ArgumentNullException - If message is null.Copyright (c) 2008-2024 Aspose Pty Ltd. All Rights Reserved.