Exchange archiving
This commit is contained in:
parent
4f500a356a
commit
5f951183e3
35 changed files with 3119 additions and 145 deletions
|
@ -2830,7 +2830,8 @@ namespace WebsitePanel.EnterpriseServer
|
|||
public static void UpdateExchangeMailboxPlan(int mailboxPlanID, string mailboxPlan, bool enableActiveSync, bool enableIMAP, bool enableMAPI, bool enableOWA, bool enablePOP,
|
||||
bool isDefault, int issueWarningPct, int keepDeletedItemsDays, int mailboxSizeMB, int maxReceiveMessageSizeKB, int maxRecipients,
|
||||
int maxSendMessageSizeKB, int prohibitSendPct, int prohibitSendReceivePct, bool hideFromAddressBook, int mailboxPlanType,
|
||||
bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning, string litigationHoldUrl, string litigationHoldMsg)
|
||||
bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning, string litigationHoldUrl, string litigationHoldMsg,
|
||||
bool Archiving, bool EnableArchiving)
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery(
|
||||
ConnectionString,
|
||||
|
@ -2858,7 +2859,9 @@ namespace WebsitePanel.EnterpriseServer
|
|||
new SqlParameter("@RecoverableItemsWarningPct", recoverabelItemsWarning),
|
||||
new SqlParameter("@RecoverableItemsSpace", recoverabelItemsSpace),
|
||||
new SqlParameter("@LitigationHoldUrl", litigationHoldUrl),
|
||||
new SqlParameter("@LitigationHoldMsg", litigationHoldMsg)
|
||||
new SqlParameter("@LitigationHoldMsg", litigationHoldMsg),
|
||||
new SqlParameter("@Archiving", Archiving),
|
||||
new SqlParameter("@EnableArchiving", EnableArchiving)
|
||||
|
||||
);
|
||||
}
|
||||
|
@ -2932,6 +2935,112 @@ namespace WebsitePanel.EnterpriseServer
|
|||
);
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Exchange Retention Policy Tags
|
||||
public static int AddExchangeRetentionPolicyTag(int ItemID, string TagName, int TagType, int AgeLimitForRetention, int RetentionAction)
|
||||
{
|
||||
SqlParameter outParam = new SqlParameter("@TagID", SqlDbType.Int);
|
||||
outParam.Direction = ParameterDirection.Output;
|
||||
|
||||
SqlHelper.ExecuteNonQuery(
|
||||
ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"AddExchangeRetentionPolicyTag",
|
||||
outParam,
|
||||
new SqlParameter("@ItemID", ItemID),
|
||||
new SqlParameter("@TagName", TagName),
|
||||
new SqlParameter("@TagType", TagType),
|
||||
new SqlParameter("@AgeLimitForRetention", AgeLimitForRetention),
|
||||
new SqlParameter("@RetentionAction", RetentionAction)
|
||||
);
|
||||
|
||||
return Convert.ToInt32(outParam.Value);
|
||||
}
|
||||
|
||||
public static void UpdateExchangeRetentionPolicyTag(int TagID, int ItemID, string TagName, int TagType, int AgeLimitForRetention, int RetentionAction)
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery(
|
||||
ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"UpdateExchangeRetentionPolicyTag",
|
||||
new SqlParameter("@TagID", TagID),
|
||||
new SqlParameter("@ItemID", ItemID),
|
||||
new SqlParameter("@TagName", TagName),
|
||||
new SqlParameter("@TagType", TagType),
|
||||
new SqlParameter("@AgeLimitForRetention", AgeLimitForRetention),
|
||||
new SqlParameter("@RetentionAction", RetentionAction)
|
||||
);
|
||||
}
|
||||
|
||||
public static void DeleteExchangeRetentionPolicyTag(int TagID)
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery(
|
||||
ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"DeleteExchangeRetentionPolicyTag",
|
||||
new SqlParameter("@TagID", TagID)
|
||||
);
|
||||
}
|
||||
|
||||
public static IDataReader GetExchangeRetentionPolicyTag(int TagID)
|
||||
{
|
||||
return SqlHelper.ExecuteReader(
|
||||
ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"GetExchangeRetentionPolicyTag",
|
||||
new SqlParameter("@TagID", TagID)
|
||||
);
|
||||
}
|
||||
|
||||
public static IDataReader GetExchangeRetentionPolicyTags(int itemId)
|
||||
{
|
||||
return SqlHelper.ExecuteReader(
|
||||
ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"GetExchangeRetentionPolicyTags",
|
||||
new SqlParameter("@ItemID", itemId)
|
||||
);
|
||||
}
|
||||
|
||||
public static int AddExchangeMailboxPlanRetentionPolicyTag(int TagID, int MailboxPlanId)
|
||||
{
|
||||
SqlParameter outParam = new SqlParameter("@PlanTagID", SqlDbType.Int);
|
||||
outParam.Direction = ParameterDirection.Output;
|
||||
|
||||
SqlHelper.ExecuteNonQuery(
|
||||
ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"AddExchangeMailboxPlanRetentionPolicyTag",
|
||||
outParam,
|
||||
new SqlParameter("@TagID", TagID),
|
||||
new SqlParameter("@MailboxPlanId", MailboxPlanId)
|
||||
);
|
||||
|
||||
return Convert.ToInt32(outParam.Value);
|
||||
}
|
||||
|
||||
public static void DeleteExchangeMailboxPlanRetentionPolicyTag(int PlanTagID)
|
||||
{
|
||||
SqlHelper.ExecuteNonQuery(
|
||||
ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"DeleteExchangeMailboxPlanRetentionPolicyTag",
|
||||
new SqlParameter("@PlanTagID", PlanTagID)
|
||||
);
|
||||
}
|
||||
|
||||
public static IDataReader GetExchangeMailboxPlanRetentionPolicyTags(int MailboxPlanId)
|
||||
{
|
||||
return SqlHelper.ExecuteReader(
|
||||
ConnectionString,
|
||||
CommandType.StoredProcedure,
|
||||
"GetExchangeMailboxPlanRetentionPolicyTags",
|
||||
new SqlParameter("@MailboxPlanId", MailboxPlanId)
|
||||
);
|
||||
}
|
||||
|
||||
|
||||
#endregion
|
||||
|
||||
#region Exchange Disclaimers
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue