Added litigation hold feature for exchange
This commit is contained in:
parent
95ca048684
commit
dfe54e7f16
20 changed files with 229 additions and 102 deletions
|
@ -62,6 +62,13 @@ ALTER TABLE [dbo].[ExchangeMailboxPlans] ADD
|
||||||
END
|
END
|
||||||
GO
|
GO
|
||||||
|
|
||||||
|
IF NOT EXISTS(select 1 from sys.columns COLS INNER JOIN sys.objects OBJS ON OBJS.object_id=COLS.object_id and OBJS.type='U' AND OBJS.name='ExchangeMailboxPlans' AND COLS.name='LitigationHoldUrl')
|
||||||
|
BEGIN
|
||||||
|
ALTER TABLE [dbo].[ExchangeMailboxPlans] ADD
|
||||||
|
[LitigationHoldUrl] [nvarchar] (256) COLLATE Latin1_General_CI_AS NULL,
|
||||||
|
[LitigationHoldMsg] [nvarchar] (512) COLLATE Latin1_General_CI_AS NULL
|
||||||
|
END
|
||||||
|
GO
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -89,7 +96,9 @@ ALTER PROCEDURE [dbo].[AddExchangeMailboxPlan]
|
||||||
@MailboxPlanType int,
|
@MailboxPlanType int,
|
||||||
@AllowLitigationHold bit,
|
@AllowLitigationHold bit,
|
||||||
@RecoverableItemsWarningPct int,
|
@RecoverableItemsWarningPct int,
|
||||||
@RecoverableItemsSpace int
|
@RecoverableItemsSpace int,
|
||||||
|
@LitigationHoldUrl nvarchar(256),
|
||||||
|
@LitigationHoldMsg nvarchar(512)
|
||||||
)
|
)
|
||||||
AS
|
AS
|
||||||
|
|
||||||
|
@ -127,7 +136,10 @@ INSERT INTO ExchangeMailboxPlans
|
||||||
MailboxPlanType,
|
MailboxPlanType,
|
||||||
AllowLitigationHold,
|
AllowLitigationHold,
|
||||||
RecoverableItemsWarningPct,
|
RecoverableItemsWarningPct,
|
||||||
RecoverableItemsSpace
|
RecoverableItemsSpace,
|
||||||
|
LitigationHoldUrl,
|
||||||
|
LitigationHoldMsg
|
||||||
|
|
||||||
)
|
)
|
||||||
VALUES
|
VALUES
|
||||||
(
|
(
|
||||||
|
@ -151,7 +163,9 @@ VALUES
|
||||||
@MailboxPlanType,
|
@MailboxPlanType,
|
||||||
@AllowLitigationHold,
|
@AllowLitigationHold,
|
||||||
@RecoverableItemsWarningPct,
|
@RecoverableItemsWarningPct,
|
||||||
@RecoverableItemsSpace
|
@RecoverableItemsSpace,
|
||||||
|
@LitigationHoldUrl,
|
||||||
|
@LitigationHoldMsg
|
||||||
)
|
)
|
||||||
|
|
||||||
SET @MailboxPlanId = SCOPE_IDENTITY()
|
SET @MailboxPlanId = SCOPE_IDENTITY()
|
||||||
|
@ -189,7 +203,9 @@ ALTER PROCEDURE [dbo].[UpdateExchangeMailboxPlan]
|
||||||
@MailboxPlanType int,
|
@MailboxPlanType int,
|
||||||
@AllowLitigationHold bit,
|
@AllowLitigationHold bit,
|
||||||
@RecoverableItemsWarningPct int,
|
@RecoverableItemsWarningPct int,
|
||||||
@RecoverableItemsSpace int
|
@RecoverableItemsSpace int,
|
||||||
|
@LitigationHoldUrl nvarchar(256),
|
||||||
|
@LitigationHoldMsg nvarchar(512)
|
||||||
)
|
)
|
||||||
AS
|
AS
|
||||||
|
|
||||||
|
@ -213,7 +229,10 @@ UPDATE ExchangeMailboxPlans SET
|
||||||
MailboxPlanType = @MailboxPlanType,
|
MailboxPlanType = @MailboxPlanType,
|
||||||
AllowLitigationHold = @AllowLitigationHold,
|
AllowLitigationHold = @AllowLitigationHold,
|
||||||
RecoverableItemsWarningPct = @RecoverableItemsWarningPct,
|
RecoverableItemsWarningPct = @RecoverableItemsWarningPct,
|
||||||
RecoverableItemsSpace = @RecoverableItemsSpace
|
RecoverableItemsSpace = @RecoverableItemsSpace,
|
||||||
|
LitigationHoldUrl = @LitigationHoldUrl,
|
||||||
|
LitigationHoldMsg = @LitigationHoldMsg
|
||||||
|
|
||||||
WHERE MailboxPlanId = @MailboxPlanId
|
WHERE MailboxPlanId = @MailboxPlanId
|
||||||
|
|
||||||
RETURN
|
RETURN
|
||||||
|
@ -249,7 +268,9 @@ SELECT
|
||||||
MailboxPlanType,
|
MailboxPlanType,
|
||||||
AllowLitigationHold,
|
AllowLitigationHold,
|
||||||
RecoverableItemsWarningPct,
|
RecoverableItemsWarningPct,
|
||||||
RecoverableItemsSpace
|
RecoverableItemsSpace,
|
||||||
|
LitigationHoldUrl,
|
||||||
|
LitigationHoldMsg
|
||||||
FROM
|
FROM
|
||||||
ExchangeMailboxPlans
|
ExchangeMailboxPlans
|
||||||
WHERE
|
WHERE
|
||||||
|
|
|
@ -2534,7 +2534,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
public static int AddExchangeMailboxPlan(int itemID, string mailboxPlan, bool enableActiveSync, bool enableIMAP, bool enableMAPI, bool enableOWA, bool enablePOP,
|
public static int AddExchangeMailboxPlan(int itemID, string mailboxPlan, bool enableActiveSync, bool enableIMAP, bool enableMAPI, bool enableOWA, bool enablePOP,
|
||||||
bool isDefault, int issueWarningPct, int keepDeletedItemsDays, int mailboxSizeMB, int maxReceiveMessageSizeKB, int maxRecipients,
|
bool isDefault, int issueWarningPct, int keepDeletedItemsDays, int mailboxSizeMB, int maxReceiveMessageSizeKB, int maxRecipients,
|
||||||
int maxSendMessageSizeKB, int prohibitSendPct, int prohibitSendReceivePct, bool hideFromAddressBook, int mailboxPlanType,
|
int maxSendMessageSizeKB, int prohibitSendPct, int prohibitSendReceivePct, bool hideFromAddressBook, int mailboxPlanType,
|
||||||
bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning)
|
bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning, string litigationHoldUrl, string litigationHoldMsg)
|
||||||
{
|
{
|
||||||
SqlParameter outParam = new SqlParameter("@MailboxPlanId", SqlDbType.Int);
|
SqlParameter outParam = new SqlParameter("@MailboxPlanId", SqlDbType.Int);
|
||||||
outParam.Direction = ParameterDirection.Output;
|
outParam.Direction = ParameterDirection.Output;
|
||||||
|
@ -2564,7 +2564,9 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
new SqlParameter("@MailboxPlanType", mailboxPlanType),
|
new SqlParameter("@MailboxPlanType", mailboxPlanType),
|
||||||
new SqlParameter("@AllowLitigationHold",enabledLitigationHold),
|
new SqlParameter("@AllowLitigationHold",enabledLitigationHold),
|
||||||
new SqlParameter("@RecoverableItemsWarningPct", recoverabelItemsWarning),
|
new SqlParameter("@RecoverableItemsWarningPct", recoverabelItemsWarning),
|
||||||
new SqlParameter("@RecoverableItemsSpace",recoverabelItemsSpace)
|
new SqlParameter("@RecoverableItemsSpace",recoverabelItemsSpace),
|
||||||
|
new SqlParameter("@LitigationHoldUrl",litigationHoldUrl),
|
||||||
|
new SqlParameter("@LitigationHoldMsg",litigationHoldMsg)
|
||||||
);
|
);
|
||||||
|
|
||||||
return Convert.ToInt32(outParam.Value);
|
return Convert.ToInt32(outParam.Value);
|
||||||
|
@ -2575,7 +2577,7 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
public static void UpdateExchangeMailboxPlan(int mailboxPlanID, string mailboxPlan, bool enableActiveSync, bool enableIMAP, bool enableMAPI, bool enableOWA, bool enablePOP,
|
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,
|
bool isDefault, int issueWarningPct, int keepDeletedItemsDays, int mailboxSizeMB, int maxReceiveMessageSizeKB, int maxRecipients,
|
||||||
int maxSendMessageSizeKB, int prohibitSendPct, int prohibitSendReceivePct, bool hideFromAddressBook, int mailboxPlanType,
|
int maxSendMessageSizeKB, int prohibitSendPct, int prohibitSendReceivePct, bool hideFromAddressBook, int mailboxPlanType,
|
||||||
bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning)
|
bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning, string litigationHoldUrl, string litigationHoldMsg)
|
||||||
{
|
{
|
||||||
SqlHelper.ExecuteNonQuery(
|
SqlHelper.ExecuteNonQuery(
|
||||||
ConnectionString,
|
ConnectionString,
|
||||||
|
@ -2601,7 +2603,10 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
new SqlParameter("@MailboxPlanType", mailboxPlanType),
|
new SqlParameter("@MailboxPlanType", mailboxPlanType),
|
||||||
new SqlParameter("@AllowLitigationHold", enabledLitigationHold),
|
new SqlParameter("@AllowLitigationHold", enabledLitigationHold),
|
||||||
new SqlParameter("@RecoverableItemsWarningPct", recoverabelItemsWarning),
|
new SqlParameter("@RecoverableItemsWarningPct", recoverabelItemsWarning),
|
||||||
new SqlParameter("@RecoverableItemsSpace", recoverabelItemsSpace)
|
new SqlParameter("@RecoverableItemsSpace", recoverabelItemsSpace),
|
||||||
|
new SqlParameter("@LitigationHoldUrl",litigationHoldUrl),
|
||||||
|
new SqlParameter("@LitigationHoldMsg",litigationHoldMsg)
|
||||||
|
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -2717,7 +2717,9 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
plan.MaxReceiveMessageSizeKB,
|
plan.MaxReceiveMessageSizeKB,
|
||||||
plan.AllowLitigationHold,
|
plan.AllowLitigationHold,
|
||||||
plan.RecoverableItemsSpace != -1 ? (plan.RecoverableItemsSpace * 1024) : -1,
|
plan.RecoverableItemsSpace != -1 ? (plan.RecoverableItemsSpace * 1024) : -1,
|
||||||
plan.RecoverableItemsSpace != -1 ? (((long)plan.RecoverableItemsWarningPct * (long)plan.RecoverableItemsSpace * 1024) / 100) : -1);
|
plan.RecoverableItemsSpace != -1 ? (((long)plan.RecoverableItemsWarningPct * (long)plan.RecoverableItemsSpace * 1024) / 100) : -1,
|
||||||
|
plan.LitigationHoldUrl,
|
||||||
|
plan.LitigationHoldMsg);
|
||||||
|
|
||||||
DataProvider.SetExchangeAccountMailboxPlan(accountId, mailboxPlanId);
|
DataProvider.SetExchangeAccountMailboxPlan(accountId, mailboxPlanId);
|
||||||
|
|
||||||
|
@ -2892,7 +2894,8 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
return DataProvider.AddExchangeMailboxPlan(itemID, mailboxPlan.MailboxPlan, mailboxPlan.EnableActiveSync, mailboxPlan.EnableIMAP, mailboxPlan.EnableMAPI, mailboxPlan.EnableOWA, mailboxPlan.EnablePOP,
|
return DataProvider.AddExchangeMailboxPlan(itemID, mailboxPlan.MailboxPlan, mailboxPlan.EnableActiveSync, mailboxPlan.EnableIMAP, mailboxPlan.EnableMAPI, mailboxPlan.EnableOWA, mailboxPlan.EnablePOP,
|
||||||
mailboxPlan.IsDefault, mailboxPlan.IssueWarningPct, mailboxPlan.KeepDeletedItemsDays, mailboxPlan.MailboxSizeMB, mailboxPlan.MaxReceiveMessageSizeKB, mailboxPlan.MaxRecipients,
|
mailboxPlan.IsDefault, mailboxPlan.IssueWarningPct, mailboxPlan.KeepDeletedItemsDays, mailboxPlan.MailboxSizeMB, mailboxPlan.MaxReceiveMessageSizeKB, mailboxPlan.MaxRecipients,
|
||||||
mailboxPlan.MaxSendMessageSizeKB, mailboxPlan.ProhibitSendPct, mailboxPlan.ProhibitSendReceivePct, mailboxPlan.HideFromAddressBook, mailboxPlan.MailboxPlanType,
|
mailboxPlan.MaxSendMessageSizeKB, mailboxPlan.ProhibitSendPct, mailboxPlan.ProhibitSendReceivePct, mailboxPlan.HideFromAddressBook, mailboxPlan.MailboxPlanType,
|
||||||
mailboxPlan.AllowLitigationHold, mailboxPlan.RecoverableItemsSpace, mailboxPlan.RecoverableItemsWarningPct);
|
mailboxPlan.AllowLitigationHold, mailboxPlan.RecoverableItemsSpace, mailboxPlan.RecoverableItemsWarningPct,
|
||||||
|
mailboxPlan.LitigationHoldUrl, mailboxPlan.LitigationHoldMsg);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
@ -2962,7 +2965,8 @@ namespace WebsitePanel.EnterpriseServer
|
||||||
DataProvider.UpdateExchangeMailboxPlan(mailboxPlan.MailboxPlanId, mailboxPlan.MailboxPlan, mailboxPlan.EnableActiveSync, mailboxPlan.EnableIMAP, mailboxPlan.EnableMAPI, mailboxPlan.EnableOWA, mailboxPlan.EnablePOP,
|
DataProvider.UpdateExchangeMailboxPlan(mailboxPlan.MailboxPlanId, mailboxPlan.MailboxPlan, mailboxPlan.EnableActiveSync, mailboxPlan.EnableIMAP, mailboxPlan.EnableMAPI, mailboxPlan.EnableOWA, mailboxPlan.EnablePOP,
|
||||||
mailboxPlan.IsDefault, mailboxPlan.IssueWarningPct, mailboxPlan.KeepDeletedItemsDays, mailboxPlan.MailboxSizeMB, mailboxPlan.MaxReceiveMessageSizeKB, mailboxPlan.MaxRecipients,
|
mailboxPlan.IsDefault, mailboxPlan.IssueWarningPct, mailboxPlan.KeepDeletedItemsDays, mailboxPlan.MailboxSizeMB, mailboxPlan.MaxReceiveMessageSizeKB, mailboxPlan.MaxRecipients,
|
||||||
mailboxPlan.MaxSendMessageSizeKB, mailboxPlan.ProhibitSendPct, mailboxPlan.ProhibitSendReceivePct, mailboxPlan.HideFromAddressBook, mailboxPlan.MailboxPlanType,
|
mailboxPlan.MaxSendMessageSizeKB, mailboxPlan.ProhibitSendPct, mailboxPlan.ProhibitSendReceivePct, mailboxPlan.HideFromAddressBook, mailboxPlan.MailboxPlanType,
|
||||||
mailboxPlan.AllowLitigationHold, mailboxPlan.RecoverableItemsSpace, mailboxPlan.RecoverableItemsWarningPct);
|
mailboxPlan.AllowLitigationHold, mailboxPlan.RecoverableItemsSpace, mailboxPlan.RecoverableItemsWarningPct,
|
||||||
|
mailboxPlan.LitigationHoldUrl, mailboxPlan.LitigationHoldMsg);
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
{
|
{
|
||||||
|
|
|
@ -59,6 +59,8 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
bool allowLitigationHold;
|
bool allowLitigationHold;
|
||||||
int recoverableItemsWarningPct;
|
int recoverableItemsWarningPct;
|
||||||
int recoverableItemsSpace;
|
int recoverableItemsSpace;
|
||||||
|
string litigationHoldUrl;
|
||||||
|
string litigationHoldMsg;
|
||||||
|
|
||||||
|
|
||||||
public int ItemId
|
public int ItemId
|
||||||
|
@ -196,5 +198,16 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
set { this.recoverableItemsSpace = value; }
|
set { this.recoverableItemsSpace = value; }
|
||||||
}
|
}
|
||||||
|
|
||||||
|
public string LitigationHoldUrl
|
||||||
|
{
|
||||||
|
get { return this.litigationHoldUrl; }
|
||||||
|
set { this.litigationHoldUrl = value; }
|
||||||
|
}
|
||||||
|
|
||||||
|
public string LitigationHoldMsg
|
||||||
|
{
|
||||||
|
get { return this.litigationHoldMsg; }
|
||||||
|
set { this.litigationHoldMsg = value; }
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -64,7 +64,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
ExchangeMailbox GetMailboxMailFlowSettings(string accountName);
|
ExchangeMailbox GetMailboxMailFlowSettings(string accountName);
|
||||||
void SetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication);
|
void SetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication);
|
||||||
ExchangeMailbox GetMailboxAdvancedSettings(string accountName);
|
ExchangeMailbox GetMailboxAdvancedSettings(string accountName);
|
||||||
void SetMailboxAdvancedSettings(string organizationId, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB, int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning);
|
void SetMailboxAdvancedSettings(string organizationId, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB, int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning, string litigationHoldUrl, string litigationHoldMsg);
|
||||||
ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName);
|
ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName);
|
||||||
void SetMailboxEmailAddresses(string accountName, string[] emailAddresses);
|
void SetMailboxEmailAddresses(string accountName, string[] emailAddresses);
|
||||||
void SetMailboxPrimaryEmailAddress(string accountName, string emailAddress);
|
void SetMailboxPrimaryEmailAddress(string accountName, string emailAddress);
|
||||||
|
|
|
@ -287,12 +287,12 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
public void SetMailboxAdvancedSettings(string organizationId, string accountName, bool enablePOP,
|
public void SetMailboxAdvancedSettings(string organizationId, string accountName, bool enablePOP,
|
||||||
bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync,
|
bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync,
|
||||||
long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB,
|
long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB,
|
||||||
int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning)
|
int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning, string litigationHoldUrl, string litigationHoldMsg)
|
||||||
{
|
{
|
||||||
SetMailboxAdvancedSettingsInternal(organizationId, accountName, enablePOP, enableIMAP, enableOWA,
|
SetMailboxAdvancedSettingsInternal(organizationId, accountName, enablePOP, enableIMAP, enableOWA,
|
||||||
enableMAPI, enableActiveSync, issueWarningKB,
|
enableMAPI, enableActiveSync, issueWarningKB,
|
||||||
prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB,
|
prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB,
|
||||||
enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning);
|
enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning, litigationHoldUrl, litigationHoldMsg);
|
||||||
}
|
}
|
||||||
|
|
||||||
public ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName)
|
public ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName)
|
||||||
|
@ -2489,7 +2489,7 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
private void SetMailboxAdvancedSettingsInternal(string organizationId, string accountName, bool enablePOP, bool enableIMAP,
|
private void SetMailboxAdvancedSettingsInternal(string organizationId, string accountName, bool enablePOP, bool enableIMAP,
|
||||||
bool enableOWA, bool enableMAPI, bool enableActiveSync, long issueWarningKB, long prohibitSendKB,
|
bool enableOWA, bool enableMAPI, bool enableActiveSync, long issueWarningKB, long prohibitSendKB,
|
||||||
long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB,
|
long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB,
|
||||||
int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning)
|
int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning, string litigationHoldUrl, string litigationHoldMsg)
|
||||||
{
|
{
|
||||||
ExchangeLog.LogStart("SetMailboxAdvancedSettingsInternal");
|
ExchangeLog.LogStart("SetMailboxAdvancedSettingsInternal");
|
||||||
ExchangeLog.DebugInfo("Account: {0}", accountName);
|
ExchangeLog.DebugInfo("Account: {0}", accountName);
|
||||||
|
@ -2510,12 +2510,13 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
cmd.Parameters.Add("MaxSendSize", ConvertKBToUnlimited(maxSendMessageSizeKB));
|
cmd.Parameters.Add("MaxSendSize", ConvertKBToUnlimited(maxSendMessageSizeKB));
|
||||||
cmd.Parameters.Add("MaxReceiveSize", ConvertKBToUnlimited(maxReceiveMessageSizeKB));
|
cmd.Parameters.Add("MaxReceiveSize", ConvertKBToUnlimited(maxReceiveMessageSizeKB));
|
||||||
|
|
||||||
if (enabledLitigationHold)
|
cmd.Parameters.Add("LitigationHoldEnabled", enabledLitigationHold);
|
||||||
{
|
|
||||||
cmd.Parameters.Add("LitigationHoldEnabled", true);
|
|
||||||
cmd.Parameters.Add("RecoverableItemsQuota", ConvertKBToUnlimited(recoverabelItemsSpace));
|
cmd.Parameters.Add("RecoverableItemsQuota", ConvertKBToUnlimited(recoverabelItemsSpace));
|
||||||
cmd.Parameters.Add("RecoverableItemsWarningQuota", ConvertKBToUnlimited(recoverabelItemsWarning));
|
|
||||||
}
|
cmd.Parameters.Add("RetentionUrl", litigationHoldUrl);
|
||||||
|
cmd.Parameters.Add("RetentionComment", litigationHoldMsg);
|
||||||
|
|
||||||
|
if (recoverabelItemsSpace != -1) cmd.Parameters.Add("RecoverableItemsWarningQuota", ConvertKBToUnlimited(recoverabelItemsWarning));
|
||||||
|
|
||||||
ExecuteShellCommand(runSpace, cmd);
|
ExecuteShellCommand(runSpace, cmd);
|
||||||
|
|
||||||
|
|
|
@ -285,12 +285,12 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
public void SetMailboxAdvancedSettings(string organizationId, string accountName, bool enablePOP,
|
public void SetMailboxAdvancedSettings(string organizationId, string accountName, bool enablePOP,
|
||||||
bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync,
|
bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync,
|
||||||
long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB,
|
long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB,
|
||||||
int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning)
|
int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning, string litigationHoldUrl, string litigationHoldMsg)
|
||||||
{
|
{
|
||||||
SetMailboxAdvancedSettingsInternal(organizationId, accountName, enablePOP, enableIMAP, enableOWA,
|
SetMailboxAdvancedSettingsInternal(organizationId, accountName, enablePOP, enableIMAP, enableOWA,
|
||||||
enableMAPI, enableActiveSync, issueWarningKB,
|
enableMAPI, enableActiveSync, issueWarningKB,
|
||||||
prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB,
|
prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB,
|
||||||
enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning);
|
enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning, litigationHoldUrl, litigationHoldMsg );
|
||||||
}
|
}
|
||||||
|
|
||||||
public ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName)
|
public ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName)
|
||||||
|
@ -2415,7 +2415,8 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
internal virtual void SetMailboxAdvancedSettingsInternal(string organizationId, string accountName, bool enablePOP, bool enableIMAP,
|
internal virtual void SetMailboxAdvancedSettingsInternal(string organizationId, string accountName, bool enablePOP, bool enableIMAP,
|
||||||
bool enableOWA, bool enableMAPI, bool enableActiveSync, long issueWarningKB, long prohibitSendKB,
|
bool enableOWA, bool enableMAPI, bool enableActiveSync, long issueWarningKB, long prohibitSendKB,
|
||||||
long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB,
|
long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB,
|
||||||
int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning)
|
int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning,
|
||||||
|
string litigationHoldUrl, string litigationHoldMsg)
|
||||||
{
|
{
|
||||||
ExchangeLog.LogStart("SetMailboxAdvancedSettingsInternal");
|
ExchangeLog.LogStart("SetMailboxAdvancedSettingsInternal");
|
||||||
ExchangeLog.DebugInfo("Account: {0}", accountName);
|
ExchangeLog.DebugInfo("Account: {0}", accountName);
|
||||||
|
|
|
@ -332,7 +332,8 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
internal override void SetMailboxAdvancedSettingsInternal(string organizationId, string accountName, bool enablePOP, bool enableIMAP,
|
internal override void SetMailboxAdvancedSettingsInternal(string organizationId, string accountName, bool enablePOP, bool enableIMAP,
|
||||||
bool enableOWA, bool enableMAPI, bool enableActiveSync, long issueWarningKB, long prohibitSendKB,
|
bool enableOWA, bool enableMAPI, bool enableActiveSync, long issueWarningKB, long prohibitSendKB,
|
||||||
long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB,
|
long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB,
|
||||||
int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning)
|
int maxReceiveMessageSizeKB, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning,
|
||||||
|
string litigationHoldUrl, string litigationHoldMsg)
|
||||||
{
|
{
|
||||||
ExchangeLog.LogStart("SetMailboxAdvancedSettingsInternal");
|
ExchangeLog.LogStart("SetMailboxAdvancedSettingsInternal");
|
||||||
ExchangeLog.DebugInfo("Account: {0}", accountName);
|
ExchangeLog.DebugInfo("Account: {0}", accountName);
|
||||||
|
@ -356,6 +357,9 @@ namespace WebsitePanel.Providers.HostedSolution
|
||||||
cmd.Parameters.Add("LitigationHoldEnabled", enabledLitigationHold);
|
cmd.Parameters.Add("LitigationHoldEnabled", enabledLitigationHold);
|
||||||
cmd.Parameters.Add("RecoverableItemsQuota", ConvertKBToUnlimited(recoverabelItemsSpace));
|
cmd.Parameters.Add("RecoverableItemsQuota", ConvertKBToUnlimited(recoverabelItemsSpace));
|
||||||
|
|
||||||
|
cmd.Parameters.Add("RetentionUrl", litigationHoldUrl);
|
||||||
|
cmd.Parameters.Add("RetentionComment", litigationHoldMsg);
|
||||||
|
|
||||||
if (recoverabelItemsSpace != -1) cmd.Parameters.Add("RecoverableItemsWarningQuota", ConvertKBToUnlimited(recoverabelItemsWarning));
|
if (recoverabelItemsSpace != -1) cmd.Parameters.Add("RecoverableItemsWarningQuota", ConvertKBToUnlimited(recoverabelItemsWarning));
|
||||||
|
|
||||||
ExecuteShellCommand(runSpace, cmd);
|
ExecuteShellCommand(runSpace, cmd);
|
||||||
|
|
|
@ -39,9 +39,6 @@
|
||||||
//
|
//
|
||||||
// This source code was auto-generated by wsdl, Version=2.0.50727.3038.
|
// This source code was auto-generated by wsdl, Version=2.0.50727.3038.
|
||||||
//
|
//
|
||||||
|
|
||||||
using WebsitePanel.Providers.HostedSolution;
|
|
||||||
|
|
||||||
namespace WebsitePanel.Providers.Exchange {
|
namespace WebsitePanel.Providers.Exchange {
|
||||||
using System.Xml.Serialization;
|
using System.Xml.Serialization;
|
||||||
using System.Web.Services;
|
using System.Web.Services;
|
||||||
|
@ -50,6 +47,8 @@ namespace WebsitePanel.Providers.Exchange {
|
||||||
using System;
|
using System;
|
||||||
using System.Diagnostics;
|
using System.Diagnostics;
|
||||||
|
|
||||||
|
using WebsitePanel.Providers.HostedSolution;
|
||||||
|
|
||||||
|
|
||||||
/// <remarks/>
|
/// <remarks/>
|
||||||
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")]
|
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")]
|
||||||
|
@ -1545,7 +1544,9 @@ namespace WebsitePanel.Providers.Exchange {
|
||||||
int maxReceiveMessageSizeKB,
|
int maxReceiveMessageSizeKB,
|
||||||
bool enabledLitigationHold,
|
bool enabledLitigationHold,
|
||||||
long recoverabelItemsSpace,
|
long recoverabelItemsSpace,
|
||||||
long recoverabelItemsWarning) {
|
long recoverabelItemsWarning,
|
||||||
|
string litigationHoldUrl,
|
||||||
|
string litigationHoldMsg) {
|
||||||
this.Invoke("SetMailboxAdvancedSettings", new object[] {
|
this.Invoke("SetMailboxAdvancedSettings", new object[] {
|
||||||
organizationId,
|
organizationId,
|
||||||
accountName,
|
accountName,
|
||||||
|
@ -1563,7 +1564,9 @@ namespace WebsitePanel.Providers.Exchange {
|
||||||
maxReceiveMessageSizeKB,
|
maxReceiveMessageSizeKB,
|
||||||
enabledLitigationHold,
|
enabledLitigationHold,
|
||||||
recoverabelItemsSpace,
|
recoverabelItemsSpace,
|
||||||
recoverabelItemsWarning});
|
recoverabelItemsWarning,
|
||||||
|
litigationHoldUrl,
|
||||||
|
litigationHoldMsg});
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <remarks/>
|
/// <remarks/>
|
||||||
|
@ -1585,6 +1588,8 @@ namespace WebsitePanel.Providers.Exchange {
|
||||||
bool enabledLitigationHold,
|
bool enabledLitigationHold,
|
||||||
long recoverabelItemsSpace,
|
long recoverabelItemsSpace,
|
||||||
long recoverabelItemsWarning,
|
long recoverabelItemsWarning,
|
||||||
|
string litigationHoldUrl,
|
||||||
|
string litigationHoldMsg,
|
||||||
System.AsyncCallback callback,
|
System.AsyncCallback callback,
|
||||||
object asyncState) {
|
object asyncState) {
|
||||||
return this.BeginInvoke("SetMailboxAdvancedSettings", new object[] {
|
return this.BeginInvoke("SetMailboxAdvancedSettings", new object[] {
|
||||||
|
@ -1604,7 +1609,9 @@ namespace WebsitePanel.Providers.Exchange {
|
||||||
maxReceiveMessageSizeKB,
|
maxReceiveMessageSizeKB,
|
||||||
enabledLitigationHold,
|
enabledLitigationHold,
|
||||||
recoverabelItemsSpace,
|
recoverabelItemsSpace,
|
||||||
recoverabelItemsWarning}, callback, asyncState);
|
recoverabelItemsWarning,
|
||||||
|
litigationHoldUrl,
|
||||||
|
litigationHoldMsg}, callback, asyncState);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <remarks/>
|
/// <remarks/>
|
||||||
|
@ -1630,8 +1637,10 @@ namespace WebsitePanel.Providers.Exchange {
|
||||||
int maxReceiveMessageSizeKB,
|
int maxReceiveMessageSizeKB,
|
||||||
bool enabledLitigationHold,
|
bool enabledLitigationHold,
|
||||||
long recoverabelItemsSpace,
|
long recoverabelItemsSpace,
|
||||||
long recoverabelItemsWarning) {
|
long recoverabelItemsWarning,
|
||||||
this.SetMailboxAdvancedSettingsAsync(organizationId, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync, issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB, enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning, null);
|
string litigationHoldUrl,
|
||||||
|
string litigationHoldMsg) {
|
||||||
|
this.SetMailboxAdvancedSettingsAsync(organizationId, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync, issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB, enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning, litigationHoldUrl, litigationHoldMsg, null);
|
||||||
}
|
}
|
||||||
|
|
||||||
/// <remarks/>
|
/// <remarks/>
|
||||||
|
@ -1653,6 +1662,8 @@ namespace WebsitePanel.Providers.Exchange {
|
||||||
bool enabledLitigationHold,
|
bool enabledLitigationHold,
|
||||||
long recoverabelItemsSpace,
|
long recoverabelItemsSpace,
|
||||||
long recoverabelItemsWarning,
|
long recoverabelItemsWarning,
|
||||||
|
string litigationHoldUrl,
|
||||||
|
string litigationHoldMsg,
|
||||||
object userState) {
|
object userState) {
|
||||||
if ((this.SetMailboxAdvancedSettingsOperationCompleted == null)) {
|
if ((this.SetMailboxAdvancedSettingsOperationCompleted == null)) {
|
||||||
this.SetMailboxAdvancedSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxAdvancedSettingsOperationCompleted);
|
this.SetMailboxAdvancedSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxAdvancedSettingsOperationCompleted);
|
||||||
|
@ -1674,7 +1685,9 @@ namespace WebsitePanel.Providers.Exchange {
|
||||||
maxReceiveMessageSizeKB,
|
maxReceiveMessageSizeKB,
|
||||||
enabledLitigationHold,
|
enabledLitigationHold,
|
||||||
recoverabelItemsSpace,
|
recoverabelItemsSpace,
|
||||||
recoverabelItemsWarning}, this.SetMailboxAdvancedSettingsOperationCompleted, userState);
|
recoverabelItemsWarning,
|
||||||
|
litigationHoldUrl,
|
||||||
|
litigationHoldMsg}, this.SetMailboxAdvancedSettingsOperationCompleted, userState);
|
||||||
}
|
}
|
||||||
|
|
||||||
private void OnSetMailboxAdvancedSettingsOperationCompleted(object arg) {
|
private void OnSetMailboxAdvancedSettingsOperationCompleted(object arg) {
|
||||||
|
|
|
@ -435,14 +435,14 @@ namespace WebsitePanel.Server
|
||||||
[WebMethod, SoapHeader("settings")]
|
[WebMethod, SoapHeader("settings")]
|
||||||
public void SetMailboxAdvancedSettings(string organizationId, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync,
|
public void SetMailboxAdvancedSettings(string organizationId, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync,
|
||||||
long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB, int maxReceiveMessageSizeKB
|
long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, int maxRecipients, int maxSendMessageSizeKB, int maxReceiveMessageSizeKB
|
||||||
, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning)
|
, bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning, string litigationHoldUrl, string litigationHoldMsg)
|
||||||
{
|
{
|
||||||
try
|
try
|
||||||
{
|
{
|
||||||
LogStart("SetMailboxAdvancedSettings");
|
LogStart("SetMailboxAdvancedSettings");
|
||||||
ES.SetMailboxAdvancedSettings(organizationId, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync,
|
ES.SetMailboxAdvancedSettings(organizationId, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync,
|
||||||
issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB,
|
issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB,
|
||||||
enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning);
|
enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning, litigationHoldUrl, litigationHoldMsg);
|
||||||
LogEnd("SetMailboxAdvancedSettings");
|
LogEnd("SetMailboxAdvancedSettings");
|
||||||
}
|
}
|
||||||
catch (Exception ex)
|
catch (Exception ex)
|
||||||
|
|
|
@ -240,4 +240,10 @@
|
||||||
<data name="secLitigationHold.Text" xml:space="preserve">
|
<data name="secLitigationHold.Text" xml:space="preserve">
|
||||||
<value>Litigation Hold</value>
|
<value>Litigation Hold</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="lblLitigationHoldMsg.Text" xml:space="preserve">
|
||||||
|
<value>Litigation Hold Message:</value>
|
||||||
|
</data>
|
||||||
|
<data name="lblLitigationHoldUrl.Text" xml:space="preserve">
|
||||||
|
<value>Litigation Hold Url:</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -210,4 +210,10 @@
|
||||||
<data name="secLitigationHold.Text" xml:space="preserve">
|
<data name="secLitigationHold.Text" xml:space="preserve">
|
||||||
<value>Litigation Hold</value>
|
<value>Litigation Hold</value>
|
||||||
</data>
|
</data>
|
||||||
|
<data name="lblLitigationHoldMsg.Text" xml:space="preserve">
|
||||||
|
<value>Litigation Hold Message:</value>
|
||||||
|
</data>
|
||||||
|
<data name="lblLitigationHoldUrl.Text" xml:space="preserve">
|
||||||
|
<value>Litigation Hold Url:</value>
|
||||||
|
</data>
|
||||||
</root>
|
</root>
|
|
@ -206,6 +206,16 @@
|
||||||
<wsp:SizeBox id="recoverableItemsWarning" runat="server" ValidationGroup="CreateMailboxPlan" DisplayUnitsKB="false" DisplayUnitsMB="false" DisplayUnitsPct="true" RequireValidatorEnabled="true"/>
|
<wsp:SizeBox id="recoverableItemsWarning" runat="server" ValidationGroup="CreateMailboxPlan" DisplayUnitsKB="false" DisplayUnitsMB="false" DisplayUnitsPct="true" RequireValidatorEnabled="true"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="SubHead" style="width:150px;"><asp:Label ID="lblLitigationHoldUrl" runat="server" meta:resourcekey="lblLitigationHoldUrl" Text="Url:"></asp:Label></td>
|
||||||
|
<td class="Normal">
|
||||||
|
<asp:TextBox ID="txtLitigationHoldUrl" runat="server" Width="200" CssClass="NormalTextBox" MaxLength="255"></asp:TextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="SubHead" valign=top><asp:Label ID="lblLitigationHoldMsg" runat="server" meta:resourcekey="lblLitigationHoldMsg" Text="Page Content:"></asp:Label></td>
|
||||||
|
<td class="Normal" valign=top>
|
||||||
|
<asp:TextBox ID="txtLitigationHoldMsg" runat="server" Rows="10" TextMode="MultiLine" Width="100%" CssClass="NormalTextBox" Wrap="False" MaxLength="511"></asp:TextBox></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
|
|
|
@ -63,6 +63,8 @@ namespace WebsitePanel.Portal.ExchangeServer
|
||||||
chkEnableLitigationHold.Checked = plan.AllowLitigationHold;
|
chkEnableLitigationHold.Checked = plan.AllowLitigationHold;
|
||||||
recoverableItemsSpace.QuotaValue = plan.RecoverableItemsSpace;
|
recoverableItemsSpace.QuotaValue = plan.RecoverableItemsSpace;
|
||||||
recoverableItemsWarning.ValueKB = plan.RecoverableItemsWarningPct;
|
recoverableItemsWarning.ValueKB = plan.RecoverableItemsWarningPct;
|
||||||
|
txtLitigationHoldMsg.Text = plan.LitigationHoldMsg;
|
||||||
|
txtLitigationHoldUrl.Text = plan.LitigationHoldUrl;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -198,6 +200,9 @@ namespace WebsitePanel.Portal.ExchangeServer
|
||||||
plan.RecoverableItemsSpace = recoverableItemsSpace.QuotaValue;
|
plan.RecoverableItemsSpace = recoverableItemsSpace.QuotaValue;
|
||||||
plan.RecoverableItemsWarningPct = recoverableItemsWarning.ValueKB;
|
plan.RecoverableItemsWarningPct = recoverableItemsWarning.ValueKB;
|
||||||
if ((plan.RecoverableItemsWarningPct == 0)) plan.RecoverableItemsWarningPct = 100;
|
if ((plan.RecoverableItemsWarningPct == 0)) plan.RecoverableItemsWarningPct = 100;
|
||||||
|
plan.LitigationHoldMsg = txtLitigationHoldMsg.Text.Trim();
|
||||||
|
plan.LitigationHoldUrl = txtLitigationHoldUrl.Text.Trim();
|
||||||
|
|
||||||
|
|
||||||
int result = ES.Services.ExchangeServer.AddExchangeMailboxPlan(PanelRequest.ItemID,
|
int result = ES.Services.ExchangeServer.AddExchangeMailboxPlan(PanelRequest.ItemID,
|
||||||
plan);
|
plan);
|
||||||
|
|
|
@ -1,31 +1,4 @@
|
||||||
// Copyright (c) 2012, Outercurve Foundation.
|
//------------------------------------------------------------------------------
|
||||||
// All rights reserved.
|
|
||||||
//
|
|
||||||
// Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
// are permitted provided that the following conditions are met:
|
|
||||||
//
|
|
||||||
// - Redistributions of source code must retain the above copyright notice, this
|
|
||||||
// list of conditions and the following disclaimer.
|
|
||||||
//
|
|
||||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
// this list of conditions and the following disclaimer in the documentation
|
|
||||||
// and/or other materials provided with the distribution.
|
|
||||||
//
|
|
||||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
|
||||||
// contributors may be used to endorse or promote products derived from this
|
|
||||||
// software without specific prior written permission.
|
|
||||||
//
|
|
||||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
//
|
//
|
||||||
|
@ -471,6 +444,42 @@ namespace WebsitePanel.Portal.ExchangeServer {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::WebsitePanel.Portal.ExchangeServer.UserControls.SizeBox recoverableItemsWarning;
|
protected global::WebsitePanel.Portal.ExchangeServer.UserControls.SizeBox recoverableItemsWarning;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblLitigationHoldUrl control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblLitigationHoldUrl;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtLitigationHoldUrl control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.TextBox txtLitigationHoldUrl;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblLitigationHoldMsg control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblLitigationHoldMsg;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtLitigationHoldMsg control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.TextBox txtLitigationHoldMsg;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnAdd control.
|
/// btnAdd control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -241,6 +241,16 @@
|
||||||
<wsp:SizeBox id="recoverableItemsWarning" runat="server" ValidationGroup="CreateMailboxPlan" DisplayUnitsKB="false" DisplayUnitsMB="false" DisplayUnitsPct="true" RequireValidatorEnabled="true"/>
|
<wsp:SizeBox id="recoverableItemsWarning" runat="server" ValidationGroup="CreateMailboxPlan" DisplayUnitsKB="false" DisplayUnitsMB="false" DisplayUnitsPct="true" RequireValidatorEnabled="true"/>
|
||||||
</td>
|
</td>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="FormLabel200" align="right"><asp:Label ID="lblLitigationHoldUrl" runat="server" meta:resourcekey="lblLitigationHoldUrl" Text="Url:"></asp:Label></td>
|
||||||
|
<td class="Normal">
|
||||||
|
<asp:TextBox ID="txtLitigationHoldUrl" runat="server" Width="200" CssClass="NormalTextBox" MaxLength="255"></asp:TextBox></td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<td class="FormLabel200" align="right"><asp:Label ID="lblLitigationHoldMsg" runat="server" meta:resourcekey="lblLitigationHoldMsg" Text="Page Content:"></asp:Label></td>
|
||||||
|
<td class="Normal" valign=top>
|
||||||
|
<asp:TextBox ID="txtLitigationHoldMsg" runat="server" Rows="10" TextMode="MultiLine" Width="100%" CssClass="NormalTextBox" Wrap="False" MaxLength="511"></asp:TextBox></td>
|
||||||
|
</tr>
|
||||||
|
|
||||||
</table>
|
</table>
|
||||||
</asp:Panel>
|
</asp:Panel>
|
||||||
|
|
|
@ -124,6 +124,9 @@ namespace WebsitePanel.Portal
|
||||||
plan.RecoverableItemsSpace = recoverableItemsSpace.QuotaValue;
|
plan.RecoverableItemsSpace = recoverableItemsSpace.QuotaValue;
|
||||||
plan.RecoverableItemsWarningPct = recoverableItemsWarning.ValueKB;
|
plan.RecoverableItemsWarningPct = recoverableItemsWarning.ValueKB;
|
||||||
if ((plan.RecoverableItemsWarningPct == 0)) plan.RecoverableItemsWarningPct = 100;
|
if ((plan.RecoverableItemsWarningPct == 0)) plan.RecoverableItemsWarningPct = 100;
|
||||||
|
plan.LitigationHoldMsg = txtLitigationHoldMsg.Text.Trim();
|
||||||
|
plan.LitigationHoldUrl = txtLitigationHoldUrl.Text.Trim();
|
||||||
|
|
||||||
|
|
||||||
if (PanelSecurity.SelectedUser.Role == UserRole.Administrator)
|
if (PanelSecurity.SelectedUser.Role == UserRole.Administrator)
|
||||||
plan.MailboxPlanType = (int)ExchangeMailboxPlanType.Administrator;
|
plan.MailboxPlanType = (int)ExchangeMailboxPlanType.Administrator;
|
||||||
|
@ -225,6 +228,9 @@ namespace WebsitePanel.Portal
|
||||||
chkEnableLitigationHold.Checked = false;
|
chkEnableLitigationHold.Checked = false;
|
||||||
recoverableItemsSpace.QuotaValue = 0;
|
recoverableItemsSpace.QuotaValue = 0;
|
||||||
recoverableItemsWarning.ValueKB = -1;
|
recoverableItemsWarning.ValueKB = -1;
|
||||||
|
txtLitigationHoldMsg.Text = string.Empty;
|
||||||
|
txtLitigationHoldUrl.Text = string.Empty;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
btnUpdateMailboxPlan.Enabled = (string.IsNullOrEmpty(txtMailboxPlan.Text)) ? false : true;
|
btnUpdateMailboxPlan.Enabled = (string.IsNullOrEmpty(txtMailboxPlan.Text)) ? false : true;
|
||||||
|
@ -277,6 +283,8 @@ namespace WebsitePanel.Portal
|
||||||
chkEnableLitigationHold.Checked = plan.AllowLitigationHold;
|
chkEnableLitigationHold.Checked = plan.AllowLitigationHold;
|
||||||
recoverableItemsSpace.QuotaValue = plan.RecoverableItemsSpace;
|
recoverableItemsSpace.QuotaValue = plan.RecoverableItemsSpace;
|
||||||
recoverableItemsWarning.ValueKB = plan.RecoverableItemsWarningPct;
|
recoverableItemsWarning.ValueKB = plan.RecoverableItemsWarningPct;
|
||||||
|
txtLitigationHoldMsg.Text = plan.LitigationHoldMsg;
|
||||||
|
txtLitigationHoldUrl.Text = plan.LitigationHoldUrl;
|
||||||
|
|
||||||
btnUpdateMailboxPlan.Enabled = (string.IsNullOrEmpty(txtMailboxPlan.Text)) ? false : true;
|
btnUpdateMailboxPlan.Enabled = (string.IsNullOrEmpty(txtMailboxPlan.Text)) ? false : true;
|
||||||
|
|
||||||
|
@ -383,6 +391,8 @@ namespace WebsitePanel.Portal
|
||||||
plan.RecoverableItemsSpace = recoverableItemsSpace.QuotaValue;
|
plan.RecoverableItemsSpace = recoverableItemsSpace.QuotaValue;
|
||||||
plan.RecoverableItemsWarningPct = recoverableItemsWarning.ValueKB;
|
plan.RecoverableItemsWarningPct = recoverableItemsWarning.ValueKB;
|
||||||
if ((plan.RecoverableItemsWarningPct == 0)) plan.RecoverableItemsWarningPct = 100;
|
if ((plan.RecoverableItemsWarningPct == 0)) plan.RecoverableItemsWarningPct = 100;
|
||||||
|
plan.LitigationHoldMsg = txtLitigationHoldMsg.Text.Trim();
|
||||||
|
plan.LitigationHoldUrl = txtLitigationHoldUrl.Text.Trim();
|
||||||
|
|
||||||
|
|
||||||
if (PanelSecurity.SelectedUser.Role == UserRole.Administrator)
|
if (PanelSecurity.SelectedUser.Role == UserRole.Administrator)
|
||||||
|
|
|
@ -1,31 +1,4 @@
|
||||||
// Copyright (c) 2012, Outercurve Foundation.
|
//------------------------------------------------------------------------------
|
||||||
// All rights reserved.
|
|
||||||
//
|
|
||||||
// Redistribution and use in source and binary forms, with or without modification,
|
|
||||||
// are permitted provided that the following conditions are met:
|
|
||||||
//
|
|
||||||
// - Redistributions of source code must retain the above copyright notice, this
|
|
||||||
// list of conditions and the following disclaimer.
|
|
||||||
//
|
|
||||||
// - Redistributions in binary form must reproduce the above copyright notice,
|
|
||||||
// this list of conditions and the following disclaimer in the documentation
|
|
||||||
// and/or other materials provided with the distribution.
|
|
||||||
//
|
|
||||||
// - Neither the name of the Outercurve Foundation nor the names of its
|
|
||||||
// contributors may be used to endorse or promote products derived from this
|
|
||||||
// software without specific prior written permission.
|
|
||||||
//
|
|
||||||
// THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
|
|
||||||
// ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
|
|
||||||
// WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
|
||||||
// DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
|
|
||||||
// ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
|
|
||||||
// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
|
|
||||||
// LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
|
|
||||||
// ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
|
||||||
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
||||||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
||||||
//------------------------------------------------------------------------------
|
|
||||||
// <auto-generated>
|
// <auto-generated>
|
||||||
// This code was generated by a tool.
|
// This code was generated by a tool.
|
||||||
//
|
//
|
||||||
|
@ -444,6 +417,42 @@ namespace WebsitePanel.Portal {
|
||||||
/// </remarks>
|
/// </remarks>
|
||||||
protected global::WebsitePanel.Portal.ExchangeServer.UserControls.SizeBox recoverableItemsWarning;
|
protected global::WebsitePanel.Portal.ExchangeServer.UserControls.SizeBox recoverableItemsWarning;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblLitigationHoldUrl control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblLitigationHoldUrl;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtLitigationHoldUrl control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.TextBox txtLitigationHoldUrl;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// lblLitigationHoldMsg control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.Label lblLitigationHoldMsg;
|
||||||
|
|
||||||
|
/// <summary>
|
||||||
|
/// txtLitigationHoldMsg control.
|
||||||
|
/// </summary>
|
||||||
|
/// <remarks>
|
||||||
|
/// Auto-generated field.
|
||||||
|
/// To modify move field declaration from designer file to code-behind file.
|
||||||
|
/// </remarks>
|
||||||
|
protected global::System.Web.UI.WebControls.TextBox txtLitigationHoldMsg;
|
||||||
|
|
||||||
/// <summary>
|
/// <summary>
|
||||||
/// btnAddMailboxPlan control.
|
/// btnAddMailboxPlan control.
|
||||||
/// </summary>
|
/// </summary>
|
||||||
|
|
|
@ -17,8 +17,8 @@ REM %WSE_CLEAN% .\WebsitePanel.Server.Client\DatabaseServerProxy.cs
|
||||||
REM %WSDL% %SERVER_URL%/DNSServer.asmx /out:.\WebsitePanel.Server.Client\DnsServerProxy.cs /namespace:WebsitePanel.Providers.DNS /type:webClient /fields
|
REM %WSDL% %SERVER_URL%/DNSServer.asmx /out:.\WebsitePanel.Server.Client\DnsServerProxy.cs /namespace:WebsitePanel.Providers.DNS /type:webClient /fields
|
||||||
REM %WSE_CLEAN% .\WebsitePanel.Server.Client\DnsServerProxy.cs
|
REM %WSE_CLEAN% .\WebsitePanel.Server.Client\DnsServerProxy.cs
|
||||||
|
|
||||||
REM %WSDL% %SERVER_URL%/ExchangeServer.asmx /out:.\WebsitePanel.Server.Client\ExchangeServerProxy.cs /namespace:WebsitePanel.Providers.Exchange /type:webClient /fields
|
%WSDL% %SERVER_URL%/ExchangeServer.asmx /out:.\WebsitePanel.Server.Client\ExchangeServerProxy.cs /namespace:WebsitePanel.Providers.Exchange /type:webClient /fields
|
||||||
REM %WSE_CLEAN% .\WebsitePanel.Server.Client\ExchangeServerProxy.cs
|
%WSE_CLEAN% .\WebsitePanel.Server.Client\ExchangeServerProxy.cs
|
||||||
|
|
||||||
REM %WSDL% %SERVER_URL%/ExchangeServerHostedEdition.asmx /out:.\WebsitePanel.Server.Client\ExchangeServerHostedEditionProxy.cs /namespace:WebsitePanel.Providers.ExchangeHostedEdition /type:webClient /fields
|
REM %WSDL% %SERVER_URL%/ExchangeServerHostedEdition.asmx /out:.\WebsitePanel.Server.Client\ExchangeServerHostedEditionProxy.cs /namespace:WebsitePanel.Providers.ExchangeHostedEdition /type:webClient /fields
|
||||||
REM %WSE_CLEAN% .\WebsitePanel.Server.Client\ExchangeServerHostedEditionProxy.cs
|
REM %WSE_CLEAN% .\WebsitePanel.Server.Client\ExchangeServerHostedEditionProxy.cs
|
||||||
|
@ -35,8 +35,8 @@ REM %WSE_CLEAN% .\WebsitePanel.Server.Client\OCSServerProxy.cs
|
||||||
REM %WSDL% %SERVER_URL%/OperatingSystem.asmx /out:.\WebsitePanel.Server.Client\OperatingSystemProxy.cs /namespace:WebsitePanel.Providers.OS /type:webClient /fields
|
REM %WSDL% %SERVER_URL%/OperatingSystem.asmx /out:.\WebsitePanel.Server.Client\OperatingSystemProxy.cs /namespace:WebsitePanel.Providers.OS /type:webClient /fields
|
||||||
REM %WSE_CLEAN% .\WebsitePanel.Server.Client\OperatingSystemProxy.cs
|
REM %WSE_CLEAN% .\WebsitePanel.Server.Client\OperatingSystemProxy.cs
|
||||||
|
|
||||||
%WSDL% %SERVER_URL%/Organizations.asmx /out:.\WebsitePanel.Server.Client\OrganizationProxy.cs /namespace:WebsitePanel.Providers.HostedSolution /type:webClient /fields
|
REM %WSDL% %SERVER_URL%/Organizations.asmx /out:.\WebsitePanel.Server.Client\OrganizationProxy.cs /namespace:WebsitePanel.Providers.HostedSolution /type:webClient /fields
|
||||||
%WSE_CLEAN% .\WebsitePanel.Server.Client\OrganizationProxy.cs
|
REM %WSE_CLEAN% .\WebsitePanel.Server.Client\OrganizationProxy.cs
|
||||||
|
|
||||||
REM %WSDL% %SERVER_URL%/ServiceProvider.asmx /out:.\WebsitePanel.Server.Client\ServiceProviderProxy.cs /namespace:WebsitePanel.Providers /type:webClient /fields
|
REM %WSDL% %SERVER_URL%/ServiceProvider.asmx /out:.\WebsitePanel.Server.Client\ServiceProviderProxy.cs /namespace:WebsitePanel.Providers /type:webClient /fields
|
||||||
REM %WSE_CLEAN% .\WebsitePanel.Server.Client\ServiceProviderProxy.cs
|
REM %WSE_CLEAN% .\WebsitePanel.Server.Client\ServiceProviderProxy.cs
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue