Fix archiving

This commit is contained in:
dev_amdtel 2014-05-15 20:52:56 +04:00
parent 2170367f8f
commit 56cf823559
19 changed files with 371 additions and 179 deletions

View file

@ -1,4 +1,4 @@
// Copyright (c) 2012, Outercurve Foundation.
// Copyright (c) 2014, Outercurve Foundation.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
@ -33,7 +33,6 @@ using WebsitePanel.Providers.HostedSolution;
using WebsitePanel.Providers.OS;
using WebsitePanel.Providers.ResultObjects;
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@ -3436,7 +3435,7 @@ namespace WebsitePanel.EnterpriseServer {
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateMailbox", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int CreateMailbox(int itemId, int accountId, ExchangeAccountType accountType, string accountName, string displayName, string name, string domain, string password, bool sendSetupInstructions, string setupInstructionMailAddress, int mailboxPlanId, int archivedPlanId, string subscriberNumber) {
public int CreateMailbox(int itemId, int accountId, ExchangeAccountType accountType, string accountName, string displayName, string name, string domain, string password, bool sendSetupInstructions, string setupInstructionMailAddress, int mailboxPlanId, int archivedPlanId, string subscriberNumber, bool EnableArchiving) {
object[] results = this.Invoke("CreateMailbox", new object[] {
itemId,
accountId,
@ -3450,12 +3449,29 @@ namespace WebsitePanel.EnterpriseServer {
setupInstructionMailAddress,
mailboxPlanId,
archivedPlanId,
subscriberNumber});
subscriberNumber,
EnableArchiving});
return ((int)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginCreateMailbox(int itemId, int accountId, ExchangeAccountType accountType, string accountName, string displayName, string name, string domain, string password, bool sendSetupInstructions, string setupInstructionMailAddress, int mailboxPlanId, int archivedPlanId, string subscriberNumber, System.AsyncCallback callback, object asyncState) {
public System.IAsyncResult BeginCreateMailbox(
int itemId,
int accountId,
ExchangeAccountType accountType,
string accountName,
string displayName,
string name,
string domain,
string password,
bool sendSetupInstructions,
string setupInstructionMailAddress,
int mailboxPlanId,
int archivedPlanId,
string subscriberNumber,
bool EnableArchiving,
System.AsyncCallback callback,
object asyncState) {
return this.BeginInvoke("CreateMailbox", new object[] {
itemId,
accountId,
@ -3469,7 +3485,8 @@ namespace WebsitePanel.EnterpriseServer {
setupInstructionMailAddress,
mailboxPlanId,
archivedPlanId,
subscriberNumber}, callback, asyncState);
subscriberNumber,
EnableArchiving}, callback, asyncState);
}
/// <remarks/>
@ -3479,12 +3496,12 @@ namespace WebsitePanel.EnterpriseServer {
}
/// <remarks/>
public void CreateMailboxAsync(int itemId, int accountId, ExchangeAccountType accountType, string accountName, string displayName, string name, string domain, string password, bool sendSetupInstructions, string setupInstructionMailAddress, int mailboxPlanId, int archivedPlanId, string subscriberNumber) {
this.CreateMailboxAsync(itemId, accountId, accountType, accountName, displayName, name, domain, password, sendSetupInstructions, setupInstructionMailAddress, mailboxPlanId, archivedPlanId, subscriberNumber, null);
public void CreateMailboxAsync(int itemId, int accountId, ExchangeAccountType accountType, string accountName, string displayName, string name, string domain, string password, bool sendSetupInstructions, string setupInstructionMailAddress, int mailboxPlanId, int archivedPlanId, string subscriberNumber, bool EnableArchiving) {
this.CreateMailboxAsync(itemId, accountId, accountType, accountName, displayName, name, domain, password, sendSetupInstructions, setupInstructionMailAddress, mailboxPlanId, archivedPlanId, subscriberNumber, EnableArchiving, null);
}
/// <remarks/>
public void CreateMailboxAsync(int itemId, int accountId, ExchangeAccountType accountType, string accountName, string displayName, string name, string domain, string password, bool sendSetupInstructions, string setupInstructionMailAddress, int mailboxPlanId, int archivedPlanId, string subscriberNumber, object userState) {
public void CreateMailboxAsync(int itemId, int accountId, ExchangeAccountType accountType, string accountName, string displayName, string name, string domain, string password, bool sendSetupInstructions, string setupInstructionMailAddress, int mailboxPlanId, int archivedPlanId, string subscriberNumber, bool EnableArchiving, object userState) {
if ((this.CreateMailboxOperationCompleted == null)) {
this.CreateMailboxOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateMailboxOperationCompleted);
}
@ -3501,7 +3518,8 @@ namespace WebsitePanel.EnterpriseServer {
setupInstructionMailAddress,
mailboxPlanId,
archivedPlanId,
subscriberNumber}, this.CreateMailboxOperationCompleted, userState);
subscriberNumber,
EnableArchiving}, this.CreateMailboxOperationCompleted, userState);
}
private void OnCreateMailboxOperationCompleted(object arg) {
@ -4033,22 +4051,24 @@ namespace WebsitePanel.EnterpriseServer {
/// <remarks/>
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetExchangeMailboxPlan", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public int SetExchangeMailboxPlan(int itemId, int accountId, int mailboxPlanId, int archivePlanId) {
public int SetExchangeMailboxPlan(int itemId, int accountId, int mailboxPlanId, int archivePlanId, bool EnableArchiving) {
object[] results = this.Invoke("SetExchangeMailboxPlan", new object[] {
itemId,
accountId,
mailboxPlanId,
archivePlanId});
archivePlanId,
EnableArchiving});
return ((int)(results[0]));
}
/// <remarks/>
public System.IAsyncResult BeginSetExchangeMailboxPlan(int itemId, int accountId, int mailboxPlanId, int archivePlanId, System.AsyncCallback callback, object asyncState) {
public System.IAsyncResult BeginSetExchangeMailboxPlan(int itemId, int accountId, int mailboxPlanId, int archivePlanId, bool EnableArchiving, System.AsyncCallback callback, object asyncState) {
return this.BeginInvoke("SetExchangeMailboxPlan", new object[] {
itemId,
accountId,
mailboxPlanId,
archivePlanId}, callback, asyncState);
archivePlanId,
EnableArchiving}, callback, asyncState);
}
/// <remarks/>
@ -4058,12 +4078,12 @@ namespace WebsitePanel.EnterpriseServer {
}
/// <remarks/>
public void SetExchangeMailboxPlanAsync(int itemId, int accountId, int mailboxPlanId, int archivePlanId) {
this.SetExchangeMailboxPlanAsync(itemId, accountId, mailboxPlanId, archivePlanId, null);
public void SetExchangeMailboxPlanAsync(int itemId, int accountId, int mailboxPlanId, int archivePlanId, bool EnableArchiving) {
this.SetExchangeMailboxPlanAsync(itemId, accountId, mailboxPlanId, archivePlanId, EnableArchiving, null);
}
/// <remarks/>
public void SetExchangeMailboxPlanAsync(int itemId, int accountId, int mailboxPlanId, int archivePlanId, object userState) {
public void SetExchangeMailboxPlanAsync(int itemId, int accountId, int mailboxPlanId, int archivePlanId, bool EnableArchiving, object userState) {
if ((this.SetExchangeMailboxPlanOperationCompleted == null)) {
this.SetExchangeMailboxPlanOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetExchangeMailboxPlanOperationCompleted);
}
@ -4071,7 +4091,8 @@ namespace WebsitePanel.EnterpriseServer {
itemId,
accountId,
mailboxPlanId,
archivePlanId}, this.SetExchangeMailboxPlanOperationCompleted, userState);
archivePlanId,
EnableArchiving}, this.SetExchangeMailboxPlanOperationCompleted, userState);
}
private void OnSetExchangeMailboxPlanOperationCompleted(object arg) {