Exchange archiving

This commit is contained in:
dev_amdtel 2014-04-14 23:12:27 +04:00
parent 5f951183e3
commit 7755217dfb
21 changed files with 1485 additions and 265 deletions

View file

@ -1,4 +1,4 @@
// Copyright (c) 2012, Outercurve Foundation.
// Copyright (c) 2012-2014, Outercurve Foundation.
// All rights reserved.
//
// Redistribution and use in source and binary forms, with or without modification,
@ -26,6 +26,8 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
using WebsitePanel.Providers.HostedSolution;
//------------------------------------------------------------------------------
// <auto-generated>
// This code was generated by a tool.
@ -48,7 +50,6 @@ namespace WebsitePanel.Providers.Exchange
using System;
using System.Diagnostics;
using WebsitePanel.Providers.HostedSolution;
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
@ -74,6 +75,16 @@ namespace WebsitePanel.Providers.Exchange
private System.Threading.SendOrPostCallback RemoveDeviceOperationCompleted;
private System.Threading.SendOrPostCallback SetMailBoxArchivingOperationCompleted;
private System.Threading.SendOrPostCallback SetRetentionPolicyTagOperationCompleted;
private System.Threading.SendOrPostCallback RemoveRetentionPolicyTagOperationCompleted;
private System.Threading.SendOrPostCallback SetRetentionPolicyOperationCompleted;
private System.Threading.SendOrPostCallback RemoveRetentionPolicyOperationCompleted;
private System.Threading.SendOrPostCallback CheckAccountCredentialsOperationCompleted;
private System.Threading.SendOrPostCallback ExtendToExchangeOrganizationOperationCompleted;
@ -203,7 +214,7 @@ namespace WebsitePanel.Providers.Exchange
/// <remarks/>
public ExchangeServer()
{
this.Url = "http://localhost:9003/ExchangeServer.asmx";
this.Url = "http://localhost:9004/ExchangeServer.asmx";
}
/// <remarks/>
@ -224,6 +235,21 @@ namespace WebsitePanel.Providers.Exchange
/// <remarks/>
public event RemoveDeviceCompletedEventHandler RemoveDeviceCompleted;
/// <remarks/>
public event SetMailBoxArchivingCompletedEventHandler SetMailBoxArchivingCompleted;
/// <remarks/>
public event SetRetentionPolicyTagCompletedEventHandler SetRetentionPolicyTagCompleted;
/// <remarks/>
public event RemoveRetentionPolicyTagCompletedEventHandler RemoveRetentionPolicyTagCompleted;
/// <remarks/>
public event SetRetentionPolicyCompletedEventHandler SetRetentionPolicyCompleted;
/// <remarks/>
public event RemoveRetentionPolicyCompletedEventHandler RemoveRetentionPolicyCompleted;
/// <remarks/>
public event CheckAccountCredentialsCompletedEventHandler CheckAccountCredentialsCompleted;
@ -824,6 +850,273 @@ namespace WebsitePanel.Providers.Exchange
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailBoxArchiving", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy)
{
this.Invoke("SetMailBoxArchiving", new object[] {
organizationId,
accountName,
archive,
archiveQuotaKB,
archiveWarningQuotaKB,
RetentionPolicy});
}
/// <remarks/>
public System.IAsyncResult BeginSetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("SetMailBoxArchiving", new object[] {
organizationId,
accountName,
archive,
archiveQuotaKB,
archiveWarningQuotaKB,
RetentionPolicy}, callback, asyncState);
}
/// <remarks/>
public void EndSetMailBoxArchiving(System.IAsyncResult asyncResult)
{
this.EndInvoke(asyncResult);
}
/// <remarks/>
public void SetMailBoxArchivingAsync(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy)
{
this.SetMailBoxArchivingAsync(organizationId, accountName, archive, archiveQuotaKB, archiveWarningQuotaKB, RetentionPolicy, null);
}
/// <remarks/>
public void SetMailBoxArchivingAsync(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy, object userState)
{
if ((this.SetMailBoxArchivingOperationCompleted == null))
{
this.SetMailBoxArchivingOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailBoxArchivingOperationCompleted);
}
this.InvokeAsync("SetMailBoxArchiving", new object[] {
organizationId,
accountName,
archive,
archiveQuotaKB,
archiveWarningQuotaKB,
RetentionPolicy}, this.SetMailBoxArchivingOperationCompleted, userState);
}
private void OnSetMailBoxArchivingOperationCompleted(object arg)
{
if ((this.SetMailBoxArchivingCompleted != null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetMailBoxArchivingCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetRetentionPolicyTag", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetRetentionPolicyTag(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction)
{
this.Invoke("SetRetentionPolicyTag", new object[] {
Identity,
Type,
AgeLimitForRetention,
RetentionAction});
}
/// <remarks/>
public System.IAsyncResult BeginSetRetentionPolicyTag(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("SetRetentionPolicyTag", new object[] {
Identity,
Type,
AgeLimitForRetention,
RetentionAction}, callback, asyncState);
}
/// <remarks/>
public void EndSetRetentionPolicyTag(System.IAsyncResult asyncResult)
{
this.EndInvoke(asyncResult);
}
/// <remarks/>
public void SetRetentionPolicyTagAsync(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction)
{
this.SetRetentionPolicyTagAsync(Identity, Type, AgeLimitForRetention, RetentionAction, null);
}
/// <remarks/>
public void SetRetentionPolicyTagAsync(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction, object userState)
{
if ((this.SetRetentionPolicyTagOperationCompleted == null))
{
this.SetRetentionPolicyTagOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetRetentionPolicyTagOperationCompleted);
}
this.InvokeAsync("SetRetentionPolicyTag", new object[] {
Identity,
Type,
AgeLimitForRetention,
RetentionAction}, this.SetRetentionPolicyTagOperationCompleted, userState);
}
private void OnSetRetentionPolicyTagOperationCompleted(object arg)
{
if ((this.SetRetentionPolicyTagCompleted != null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetRetentionPolicyTagCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveRetentionPolicyTag", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void RemoveRetentionPolicyTag(string Identity)
{
this.Invoke("RemoveRetentionPolicyTag", new object[] {
Identity});
}
/// <remarks/>
public System.IAsyncResult BeginRemoveRetentionPolicyTag(string Identity, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("RemoveRetentionPolicyTag", new object[] {
Identity}, callback, asyncState);
}
/// <remarks/>
public void EndRemoveRetentionPolicyTag(System.IAsyncResult asyncResult)
{
this.EndInvoke(asyncResult);
}
/// <remarks/>
public void RemoveRetentionPolicyTagAsync(string Identity)
{
this.RemoveRetentionPolicyTagAsync(Identity, null);
}
/// <remarks/>
public void RemoveRetentionPolicyTagAsync(string Identity, object userState)
{
if ((this.RemoveRetentionPolicyTagOperationCompleted == null))
{
this.RemoveRetentionPolicyTagOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveRetentionPolicyTagOperationCompleted);
}
this.InvokeAsync("RemoveRetentionPolicyTag", new object[] {
Identity}, this.RemoveRetentionPolicyTagOperationCompleted, userState);
}
private void OnRemoveRetentionPolicyTagOperationCompleted(object arg)
{
if ((this.RemoveRetentionPolicyTagCompleted != null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.RemoveRetentionPolicyTagCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetRetentionPolicy", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void SetRetentionPolicy(string Identity, string[] RetentionPolicyTagLinks)
{
this.Invoke("SetRetentionPolicy", new object[] {
Identity,
RetentionPolicyTagLinks});
}
/// <remarks/>
public System.IAsyncResult BeginSetRetentionPolicy(string Identity, string[] RetentionPolicyTagLinks, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("SetRetentionPolicy", new object[] {
Identity,
RetentionPolicyTagLinks}, callback, asyncState);
}
/// <remarks/>
public void EndSetRetentionPolicy(System.IAsyncResult asyncResult)
{
this.EndInvoke(asyncResult);
}
/// <remarks/>
public void SetRetentionPolicyAsync(string Identity, string[] RetentionPolicyTagLinks)
{
this.SetRetentionPolicyAsync(Identity, RetentionPolicyTagLinks, null);
}
/// <remarks/>
public void SetRetentionPolicyAsync(string Identity, string[] RetentionPolicyTagLinks, object userState)
{
if ((this.SetRetentionPolicyOperationCompleted == null))
{
this.SetRetentionPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetRetentionPolicyOperationCompleted);
}
this.InvokeAsync("SetRetentionPolicy", new object[] {
Identity,
RetentionPolicyTagLinks}, this.SetRetentionPolicyOperationCompleted, userState);
}
private void OnSetRetentionPolicyOperationCompleted(object arg)
{
if ((this.SetRetentionPolicyCompleted != null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.SetRetentionPolicyCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveRetentionPolicy", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
public void RemoveRetentionPolicy(string Identity)
{
this.Invoke("RemoveRetentionPolicy", new object[] {
Identity});
}
/// <remarks/>
public System.IAsyncResult BeginRemoveRetentionPolicy(string Identity, System.AsyncCallback callback, object asyncState)
{
return this.BeginInvoke("RemoveRetentionPolicy", new object[] {
Identity}, callback, asyncState);
}
/// <remarks/>
public void EndRemoveRetentionPolicy(System.IAsyncResult asyncResult)
{
this.EndInvoke(asyncResult);
}
/// <remarks/>
public void RemoveRetentionPolicyAsync(string Identity)
{
this.RemoveRetentionPolicyAsync(Identity, null);
}
/// <remarks/>
public void RemoveRetentionPolicyAsync(string Identity, object userState)
{
if ((this.RemoveRetentionPolicyOperationCompleted == null))
{
this.RemoveRetentionPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveRetentionPolicyOperationCompleted);
}
this.InvokeAsync("RemoveRetentionPolicy", new object[] {
Identity}, this.RemoveRetentionPolicyOperationCompleted, userState);
}
private void OnRemoveRetentionPolicyOperationCompleted(object arg)
{
if ((this.RemoveRetentionPolicyCompleted != null))
{
System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg));
this.RemoveRetentionPolicyCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState));
}
}
/// <remarks/>
[System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")]
[System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CheckAccountCredentials", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)]
@ -4787,6 +5080,26 @@ namespace WebsitePanel.Providers.Exchange
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void RemoveDeviceCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void SetMailBoxArchivingCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void SetRetentionPolicyTagCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void RemoveRetentionPolicyTagCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void SetRetentionPolicyCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void RemoveRetentionPolicyCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e);
/// <remarks/>
[System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")]
public delegate void CheckAccountCredentialsCompletedEventHandler(object sender, CheckAccountCredentialsCompletedEventArgs e);