diff --git a/WebsitePanel/Database/install_db.sql b/WebsitePanel/Database/install_db.sql index c28f6f0b..5ce2c55b 100644 --- a/WebsitePanel/Database/install_db.sql +++ b/WebsitePanel/Database/install_db.sql @@ -35236,12 +35236,15 @@ EXEC sp_xml_preparedocument @idoc OUTPUT, @XmlProperties DELETE FROM ServiceItemProperties WHERE ItemID = @ItemID -INSERT INTO ServiceItemProperties -( - ItemID, - PropertyName, - PropertyValue -) +-- Add the xml data into a temp table for the capability and robust +IF OBJECT_ID('tempdb..#TempTable') IS NOT NULL DROP TABLE #TempTable + +CREATE TABLE #TempTable( + ItemID int, + PropertyName nvarchar(50), + PropertyValue nvarchar(3000)) + +INSERT INTO #TempTable (ItemID, PropertyName, PropertyValue) SELECT @ItemID, PropertyName, @@ -35252,6 +35255,21 @@ FROM OPENXML(@idoc, '/properties/property',1) WITH PropertyValue nvarchar(3000) '@value' ) as PV +-- Move data from temp table to real table +INSERT INTO ServiceItemProperties +( + ItemID, + PropertyName, + PropertyValue +) +SELECT + ItemID, + PropertyName, + PropertyValue +FROM #TempTable + +DROP TABLE #TempTable + -- remove document exec sp_xml_removedocument @idoc diff --git a/WebsitePanel/Database/update_db.sql b/WebsitePanel/Database/update_db.sql index a68e2c13..02063d63 100644 --- a/WebsitePanel/Database/update_db.sql +++ b/WebsitePanel/Database/update_db.sql @@ -2416,6 +2416,12 @@ INSERT [dbo].[Quotas] ([QuotaID], [GroupID],[QuotaOrder], [QuotaName], [QuotaDe END GO +IF NOT EXISTS (SELECT * FROM [dbo].[Quotas] WHERE [QuotaName] = 'RDS.Collections') +BEGIN +INSERT [dbo].[Quotas] ([QuotaID], [GroupID],[QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID]) VALUES (491, 45, 2, N'RDS.Collections',N'Remote Desktop Servers',2, 0 , NULL) +END +GO + -- RDS Provider IF NOT EXISTS (SELECT * FROM [dbo].[Providers] WHERE [DisplayName] = 'Remote Desktop Services Windows 2012') @@ -5462,6 +5468,29 @@ CREATE TABLE RDSCollections ) GO +IF NOT EXISTS(SELECT * FROM INFORMATION_SCHEMA.COLUMNS WHERE TABLE_NAME = 'RDSCollections' AND COLUMN_NAME = 'DisplayName') +BEGIN + ALTER TABLE [dbo].[RDSCollections] + ADD DisplayName NVARCHAR(255) +END +GO + +UPDATE [dbo].[RDSCollections] SET DisplayName = [Name] WHERE DisplayName IS NULL + + +ALTER TABLE [dbo].[RDSCollectionUsers] +DROP CONSTRAINT [FK_RDSCollectionUsers_RDSCollectionId] +GO + + +ALTER TABLE [dbo].[RDSCollectionUsers] +DROP CONSTRAINT [FK_RDSCollectionUsers_UserId] +GO + +ALTER TABLE [dbo].[RDSServers] +DROP CONSTRAINT [FK_RDSServers_RDSCollectionId] +GO + ALTER TABLE [dbo].[RDSCollectionUsers] WITH CHECK ADD CONSTRAINT [FK_RDSCollectionUsers_RDSCollectionId] FOREIGN KEY([RDSCollectionId]) REFERENCES [dbo].[RDSCollections] ([ID]) ON DELETE CASCADE @@ -5730,7 +5759,8 @@ SELECT CR.ID, CR.ItemID, CR.Name, - CR.Description + CR.Description, + CR.DisplayName FROM @RDSCollections AS C INNER JOIN RDSCollections AS CR ON C.RDSCollectionId = CR.ID WHERE C.ItemPosition BETWEEN @StartRow AND @EndRow' @@ -5763,7 +5793,8 @@ SELECT Id, ItemId, Name, - Description + Description, + DisplayName FROM RDSCollections WHERE ItemID = @ItemID GO @@ -5782,9 +5813,10 @@ SELECT TOP 1 Id, Name, ItemId, - Description + Description, + DisplayName FROM RDSCollections - WHERE Name = @Name + WHERE DisplayName = @Name GO @@ -5801,7 +5833,8 @@ SELECT TOP 1 Id, ItemId, Name, - Description + Description, + DisplayName FROM RDSCollections WHERE ID = @ID GO @@ -5815,7 +5848,8 @@ CREATE PROCEDURE [dbo].[AddRDSCollection] @RDSCollectionID INT OUTPUT, @ItemID INT, @Name NVARCHAR(255), - @Description NVARCHAR(255) + @Description NVARCHAR(255), + @DisplayName NVARCHAR(255) ) AS @@ -5823,13 +5857,15 @@ INSERT INTO RDSCollections ( ItemID, Name, - Description + Description, + DisplayName ) VALUES ( @ItemID, @Name, - @Description + @Description, + @DisplayName ) SET @RDSCollectionID = SCOPE_IDENTITY() @@ -5846,7 +5882,8 @@ CREATE PROCEDURE [dbo].[UpdateRDSCollection] @ID INT, @ItemID INT, @Name NVARCHAR(255), - @Description NVARCHAR(255) + @Description NVARCHAR(255), + @DisplayName NVARCHAR(255) ) AS @@ -5854,7 +5891,8 @@ UPDATE RDSCollections SET ItemID = @ItemID, Name = @Name, - Description = @Description + Description = @Description, + DisplayName = @DisplayName WHERE ID = @Id GO @@ -5970,6 +6008,36 @@ SELECT RETURN GO +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'GetOrganizationRdsCollectionsCount') +DROP PROCEDURE GetOrganizationRdsCollectionsCount +GO +CREATE PROCEDURE [dbo].GetOrganizationRdsCollectionsCount +( + @ItemID INT, + @TotalNumber int OUTPUT +) +AS +SELECT + @TotalNumber = Count([Id]) + FROM [dbo].[RDSCollections] WHERE [ItemId] = @ItemId +RETURN +GO + + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'GetOrganizationRdsServersCount') +DROP PROCEDURE GetOrganizationRdsServersCount +GO +CREATE PROCEDURE [dbo].GetOrganizationRdsServersCount +( + @ItemID INT, + @TotalNumber int OUTPUT +) +AS +SELECT + @TotalNumber = Count([Id]) + FROM [dbo].[RDSServers] WHERE [ItemId] = @ItemId +RETURN +GO -- wsp-10269: Changed php extension path in default properties for IIS70 and IIS80 provider update ServiceDefaultProperties @@ -7566,3 +7634,754 @@ COMMIT TRAN RETURN GO + + +-- WebDAv portal + +IF EXISTS (SELECT * FROM SYS.TABLES WHERE name = 'WebDavAccessTokens') +DROP TABLE WebDavAccessTokens +GO +CREATE TABLE WebDavAccessTokens +( + ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY, + FilePath NVARCHAR(MAX) NOT NULL, + AuthData NVARCHAR(MAX) NOT NULL, + AccessToken UNIQUEIDENTIFIER NOT NULL, + ExpirationDate DATETIME NOT NULL, + AccountID INT NOT NULL , + ItemId INT NOT NULL +) +GO + +ALTER TABLE [dbo].[WebDavAccessTokens] WITH CHECK ADD CONSTRAINT [FK_WebDavAccessTokens_UserId] FOREIGN KEY([AccountID]) +REFERENCES [dbo].[ExchangeAccounts] ([AccountID]) +ON DELETE CASCADE +GO + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'AddWebDavAccessToken') +DROP PROCEDURE AddWebDavAccessToken +GO +CREATE PROCEDURE [dbo].[AddWebDavAccessToken] +( + @TokenID INT OUTPUT, + @FilePath NVARCHAR(MAX), + @AccessToken UNIQUEIDENTIFIER, + @AuthData NVARCHAR(MAX), + @ExpirationDate DATETIME, + @AccountID INT, + @ItemId INT +) +AS +INSERT INTO WebDavAccessTokens +( + FilePath, + AccessToken, + AuthData, + ExpirationDate, + AccountID , + ItemId +) +VALUES +( + @FilePath , + @AccessToken , + @AuthData, + @ExpirationDate , + @AccountID, + @ItemId +) + +SET @TokenID = SCOPE_IDENTITY() + +RETURN +GO + + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'DeleteExpiredWebDavAccessTokens') +DROP PROCEDURE DeleteExpiredWebDavAccessTokens +GO +CREATE PROCEDURE [dbo].[DeleteExpiredWebDavAccessTokens] +AS +DELETE FROM WebDavAccessTokens +WHERE ExpirationDate < getdate() +GO + + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'GetWebDavAccessTokenById') +DROP PROCEDURE GetWebDavAccessTokenById +GO +CREATE PROCEDURE [dbo].[GetWebDavAccessTokenById] +( + @Id int +) +AS +SELECT + ID , + FilePath , + AuthData , + AccessToken, + ExpirationDate, + AccountID, + ItemId + FROM WebDavAccessTokens + Where ID = @Id AND ExpirationDate > getdate() +GO + + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'GetWebDavAccessTokenByAccessToken') +DROP PROCEDURE GetWebDavAccessTokenByAccessToken +GO +CREATE PROCEDURE [dbo].[GetWebDavAccessTokenByAccessToken] +( + @AccessToken UNIQUEIDENTIFIER +) +AS +SELECT + ID , + FilePath , + AuthData , + AccessToken, + ExpirationDate, + AccountID, + ItemId + FROM WebDavAccessTokens + Where AccessToken = @AccessToken AND ExpirationDate > getdate() +GO + +--add Deleted Users Quota +IF NOT EXISTS (SELECT * FROM [dbo].[Quotas] WHERE [QuotaName] = 'HostedSolution.DeletedUsers') +BEGIN + INSERT [dbo].[Quotas] ([QuotaID], [GroupID],[QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID], [HideQuota]) VALUES (477, 13, 6, N'HostedSolution.DeletedUsers', N'Deleted Users', 2, 0, NULL, NULL) +END + +IF NOT EXISTS (SELECT * FROM [dbo].[Quotas] WHERE [QuotaName] = 'HostedSolution.DeletedUsersBackupStorageSpace') +BEGIN + INSERT [dbo].[Quotas] ([QuotaID], [GroupID],[QuotaOrder], [QuotaName], [QuotaDescription], [QuotaTypeID], [ServiceQuota], [ItemTypeID], [HideQuota]) VALUES (478, 13, 6, N'HostedSolution.DeletedUsersBackupStorageSpace', N'Deleted Users Backup Storage Space, Mb', 2, 0, NULL, NULL) +END +GO + +IF NOT EXISTS (SELECT * FROM SYS.TABLES WHERE name = 'ExchangeDeletedAccounts') +CREATE TABLE ExchangeDeletedAccounts +( + ID INT IDENTITY(1,1) NOT NULL PRIMARY KEY, + AccountID INT NOT NULL, + OriginAT INT NOT NULL, + StoragePath NVARCHAR(255) NULL, + FolderName NVARCHAR(128) NULL, + FileName NVARCHAR(128) NULL, + ExpirationDate DATETIME NOT NULL +) +GO + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'GetOrganizationStatistics') +DROP PROCEDURE [dbo].[GetOrganizationStatistics] +GO + +CREATE PROCEDURE [dbo].[GetOrganizationStatistics] +( + @ItemID int +) +AS +SELECT + (SELECT COUNT(*) FROM ExchangeAccounts WHERE (AccountType = 7 OR AccountType = 1 OR AccountType = 6 OR AccountType = 5) AND ItemID = @ItemID) AS CreatedUsers, + (SELECT COUNT(*) FROM ExchangeOrganizationDomains WHERE ItemID = @ItemID) AS CreatedDomains, + (SELECT COUNT(*) FROM ExchangeAccounts WHERE (AccountType = 8 OR AccountType = 9) AND ItemID = @ItemID) AS CreatedGroups, + (SELECT COUNT(*) FROM ExchangeAccounts WHERE AccountType = 11 AND ItemID = @ItemID) AS DeletedUsers +RETURN +GO + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'DeleteOrganizationDeletedUser') +DROP PROCEDURE [dbo].[DeleteOrganizationDeletedUser] +GO + +CREATE PROCEDURE [dbo].[DeleteOrganizationDeletedUser] +( + @ID int +) +AS +DELETE FROM ExchangeDeletedAccounts WHERE AccountID = @ID +RETURN +GO + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'GetOrganizationDeletedUser') +DROP PROCEDURE [dbo].[GetOrganizationDeletedUser] +GO + +CREATE PROCEDURE [dbo].[GetOrganizationDeletedUser] +( + @AccountID int +) +AS +SELECT + EDA.AccountID, + EDA.OriginAT, + EDA.StoragePath, + EDA.FolderName, + EDA.FileName, + EDA.ExpirationDate +FROM + ExchangeDeletedAccounts AS EDA +WHERE + EDA.AccountID = @AccountID +RETURN +GO + +IF EXISTS (SELECT * FROM SYS.OBJECTS WHERE type = 'P' AND name = 'AddOrganizationDeletedUser') +DROP PROCEDURE [dbo].[AddOrganizationDeletedUser] +GO + +CREATE PROCEDURE [dbo].[AddOrganizationDeletedUser] +( + @ID int OUTPUT, + @AccountID int, + @OriginAT int, + @StoragePath nvarchar(255), + @FolderName nvarchar(128), + @FileName nvarchar(128), + @ExpirationDate datetime +) +AS + +INSERT INTO ExchangeDeletedAccounts +( + AccountID, + OriginAT, + StoragePath, + FolderName, + FileName, + ExpirationDate +) +VALUES +( + @AccountID, + @OriginAT, + @StoragePath, + @FolderName, + @FileName, + @ExpirationDate +) + +SET @ID = SCOPE_IDENTITY() + +RETURN +GO + +ALTER FUNCTION [dbo].[CalculateQuotaUsage] +( + @PackageID int, + @QuotaID int +) +RETURNS int +AS + BEGIN + + DECLARE @QuotaTypeID int + DECLARE @QuotaName nvarchar(50) + SELECT @QuotaTypeID = QuotaTypeID, @QuotaName = QuotaName FROM Quotas + WHERE QuotaID = @QuotaID + + IF @QuotaTypeID <> 2 + RETURN 0 + + DECLARE @Result int + + IF @QuotaID = 52 -- diskspace + SET @Result = dbo.CalculatePackageDiskspace(@PackageID) + ELSE IF @QuotaID = 51 -- bandwidth + SET @Result = dbo.CalculatePackageBandwidth(@PackageID) + ELSE IF @QuotaID = 53 -- domains + SET @Result = (SELECT COUNT(D.DomainID) FROM PackagesTreeCache AS PT + INNER JOIN Domains AS D ON D.PackageID = PT.PackageID + WHERE IsSubDomain = 0 AND IsInstantAlias = 0 AND IsDomainPointer = 0 AND PT.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 54 -- sub-domains + SET @Result = (SELECT COUNT(D.DomainID) FROM PackagesTreeCache AS PT + INNER JOIN Domains AS D ON D.PackageID = PT.PackageID + WHERE IsSubDomain = 1 AND IsInstantAlias = 0 AND IsDomainPointer = 0 AND PT.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 220 -- domain pointers + SET @Result = (SELECT COUNT(D.DomainID) FROM PackagesTreeCache AS PT + INNER JOIN Domains AS D ON D.PackageID = PT.PackageID + WHERE IsDomainPointer = 1 AND PT.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 71 -- scheduled tasks + SET @Result = (SELECT COUNT(S.ScheduleID) FROM PackagesTreeCache AS PT + INNER JOIN Schedule AS S ON S.PackageID = PT.PackageID + WHERE PT.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 305 -- RAM of VPS + SET @Result = (SELECT SUM(CAST(SIP.PropertyValue AS int)) FROM ServiceItemProperties AS SIP + INNER JOIN ServiceItems AS SI ON SIP.ItemID = SI.ItemID + INNER JOIN PackagesTreeCache AS PT ON SI.PackageID = PT.PackageID + WHERE SIP.PropertyName = 'RamSize' AND PT.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 306 -- HDD of VPS + SET @Result = (SELECT SUM(CAST(SIP.PropertyValue AS int)) FROM ServiceItemProperties AS SIP + INNER JOIN ServiceItems AS SI ON SIP.ItemID = SI.ItemID + INNER JOIN PackagesTreeCache AS PT ON SI.PackageID = PT.PackageID + WHERE SIP.PropertyName = 'HddSize' AND PT.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 309 -- External IP addresses of VPS + SET @Result = (SELECT COUNT(PIP.PackageAddressID) FROM PackageIPAddresses AS PIP + INNER JOIN IPAddresses AS IP ON PIP.AddressID = IP.AddressID + INNER JOIN PackagesTreeCache AS PT ON PIP.PackageID = PT.PackageID + WHERE PT.ParentPackageID = @PackageID AND IP.PoolID = 3) + ELSE IF @QuotaID = 100 -- Dedicated Web IP addresses + SET @Result = (SELECT COUNT(PIP.PackageAddressID) FROM PackageIPAddresses AS PIP + INNER JOIN IPAddresses AS IP ON PIP.AddressID = IP.AddressID + INNER JOIN PackagesTreeCache AS PT ON PIP.PackageID = PT.PackageID + WHERE PT.ParentPackageID = @PackageID AND IP.PoolID = 2) + ELSE IF @QuotaID = 350 -- RAM of VPSforPc + SET @Result = (SELECT SUM(CAST(SIP.PropertyValue AS int)) FROM ServiceItemProperties AS SIP + INNER JOIN ServiceItems AS SI ON SIP.ItemID = SI.ItemID + INNER JOIN PackagesTreeCache AS PT ON SI.PackageID = PT.PackageID + WHERE SIP.PropertyName = 'Memory' AND PT.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 351 -- HDD of VPSforPc + SET @Result = (SELECT SUM(CAST(SIP.PropertyValue AS int)) FROM ServiceItemProperties AS SIP + INNER JOIN ServiceItems AS SI ON SIP.ItemID = SI.ItemID + INNER JOIN PackagesTreeCache AS PT ON SI.PackageID = PT.PackageID + WHERE SIP.PropertyName = 'HddSize' AND PT.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 354 -- External IP addresses of VPSforPc + SET @Result = (SELECT COUNT(PIP.PackageAddressID) FROM PackageIPAddresses AS PIP + INNER JOIN IPAddresses AS IP ON PIP.AddressID = IP.AddressID + INNER JOIN PackagesTreeCache AS PT ON PIP.PackageID = PT.PackageID + WHERE PT.ParentPackageID = @PackageID AND IP.PoolID = 3) + ELSE IF @QuotaID = 319 -- BB Users + SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts ea + INNER JOIN BlackBerryUsers bu ON ea.AccountID = bu.AccountID + INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID + INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID + WHERE pt.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 320 -- OCS Users + SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts ea + INNER JOIN OCSUsers ocs ON ea.AccountID = ocs.AccountID + INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID + INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID + WHERE pt.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 206 -- HostedSolution.Users + SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts AS ea + INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID + INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID + WHERE pt.ParentPackageID = @PackageID AND ea.AccountType IN (1,5,6,7)) + ELSE IF @QuotaID = 78 -- Exchange2007.Mailboxes + SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts AS ea + INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID + INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID + WHERE pt.ParentPackageID = @PackageID + AND ea.AccountType IN (1) + AND ea.MailboxPlanId IS NOT NULL) + ELSE IF @QuotaID = 77 -- Exchange2007.DiskSpace + SET @Result = (SELECT SUM(B.MailboxSizeMB) FROM ExchangeAccounts AS ea + INNER JOIN ExchangeMailboxPlans AS B ON ea.MailboxPlanId = B.MailboxPlanId + INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID + INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID + WHERE pt.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 370 -- Lync.Users + SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts AS ea + INNER JOIN LyncUsers lu ON ea.AccountID = lu.AccountID + INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID + INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID + WHERE pt.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 376 -- Lync.EVUsers + SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts AS ea + INNER JOIN LyncUsers lu ON ea.AccountID = lu.AccountID + INNER JOIN LyncUserPlans lp ON lu.LyncUserPlanId = lp.LyncUserPlanId + INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID + INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID + WHERE pt.ParentPackageID = @PackageID AND lp.EnterpriseVoice = 1) + ELSE IF @QuotaID = 381 -- Dedicated Lync Phone Numbers + SET @Result = (SELECT COUNT(PIP.PackageAddressID) FROM PackageIPAddresses AS PIP + INNER JOIN IPAddresses AS IP ON PIP.AddressID = IP.AddressID + INNER JOIN PackagesTreeCache AS PT ON PIP.PackageID = PT.PackageID + WHERE PT.ParentPackageID = @PackageID AND IP.PoolID = 5) + ELSE IF @QuotaID = 430 -- Enterprise Storage + SET @Result = (SELECT SUM(ESF.FolderQuota) FROM EnterpriseFolders AS ESF + INNER JOIN ServiceItems SI ON ESF.ItemID = SI.ItemID + INNER JOIN PackagesTreeCache PT ON SI.PackageID = PT.PackageID + WHERE PT.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 431 -- Enterprise Storage Folders + SET @Result = (SELECT COUNT(ESF.EnterpriseFolderID) FROM EnterpriseFolders AS ESF + INNER JOIN ServiceItems SI ON ESF.ItemID = SI.ItemID + INNER JOIN PackagesTreeCache PT ON SI.PackageID = PT.PackageID + WHERE PT.ParentPackageID = @PackageID) + ELSE IF @QuotaID = 423 -- HostedSolution.SecurityGroups + SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts AS ea + INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID + INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID + WHERE pt.ParentPackageID = @PackageID AND ea.AccountType IN (8,9)) + ELSE IF @QuotaID = 477 -- HostedSolution.DeletedUsers + SET @Result = (SELECT COUNT(ea.AccountID) FROM ExchangeAccounts AS ea + INNER JOIN ServiceItems si ON ea.ItemID = si.ItemID + INNER JOIN PackagesTreeCache pt ON si.PackageID = pt.PackageID + WHERE pt.ParentPackageID = @PackageID AND ea.AccountType = 11) + ELSE IF @QuotaName like 'ServiceLevel.%' -- Support Service Level Quota + BEGIN + DECLARE @LevelID int + + SELECT @LevelID = LevelID FROM SupportServiceLevels + WHERE LevelName = REPLACE(@QuotaName,'ServiceLevel.','') + + IF (@LevelID IS NOT NULL) + SET @Result = (SELECT COUNT(EA.AccountID) + FROM SupportServiceLevels AS SL + INNER JOIN ExchangeAccounts AS EA ON SL.LevelID = EA.LevelID + INNER JOIN ServiceItems SI ON EA.ItemID = SI.ItemID + INNER JOIN PackagesTreeCache PT ON SI.PackageID = PT.PackageID + WHERE EA.LevelID = @LevelID AND PT.ParentPackageID = @PackageID) + ELSE SET @Result = 0 + END + ELSE + SET @Result = (SELECT COUNT(SI.ItemID) FROM Quotas AS Q + INNER JOIN ServiceItems AS SI ON SI.ItemTypeID = Q.ItemTypeID + INNER JOIN PackagesTreeCache AS PT ON SI.PackageID = PT.PackageID AND PT.ParentPackageID = @PackageID + WHERE Q.QuotaID = @QuotaID) + + RETURN @Result + END +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='EnableForceArchiveDeletion') +BEGIN + ALTER TABLE [dbo].[ExchangeMailboxPlans] ADD [EnableForceArchiveDeletion] [bit] NULL +END +GO + +ALTER PROCEDURE [dbo].[AddExchangeMailboxPlan] +( + @MailboxPlanId int OUTPUT, + @ItemID int, + @MailboxPlan nvarchar(300), + @EnableActiveSync bit, + @EnableIMAP bit, + @EnableMAPI bit, + @EnableOWA bit, + @EnablePOP bit, + @IsDefault bit, + @IssueWarningPct int, + @KeepDeletedItemsDays int, + @MailboxSizeMB int, + @MaxReceiveMessageSizeKB int, + @MaxRecipients int, + @MaxSendMessageSizeKB int, + @ProhibitSendPct int, + @ProhibitSendReceivePct int , + @HideFromAddressBook bit, + @MailboxPlanType int, + @AllowLitigationHold bit, + @RecoverableItemsWarningPct int, + @RecoverableItemsSpace int, + @LitigationHoldUrl nvarchar(256), + @LitigationHoldMsg nvarchar(512), + @Archiving bit, + @EnableArchiving bit, + @ArchiveSizeMB int, + @ArchiveWarningPct int, + @EnableForceArchiveDeletion bit +) +AS + +IF (((SELECT Count(*) FROM ExchangeMailboxPlans WHERE ItemId = @ItemID) = 0) AND (@MailboxPlanType=0)) +BEGIN + SET @IsDefault = 1 +END +ELSE +BEGIN + IF ((@IsDefault = 1) AND (@MailboxPlanType=0)) + BEGIN + UPDATE ExchangeMailboxPlans SET IsDefault = 0 WHERE ItemID = @ItemID + END +END + +INSERT INTO ExchangeMailboxPlans +( + ItemID, + MailboxPlan, + EnableActiveSync, + EnableIMAP, + EnableMAPI, + EnableOWA, + EnablePOP, + IsDefault, + IssueWarningPct, + KeepDeletedItemsDays, + MailboxSizeMB, + MaxReceiveMessageSizeKB, + MaxRecipients, + MaxSendMessageSizeKB, + ProhibitSendPct, + ProhibitSendReceivePct, + HideFromAddressBook, + MailboxPlanType, + AllowLitigationHold, + RecoverableItemsWarningPct, + RecoverableItemsSpace, + LitigationHoldUrl, + LitigationHoldMsg, + Archiving, + EnableArchiving, + ArchiveSizeMB, + ArchiveWarningPct, + EnableForceArchiveDeletion +) +VALUES +( + @ItemID, + @MailboxPlan, + @EnableActiveSync, + @EnableIMAP, + @EnableMAPI, + @EnableOWA, + @EnablePOP, + @IsDefault, + @IssueWarningPct, + @KeepDeletedItemsDays, + @MailboxSizeMB, + @MaxReceiveMessageSizeKB, + @MaxRecipients, + @MaxSendMessageSizeKB, + @ProhibitSendPct, + @ProhibitSendReceivePct, + @HideFromAddressBook, + @MailboxPlanType, + @AllowLitigationHold, + @RecoverableItemsWarningPct, + @RecoverableItemsSpace, + @LitigationHoldUrl, + @LitigationHoldMsg, + @Archiving, + @EnableArchiving, + @ArchiveSizeMB, + @ArchiveWarningPct, + @EnableForceArchiveDeletion +) + +SET @MailboxPlanId = SCOPE_IDENTITY() + +RETURN +GO + +ALTER PROCEDURE [dbo].[UpdateExchangeMailboxPlan] +( + @MailboxPlanId int, + @MailboxPlan nvarchar(300), + @EnableActiveSync bit, + @EnableIMAP bit, + @EnableMAPI bit, + @EnableOWA bit, + @EnablePOP bit, + @IsDefault bit, + @IssueWarningPct int, + @KeepDeletedItemsDays int, + @MailboxSizeMB int, + @MaxReceiveMessageSizeKB int, + @MaxRecipients int, + @MaxSendMessageSizeKB int, + @ProhibitSendPct int, + @ProhibitSendReceivePct int , + @HideFromAddressBook bit, + @MailboxPlanType int, + @AllowLitigationHold bit, + @RecoverableItemsWarningPct int, + @RecoverableItemsSpace int, + @LitigationHoldUrl nvarchar(256), + @LitigationHoldMsg nvarchar(512), + @Archiving bit, + @EnableArchiving bit, + @ArchiveSizeMB int, + @ArchiveWarningPct int, + @EnableForceArchiveDeletion bit +) +AS + +UPDATE ExchangeMailboxPlans SET + MailboxPlan = @MailboxPlan, + EnableActiveSync = @EnableActiveSync, + EnableIMAP = @EnableIMAP, + EnableMAPI = @EnableMAPI, + EnableOWA = @EnableOWA, + EnablePOP = @EnablePOP, + IsDefault = @IsDefault, + IssueWarningPct= @IssueWarningPct, + KeepDeletedItemsDays = @KeepDeletedItemsDays, + MailboxSizeMB= @MailboxSizeMB, + MaxReceiveMessageSizeKB= @MaxReceiveMessageSizeKB, + MaxRecipients= @MaxRecipients, + MaxSendMessageSizeKB= @MaxSendMessageSizeKB, + ProhibitSendPct= @ProhibitSendPct, + ProhibitSendReceivePct = @ProhibitSendReceivePct, + HideFromAddressBook = @HideFromAddressBook, + MailboxPlanType = @MailboxPlanType, + AllowLitigationHold = @AllowLitigationHold, + RecoverableItemsWarningPct = @RecoverableItemsWarningPct, + RecoverableItemsSpace = @RecoverableItemsSpace, + LitigationHoldUrl = @LitigationHoldUrl, + LitigationHoldMsg = @LitigationHoldMsg, + Archiving = @Archiving, + EnableArchiving = @EnableArchiving, + ArchiveSizeMB = @ArchiveSizeMB, + ArchiveWarningPct = @ArchiveWarningPct, + EnableForceArchiveDeletion = @EnableForceArchiveDeletion +WHERE MailboxPlanId = @MailboxPlanId + +RETURN +GO + +ALTER PROCEDURE [dbo].[GetExchangeMailboxPlan] +( + @MailboxPlanId int +) +AS +SELECT + MailboxPlanId, + ItemID, + MailboxPlan, + EnableActiveSync, + EnableIMAP, + EnableMAPI, + EnableOWA, + EnablePOP, + IsDefault, + IssueWarningPct, + KeepDeletedItemsDays, + MailboxSizeMB, + MaxReceiveMessageSizeKB, + MaxRecipients, + MaxSendMessageSizeKB, + ProhibitSendPct, + ProhibitSendReceivePct, + HideFromAddressBook, + MailboxPlanType, + AllowLitigationHold, + RecoverableItemsWarningPct, + RecoverableItemsSpace, + LitigationHoldUrl, + LitigationHoldMsg, + Archiving, + EnableArchiving, + ArchiveSizeMB, + ArchiveWarningPct, + EnableForceArchiveDeletion +FROM + ExchangeMailboxPlans +WHERE + MailboxPlanId = @MailboxPlanId +RETURN +GO + +ALTER PROCEDURE [dbo].[GetExchangeMailboxPlans] +( + @ItemID int, + @Archiving bit +) +AS +SELECT + MailboxPlanId, + ItemID, + MailboxPlan, + EnableActiveSync, + EnableIMAP, + EnableMAPI, + EnableOWA, + EnablePOP, + IsDefault, + IssueWarningPct, + KeepDeletedItemsDays, + MailboxSizeMB, + MaxReceiveMessageSizeKB, + MaxRecipients, + MaxSendMessageSizeKB, + ProhibitSendPct, + ProhibitSendReceivePct, + HideFromAddressBook, + MailboxPlanType, + Archiving, + EnableArchiving, + ArchiveSizeMB, + ArchiveWarningPct, + EnableForceArchiveDeletion +FROM + ExchangeMailboxPlans +WHERE + ItemID = @ItemID +AND ((Archiving=@Archiving) OR ((@Archiving=0) AND (Archiving IS NULL))) +ORDER BY MailboxPlan +RETURN +GO + +IF NOT EXISTS (SELECT * FROM [dbo].[ScheduleTasks] WHERE [TaskID] = 'SCHEDULE_TASK_DELETE_EXCHANGE_ACCOUNTS') +BEGIN +INSERT INTO [dbo].[ScheduleTasks] ([TaskID], [TaskType], [RoleID]) VALUES (N'SCHEDULE_TASK_DELETE_EXCHANGE_ACCOUNTS', N'WebsitePanel.EnterpriseServer.DeleteExchangeAccountsTask, WebsitePanel.EnterpriseServer.Code', 3) +END +GO + + + + + +ALTER PROCEDURE [dbo].[UpdateServiceItem] +( + @ActorID int, + @ItemID int, + @ItemName nvarchar(500), + @XmlProperties ntext +) +AS +BEGIN TRAN + +-- check rights +DECLARE @PackageID int +SELECT PackageID = @PackageID FROM ServiceItems +WHERE ItemID = @ItemID + +IF dbo.CheckActorPackageRights(@ActorID, @PackageID) = 0 +RAISERROR('You are not allowed to access this package', 16, 1) + +-- update item +UPDATE ServiceItems SET ItemName = @ItemName +WHERE ItemID=@ItemID + +DECLARE @idoc int +--Create an internal representation of the XML document. +EXEC sp_xml_preparedocument @idoc OUTPUT, @XmlProperties + +-- Execute a SELECT statement that uses the OPENXML rowset provider. +DELETE FROM ServiceItemProperties +WHERE ItemID = @ItemID + +-- Add the xml data into a temp table for the capability and robust +IF OBJECT_ID('tempdb..#TempTable') IS NOT NULL DROP TABLE #TempTable + +CREATE TABLE #TempTable( + ItemID int, + PropertyName nvarchar(50), + PropertyValue nvarchar(3000)) + +INSERT INTO #TempTable (ItemID, PropertyName, PropertyValue) +SELECT + @ItemID, + PropertyName, + PropertyValue +FROM OPENXML(@idoc, '/properties/property',1) WITH +( + PropertyName nvarchar(50) '@name', + PropertyValue nvarchar(3000) '@value' +) as PV + +-- Move data from temp table to real table +INSERT INTO ServiceItemProperties +( + ItemID, + PropertyName, + PropertyValue +) +SELECT + ItemID, + PropertyName, + PropertyValue +FROM #TempTable + +DROP TABLE #TempTable + +-- remove document +exec sp_xml_removedocument @idoc + +COMMIT TRAN + +RETURN +GO + + diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Common/BusinessErrorCodes.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Common/BusinessErrorCodes.cs index dc5b086d..8e8ed5ff 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Common/BusinessErrorCodes.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Common/BusinessErrorCodes.cs @@ -326,6 +326,7 @@ namespace WebsitePanel.EnterpriseServer public const int CURRENT_USER_IS_CRM_USER = -2708; public const int CURRENT_USER_IS_OCS_USER = -2709; public const int CURRENT_USER_IS_LYNC_USER = -2710; + public const int ERROR_DELETED_USERS_RESOURCE_QUOTA_LIMIT = -2711; #endregion diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/HostedSolution/WebDavAccessToken.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/HostedSolution/WebDavAccessToken.cs new file mode 100644 index 00000000..9d6cd92d --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/HostedSolution/WebDavAccessToken.cs @@ -0,0 +1,15 @@ +using System; + +namespace WebsitePanel.EnterpriseServer.Base.HostedSolution +{ + public class WebDavAccessToken + { + public int Id { get; set; } + public string FilePath { get; set; } + public string AuthData { get; set; } + public Guid AccessToken { get; set; } + public DateTime ExpirationDate { get; set; } + public int AccountId { get; set; } + public int ItemId { get; set; } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/Quotas.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/Quotas.cs index 7dbabc4c..47155cb1 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/Quotas.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/Packages/Quotas.cs @@ -161,6 +161,8 @@ order by rg.groupOrder public const string STATS_SITES = "Stats.Sites"; // Statistics Sites public const string ORGANIZATIONS = "HostedSolution.Organizations"; public const string ORGANIZATION_USERS = "HostedSolution.Users"; + public const string ORGANIZATION_DELETED_USERS = "HostedSolution.DeletedUsers"; + public const string ORGANIZATION_DELETED_USERS_BACKUP_STORAGE_SPACE = "HostedSolution.DeletedUsersBackupStorageSpace"; public const string ORGANIZATION_DOMAINS = "HostedSolution.Domains"; public const string ORGANIZATION_ALLOWCHANGEUPN = "HostedSolution.AllowChangeUPN"; public const string ORGANIZATION_SECURITYGROUPS = "HostedSolution.SecurityGroups"; @@ -262,5 +264,6 @@ order by rg.groupOrder public const string RDS_USERS = "RDS.Users"; public const string RDS_SERVERS = "RDS.Servers"; + public const string RDS_COLLECTIONS = "RDS.Collections"; } } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/WebsitePanel.EnterpriseServer.Base.csproj b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/WebsitePanel.EnterpriseServer.Base.csproj index c4c1bc7a..63f2d7cd 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/WebsitePanel.EnterpriseServer.Base.csproj +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Base/WebsitePanel.EnterpriseServer.Base.csproj @@ -120,6 +120,7 @@ + diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/EnterpriseStorageProxy.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/EnterpriseStorageProxy.cs index 76e6772c..7300cf58 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/EnterpriseStorageProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/EnterpriseStorageProxy.cs @@ -1,35 +1,7 @@ -// Copyright (c) 2015, 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. - //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.4984 +// Runtime Version:2.0.50727.7905 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -37,7 +9,7 @@ //------------------------------------------------------------------------------ // -// This source code was auto-generated by wsdl, Version=2.0.50727.42. +// This source code was auto-generated by wsdl, Version=2.0.50727.3038. // using WebsitePanel.EnterpriseServer.Base.HostedSolution; @@ -46,2011 +18,2009 @@ using WebsitePanel.Providers.Common; using WebsitePanel.Providers.HostedSolution; using WebsitePanel.Providers.OS; -namespace WebsitePanel.EnterpriseServer -{ +namespace WebsitePanel.EnterpriseServer { + using System.Xml.Serialization; + using System.Web.Services; + using System.ComponentModel; + using System.Web.Services.Protocols; + using System; + using System.Diagnostics; + + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "esEnterpriseStorageSoap", Namespace = "http://smbsaas/websitepanel/enterpriseserver")] + [System.Web.Services.WebServiceBindingAttribute(Name="esEnterpriseStorageSoap", Namespace="http://smbsaas/websitepanel/enterpriseserver")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))] - public partial class esEnterpriseStorage : Microsoft.Web.Services3.WebServicesClientProtocol - { + public partial class esEnterpriseStorage : Microsoft.Web.Services3.WebServicesClientProtocol { + + private System.Threading.SendOrPostCallback AddWebDavAccessTokenOperationCompleted; + + private System.Threading.SendOrPostCallback DeleteExpiredWebDavAccessTokensOperationCompleted; + + private System.Threading.SendOrPostCallback GetWebDavAccessTokenByIdOperationCompleted; + + private System.Threading.SendOrPostCallback GetWebDavAccessTokenByAccessTokenOperationCompleted; + private System.Threading.SendOrPostCallback CheckFileServicesInstallationOperationCompleted; - + private System.Threading.SendOrPostCallback GetEnterpriseFoldersOperationCompleted; - + private System.Threading.SendOrPostCallback GetEnterpriseFolderOperationCompleted; - + private System.Threading.SendOrPostCallback CreateEnterpriseFolderOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteEnterpriseFolderOperationCompleted; - + private System.Threading.SendOrPostCallback GetEnterpriseFolderPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback SetEnterpriseFolderPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback SearchESAccountsOperationCompleted; - + private System.Threading.SendOrPostCallback GetEnterpriseFoldersPagedOperationCompleted; - + private System.Threading.SendOrPostCallback RenameEnterpriseFolderOperationCompleted; - + private System.Threading.SendOrPostCallback CreateEnterpriseStorageOperationCompleted; - + private System.Threading.SendOrPostCallback CheckEnterpriseStorageInitializationOperationCompleted; - + private System.Threading.SendOrPostCallback CheckUsersDomainExistsOperationCompleted; - + private System.Threading.SendOrPostCallback GetDirectoryBrowseEnabledOperationCompleted; - + private System.Threading.SendOrPostCallback SetDirectoryBrowseEnabledOperationCompleted; - + private System.Threading.SendOrPostCallback SetEnterpriseFolderSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetStatisticsOperationCompleted; - + private System.Threading.SendOrPostCallback GetStatisticsByOrganizationOperationCompleted; - + private System.Threading.SendOrPostCallback CreateMappedDriveOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteMappedDriveOperationCompleted; - + private System.Threading.SendOrPostCallback GetDriveMapsPagedOperationCompleted; - + private System.Threading.SendOrPostCallback GetUsedDriveLettersOperationCompleted; - + private System.Threading.SendOrPostCallback GetNotMappedEnterpriseFoldersOperationCompleted; - + /// - public esEnterpriseStorage() - { + public esEnterpriseStorage() { this.Url = "http://localhost:9002/esEnterpriseStorage.asmx"; } - + + /// + public event AddWebDavAccessTokenCompletedEventHandler AddWebDavAccessTokenCompleted; + + /// + public event DeleteExpiredWebDavAccessTokensCompletedEventHandler DeleteExpiredWebDavAccessTokensCompleted; + + /// + public event GetWebDavAccessTokenByIdCompletedEventHandler GetWebDavAccessTokenByIdCompleted; + + /// + public event GetWebDavAccessTokenByAccessTokenCompletedEventHandler GetWebDavAccessTokenByAccessTokenCompleted; + /// public event CheckFileServicesInstallationCompletedEventHandler CheckFileServicesInstallationCompleted; - + /// public event GetEnterpriseFoldersCompletedEventHandler GetEnterpriseFoldersCompleted; - + /// public event GetEnterpriseFolderCompletedEventHandler GetEnterpriseFolderCompleted; - + /// public event CreateEnterpriseFolderCompletedEventHandler CreateEnterpriseFolderCompleted; - + /// public event DeleteEnterpriseFolderCompletedEventHandler DeleteEnterpriseFolderCompleted; - + /// public event GetEnterpriseFolderPermissionsCompletedEventHandler GetEnterpriseFolderPermissionsCompleted; - + /// public event SetEnterpriseFolderPermissionsCompletedEventHandler SetEnterpriseFolderPermissionsCompleted; - + /// public event SearchESAccountsCompletedEventHandler SearchESAccountsCompleted; - + /// public event GetEnterpriseFoldersPagedCompletedEventHandler GetEnterpriseFoldersPagedCompleted; - + /// public event RenameEnterpriseFolderCompletedEventHandler RenameEnterpriseFolderCompleted; - + /// public event CreateEnterpriseStorageCompletedEventHandler CreateEnterpriseStorageCompleted; - + /// public event CheckEnterpriseStorageInitializationCompletedEventHandler CheckEnterpriseStorageInitializationCompleted; - + /// public event CheckUsersDomainExistsCompletedEventHandler CheckUsersDomainExistsCompleted; - + /// public event GetDirectoryBrowseEnabledCompletedEventHandler GetDirectoryBrowseEnabledCompleted; - + /// public event SetDirectoryBrowseEnabledCompletedEventHandler SetDirectoryBrowseEnabledCompleted; - + /// public event SetEnterpriseFolderSettingsCompletedEventHandler SetEnterpriseFolderSettingsCompleted; - + /// public event GetStatisticsCompletedEventHandler GetStatisticsCompleted; - + /// public event GetStatisticsByOrganizationCompletedEventHandler GetStatisticsByOrganizationCompleted; - + /// public event CreateMappedDriveCompletedEventHandler CreateMappedDriveCompleted; - + /// public event DeleteMappedDriveCompletedEventHandler DeleteMappedDriveCompleted; - + /// public event GetDriveMapsPagedCompletedEventHandler GetDriveMapsPagedCompleted; - + /// public event GetUsedDriveLettersCompletedEventHandler GetUsedDriveLettersCompleted; - + /// public event GetNotMappedEnterpriseFoldersCompletedEventHandler GetNotMappedEnterpriseFoldersCompleted; - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CheckFileServicesInstallation", 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 bool CheckFileServicesInstallation(int serviceId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddWebDavAccessToken", 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 AddWebDavAccessToken(WebDavAccessToken accessToken) { + object[] results = this.Invoke("AddWebDavAccessToken", new object[] { + accessToken}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginAddWebDavAccessToken(WebDavAccessToken accessToken, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("AddWebDavAccessToken", new object[] { + accessToken}, callback, asyncState); + } + + /// + public int EndAddWebDavAccessToken(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void AddWebDavAccessTokenAsync(WebDavAccessToken accessToken) { + this.AddWebDavAccessTokenAsync(accessToken, null); + } + + /// + public void AddWebDavAccessTokenAsync(WebDavAccessToken accessToken, object userState) { + if ((this.AddWebDavAccessTokenOperationCompleted == null)) { + this.AddWebDavAccessTokenOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddWebDavAccessTokenOperationCompleted); + } + this.InvokeAsync("AddWebDavAccessToken", new object[] { + accessToken}, this.AddWebDavAccessTokenOperationCompleted, userState); + } + + private void OnAddWebDavAccessTokenOperationCompleted(object arg) { + if ((this.AddWebDavAccessTokenCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.AddWebDavAccessTokenCompleted(this, new AddWebDavAccessTokenCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteExpiredWebDavAccessTokens", 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 void DeleteExpiredWebDavAccessTokens() { + this.Invoke("DeleteExpiredWebDavAccessTokens", new object[0]); + } + + /// + public System.IAsyncResult BeginDeleteExpiredWebDavAccessTokens(System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DeleteExpiredWebDavAccessTokens", new object[0], callback, asyncState); + } + + /// + public void EndDeleteExpiredWebDavAccessTokens(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void DeleteExpiredWebDavAccessTokensAsync() { + this.DeleteExpiredWebDavAccessTokensAsync(null); + } + + /// + public void DeleteExpiredWebDavAccessTokensAsync(object userState) { + if ((this.DeleteExpiredWebDavAccessTokensOperationCompleted == null)) { + this.DeleteExpiredWebDavAccessTokensOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteExpiredWebDavAccessTokensOperationCompleted); + } + this.InvokeAsync("DeleteExpiredWebDavAccessTokens", new object[0], this.DeleteExpiredWebDavAccessTokensOperationCompleted, userState); + } + + private void OnDeleteExpiredWebDavAccessTokensOperationCompleted(object arg) { + if ((this.DeleteExpiredWebDavAccessTokensCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DeleteExpiredWebDavAccessTokensCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetWebDavAccessTokenById", 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 WebDavAccessToken GetWebDavAccessTokenById(int id) { + object[] results = this.Invoke("GetWebDavAccessTokenById", new object[] { + id}); + return ((WebDavAccessToken)(results[0])); + } + + /// + public System.IAsyncResult BeginGetWebDavAccessTokenById(int id, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetWebDavAccessTokenById", new object[] { + id}, callback, asyncState); + } + + /// + public WebDavAccessToken EndGetWebDavAccessTokenById(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((WebDavAccessToken)(results[0])); + } + + /// + public void GetWebDavAccessTokenByIdAsync(int id) { + this.GetWebDavAccessTokenByIdAsync(id, null); + } + + /// + public void GetWebDavAccessTokenByIdAsync(int id, object userState) { + if ((this.GetWebDavAccessTokenByIdOperationCompleted == null)) { + this.GetWebDavAccessTokenByIdOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetWebDavAccessTokenByIdOperationCompleted); + } + this.InvokeAsync("GetWebDavAccessTokenById", new object[] { + id}, this.GetWebDavAccessTokenByIdOperationCompleted, userState); + } + + private void OnGetWebDavAccessTokenByIdOperationCompleted(object arg) { + if ((this.GetWebDavAccessTokenByIdCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetWebDavAccessTokenByIdCompleted(this, new GetWebDavAccessTokenByIdCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetWebDavAccessTokenByAccessToken", 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 WebDavAccessToken GetWebDavAccessTokenByAccessToken(System.Guid accessToken) { + object[] results = this.Invoke("GetWebDavAccessTokenByAccessToken", new object[] { + accessToken}); + return ((WebDavAccessToken)(results[0])); + } + + /// + public System.IAsyncResult BeginGetWebDavAccessTokenByAccessToken(System.Guid accessToken, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetWebDavAccessTokenByAccessToken", new object[] { + accessToken}, callback, asyncState); + } + + /// + public WebDavAccessToken EndGetWebDavAccessTokenByAccessToken(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((WebDavAccessToken)(results[0])); + } + + /// + public void GetWebDavAccessTokenByAccessTokenAsync(System.Guid accessToken) { + this.GetWebDavAccessTokenByAccessTokenAsync(accessToken, null); + } + + /// + public void GetWebDavAccessTokenByAccessTokenAsync(System.Guid accessToken, object userState) { + if ((this.GetWebDavAccessTokenByAccessTokenOperationCompleted == null)) { + this.GetWebDavAccessTokenByAccessTokenOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetWebDavAccessTokenByAccessTokenOperationCompleted); + } + this.InvokeAsync("GetWebDavAccessTokenByAccessToken", new object[] { + accessToken}, this.GetWebDavAccessTokenByAccessTokenOperationCompleted, userState); + } + + private void OnGetWebDavAccessTokenByAccessTokenOperationCompleted(object arg) { + if ((this.GetWebDavAccessTokenByAccessTokenCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetWebDavAccessTokenByAccessTokenCompleted(this, new GetWebDavAccessTokenByAccessTokenCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CheckFileServicesInstallation", 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 bool CheckFileServicesInstallation(int serviceId) { object[] results = this.Invoke("CheckFileServicesInstallation", new object[] { - serviceId}); + serviceId}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginCheckFileServicesInstallation(int serviceId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCheckFileServicesInstallation(int serviceId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CheckFileServicesInstallation", new object[] { - serviceId}, callback, asyncState); + serviceId}, callback, asyncState); } - + /// - public bool EndCheckFileServicesInstallation(System.IAsyncResult asyncResult) - { + public bool EndCheckFileServicesInstallation(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void CheckFileServicesInstallationAsync(int serviceId) - { + public void CheckFileServicesInstallationAsync(int serviceId) { this.CheckFileServicesInstallationAsync(serviceId, null); } - + /// - public void CheckFileServicesInstallationAsync(int serviceId, object userState) - { - if ((this.CheckFileServicesInstallationOperationCompleted == null)) - { + public void CheckFileServicesInstallationAsync(int serviceId, object userState) { + if ((this.CheckFileServicesInstallationOperationCompleted == null)) { this.CheckFileServicesInstallationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckFileServicesInstallationOperationCompleted); } this.InvokeAsync("CheckFileServicesInstallation", new object[] { - serviceId}, this.CheckFileServicesInstallationOperationCompleted, userState); + serviceId}, this.CheckFileServicesInstallationOperationCompleted, userState); } - - private void OnCheckFileServicesInstallationOperationCompleted(object arg) - { - if ((this.CheckFileServicesInstallationCompleted != null)) - { + + private void OnCheckFileServicesInstallationOperationCompleted(object arg) { + if ((this.CheckFileServicesInstallationCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CheckFileServicesInstallationCompleted(this, new CheckFileServicesInstallationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetEnterpriseFolders", 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 SystemFile[] GetEnterpriseFolders(int itemId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetEnterpriseFolders", 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 SystemFile[] GetEnterpriseFolders(int itemId) { object[] results = this.Invoke("GetEnterpriseFolders", new object[] { - itemId}); + itemId}); return ((SystemFile[])(results[0])); } - + /// - public System.IAsyncResult BeginGetEnterpriseFolders(int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetEnterpriseFolders(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetEnterpriseFolders", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } - + /// - public SystemFile[] EndGetEnterpriseFolders(System.IAsyncResult asyncResult) - { + public SystemFile[] EndGetEnterpriseFolders(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((SystemFile[])(results[0])); } - + /// - public void GetEnterpriseFoldersAsync(int itemId) - { + public void GetEnterpriseFoldersAsync(int itemId) { this.GetEnterpriseFoldersAsync(itemId, null); } - + /// - public void GetEnterpriseFoldersAsync(int itemId, object userState) - { - if ((this.GetEnterpriseFoldersOperationCompleted == null)) - { + public void GetEnterpriseFoldersAsync(int itemId, object userState) { + if ((this.GetEnterpriseFoldersOperationCompleted == null)) { this.GetEnterpriseFoldersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEnterpriseFoldersOperationCompleted); } this.InvokeAsync("GetEnterpriseFolders", new object[] { - itemId}, this.GetEnterpriseFoldersOperationCompleted, userState); + itemId}, this.GetEnterpriseFoldersOperationCompleted, userState); } - - private void OnGetEnterpriseFoldersOperationCompleted(object arg) - { - if ((this.GetEnterpriseFoldersCompleted != null)) - { + + private void OnGetEnterpriseFoldersOperationCompleted(object arg) { + if ((this.GetEnterpriseFoldersCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetEnterpriseFoldersCompleted(this, new GetEnterpriseFoldersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetEnterpriseFolder", 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 SystemFile GetEnterpriseFolder(int itemId, string folderName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetEnterpriseFolder", 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 SystemFile GetEnterpriseFolder(int itemId, string folderName) { object[] results = this.Invoke("GetEnterpriseFolder", new object[] { - itemId, - folderName}); + itemId, + folderName}); return ((SystemFile)(results[0])); } - + /// - public System.IAsyncResult BeginGetEnterpriseFolder(int itemId, string folderName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetEnterpriseFolder(int itemId, string folderName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetEnterpriseFolder", new object[] { - itemId, - folderName}, callback, asyncState); + itemId, + folderName}, callback, asyncState); } - + /// - public SystemFile EndGetEnterpriseFolder(System.IAsyncResult asyncResult) - { + public SystemFile EndGetEnterpriseFolder(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((SystemFile)(results[0])); } - + /// - public void GetEnterpriseFolderAsync(int itemId, string folderName) - { + public void GetEnterpriseFolderAsync(int itemId, string folderName) { this.GetEnterpriseFolderAsync(itemId, folderName, null); } - + /// - public void GetEnterpriseFolderAsync(int itemId, string folderName, object userState) - { - if ((this.GetEnterpriseFolderOperationCompleted == null)) - { + public void GetEnterpriseFolderAsync(int itemId, string folderName, object userState) { + if ((this.GetEnterpriseFolderOperationCompleted == null)) { this.GetEnterpriseFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEnterpriseFolderOperationCompleted); } this.InvokeAsync("GetEnterpriseFolder", new object[] { - itemId, - folderName}, this.GetEnterpriseFolderOperationCompleted, userState); + itemId, + folderName}, this.GetEnterpriseFolderOperationCompleted, userState); } - - private void OnGetEnterpriseFolderOperationCompleted(object arg) - { - if ((this.GetEnterpriseFolderCompleted != null)) - { + + private void OnGetEnterpriseFolderOperationCompleted(object arg) { + if ((this.GetEnterpriseFolderCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetEnterpriseFolderCompleted(this, new GetEnterpriseFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateEnterpriseFolder", 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 ResultObject CreateEnterpriseFolder(int itemId, string folderName, int quota, QuotaType quotaType, bool addDefaultGroup) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateEnterpriseFolder", 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 ResultObject CreateEnterpriseFolder(int itemId, string folderName, int quota, QuotaType quotaType, bool addDefaultGroup) { object[] results = this.Invoke("CreateEnterpriseFolder", new object[] { - itemId, - folderName, - quota, - quotaType, - addDefaultGroup}); + itemId, + folderName, + quota, + quotaType, + addDefaultGroup}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginCreateEnterpriseFolder(int itemId, string folderName, int quota, QuotaType quotaType, bool addDefaultGroup, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateEnterpriseFolder(int itemId, string folderName, int quota, QuotaType quotaType, bool addDefaultGroup, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateEnterpriseFolder", new object[] { - itemId, - folderName, - quota, - quotaType, - addDefaultGroup}, callback, asyncState); + itemId, + folderName, + quota, + quotaType, + addDefaultGroup}, callback, asyncState); } - + /// - public ResultObject EndCreateEnterpriseFolder(System.IAsyncResult asyncResult) - { + public ResultObject EndCreateEnterpriseFolder(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void CreateEnterpriseFolderAsync(int itemId, string folderName, int quota, QuotaType quotaType, bool addDefaultGroup) - { + public void CreateEnterpriseFolderAsync(int itemId, string folderName, int quota, QuotaType quotaType, bool addDefaultGroup) { this.CreateEnterpriseFolderAsync(itemId, folderName, quota, quotaType, addDefaultGroup, null); } - + /// - public void CreateEnterpriseFolderAsync(int itemId, string folderName, int quota, QuotaType quotaType, bool addDefaultGroup, object userState) - { - if ((this.CreateEnterpriseFolderOperationCompleted == null)) - { + public void CreateEnterpriseFolderAsync(int itemId, string folderName, int quota, QuotaType quotaType, bool addDefaultGroup, object userState) { + if ((this.CreateEnterpriseFolderOperationCompleted == null)) { this.CreateEnterpriseFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateEnterpriseFolderOperationCompleted); } this.InvokeAsync("CreateEnterpriseFolder", new object[] { - itemId, - folderName, - quota, - quotaType, - addDefaultGroup}, this.CreateEnterpriseFolderOperationCompleted, userState); + itemId, + folderName, + quota, + quotaType, + addDefaultGroup}, this.CreateEnterpriseFolderOperationCompleted, userState); } - - private void OnCreateEnterpriseFolderOperationCompleted(object arg) - { - if ((this.CreateEnterpriseFolderCompleted != null)) - { + + private void OnCreateEnterpriseFolderOperationCompleted(object arg) { + if ((this.CreateEnterpriseFolderCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateEnterpriseFolderCompleted(this, new CreateEnterpriseFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteEnterpriseFolder", 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 ResultObject DeleteEnterpriseFolder(int itemId, string folderName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteEnterpriseFolder", 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 ResultObject DeleteEnterpriseFolder(int itemId, string folderName) { object[] results = this.Invoke("DeleteEnterpriseFolder", new object[] { - itemId, - folderName}); + itemId, + folderName}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginDeleteEnterpriseFolder(int itemId, string folderName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteEnterpriseFolder(int itemId, string folderName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteEnterpriseFolder", new object[] { - itemId, - folderName}, callback, asyncState); + itemId, + folderName}, callback, asyncState); } - + /// - public ResultObject EndDeleteEnterpriseFolder(System.IAsyncResult asyncResult) - { + public ResultObject EndDeleteEnterpriseFolder(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void DeleteEnterpriseFolderAsync(int itemId, string folderName) - { + public void DeleteEnterpriseFolderAsync(int itemId, string folderName) { this.DeleteEnterpriseFolderAsync(itemId, folderName, null); } - + /// - public void DeleteEnterpriseFolderAsync(int itemId, string folderName, object userState) - { - if ((this.DeleteEnterpriseFolderOperationCompleted == null)) - { + public void DeleteEnterpriseFolderAsync(int itemId, string folderName, object userState) { + if ((this.DeleteEnterpriseFolderOperationCompleted == null)) { this.DeleteEnterpriseFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteEnterpriseFolderOperationCompleted); } this.InvokeAsync("DeleteEnterpriseFolder", new object[] { - itemId, - folderName}, this.DeleteEnterpriseFolderOperationCompleted, userState); + itemId, + folderName}, this.DeleteEnterpriseFolderOperationCompleted, userState); } - - private void OnDeleteEnterpriseFolderOperationCompleted(object arg) - { - if ((this.DeleteEnterpriseFolderCompleted != null)) - { + + private void OnDeleteEnterpriseFolderOperationCompleted(object arg) { + if ((this.DeleteEnterpriseFolderCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteEnterpriseFolderCompleted(this, new DeleteEnterpriseFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetEnterpriseFolderPermissions", 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 ESPermission[] GetEnterpriseFolderPermissions(int itemId, string folderName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetEnterpriseFolderPermissions", 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 ESPermission[] GetEnterpriseFolderPermissions(int itemId, string folderName) { object[] results = this.Invoke("GetEnterpriseFolderPermissions", new object[] { - itemId, - folderName}); + itemId, + folderName}); return ((ESPermission[])(results[0])); } - + /// - public System.IAsyncResult BeginGetEnterpriseFolderPermissions(int itemId, string folderName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetEnterpriseFolderPermissions(int itemId, string folderName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetEnterpriseFolderPermissions", new object[] { - itemId, - folderName}, callback, asyncState); + itemId, + folderName}, callback, asyncState); } - + /// - public ESPermission[] EndGetEnterpriseFolderPermissions(System.IAsyncResult asyncResult) - { + public ESPermission[] EndGetEnterpriseFolderPermissions(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ESPermission[])(results[0])); } - + /// - public void GetEnterpriseFolderPermissionsAsync(int itemId, string folderName) - { + public void GetEnterpriseFolderPermissionsAsync(int itemId, string folderName) { this.GetEnterpriseFolderPermissionsAsync(itemId, folderName, null); } - + /// - public void GetEnterpriseFolderPermissionsAsync(int itemId, string folderName, object userState) - { - if ((this.GetEnterpriseFolderPermissionsOperationCompleted == null)) - { + public void GetEnterpriseFolderPermissionsAsync(int itemId, string folderName, object userState) { + if ((this.GetEnterpriseFolderPermissionsOperationCompleted == null)) { this.GetEnterpriseFolderPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEnterpriseFolderPermissionsOperationCompleted); } this.InvokeAsync("GetEnterpriseFolderPermissions", new object[] { - itemId, - folderName}, this.GetEnterpriseFolderPermissionsOperationCompleted, userState); + itemId, + folderName}, this.GetEnterpriseFolderPermissionsOperationCompleted, userState); } - - private void OnGetEnterpriseFolderPermissionsOperationCompleted(object arg) - { - if ((this.GetEnterpriseFolderPermissionsCompleted != null)) - { + + private void OnGetEnterpriseFolderPermissionsOperationCompleted(object arg) { + if ((this.GetEnterpriseFolderPermissionsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetEnterpriseFolderPermissionsCompleted(this, new GetEnterpriseFolderPermissionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetEnterpriseFolderPermissions", 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 ResultObject SetEnterpriseFolderPermissions(int itemId, string folderName, ESPermission[] permission) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetEnterpriseFolderPermissions", 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 ResultObject SetEnterpriseFolderPermissions(int itemId, string folderName, ESPermission[] permission) { object[] results = this.Invoke("SetEnterpriseFolderPermissions", new object[] { - itemId, - folderName, - permission}); + itemId, + folderName, + permission}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginSetEnterpriseFolderPermissions(int itemId, string folderName, ESPermission[] permission, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetEnterpriseFolderPermissions(int itemId, string folderName, ESPermission[] permission, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetEnterpriseFolderPermissions", new object[] { - itemId, - folderName, - permission}, callback, asyncState); + itemId, + folderName, + permission}, callback, asyncState); } - + /// - public ResultObject EndSetEnterpriseFolderPermissions(System.IAsyncResult asyncResult) - { + public ResultObject EndSetEnterpriseFolderPermissions(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void SetEnterpriseFolderPermissionsAsync(int itemId, string folderName, ESPermission[] permission) - { + public void SetEnterpriseFolderPermissionsAsync(int itemId, string folderName, ESPermission[] permission) { this.SetEnterpriseFolderPermissionsAsync(itemId, folderName, permission, null); } - + /// - public void SetEnterpriseFolderPermissionsAsync(int itemId, string folderName, ESPermission[] permission, object userState) - { - if ((this.SetEnterpriseFolderPermissionsOperationCompleted == null)) - { + public void SetEnterpriseFolderPermissionsAsync(int itemId, string folderName, ESPermission[] permission, object userState) { + if ((this.SetEnterpriseFolderPermissionsOperationCompleted == null)) { this.SetEnterpriseFolderPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetEnterpriseFolderPermissionsOperationCompleted); } this.InvokeAsync("SetEnterpriseFolderPermissions", new object[] { - itemId, - folderName, - permission}, this.SetEnterpriseFolderPermissionsOperationCompleted, userState); + itemId, + folderName, + permission}, this.SetEnterpriseFolderPermissionsOperationCompleted, userState); } - - private void OnSetEnterpriseFolderPermissionsOperationCompleted(object arg) - { - if ((this.SetEnterpriseFolderPermissionsCompleted != null)) - { + + private void OnSetEnterpriseFolderPermissionsOperationCompleted(object arg) { + if ((this.SetEnterpriseFolderPermissionsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetEnterpriseFolderPermissionsCompleted(this, new SetEnterpriseFolderPermissionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SearchESAccounts", 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 ExchangeAccount[] SearchESAccounts(int itemId, string filterColumn, string filterValue, string sortColumn) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SearchESAccounts", 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 ExchangeAccount[] SearchESAccounts(int itemId, string filterColumn, string filterValue, string sortColumn) { object[] results = this.Invoke("SearchESAccounts", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn}); + itemId, + filterColumn, + filterValue, + sortColumn}); return ((ExchangeAccount[])(results[0])); } - + /// - public System.IAsyncResult BeginSearchESAccounts(int itemId, string filterColumn, string filterValue, string sortColumn, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSearchESAccounts(int itemId, string filterColumn, string filterValue, string sortColumn, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SearchESAccounts", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn}, callback, asyncState); + itemId, + filterColumn, + filterValue, + sortColumn}, callback, asyncState); } - + /// - public ExchangeAccount[] EndSearchESAccounts(System.IAsyncResult asyncResult) - { + public ExchangeAccount[] EndSearchESAccounts(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeAccount[])(results[0])); } - + /// - public void SearchESAccountsAsync(int itemId, string filterColumn, string filterValue, string sortColumn) - { + public void SearchESAccountsAsync(int itemId, string filterColumn, string filterValue, string sortColumn) { this.SearchESAccountsAsync(itemId, filterColumn, filterValue, sortColumn, null); } - + /// - public void SearchESAccountsAsync(int itemId, string filterColumn, string filterValue, string sortColumn, object userState) - { - if ((this.SearchESAccountsOperationCompleted == null)) - { + public void SearchESAccountsAsync(int itemId, string filterColumn, string filterValue, string sortColumn, object userState) { + if ((this.SearchESAccountsOperationCompleted == null)) { this.SearchESAccountsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSearchESAccountsOperationCompleted); } this.InvokeAsync("SearchESAccounts", new object[] { - itemId, - filterColumn, - filterValue, - sortColumn}, this.SearchESAccountsOperationCompleted, userState); + itemId, + filterColumn, + filterValue, + sortColumn}, this.SearchESAccountsOperationCompleted, userState); } - - private void OnSearchESAccountsOperationCompleted(object arg) - { - if ((this.SearchESAccountsCompleted != null)) - { + + private void OnSearchESAccountsOperationCompleted(object arg) { + if ((this.SearchESAccountsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SearchESAccountsCompleted(this, new SearchESAccountsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetEnterpriseFoldersPaged", 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 SystemFilesPaged GetEnterpriseFoldersPaged(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetEnterpriseFoldersPaged", 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 SystemFilesPaged GetEnterpriseFoldersPaged(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows) { object[] results = this.Invoke("GetEnterpriseFoldersPaged", new object[] { - itemId, - filterValue, - sortColumn, - startRow, - maximumRows}); + itemId, + filterValue, + sortColumn, + startRow, + maximumRows}); return ((SystemFilesPaged)(results[0])); } - + /// - public System.IAsyncResult BeginGetEnterpriseFoldersPaged(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetEnterpriseFoldersPaged(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetEnterpriseFoldersPaged", new object[] { - itemId, - filterValue, - sortColumn, - startRow, - maximumRows}, callback, asyncState); + itemId, + filterValue, + sortColumn, + startRow, + maximumRows}, callback, asyncState); } - + /// - public SystemFilesPaged EndGetEnterpriseFoldersPaged(System.IAsyncResult asyncResult) - { + public SystemFilesPaged EndGetEnterpriseFoldersPaged(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((SystemFilesPaged)(results[0])); } - + /// - public void GetEnterpriseFoldersPagedAsync(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows) - { + public void GetEnterpriseFoldersPagedAsync(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows) { this.GetEnterpriseFoldersPagedAsync(itemId, filterValue, sortColumn, startRow, maximumRows, null); } - + /// - public void GetEnterpriseFoldersPagedAsync(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) - { - if ((this.GetEnterpriseFoldersPagedOperationCompleted == null)) - { + public void GetEnterpriseFoldersPagedAsync(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { + if ((this.GetEnterpriseFoldersPagedOperationCompleted == null)) { this.GetEnterpriseFoldersPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetEnterpriseFoldersPagedOperationCompleted); } this.InvokeAsync("GetEnterpriseFoldersPaged", new object[] { - itemId, - filterValue, - sortColumn, - startRow, - maximumRows}, this.GetEnterpriseFoldersPagedOperationCompleted, userState); + itemId, + filterValue, + sortColumn, + startRow, + maximumRows}, this.GetEnterpriseFoldersPagedOperationCompleted, userState); } - - private void OnGetEnterpriseFoldersPagedOperationCompleted(object arg) - { - if ((this.GetEnterpriseFoldersPagedCompleted != null)) - { + + private void OnGetEnterpriseFoldersPagedOperationCompleted(object arg) { + if ((this.GetEnterpriseFoldersPagedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetEnterpriseFoldersPagedCompleted(this, new GetEnterpriseFoldersPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RenameEnterpriseFolder", 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 SystemFile RenameEnterpriseFolder(int itemId, string oldName, string newName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/RenameEnterpriseFolder", 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 SystemFile RenameEnterpriseFolder(int itemId, string oldName, string newName) { object[] results = this.Invoke("RenameEnterpriseFolder", new object[] { - itemId, - oldName, - newName}); + itemId, + oldName, + newName}); return ((SystemFile)(results[0])); } - + /// - public System.IAsyncResult BeginRenameEnterpriseFolder(int itemId, string oldName, string newName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginRenameEnterpriseFolder(int itemId, string oldName, string newName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("RenameEnterpriseFolder", new object[] { - itemId, - oldName, - newName}, callback, asyncState); + itemId, + oldName, + newName}, callback, asyncState); } - + /// - public SystemFile EndRenameEnterpriseFolder(System.IAsyncResult asyncResult) - { + public SystemFile EndRenameEnterpriseFolder(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((SystemFile)(results[0])); } - + /// - public void RenameEnterpriseFolderAsync(int itemId, string oldName, string newName) - { + public void RenameEnterpriseFolderAsync(int itemId, string oldName, string newName) { this.RenameEnterpriseFolderAsync(itemId, oldName, newName, null); } - + /// - public void RenameEnterpriseFolderAsync(int itemId, string oldName, string newName, object userState) - { - if ((this.RenameEnterpriseFolderOperationCompleted == null)) - { + public void RenameEnterpriseFolderAsync(int itemId, string oldName, string newName, object userState) { + if ((this.RenameEnterpriseFolderOperationCompleted == null)) { this.RenameEnterpriseFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRenameEnterpriseFolderOperationCompleted); } this.InvokeAsync("RenameEnterpriseFolder", new object[] { - itemId, - oldName, - newName}, this.RenameEnterpriseFolderOperationCompleted, userState); + itemId, + oldName, + newName}, this.RenameEnterpriseFolderOperationCompleted, userState); } - - private void OnRenameEnterpriseFolderOperationCompleted(object arg) - { - if ((this.RenameEnterpriseFolderCompleted != null)) - { + + private void OnRenameEnterpriseFolderOperationCompleted(object arg) { + if ((this.RenameEnterpriseFolderCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RenameEnterpriseFolderCompleted(this, new RenameEnterpriseFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateEnterpriseStorage", 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 ResultObject CreateEnterpriseStorage(int packageId, int itemId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateEnterpriseStorage", 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 ResultObject CreateEnterpriseStorage(int packageId, int itemId) { object[] results = this.Invoke("CreateEnterpriseStorage", new object[] { - packageId, - itemId}); + packageId, + itemId}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginCreateEnterpriseStorage(int packageId, int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateEnterpriseStorage(int packageId, int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateEnterpriseStorage", new object[] { - packageId, - itemId}, callback, asyncState); + packageId, + itemId}, callback, asyncState); } - + /// - public ResultObject EndCreateEnterpriseStorage(System.IAsyncResult asyncResult) - { + public ResultObject EndCreateEnterpriseStorage(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void CreateEnterpriseStorageAsync(int packageId, int itemId) - { + public void CreateEnterpriseStorageAsync(int packageId, int itemId) { this.CreateEnterpriseStorageAsync(packageId, itemId, null); } - + /// - public void CreateEnterpriseStorageAsync(int packageId, int itemId, object userState) - { - if ((this.CreateEnterpriseStorageOperationCompleted == null)) - { + public void CreateEnterpriseStorageAsync(int packageId, int itemId, object userState) { + if ((this.CreateEnterpriseStorageOperationCompleted == null)) { this.CreateEnterpriseStorageOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateEnterpriseStorageOperationCompleted); } this.InvokeAsync("CreateEnterpriseStorage", new object[] { - packageId, - itemId}, this.CreateEnterpriseStorageOperationCompleted, userState); + packageId, + itemId}, this.CreateEnterpriseStorageOperationCompleted, userState); } - - private void OnCreateEnterpriseStorageOperationCompleted(object arg) - { - if ((this.CreateEnterpriseStorageCompleted != null)) - { + + private void OnCreateEnterpriseStorageOperationCompleted(object arg) { + if ((this.CreateEnterpriseStorageCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateEnterpriseStorageCompleted(this, new CreateEnterpriseStorageCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CheckEnterpriseStorageInitialization" + - "", 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 bool CheckEnterpriseStorageInitialization(int packageId, int itemId) - { + "", 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 bool CheckEnterpriseStorageInitialization(int packageId, int itemId) { object[] results = this.Invoke("CheckEnterpriseStorageInitialization", new object[] { - packageId, - itemId}); + packageId, + itemId}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginCheckEnterpriseStorageInitialization(int packageId, int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCheckEnterpriseStorageInitialization(int packageId, int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CheckEnterpriseStorageInitialization", new object[] { - packageId, - itemId}, callback, asyncState); + packageId, + itemId}, callback, asyncState); } - + /// - public bool EndCheckEnterpriseStorageInitialization(System.IAsyncResult asyncResult) - { + public bool EndCheckEnterpriseStorageInitialization(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void CheckEnterpriseStorageInitializationAsync(int packageId, int itemId) - { + public void CheckEnterpriseStorageInitializationAsync(int packageId, int itemId) { this.CheckEnterpriseStorageInitializationAsync(packageId, itemId, null); } - + /// - public void CheckEnterpriseStorageInitializationAsync(int packageId, int itemId, object userState) - { - if ((this.CheckEnterpriseStorageInitializationOperationCompleted == null)) - { + public void CheckEnterpriseStorageInitializationAsync(int packageId, int itemId, object userState) { + if ((this.CheckEnterpriseStorageInitializationOperationCompleted == null)) { this.CheckEnterpriseStorageInitializationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckEnterpriseStorageInitializationOperationCompleted); } this.InvokeAsync("CheckEnterpriseStorageInitialization", new object[] { - packageId, - itemId}, this.CheckEnterpriseStorageInitializationOperationCompleted, userState); + packageId, + itemId}, this.CheckEnterpriseStorageInitializationOperationCompleted, userState); } - - private void OnCheckEnterpriseStorageInitializationOperationCompleted(object arg) - { - if ((this.CheckEnterpriseStorageInitializationCompleted != null)) - { + + private void OnCheckEnterpriseStorageInitializationOperationCompleted(object arg) { + if ((this.CheckEnterpriseStorageInitializationCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CheckEnterpriseStorageInitializationCompleted(this, new CheckEnterpriseStorageInitializationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CheckUsersDomainExists", 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 bool CheckUsersDomainExists(int itemId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CheckUsersDomainExists", 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 bool CheckUsersDomainExists(int itemId) { object[] results = this.Invoke("CheckUsersDomainExists", new object[] { - itemId}); + itemId}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginCheckUsersDomainExists(int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCheckUsersDomainExists(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CheckUsersDomainExists", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } - + /// - public bool EndCheckUsersDomainExists(System.IAsyncResult asyncResult) - { + public bool EndCheckUsersDomainExists(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void CheckUsersDomainExistsAsync(int itemId) - { + public void CheckUsersDomainExistsAsync(int itemId) { this.CheckUsersDomainExistsAsync(itemId, null); } - + /// - public void CheckUsersDomainExistsAsync(int itemId, object userState) - { - if ((this.CheckUsersDomainExistsOperationCompleted == null)) - { + public void CheckUsersDomainExistsAsync(int itemId, object userState) { + if ((this.CheckUsersDomainExistsOperationCompleted == null)) { this.CheckUsersDomainExistsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckUsersDomainExistsOperationCompleted); } this.InvokeAsync("CheckUsersDomainExists", new object[] { - itemId}, this.CheckUsersDomainExistsOperationCompleted, userState); + itemId}, this.CheckUsersDomainExistsOperationCompleted, userState); } - - private void OnCheckUsersDomainExistsOperationCompleted(object arg) - { - if ((this.CheckUsersDomainExistsCompleted != null)) - { + + private void OnCheckUsersDomainExistsOperationCompleted(object arg) { + if ((this.CheckUsersDomainExistsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CheckUsersDomainExistsCompleted(this, new CheckUsersDomainExistsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDirectoryBrowseEnabled", 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 bool GetDirectoryBrowseEnabled(int itemId, string site) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDirectoryBrowseEnabled", 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 bool GetDirectoryBrowseEnabled(int itemId, string site) { object[] results = this.Invoke("GetDirectoryBrowseEnabled", new object[] { - itemId, - site}); + itemId, + site}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginGetDirectoryBrowseEnabled(int itemId, string site, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetDirectoryBrowseEnabled(int itemId, string site, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetDirectoryBrowseEnabled", new object[] { - itemId, - site}, callback, asyncState); + itemId, + site}, callback, asyncState); } - + /// - public bool EndGetDirectoryBrowseEnabled(System.IAsyncResult asyncResult) - { + public bool EndGetDirectoryBrowseEnabled(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void GetDirectoryBrowseEnabledAsync(int itemId, string site) - { + public void GetDirectoryBrowseEnabledAsync(int itemId, string site) { this.GetDirectoryBrowseEnabledAsync(itemId, site, null); } - + /// - public void GetDirectoryBrowseEnabledAsync(int itemId, string site, object userState) - { - if ((this.GetDirectoryBrowseEnabledOperationCompleted == null)) - { + public void GetDirectoryBrowseEnabledAsync(int itemId, string site, object userState) { + if ((this.GetDirectoryBrowseEnabledOperationCompleted == null)) { this.GetDirectoryBrowseEnabledOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDirectoryBrowseEnabledOperationCompleted); } this.InvokeAsync("GetDirectoryBrowseEnabled", new object[] { - itemId, - site}, this.GetDirectoryBrowseEnabledOperationCompleted, userState); + itemId, + site}, this.GetDirectoryBrowseEnabledOperationCompleted, userState); } - - private void OnGetDirectoryBrowseEnabledOperationCompleted(object arg) - { - if ((this.GetDirectoryBrowseEnabledCompleted != null)) - { + + private void OnGetDirectoryBrowseEnabledOperationCompleted(object arg) { + if ((this.GetDirectoryBrowseEnabledCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDirectoryBrowseEnabledCompleted(this, new GetDirectoryBrowseEnabledCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetDirectoryBrowseEnabled", 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 void SetDirectoryBrowseEnabled(int itemId, string site, bool enabled) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetDirectoryBrowseEnabled", 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 void SetDirectoryBrowseEnabled(int itemId, string site, bool enabled) { this.Invoke("SetDirectoryBrowseEnabled", new object[] { - itemId, - site, - enabled}); + itemId, + site, + enabled}); } - + /// - public System.IAsyncResult BeginSetDirectoryBrowseEnabled(int itemId, string site, bool enabled, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetDirectoryBrowseEnabled(int itemId, string site, bool enabled, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDirectoryBrowseEnabled", new object[] { - itemId, - site, - enabled}, callback, asyncState); + itemId, + site, + enabled}, callback, asyncState); } - + /// - public void EndSetDirectoryBrowseEnabled(System.IAsyncResult asyncResult) - { + public void EndSetDirectoryBrowseEnabled(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetDirectoryBrowseEnabledAsync(int itemId, string site, bool enabled) - { + public void SetDirectoryBrowseEnabledAsync(int itemId, string site, bool enabled) { this.SetDirectoryBrowseEnabledAsync(itemId, site, enabled, null); } - + /// - public void SetDirectoryBrowseEnabledAsync(int itemId, string site, bool enabled, object userState) - { - if ((this.SetDirectoryBrowseEnabledOperationCompleted == null)) - { + public void SetDirectoryBrowseEnabledAsync(int itemId, string site, bool enabled, object userState) { + if ((this.SetDirectoryBrowseEnabledOperationCompleted == null)) { this.SetDirectoryBrowseEnabledOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDirectoryBrowseEnabledOperationCompleted); } this.InvokeAsync("SetDirectoryBrowseEnabled", new object[] { - itemId, - site, - enabled}, this.SetDirectoryBrowseEnabledOperationCompleted, userState); + itemId, + site, + enabled}, this.SetDirectoryBrowseEnabledOperationCompleted, userState); } - - private void OnSetDirectoryBrowseEnabledOperationCompleted(object arg) - { - if ((this.SetDirectoryBrowseEnabledCompleted != null)) - { + + private void OnSetDirectoryBrowseEnabledOperationCompleted(object arg) { + if ((this.SetDirectoryBrowseEnabledCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDirectoryBrowseEnabledCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetEnterpriseFolderSettings", 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 void SetEnterpriseFolderSettings(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetEnterpriseFolderSettings", 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 void SetEnterpriseFolderSettings(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType) { this.Invoke("SetEnterpriseFolderSettings", new object[] { - itemId, - folder, - permissions, - directoyBrowsingEnabled, - quota, - quotaType}); + itemId, + folder, + permissions, + directoyBrowsingEnabled, + quota, + quotaType}); } - + /// - public System.IAsyncResult BeginSetEnterpriseFolderSettings(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetEnterpriseFolderSettings(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetEnterpriseFolderSettings", new object[] { - itemId, - folder, - permissions, - directoyBrowsingEnabled, - quota, - quotaType}, callback, asyncState); + itemId, + folder, + permissions, + directoyBrowsingEnabled, + quota, + quotaType}, callback, asyncState); } - + /// - public void EndSetEnterpriseFolderSettings(System.IAsyncResult asyncResult) - { + public void EndSetEnterpriseFolderSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetEnterpriseFolderSettingsAsync(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType) - { + public void SetEnterpriseFolderSettingsAsync(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType) { this.SetEnterpriseFolderSettingsAsync(itemId, folder, permissions, directoyBrowsingEnabled, quota, quotaType, null); } - + /// - public void SetEnterpriseFolderSettingsAsync(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType, object userState) - { - if ((this.SetEnterpriseFolderSettingsOperationCompleted == null)) - { + public void SetEnterpriseFolderSettingsAsync(int itemId, SystemFile folder, ESPermission[] permissions, bool directoyBrowsingEnabled, int quota, QuotaType quotaType, object userState) { + if ((this.SetEnterpriseFolderSettingsOperationCompleted == null)) { this.SetEnterpriseFolderSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetEnterpriseFolderSettingsOperationCompleted); } this.InvokeAsync("SetEnterpriseFolderSettings", new object[] { - itemId, - folder, - permissions, - directoyBrowsingEnabled, - quota, - quotaType}, this.SetEnterpriseFolderSettingsOperationCompleted, userState); + itemId, + folder, + permissions, + directoyBrowsingEnabled, + quota, + quotaType}, this.SetEnterpriseFolderSettingsOperationCompleted, userState); } - - private void OnSetEnterpriseFolderSettingsOperationCompleted(object arg) - { - if ((this.SetEnterpriseFolderSettingsCompleted != null)) - { + + private void OnSetEnterpriseFolderSettingsOperationCompleted(object arg) { + if ((this.SetEnterpriseFolderSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetEnterpriseFolderSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetStatistics", 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 OrganizationStatistics GetStatistics(int itemId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetStatistics", 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 OrganizationStatistics GetStatistics(int itemId) { object[] results = this.Invoke("GetStatistics", new object[] { - itemId}); + itemId}); return ((OrganizationStatistics)(results[0])); } - + /// - public System.IAsyncResult BeginGetStatistics(int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetStatistics(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetStatistics", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } - + /// - public OrganizationStatistics EndGetStatistics(System.IAsyncResult asyncResult) - { + public OrganizationStatistics EndGetStatistics(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((OrganizationStatistics)(results[0])); } - + /// - public void GetStatisticsAsync(int itemId) - { + public void GetStatisticsAsync(int itemId) { this.GetStatisticsAsync(itemId, null); } - + /// - public void GetStatisticsAsync(int itemId, object userState) - { - if ((this.GetStatisticsOperationCompleted == null)) - { + public void GetStatisticsAsync(int itemId, object userState) { + if ((this.GetStatisticsOperationCompleted == null)) { this.GetStatisticsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetStatisticsOperationCompleted); } this.InvokeAsync("GetStatistics", new object[] { - itemId}, this.GetStatisticsOperationCompleted, userState); + itemId}, this.GetStatisticsOperationCompleted, userState); } - - private void OnGetStatisticsOperationCompleted(object arg) - { - if ((this.GetStatisticsCompleted != null)) - { + + private void OnGetStatisticsOperationCompleted(object arg) { + if ((this.GetStatisticsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetStatisticsCompleted(this, new GetStatisticsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetStatisticsByOrganization", 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 OrganizationStatistics GetStatisticsByOrganization(int itemId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetStatisticsByOrganization", 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 OrganizationStatistics GetStatisticsByOrganization(int itemId) { object[] results = this.Invoke("GetStatisticsByOrganization", new object[] { - itemId}); + itemId}); return ((OrganizationStatistics)(results[0])); } - + /// - public System.IAsyncResult BeginGetStatisticsByOrganization(int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetStatisticsByOrganization(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetStatisticsByOrganization", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } - + /// - public OrganizationStatistics EndGetStatisticsByOrganization(System.IAsyncResult asyncResult) - { + public OrganizationStatistics EndGetStatisticsByOrganization(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((OrganizationStatistics)(results[0])); } - + /// - public void GetStatisticsByOrganizationAsync(int itemId) - { + public void GetStatisticsByOrganizationAsync(int itemId) { this.GetStatisticsByOrganizationAsync(itemId, null); } - + /// - public void GetStatisticsByOrganizationAsync(int itemId, object userState) - { - if ((this.GetStatisticsByOrganizationOperationCompleted == null)) - { + public void GetStatisticsByOrganizationAsync(int itemId, object userState) { + if ((this.GetStatisticsByOrganizationOperationCompleted == null)) { this.GetStatisticsByOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetStatisticsByOrganizationOperationCompleted); } this.InvokeAsync("GetStatisticsByOrganization", new object[] { - itemId}, this.GetStatisticsByOrganizationOperationCompleted, userState); + itemId}, this.GetStatisticsByOrganizationOperationCompleted, userState); } - - private void OnGetStatisticsByOrganizationOperationCompleted(object arg) - { - if ((this.GetStatisticsByOrganizationCompleted != null)) - { + + private void OnGetStatisticsByOrganizationOperationCompleted(object arg) { + if ((this.GetStatisticsByOrganizationCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetStatisticsByOrganizationCompleted(this, new GetStatisticsByOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateMappedDrive", 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 ResultObject CreateMappedDrive(int packageId, int itemId, string driveLetter, string labelAs, string folderName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateMappedDrive", 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 ResultObject CreateMappedDrive(int packageId, int itemId, string driveLetter, string labelAs, string folderName) { object[] results = this.Invoke("CreateMappedDrive", new object[] { - packageId, - itemId, - driveLetter, - labelAs, - folderName}); + packageId, + itemId, + driveLetter, + labelAs, + folderName}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginCreateMappedDrive(int packageId, int itemId, string driveLetter, string labelAs, string folderName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateMappedDrive(int packageId, int itemId, string driveLetter, string labelAs, string folderName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateMappedDrive", new object[] { - packageId, - itemId, - driveLetter, - labelAs, - folderName}, callback, asyncState); + packageId, + itemId, + driveLetter, + labelAs, + folderName}, callback, asyncState); } - + /// - public ResultObject EndCreateMappedDrive(System.IAsyncResult asyncResult) - { + public ResultObject EndCreateMappedDrive(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void CreateMappedDriveAsync(int packageId, int itemId, string driveLetter, string labelAs, string folderName) - { + public void CreateMappedDriveAsync(int packageId, int itemId, string driveLetter, string labelAs, string folderName) { this.CreateMappedDriveAsync(packageId, itemId, driveLetter, labelAs, folderName, null); } - + /// - public void CreateMappedDriveAsync(int packageId, int itemId, string driveLetter, string labelAs, string folderName, object userState) - { - if ((this.CreateMappedDriveOperationCompleted == null)) - { + public void CreateMappedDriveAsync(int packageId, int itemId, string driveLetter, string labelAs, string folderName, object userState) { + if ((this.CreateMappedDriveOperationCompleted == null)) { this.CreateMappedDriveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateMappedDriveOperationCompleted); } this.InvokeAsync("CreateMappedDrive", new object[] { - packageId, - itemId, - driveLetter, - labelAs, - folderName}, this.CreateMappedDriveOperationCompleted, userState); + packageId, + itemId, + driveLetter, + labelAs, + folderName}, this.CreateMappedDriveOperationCompleted, userState); } - - private void OnCreateMappedDriveOperationCompleted(object arg) - { - if ((this.CreateMappedDriveCompleted != null)) - { + + private void OnCreateMappedDriveOperationCompleted(object arg) { + if ((this.CreateMappedDriveCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateMappedDriveCompleted(this, new CreateMappedDriveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteMappedDrive", 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 ResultObject DeleteMappedDrive(int itemId, string driveLetter) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteMappedDrive", 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 ResultObject DeleteMappedDrive(int itemId, string driveLetter) { object[] results = this.Invoke("DeleteMappedDrive", new object[] { - itemId, - driveLetter}); + itemId, + driveLetter}); return ((ResultObject)(results[0])); } - + /// - public System.IAsyncResult BeginDeleteMappedDrive(int itemId, string driveLetter, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteMappedDrive(int itemId, string driveLetter, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteMappedDrive", new object[] { - itemId, - driveLetter}, callback, asyncState); + itemId, + driveLetter}, callback, asyncState); } - + /// - public ResultObject EndDeleteMappedDrive(System.IAsyncResult asyncResult) - { + public ResultObject EndDeleteMappedDrive(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ResultObject)(results[0])); } - + /// - public void DeleteMappedDriveAsync(int itemId, string driveLetter) - { + public void DeleteMappedDriveAsync(int itemId, string driveLetter) { this.DeleteMappedDriveAsync(itemId, driveLetter, null); } - + /// - public void DeleteMappedDriveAsync(int itemId, string driveLetter, object userState) - { - if ((this.DeleteMappedDriveOperationCompleted == null)) - { + public void DeleteMappedDriveAsync(int itemId, string driveLetter, object userState) { + if ((this.DeleteMappedDriveOperationCompleted == null)) { this.DeleteMappedDriveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteMappedDriveOperationCompleted); } this.InvokeAsync("DeleteMappedDrive", new object[] { - itemId, - driveLetter}, this.DeleteMappedDriveOperationCompleted, userState); + itemId, + driveLetter}, this.DeleteMappedDriveOperationCompleted, userState); } - - private void OnDeleteMappedDriveOperationCompleted(object arg) - { - if ((this.DeleteMappedDriveCompleted != null)) - { + + private void OnDeleteMappedDriveOperationCompleted(object arg) { + if ((this.DeleteMappedDriveCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteMappedDriveCompleted(this, new DeleteMappedDriveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDriveMapsPaged", 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 MappedDrivesPaged GetDriveMapsPaged(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetDriveMapsPaged", 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 MappedDrivesPaged GetDriveMapsPaged(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows) { object[] results = this.Invoke("GetDriveMapsPaged", new object[] { - itemId, - filterValue, - sortColumn, - startRow, - maximumRows}); + itemId, + filterValue, + sortColumn, + startRow, + maximumRows}); return ((MappedDrivesPaged)(results[0])); } - + /// - public System.IAsyncResult BeginGetDriveMapsPaged(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetDriveMapsPaged(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetDriveMapsPaged", new object[] { - itemId, - filterValue, - sortColumn, - startRow, - maximumRows}, callback, asyncState); + itemId, + filterValue, + sortColumn, + startRow, + maximumRows}, callback, asyncState); } - + /// - public MappedDrivesPaged EndGetDriveMapsPaged(System.IAsyncResult asyncResult) - { + public MappedDrivesPaged EndGetDriveMapsPaged(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((MappedDrivesPaged)(results[0])); } - + /// - public void GetDriveMapsPagedAsync(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows) - { + public void GetDriveMapsPagedAsync(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows) { this.GetDriveMapsPagedAsync(itemId, filterValue, sortColumn, startRow, maximumRows, null); } - + /// - public void GetDriveMapsPagedAsync(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) - { - if ((this.GetDriveMapsPagedOperationCompleted == null)) - { + public void GetDriveMapsPagedAsync(int itemId, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { + if ((this.GetDriveMapsPagedOperationCompleted == null)) { this.GetDriveMapsPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDriveMapsPagedOperationCompleted); } this.InvokeAsync("GetDriveMapsPaged", new object[] { - itemId, - filterValue, - sortColumn, - startRow, - maximumRows}, this.GetDriveMapsPagedOperationCompleted, userState); + itemId, + filterValue, + sortColumn, + startRow, + maximumRows}, this.GetDriveMapsPagedOperationCompleted, userState); } - - private void OnGetDriveMapsPagedOperationCompleted(object arg) - { - if ((this.GetDriveMapsPagedCompleted != null)) - { + + private void OnGetDriveMapsPagedOperationCompleted(object arg) { + if ((this.GetDriveMapsPagedCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDriveMapsPagedCompleted(this, new GetDriveMapsPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetUsedDriveLetters", 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 string[] GetUsedDriveLetters(int itemId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetUsedDriveLetters", 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 string[] GetUsedDriveLetters(int itemId) { object[] results = this.Invoke("GetUsedDriveLetters", new object[] { - itemId}); + itemId}); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginGetUsedDriveLetters(int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetUsedDriveLetters(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetUsedDriveLetters", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } - + /// - public string[] EndGetUsedDriveLetters(System.IAsyncResult asyncResult) - { + public string[] EndGetUsedDriveLetters(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void GetUsedDriveLettersAsync(int itemId) - { + public void GetUsedDriveLettersAsync(int itemId) { this.GetUsedDriveLettersAsync(itemId, null); } - + /// - public void GetUsedDriveLettersAsync(int itemId, object userState) - { - if ((this.GetUsedDriveLettersOperationCompleted == null)) - { + public void GetUsedDriveLettersAsync(int itemId, object userState) { + if ((this.GetUsedDriveLettersOperationCompleted == null)) { this.GetUsedDriveLettersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUsedDriveLettersOperationCompleted); } this.InvokeAsync("GetUsedDriveLetters", new object[] { - itemId}, this.GetUsedDriveLettersOperationCompleted, userState); + itemId}, this.GetUsedDriveLettersOperationCompleted, userState); } - - private void OnGetUsedDriveLettersOperationCompleted(object arg) - { - if ((this.GetUsedDriveLettersCompleted != null)) - { + + private void OnGetUsedDriveLettersOperationCompleted(object arg) { + if ((this.GetUsedDriveLettersCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetUsedDriveLettersCompleted(this, new GetUsedDriveLettersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetNotMappedEnterpriseFolders", 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 SystemFile[] GetNotMappedEnterpriseFolders(int itemId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetNotMappedEnterpriseFolders", 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 SystemFile[] GetNotMappedEnterpriseFolders(int itemId) { object[] results = this.Invoke("GetNotMappedEnterpriseFolders", new object[] { - itemId}); + itemId}); return ((SystemFile[])(results[0])); } - + /// - public System.IAsyncResult BeginGetNotMappedEnterpriseFolders(int itemId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetNotMappedEnterpriseFolders(int itemId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetNotMappedEnterpriseFolders", new object[] { - itemId}, callback, asyncState); + itemId}, callback, asyncState); } - + /// - public SystemFile[] EndGetNotMappedEnterpriseFolders(System.IAsyncResult asyncResult) - { + public SystemFile[] EndGetNotMappedEnterpriseFolders(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((SystemFile[])(results[0])); } - + /// - public void GetNotMappedEnterpriseFoldersAsync(int itemId) - { + public void GetNotMappedEnterpriseFoldersAsync(int itemId) { this.GetNotMappedEnterpriseFoldersAsync(itemId, null); } - + /// - public void GetNotMappedEnterpriseFoldersAsync(int itemId, object userState) - { - if ((this.GetNotMappedEnterpriseFoldersOperationCompleted == null)) - { + public void GetNotMappedEnterpriseFoldersAsync(int itemId, object userState) { + if ((this.GetNotMappedEnterpriseFoldersOperationCompleted == null)) { this.GetNotMappedEnterpriseFoldersOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetNotMappedEnterpriseFoldersOperationCompleted); } this.InvokeAsync("GetNotMappedEnterpriseFolders", new object[] { - itemId}, this.GetNotMappedEnterpriseFoldersOperationCompleted, userState); + itemId}, this.GetNotMappedEnterpriseFoldersOperationCompleted, userState); } - - private void OnGetNotMappedEnterpriseFoldersOperationCompleted(object arg) - { - if ((this.GetNotMappedEnterpriseFoldersCompleted != null)) - { + + private void OnGetNotMappedEnterpriseFoldersOperationCompleted(object arg) { + if ((this.GetNotMappedEnterpriseFoldersCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetNotMappedEnterpriseFoldersCompleted(this, new GetNotMappedEnterpriseFoldersCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - public new void CancelAsync(object userState) - { + public new void CancelAsync(object userState) { base.CancelAsync(userState); } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] - public delegate void CheckFileServicesInstallationCompletedEventHandler(object sender, CheckFileServicesInstallationCompletedEventArgs e); - + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void AddWebDavAccessTokenCompletedEventHandler(object sender, AddWebDavAccessTokenCompletedEventArgs e); + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CheckFileServicesInstallationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class AddWebDavAccessTokenCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CheckFileServicesInstallationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal AddWebDavAccessTokenCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public bool Result - { - get - { + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void DeleteExpiredWebDavAccessTokensCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetWebDavAccessTokenByIdCompletedEventHandler(object sender, GetWebDavAccessTokenByIdCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWebDavAccessTokenByIdCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWebDavAccessTokenByIdCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public WebDavAccessToken Result { + get { + this.RaiseExceptionIfNecessary(); + return ((WebDavAccessToken)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetWebDavAccessTokenByAccessTokenCompletedEventHandler(object sender, GetWebDavAccessTokenByAccessTokenCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetWebDavAccessTokenByAccessTokenCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetWebDavAccessTokenByAccessTokenCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public WebDavAccessToken Result { + get { + this.RaiseExceptionIfNecessary(); + return ((WebDavAccessToken)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void CheckFileServicesInstallationCompletedEventHandler(object sender, CheckFileServicesInstallationCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class CheckFileServicesInstallationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal CheckFileServicesInstallationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public bool Result { + get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetEnterpriseFoldersCompletedEventHandler(object sender, GetEnterpriseFoldersCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetEnterpriseFoldersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetEnterpriseFoldersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetEnterpriseFoldersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetEnterpriseFoldersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public SystemFile[] Result - { - get - { + public SystemFile[] Result { + get { this.RaiseExceptionIfNecessary(); return ((SystemFile[])(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetEnterpriseFolderCompletedEventHandler(object sender, GetEnterpriseFolderCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetEnterpriseFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetEnterpriseFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public SystemFile Result - { - get - { + public SystemFile Result { + get { this.RaiseExceptionIfNecessary(); return ((SystemFile)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateEnterpriseFolderCompletedEventHandler(object sender, CreateEnterpriseFolderCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CreateEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CreateEnterpriseFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CreateEnterpriseFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteEnterpriseFolderCompletedEventHandler(object sender, DeleteEnterpriseFolderCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class DeleteEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal DeleteEnterpriseFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal DeleteEnterpriseFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetEnterpriseFolderPermissionsCompletedEventHandler(object sender, GetEnterpriseFolderPermissionsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetEnterpriseFolderPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetEnterpriseFolderPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetEnterpriseFolderPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetEnterpriseFolderPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ESPermission[] Result - { - get - { + public ESPermission[] Result { + get { this.RaiseExceptionIfNecessary(); return ((ESPermission[])(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetEnterpriseFolderPermissionsCompletedEventHandler(object sender, SetEnterpriseFolderPermissionsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetEnterpriseFolderPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class SetEnterpriseFolderPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal SetEnterpriseFolderPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal SetEnterpriseFolderPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SearchESAccountsCompletedEventHandler(object sender, SearchESAccountsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SearchESAccountsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class SearchESAccountsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal SearchESAccountsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal SearchESAccountsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeAccount[] Result - { - get - { + public ExchangeAccount[] Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeAccount[])(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetEnterpriseFoldersPagedCompletedEventHandler(object sender, GetEnterpriseFoldersPagedCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetEnterpriseFoldersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetEnterpriseFoldersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetEnterpriseFoldersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetEnterpriseFoldersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public SystemFilesPaged Result - { - get - { + public SystemFilesPaged Result { + get { this.RaiseExceptionIfNecessary(); return ((SystemFilesPaged)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void RenameEnterpriseFolderCompletedEventHandler(object sender, RenameEnterpriseFolderCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RenameEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class RenameEnterpriseFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal RenameEnterpriseFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal RenameEnterpriseFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public SystemFile Result - { - get - { + public SystemFile Result { + get { this.RaiseExceptionIfNecessary(); return ((SystemFile)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateEnterpriseStorageCompletedEventHandler(object sender, CreateEnterpriseStorageCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateEnterpriseStorageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CreateEnterpriseStorageCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CreateEnterpriseStorageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CreateEnterpriseStorageCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CheckEnterpriseStorageInitializationCompletedEventHandler(object sender, CheckEnterpriseStorageInitializationCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CheckEnterpriseStorageInitializationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CheckEnterpriseStorageInitializationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CheckEnterpriseStorageInitializationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CheckEnterpriseStorageInitializationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public bool Result - { - get - { + public bool Result { + get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CheckUsersDomainExistsCompletedEventHandler(object sender, CheckUsersDomainExistsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CheckUsersDomainExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CheckUsersDomainExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CheckUsersDomainExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CheckUsersDomainExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public bool Result - { - get - { + public bool Result { + get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetDirectoryBrowseEnabledCompletedEventHandler(object sender, GetDirectoryBrowseEnabledCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDirectoryBrowseEnabledCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetDirectoryBrowseEnabledCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetDirectoryBrowseEnabledCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetDirectoryBrowseEnabledCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public bool Result - { - get - { + public bool Result { + get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetDirectoryBrowseEnabledCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetEnterpriseFolderSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetStatisticsCompletedEventHandler(object sender, GetStatisticsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public OrganizationStatistics Result - { - get - { + public OrganizationStatistics Result { + get { this.RaiseExceptionIfNecessary(); return ((OrganizationStatistics)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetStatisticsByOrganizationCompletedEventHandler(object sender, GetStatisticsByOrganizationCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "4.0.30319.17929")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetStatisticsByOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetStatisticsByOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetStatisticsByOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetStatisticsByOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public OrganizationStatistics Result - { - get - { + public OrganizationStatistics Result { + get { this.RaiseExceptionIfNecessary(); return ((OrganizationStatistics)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateMappedDriveCompletedEventHandler(object sender, CreateMappedDriveCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateMappedDriveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CreateMappedDriveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CreateMappedDriveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CreateMappedDriveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteMappedDriveCompletedEventHandler(object sender, DeleteMappedDriveCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteMappedDriveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class DeleteMappedDriveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal DeleteMappedDriveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal DeleteMappedDriveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ResultObject Result - { - get - { + public ResultObject Result { + get { this.RaiseExceptionIfNecessary(); return ((ResultObject)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetDriveMapsPagedCompletedEventHandler(object sender, GetDriveMapsPagedCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDriveMapsPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetDriveMapsPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetDriveMapsPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetDriveMapsPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public MappedDrivesPaged Result - { - get - { + public MappedDrivesPaged Result { + get { this.RaiseExceptionIfNecessary(); return ((MappedDrivesPaged)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetUsedDriveLettersCompletedEventHandler(object sender, GetUsedDriveLettersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetUsedDriveLettersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetUsedDriveLettersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetUsedDriveLettersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetUsedDriveLettersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public string[] Result - { - get - { + public string[] Result { + get { this.RaiseExceptionIfNecessary(); return ((string[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetNotMappedEnterpriseFoldersCompletedEventHandler(object sender, GetNotMappedEnterpriseFoldersCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetNotMappedEnterpriseFoldersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetNotMappedEnterpriseFoldersCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetNotMappedEnterpriseFoldersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetNotMappedEnterpriseFoldersCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public SystemFile[] Result - { - get - { + public SystemFile[] Result { + get { this.RaiseExceptionIfNecessary(); return ((SystemFile[])(this.results[0])); } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ExchangeServerProxy.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ExchangeServerProxy.cs index 824dc0e0..dbc4e005 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ExchangeServerProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/ExchangeServerProxy.cs @@ -19,10 +19,10 @@ namespace WebsitePanel.EnterpriseServer { using System; using System.Diagnostics; using System.Data; - using WebsitePanel.Providers; using WebsitePanel.Providers.HostedSolution; - using WebsitePanel.Providers.ResultObjects; using WebsitePanel.Providers.Common; + using WebsitePanel.Providers.ResultObjects; + using WebsitePanel.Providers; /// @@ -34,6 +34,10 @@ namespace WebsitePanel.EnterpriseServer { [System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))] public partial class esExchangeServer : Microsoft.Web.Services3.WebServicesClientProtocol { + private System.Threading.SendOrPostCallback DeleteDistributionListMemberOperationCompleted; + + private System.Threading.SendOrPostCallback GetMobileDevicesOperationCompleted; + private System.Threading.SendOrPostCallback GetMobileDeviceOperationCompleted; private System.Threading.SendOrPostCallback WipeDataFromDeviceOperationCompleted; @@ -196,6 +200,10 @@ namespace WebsitePanel.EnterpriseServer { private System.Threading.SendOrPostCallback SetMailboxPermissionsOperationCompleted; + private System.Threading.SendOrPostCallback ExportMailBoxOperationCompleted; + + private System.Threading.SendOrPostCallback SetDeletedMailboxOperationCompleted; + private System.Threading.SendOrPostCallback CreateContactOperationCompleted; private System.Threading.SendOrPostCallback DeleteContactOperationCompleted; @@ -236,15 +244,17 @@ namespace WebsitePanel.EnterpriseServer { private System.Threading.SendOrPostCallback AddDistributionListMemberOperationCompleted; - private System.Threading.SendOrPostCallback DeleteDistributionListMemberOperationCompleted; - - private System.Threading.SendOrPostCallback GetMobileDevicesOperationCompleted; - /// public esExchangeServer() { this.Url = "http://localhost:9002/esExchangeServer.asmx"; } + /// + public event DeleteDistributionListMemberCompletedEventHandler DeleteDistributionListMemberCompleted; + + /// + public event GetMobileDevicesCompletedEventHandler GetMobileDevicesCompleted; + /// public event GetMobileDeviceCompletedEventHandler GetMobileDeviceCompleted; @@ -488,6 +498,12 @@ namespace WebsitePanel.EnterpriseServer { /// public event SetMailboxPermissionsCompletedEventHandler SetMailboxPermissionsCompleted; + /// + public event ExportMailBoxCompletedEventHandler ExportMailBoxCompleted; + + /// + public event SetDeletedMailboxCompletedEventHandler SetDeletedMailboxCompleted; + /// public event CreateContactCompletedEventHandler CreateContactCompleted; @@ -549,10 +565,95 @@ namespace WebsitePanel.EnterpriseServer { public event AddDistributionListMemberCompletedEventHandler AddDistributionListMemberCompleted; /// - public event DeleteDistributionListMemberCompletedEventHandler DeleteDistributionListMemberCompleted; + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDistributionListMember", 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 DeleteDistributionListMember(int itemId, string distributionListName, int memberId) { + object[] results = this.Invoke("DeleteDistributionListMember", new object[] { + itemId, + distributionListName, + memberId}); + return ((int)(results[0])); + } /// - public event GetMobileDevicesCompletedEventHandler GetMobileDevicesCompleted; + public System.IAsyncResult BeginDeleteDistributionListMember(int itemId, string distributionListName, int memberId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DeleteDistributionListMember", new object[] { + itemId, + distributionListName, + memberId}, callback, asyncState); + } + + /// + public int EndDeleteDistributionListMember(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void DeleteDistributionListMemberAsync(int itemId, string distributionListName, int memberId) { + this.DeleteDistributionListMemberAsync(itemId, distributionListName, memberId, null); + } + + /// + public void DeleteDistributionListMemberAsync(int itemId, string distributionListName, int memberId, object userState) { + if ((this.DeleteDistributionListMemberOperationCompleted == null)) { + this.DeleteDistributionListMemberOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDistributionListMemberOperationCompleted); + } + this.InvokeAsync("DeleteDistributionListMember", new object[] { + itemId, + distributionListName, + memberId}, this.DeleteDistributionListMemberOperationCompleted, userState); + } + + private void OnDeleteDistributionListMemberOperationCompleted(object arg) { + if ((this.DeleteDistributionListMemberCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DeleteDistributionListMemberCompleted(this, new DeleteDistributionListMemberCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetMobileDevices", 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 ExchangeMobileDevice[] GetMobileDevices(int itemId, int accountId) { + object[] results = this.Invoke("GetMobileDevices", new object[] { + itemId, + accountId}); + return ((ExchangeMobileDevice[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetMobileDevices(int itemId, int accountId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetMobileDevices", new object[] { + itemId, + accountId}, callback, asyncState); + } + + /// + public ExchangeMobileDevice[] EndGetMobileDevices(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ExchangeMobileDevice[])(results[0])); + } + + /// + public void GetMobileDevicesAsync(int itemId, int accountId) { + this.GetMobileDevicesAsync(itemId, accountId, null); + } + + /// + public void GetMobileDevicesAsync(int itemId, int accountId, object userState) { + if ((this.GetMobileDevicesOperationCompleted == null)) { + this.GetMobileDevicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMobileDevicesOperationCompleted); + } + this.InvokeAsync("GetMobileDevices", new object[] { + itemId, + accountId}, this.GetMobileDevicesOperationCompleted, userState); + } + + private void OnGetMobileDevicesOperationCompleted(object arg) { + if ((this.GetMobileDevicesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetMobileDevicesCompleted(this, new GetMobileDevicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetMobileDevice", RequestNamespace="http://smbsaas/websitepanel/enterpriseserver", ResponseNamespace="http://smbsaas/websitepanel/enterpriseserver", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] @@ -4458,6 +4559,97 @@ namespace WebsitePanel.EnterpriseServer { } } + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/ExportMailBox", 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 ExportMailBox(int itemId, int accountId, string path) { + object[] results = this.Invoke("ExportMailBox", new object[] { + itemId, + accountId, + path}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginExportMailBox(int itemId, int accountId, string path, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("ExportMailBox", new object[] { + itemId, + accountId, + path}, callback, asyncState); + } + + /// + public int EndExportMailBox(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void ExportMailBoxAsync(int itemId, int accountId, string path) { + this.ExportMailBoxAsync(itemId, accountId, path, null); + } + + /// + public void ExportMailBoxAsync(int itemId, int accountId, string path, object userState) { + if ((this.ExportMailBoxOperationCompleted == null)) { + this.ExportMailBoxOperationCompleted = new System.Threading.SendOrPostCallback(this.OnExportMailBoxOperationCompleted); + } + this.InvokeAsync("ExportMailBox", new object[] { + itemId, + accountId, + path}, this.ExportMailBoxOperationCompleted, userState); + } + + private void OnExportMailBoxOperationCompleted(object arg) { + if ((this.ExportMailBoxCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.ExportMailBoxCompleted(this, new ExportMailBoxCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/SetDeletedMailbox", 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 SetDeletedMailbox(int itemId, int accountId) { + object[] results = this.Invoke("SetDeletedMailbox", new object[] { + itemId, + accountId}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginSetDeletedMailbox(int itemId, int accountId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("SetDeletedMailbox", new object[] { + itemId, + accountId}, callback, asyncState); + } + + /// + public int EndSetDeletedMailbox(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void SetDeletedMailboxAsync(int itemId, int accountId) { + this.SetDeletedMailboxAsync(itemId, accountId, null); + } + + /// + public void SetDeletedMailboxAsync(int itemId, int accountId, object userState) { + if ((this.SetDeletedMailboxOperationCompleted == null)) { + this.SetDeletedMailboxOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDeletedMailboxOperationCompleted); + } + this.InvokeAsync("SetDeletedMailbox", new object[] { + itemId, + accountId}, this.SetDeletedMailboxOperationCompleted, userState); + } + + private void OnSetDeletedMailboxOperationCompleted(object arg) { + if ((this.SetDeletedMailboxCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.SetDeletedMailboxCompleted(this, new SetDeletedMailboxCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/CreateContact", 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 CreateContact(int itemId, string displayName, string email) { @@ -5582,103 +5774,64 @@ namespace WebsitePanel.EnterpriseServer { } } - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/DeleteDistributionListMember", 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 DeleteDistributionListMember(int itemId, string distributionListName, int memberId) { - object[] results = this.Invoke("DeleteDistributionListMember", new object[] { - itemId, - distributionListName, - memberId}); - return ((int)(results[0])); - } - - /// - public System.IAsyncResult BeginDeleteDistributionListMember(int itemId, string distributionListName, int memberId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("DeleteDistributionListMember", new object[] { - itemId, - distributionListName, - memberId}, callback, asyncState); - } - - /// - public int EndDeleteDistributionListMember(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((int)(results[0])); - } - - /// - public void DeleteDistributionListMemberAsync(int itemId, string distributionListName, int memberId) { - this.DeleteDistributionListMemberAsync(itemId, distributionListName, memberId, null); - } - - /// - public void DeleteDistributionListMemberAsync(int itemId, string distributionListName, int memberId, object userState) { - if ((this.DeleteDistributionListMemberOperationCompleted == null)) { - this.DeleteDistributionListMemberOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDistributionListMemberOperationCompleted); - } - this.InvokeAsync("DeleteDistributionListMember", new object[] { - itemId, - distributionListName, - memberId}, this.DeleteDistributionListMemberOperationCompleted, userState); - } - - private void OnDeleteDistributionListMemberOperationCompleted(object arg) { - if ((this.DeleteDistributionListMemberCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.DeleteDistributionListMemberCompleted(this, new DeleteDistributionListMemberCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetMobileDevices", 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 ExchangeMobileDevice[] GetMobileDevices(int itemId, int accountId) { - object[] results = this.Invoke("GetMobileDevices", new object[] { - itemId, - accountId}); - return ((ExchangeMobileDevice[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetMobileDevices(int itemId, int accountId, System.AsyncCallback callback, object asyncState) { - return this.BeginInvoke("GetMobileDevices", new object[] { - itemId, - accountId}, callback, asyncState); - } - - /// - public ExchangeMobileDevice[] EndGetMobileDevices(System.IAsyncResult asyncResult) { - object[] results = this.EndInvoke(asyncResult); - return ((ExchangeMobileDevice[])(results[0])); - } - - /// - public void GetMobileDevicesAsync(int itemId, int accountId) { - this.GetMobileDevicesAsync(itemId, accountId, null); - } - - /// - public void GetMobileDevicesAsync(int itemId, int accountId, object userState) { - if ((this.GetMobileDevicesOperationCompleted == null)) { - this.GetMobileDevicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMobileDevicesOperationCompleted); - } - this.InvokeAsync("GetMobileDevices", new object[] { - itemId, - accountId}, this.GetMobileDevicesOperationCompleted, userState); - } - - private void OnGetMobileDevicesOperationCompleted(object arg) { - if ((this.GetMobileDevicesCompleted != null)) { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetMobileDevicesCompleted(this, new GetMobileDevicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - /// public new void CancelAsync(object userState) { base.CancelAsync(userState); } } + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void DeleteDistributionListMemberCompletedEventHandler(object sender, DeleteDistributionListMemberCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class DeleteDistributionListMemberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal DeleteDistributionListMemberCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetMobileDevicesCompletedEventHandler(object sender, GetMobileDevicesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetMobileDevicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetMobileDevicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ExchangeMobileDevice[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ExchangeMobileDevice[])(this.results[0])); + } + } + } + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetMobileDeviceCompletedEventHandler(object sender, GetMobileDeviceCompletedEventArgs e); @@ -7697,6 +7850,58 @@ namespace WebsitePanel.EnterpriseServer { } } + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void ExportMailBoxCompletedEventHandler(object sender, ExportMailBoxCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class ExportMailBoxCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal ExportMailBoxCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void SetDeletedMailboxCompletedEventHandler(object sender, SetDeletedMailboxCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class SetDeletedMailboxCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal SetDeletedMailboxCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateContactCompletedEventHandler(object sender, CreateContactCompletedEventArgs e); @@ -8216,56 +8421,4 @@ namespace WebsitePanel.EnterpriseServer { } } } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] - public delegate void DeleteDistributionListMemberCompletedEventHandler(object sender, DeleteDistributionListMemberCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteDistributionListMemberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal DeleteDistributionListMemberCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public int Result { - get { - this.RaiseExceptionIfNecessary(); - return ((int)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] - public delegate void GetMobileDevicesCompletedEventHandler(object sender, GetMobileDevicesCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMobileDevicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { - - private object[] results; - - internal GetMobileDevicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) { - this.results = results; - } - - /// - public ExchangeMobileDevice[] Result { - get { - this.RaiseExceptionIfNecessary(); - return ((ExchangeMobileDevice[])(this.results[0])); - } - } - } } diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/OrganizationProxy.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/OrganizationProxy.cs index 2f48e4c5..a0df6615 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/OrganizationProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/OrganizationProxy.cs @@ -20,10 +20,11 @@ namespace WebsitePanel.EnterpriseServer.HostedSolution { using System.Diagnostics; using System.Data; using WebsitePanel.Providers.HostedSolution; + using WebsitePanel.Providers.Common; using WebsitePanel.EnterpriseServer.Base.HostedSolution; using WebsitePanel.Providers.ResultObjects; - using WebsitePanel.Providers.Common; using WebsitePanel.Providers; + using WebsitePanel.Providers.Common; /// @@ -78,6 +79,8 @@ namespace WebsitePanel.EnterpriseServer.HostedSolution { private System.Threading.SendOrPostCallback ImportUserOperationCompleted; + private System.Threading.SendOrPostCallback GetOrganizationDeletedUsersPagedOperationCompleted; + private System.Threading.SendOrPostCallback GetOrganizationUsersPagedOperationCompleted; private System.Threading.SendOrPostCallback GetUserGeneralSettingsOperationCompleted; @@ -90,6 +93,10 @@ namespace WebsitePanel.EnterpriseServer.HostedSolution { private System.Threading.SendOrPostCallback SearchAccountsOperationCompleted; + private System.Threading.SendOrPostCallback SetDeletedUserOperationCompleted; + + private System.Threading.SendOrPostCallback GetArchiveFileBinaryChunkOperationCompleted; + private System.Threading.SendOrPostCallback DeleteUserOperationCompleted; private System.Threading.SendOrPostCallback GetPasswordPolicyOperationCompleted; @@ -201,6 +208,9 @@ namespace WebsitePanel.EnterpriseServer.HostedSolution { /// public event ImportUserCompletedEventHandler ImportUserCompleted; + /// + public event GetOrganizationDeletedUsersPagedCompletedEventHandler GetOrganizationDeletedUsersPagedCompleted; + /// public event GetOrganizationUsersPagedCompletedEventHandler GetOrganizationUsersPagedCompleted; @@ -219,6 +229,12 @@ namespace WebsitePanel.EnterpriseServer.HostedSolution { /// public event SearchAccountsCompletedEventHandler SearchAccountsCompleted; + /// + public event SetDeletedUserCompletedEventHandler SetDeletedUserCompleted; + + /// + public event GetArchiveFileBinaryChunkCompletedEventHandler GetArchiveFileBinaryChunkCompleted; + /// public event DeleteUserCompletedEventHandler DeleteUserCompleted; @@ -1299,6 +1315,62 @@ namespace WebsitePanel.EnterpriseServer.HostedSolution { } } + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetOrganizationDeletedUsersPaged", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public OrganizationDeletedUsersPaged GetOrganizationDeletedUsersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { + object[] results = this.Invoke("GetOrganizationDeletedUsersPaged", new object[] { + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}); + return ((OrganizationDeletedUsersPaged)(results[0])); + } + + /// + public System.IAsyncResult BeginGetOrganizationDeletedUsersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetOrganizationDeletedUsersPaged", new object[] { + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, callback, asyncState); + } + + /// + public OrganizationDeletedUsersPaged EndGetOrganizationDeletedUsersPaged(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((OrganizationDeletedUsersPaged)(results[0])); + } + + /// + public void GetOrganizationDeletedUsersPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { + this.GetOrganizationDeletedUsersPagedAsync(itemId, filterColumn, filterValue, sortColumn, startRow, maximumRows, null); + } + + /// + public void GetOrganizationDeletedUsersPagedAsync(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows, object userState) { + if ((this.GetOrganizationDeletedUsersPagedOperationCompleted == null)) { + this.GetOrganizationDeletedUsersPagedOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationDeletedUsersPagedOperationCompleted); + } + this.InvokeAsync("GetOrganizationDeletedUsersPaged", new object[] { + itemId, + filterColumn, + filterValue, + sortColumn, + startRow, + maximumRows}, this.GetOrganizationDeletedUsersPagedOperationCompleted, userState); + } + + private void OnGetOrganizationDeletedUsersPagedOperationCompleted(object arg) { + if ((this.GetOrganizationDeletedUsersPagedCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetOrganizationDeletedUsersPagedCompleted(this, new GetOrganizationDeletedUsersPagedCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetOrganizationUsersPaged", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public OrganizationUsersPaged GetOrganizationUsersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) { @@ -1807,6 +1879,104 @@ namespace WebsitePanel.EnterpriseServer.HostedSolution { } } + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetDeletedUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public int SetDeletedUser(int itemId, int accountId, bool enableForceArchive) { + object[] results = this.Invoke("SetDeletedUser", new object[] { + itemId, + accountId, + enableForceArchive}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginSetDeletedUser(int itemId, int accountId, bool enableForceArchive, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("SetDeletedUser", new object[] { + itemId, + accountId, + enableForceArchive}, callback, asyncState); + } + + /// + public int EndSetDeletedUser(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void SetDeletedUserAsync(int itemId, int accountId, bool enableForceArchive) { + this.SetDeletedUserAsync(itemId, accountId, enableForceArchive, null); + } + + /// + public void SetDeletedUserAsync(int itemId, int accountId, bool enableForceArchive, object userState) { + if ((this.SetDeletedUserOperationCompleted == null)) { + this.SetDeletedUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDeletedUserOperationCompleted); + } + this.InvokeAsync("SetDeletedUser", new object[] { + itemId, + accountId, + enableForceArchive}, this.SetDeletedUserOperationCompleted, userState); + } + + private void OnSetDeletedUserOperationCompleted(object arg) { + if ((this.SetDeletedUserCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.SetDeletedUserCompleted(this, new SetDeletedUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetArchiveFileBinaryChunk", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [return: System.Xml.Serialization.XmlElementAttribute(DataType="base64Binary")] + public byte[] GetArchiveFileBinaryChunk(int packageId, string path, int offset, int length) { + object[] results = this.Invoke("GetArchiveFileBinaryChunk", new object[] { + packageId, + path, + offset, + length}); + return ((byte[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetArchiveFileBinaryChunk(int packageId, string path, int offset, int length, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetArchiveFileBinaryChunk", new object[] { + packageId, + path, + offset, + length}, callback, asyncState); + } + + /// + public byte[] EndGetArchiveFileBinaryChunk(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((byte[])(results[0])); + } + + /// + public void GetArchiveFileBinaryChunkAsync(int packageId, string path, int offset, int length) { + this.GetArchiveFileBinaryChunkAsync(packageId, path, offset, length, null); + } + + /// + public void GetArchiveFileBinaryChunkAsync(int packageId, string path, int offset, int length, object userState) { + if ((this.GetArchiveFileBinaryChunkOperationCompleted == null)) { + this.GetArchiveFileBinaryChunkOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetArchiveFileBinaryChunkOperationCompleted); + } + this.InvokeAsync("GetArchiveFileBinaryChunk", new object[] { + packageId, + path, + offset, + length}, this.GetArchiveFileBinaryChunkOperationCompleted, userState); + } + + private void OnGetArchiveFileBinaryChunkOperationCompleted(object arg) { + if ((this.GetArchiveFileBinaryChunkCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetArchiveFileBinaryChunkCompleted(this, new GetArchiveFileBinaryChunkCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public int DeleteUser(int itemId, int accountId) { @@ -3255,6 +3425,32 @@ namespace WebsitePanel.EnterpriseServer.HostedSolution { } } + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetOrganizationDeletedUsersPagedCompletedEventHandler(object sender, GetOrganizationDeletedUsersPagedCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetOrganizationDeletedUsersPagedCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetOrganizationDeletedUsersPagedCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public OrganizationDeletedUsersPaged Result { + get { + this.RaiseExceptionIfNecessary(); + return ((OrganizationDeletedUsersPaged)(this.results[0])); + } + } + } + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetOrganizationUsersPagedCompletedEventHandler(object sender, GetOrganizationUsersPagedCompletedEventArgs e); @@ -3411,6 +3607,58 @@ namespace WebsitePanel.EnterpriseServer.HostedSolution { } } + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void SetDeletedUserCompletedEventHandler(object sender, SetDeletedUserCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class SetDeletedUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal SetDeletedUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetArchiveFileBinaryChunkCompletedEventHandler(object sender, GetArchiveFileBinaryChunkCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetArchiveFileBinaryChunkCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetArchiveFileBinaryChunkCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public byte[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((byte[])(this.results[0])); + } + } + } + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteUserCompletedEventHandler(object sender, DeleteUserCompletedEventArgs e); diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/RemoteDesktopServicesProxy.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/RemoteDesktopServicesProxy.cs index 0b6ae7ab..f53a5bee 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/RemoteDesktopServicesProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Client/RemoteDesktopServicesProxy.cs @@ -1,31 +1,3 @@ -// Copyright (c) 2015, 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. - //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -116,6 +88,10 @@ namespace WebsitePanel.EnterpriseServer { private System.Threading.SendOrPostCallback GetOrganizationRdsUsersCountOperationCompleted; + private System.Threading.SendOrPostCallback GetOrganizationRdsServersCountOperationCompleted; + + private System.Threading.SendOrPostCallback GetOrganizationRdsCollectionsCountOperationCompleted; + private System.Threading.SendOrPostCallback GetApplicationUsersOperationCompleted; private System.Threading.SendOrPostCallback SetApplicationUsersOperationCompleted; @@ -212,6 +188,12 @@ namespace WebsitePanel.EnterpriseServer { /// public event GetOrganizationRdsUsersCountCompletedEventHandler GetOrganizationRdsUsersCountCompleted; + /// + public event GetOrganizationRdsServersCountCompletedEventHandler GetOrganizationRdsServersCountCompleted; + + /// + public event GetOrganizationRdsCollectionsCountCompletedEventHandler GetOrganizationRdsCollectionsCountCompleted; + /// public event GetApplicationUsersCompletedEventHandler GetApplicationUsersCompleted; @@ -302,11 +284,11 @@ namespace WebsitePanel.EnterpriseServer { /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/AddRdsCollection", 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 ResultObject AddRdsCollection(int itemId, RdsCollection collection) { + public int AddRdsCollection(int itemId, RdsCollection collection) { object[] results = this.Invoke("AddRdsCollection", new object[] { itemId, collection}); - return ((ResultObject)(results[0])); + return ((int)(results[0])); } /// @@ -317,9 +299,9 @@ namespace WebsitePanel.EnterpriseServer { } /// - public ResultObject EndAddRdsCollection(System.IAsyncResult asyncResult) { + public int EndAddRdsCollection(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); + return ((int)(results[0])); } /// @@ -1544,6 +1526,88 @@ namespace WebsitePanel.EnterpriseServer { } } + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationRdsServersCount", 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 GetOrganizationRdsServersCount(int itemId) { + object[] results = this.Invoke("GetOrganizationRdsServersCount", new object[] { + itemId}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginGetOrganizationRdsServersCount(int itemId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetOrganizationRdsServersCount", new object[] { + itemId}, callback, asyncState); + } + + /// + public int EndGetOrganizationRdsServersCount(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void GetOrganizationRdsServersCountAsync(int itemId) { + this.GetOrganizationRdsServersCountAsync(itemId, null); + } + + /// + public void GetOrganizationRdsServersCountAsync(int itemId, object userState) { + if ((this.GetOrganizationRdsServersCountOperationCompleted == null)) { + this.GetOrganizationRdsServersCountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationRdsServersCountOperationCompleted); + } + this.InvokeAsync("GetOrganizationRdsServersCount", new object[] { + itemId}, this.GetOrganizationRdsServersCountOperationCompleted, userState); + } + + private void OnGetOrganizationRdsServersCountOperationCompleted(object arg) { + if ((this.GetOrganizationRdsServersCountCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetOrganizationRdsServersCountCompleted(this, new GetOrganizationRdsServersCountCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetOrganizationRdsCollectionsCount", 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 GetOrganizationRdsCollectionsCount(int itemId) { + object[] results = this.Invoke("GetOrganizationRdsCollectionsCount", new object[] { + itemId}); + return ((int)(results[0])); + } + + /// + public System.IAsyncResult BeginGetOrganizationRdsCollectionsCount(int itemId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetOrganizationRdsCollectionsCount", new object[] { + itemId}, callback, asyncState); + } + + /// + public int EndGetOrganizationRdsCollectionsCount(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((int)(results[0])); + } + + /// + public void GetOrganizationRdsCollectionsCountAsync(int itemId) { + this.GetOrganizationRdsCollectionsCountAsync(itemId, null); + } + + /// + public void GetOrganizationRdsCollectionsCountAsync(int itemId, object userState) { + if ((this.GetOrganizationRdsCollectionsCountOperationCompleted == null)) { + this.GetOrganizationRdsCollectionsCountOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOrganizationRdsCollectionsCountOperationCompleted); + } + this.InvokeAsync("GetOrganizationRdsCollectionsCount", new object[] { + itemId}, this.GetOrganizationRdsCollectionsCountOperationCompleted, userState); + } + + private void OnGetOrganizationRdsCollectionsCountOperationCompleted(object arg) { + if ((this.GetOrganizationRdsCollectionsCountCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetOrganizationRdsCollectionsCountCompleted(this, new GetOrganizationRdsCollectionsCountCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + /// [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/enterpriseserver/GetApplicationUsers", 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 string[] GetApplicationUsers(int itemId, int collectionId, RemoteApplication remoteApp) { @@ -1717,10 +1781,10 @@ namespace WebsitePanel.EnterpriseServer { } /// - public ResultObject Result { + public int Result { get { this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); + return ((int)(this.results[0])); } } } @@ -2401,6 +2465,58 @@ namespace WebsitePanel.EnterpriseServer { } } + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetOrganizationRdsServersCountCompletedEventHandler(object sender, GetOrganizationRdsServersCountCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetOrganizationRdsServersCountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetOrganizationRdsServersCountCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetOrganizationRdsCollectionsCountCompletedEventHandler(object sender, GetOrganizationRdsCollectionsCountCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetOrganizationRdsCollectionsCountCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetOrganizationRdsCollectionsCountCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public int Result { + get { + this.RaiseExceptionIfNecessary(); + return ((int)(this.results[0])); + } + } + } + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetApplicationUsersCompletedEventHandler(object sender, GetApplicationUsersCompletedEventArgs e); diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs index d7c81788..137defe7 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Data/DataProvider.cs @@ -2073,7 +2073,8 @@ namespace WebsitePanel.EnterpriseServer return SqlHelper.ExecuteDataset(ConnectionString, CommandType.StoredProcedure, ObjectQualifier + "GetSchedules", new SqlParameter("@actorId", actorId), - new SqlParameter("@packageId", packageId)); + new SqlParameter("@packageId", packageId), + new SqlParameter("@recursive", true)); } public static DataSet GetSchedulesPaged(int actorId, int packageId, bool recursive, @@ -2367,7 +2368,6 @@ namespace WebsitePanel.EnterpriseServer #region Exchange Server - public static int AddExchangeAccount(int itemId, int accountType, string accountName, string displayName, string primaryEmailAddress, bool mailEnabledPublicFolder, string mailboxManagerActions, string samAccountName, string accountPassword, int mailboxPlanId, string subscriberNumber) @@ -2396,7 +2396,6 @@ namespace WebsitePanel.EnterpriseServer return Convert.ToInt32(outParam.Value); } - public static void AddExchangeAccountEmailAddress(int accountId, string emailAddress) { SqlHelper.ExecuteNonQuery( @@ -2814,7 +2813,7 @@ namespace WebsitePanel.EnterpriseServer 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 archiving, bool EnableArchiving, int ArchiveSizeMB, int ArchiveWarningPct) + bool archiving, bool EnableArchiving, int ArchiveSizeMB, int ArchiveWarningPct, bool enableForceArchiveDeletion) { SqlParameter outParam = new SqlParameter("@MailboxPlanId", SqlDbType.Int); outParam.Direction = ParameterDirection.Output; @@ -2850,7 +2849,8 @@ namespace WebsitePanel.EnterpriseServer new SqlParameter("@Archiving", archiving), new SqlParameter("@EnableArchiving", EnableArchiving), new SqlParameter("@ArchiveSizeMB", ArchiveSizeMB), - new SqlParameter("@ArchiveWarningPct", ArchiveWarningPct) + new SqlParameter("@ArchiveWarningPct", ArchiveWarningPct), + new SqlParameter("@EnableForceArchiveDeletion", enableForceArchiveDeletion) ); return Convert.ToInt32(outParam.Value); @@ -2861,8 +2861,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 Archiving, bool EnableArchiving, int ArchiveSizeMB, int ArchiveWarningPct) + bool enabledLitigationHold, long recoverabelItemsSpace, long recoverabelItemsWarning, string litigationHoldUrl, string litigationHoldMsg, + bool Archiving, bool EnableArchiving, int ArchiveSizeMB, int ArchiveWarningPct, bool enableForceArchiveDeletion) { SqlHelper.ExecuteNonQuery( ConnectionString, @@ -2894,7 +2894,8 @@ namespace WebsitePanel.EnterpriseServer new SqlParameter("@Archiving", Archiving), new SqlParameter("@EnableArchiving", EnableArchiving), new SqlParameter("@ArchiveSizeMB", ArchiveSizeMB), - new SqlParameter("@ArchiveWarningPct", ArchiveWarningPct) + new SqlParameter("@ArchiveWarningPct", ArchiveWarningPct), + new SqlParameter("@EnableForceArchiveDeletion", enableForceArchiveDeletion) ); } @@ -3170,6 +3171,45 @@ namespace WebsitePanel.EnterpriseServer #region Organizations + public static int AddOrganizationDeletedUser(int accountId, int originAT, string storagePath, string folderName, string fileName, DateTime expirationDate) + { + SqlParameter outParam = new SqlParameter("@ID", SqlDbType.Int); + outParam.Direction = ParameterDirection.Output; + + SqlHelper.ExecuteNonQuery( + ConnectionString, + CommandType.StoredProcedure, + "AddOrganizationDeletedUser", + outParam, + new SqlParameter("@AccountID", accountId), + new SqlParameter("@OriginAT", originAT), + new SqlParameter("@StoragePath", storagePath), + new SqlParameter("@FolderName", folderName), + new SqlParameter("@FileName", fileName), + new SqlParameter("@ExpirationDate", expirationDate) + ); + + return Convert.ToInt32(outParam.Value); + } + + public static void DeleteOrganizationDeletedUser(int id) + { + SqlHelper.ExecuteNonQuery(ConnectionString, + CommandType.StoredProcedure, + "DeleteOrganizationDeletedUser", + new SqlParameter("@ID", id)); + } + + public static IDataReader GetOrganizationDeletedUser(int accountId) + { + return SqlHelper.ExecuteReader( + ConnectionString, + CommandType.StoredProcedure, + "GetOrganizationDeletedUser", + new SqlParameter("@AccountID", accountId) + ); + } + public static IDataReader GetAdditionalGroups(int userId) { return SqlHelper.ExecuteReader( @@ -4330,6 +4370,57 @@ namespace WebsitePanel.EnterpriseServer #region Enterprise Storage + public static int AddWebDavAccessToken(Base.HostedSolution.WebDavAccessToken accessToken) + { + SqlParameter prmId = new SqlParameter("@TokenID", SqlDbType.Int); + prmId.Direction = ParameterDirection.Output; + + SqlHelper.ExecuteNonQuery( + ConnectionString, + CommandType.StoredProcedure, + "AddWebDavAccessToken", + prmId, + new SqlParameter("@AccessToken", accessToken.AccessToken), + new SqlParameter("@FilePath", accessToken.FilePath), + new SqlParameter("@AuthData", accessToken.AuthData), + new SqlParameter("@ExpirationDate", accessToken.ExpirationDate), + new SqlParameter("@AccountID", accessToken.AccountId), + new SqlParameter("@ItemId", accessToken.ItemId) + ); + + // read identity + return Convert.ToInt32(prmId.Value); + } + + public static void DeleteExpiredWebDavAccessTokens() + { + SqlHelper.ExecuteNonQuery( + ConnectionString, + CommandType.StoredProcedure, + "DeleteExpiredWebDavAccessTokens" + ); + } + + public static IDataReader GetWebDavAccessTokenById(int id) + { + return SqlHelper.ExecuteReader( + ConnectionString, + CommandType.StoredProcedure, + "GetWebDavAccessTokenById", + new SqlParameter("@Id", id) + ); + } + + public static IDataReader GetWebDavAccessTokenByAccessToken(Guid accessToken) + { + return SqlHelper.ExecuteReader( + ConnectionString, + CommandType.StoredProcedure, + "GetWebDavAccessTokenByAccessToken", + new SqlParameter("@AccessToken", accessToken) + ); + } + public static int AddEntepriseFolder(int itemId, string folderName, int folderQuota, string locationDrive, string homeFolder, string domain) { SqlParameter prmId = new SqlParameter("@FolderID", SqlDbType.Int); @@ -4544,6 +4635,34 @@ namespace WebsitePanel.EnterpriseServer return Convert.ToInt32(count.Value); } + public static int GetOrganizationRdsCollectionsCount(int itemId) + { + SqlParameter count = new SqlParameter("@TotalNumber", SqlDbType.Int); + count.Direction = ParameterDirection.Output; + + DataSet ds = SqlHelper.ExecuteDataset(ConnectionString, CommandType.StoredProcedure, + ObjectQualifier + "GetOrganizationRdsCollectionsCount", + count, + new SqlParameter("@ItemId", itemId)); + + // read identity + return Convert.ToInt32(count.Value); + } + + public static int GetOrganizationRdsServersCount(int itemId) + { + SqlParameter count = new SqlParameter("@TotalNumber", SqlDbType.Int); + count.Direction = ParameterDirection.Output; + + DataSet ds = SqlHelper.ExecuteDataset(ConnectionString, CommandType.StoredProcedure, + ObjectQualifier + "GetOrganizationRdsServersCount", + count, + new SqlParameter("@ItemId", itemId)); + + // read identity + return Convert.ToInt32(count.Value); + } + public static void UpdateRDSCollection(RdsCollection collection) { UpdateRDSCollection(collection.Id, collection.ItemId, collection.Name, collection.Description, collection.DisplayName); diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs index ee4344fb..21cd276d 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/EnterpriseStorage/EnterpriseStorageController.cs @@ -152,6 +152,26 @@ namespace WebsitePanel.EnterpriseServer StartESBackgroundTaskInternal("SET_ENTERPRISE_FOLDER_SETTINGS", itemId, folder, permissions, directoyBrowsingEnabled, quota, quotaType); } + public static int AddWebDavAccessToken(WebDavAccessToken accessToken) + { + return DataProvider.AddWebDavAccessToken(accessToken); + } + + public static void DeleteExpiredWebDavAccessTokens() + { + DataProvider.DeleteExpiredWebDavAccessTokens(); + } + + public static WebDavAccessToken GetWebDavAccessTokenById(int id) + { + return ObjectUtils.FillObjectFromDataReader(DataProvider.GetWebDavAccessTokenById(id)); + } + + public static WebDavAccessToken GetWebDavAccessTokenByAccessToken(Guid accessToken) + { + return ObjectUtils.FillObjectFromDataReader(DataProvider.GetWebDavAccessTokenByAccessToken(accessToken)); + } + #region Directory Browsing public static bool GetDirectoryBrowseEnabled(int itemId, string siteId) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs index ba16db7c..be688d18 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/ExchangeServer/ExchangeServerController.cs @@ -1967,6 +1967,86 @@ namespace WebsitePanel.EnterpriseServer } } + public static int ExportMailBox(int itemId, int accountId, string path) + { + // check account + int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); + + if (accountCheck < 0) + { + return accountCheck; + } + + // place log record + TaskManager.StartTask("EXCHANGE", "EXPORT_MAILBOX", itemId); + + try + { + // load organization + Organization org = GetOrganization(itemId); + if (org == null) + return -1; + + // load account + ExchangeAccount account = GetAccount(itemId, accountId); + + // export mailbox + int serviceExchangeId = GetExchangeServiceID(org.PackageId); + ExchangeServer exchange = GetExchangeServer(serviceExchangeId, org.ServiceId); + exchange.ExportMailBox(org.OrganizationId, account.UserPrincipalName, path); + + return 0; + } + catch (Exception ex) + { + throw TaskManager.WriteError(ex); + } + finally + { + TaskManager.CompleteTask(); + } + } + + public static int SetDeletedMailbox(int itemId, int accountId) + { + // check account + int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); + if (accountCheck < 0) return accountCheck; + + // place log record + TaskManager.StartTask("EXCHANGE", "SET_DELETED_MAILBOX", itemId); + + try + { + // load organization + Organization org = GetOrganization(itemId); + if (org == null) + return -1; + + // load account + ExchangeAccount account = GetAccount(itemId, accountId); + + if (BlackBerryController.CheckBlackBerryUserExists(accountId)) + { + BlackBerryController.DeleteBlackBerryUser(itemId, accountId); + } + + // delete mailbox + int serviceExchangeId = GetExchangeServiceID(org.PackageId); + ExchangeServer exchange = GetExchangeServer(serviceExchangeId, org.ServiceId); + exchange.DisableMailbox(account.UserPrincipalName); + + return 0; + } + catch (Exception ex) + { + throw TaskManager.WriteError(ex); + } + finally + { + TaskManager.CompleteTask(); + } + } public static int DeleteMailbox(int itemId, int accountId) { @@ -2998,7 +3078,7 @@ namespace WebsitePanel.EnterpriseServer mailboxPlan.MaxSendMessageSizeKB, mailboxPlan.ProhibitSendPct, mailboxPlan.ProhibitSendReceivePct, mailboxPlan.HideFromAddressBook, mailboxPlan.MailboxPlanType, mailboxPlan.AllowLitigationHold, mailboxPlan.RecoverableItemsSpace, mailboxPlan.RecoverableItemsWarningPct, mailboxPlan.LitigationHoldUrl, mailboxPlan.LitigationHoldMsg, mailboxPlan.Archiving, mailboxPlan.EnableArchiving, - mailboxPlan.ArchiveSizeMB, mailboxPlan.ArchiveWarningPct); + mailboxPlan.ArchiveSizeMB, mailboxPlan.ArchiveWarningPct, mailboxPlan.EnableForceArchiveDeletion); } catch (Exception ex) { @@ -3068,9 +3148,8 @@ namespace WebsitePanel.EnterpriseServer mailboxPlan.IsDefault, mailboxPlan.IssueWarningPct, mailboxPlan.KeepDeletedItemsDays, mailboxPlan.MailboxSizeMB, mailboxPlan.MaxReceiveMessageSizeKB, mailboxPlan.MaxRecipients, mailboxPlan.MaxSendMessageSizeKB, mailboxPlan.ProhibitSendPct, mailboxPlan.ProhibitSendReceivePct, mailboxPlan.HideFromAddressBook, mailboxPlan.MailboxPlanType, mailboxPlan.AllowLitigationHold, mailboxPlan.RecoverableItemsSpace, mailboxPlan.RecoverableItemsWarningPct, - mailboxPlan.LitigationHoldUrl, mailboxPlan.LitigationHoldMsg, - mailboxPlan.Archiving, mailboxPlan.EnableArchiving, - mailboxPlan.ArchiveSizeMB, mailboxPlan.ArchiveWarningPct); + mailboxPlan.LitigationHoldUrl, mailboxPlan.LitigationHoldMsg, mailboxPlan.Archiving, mailboxPlan.EnableArchiving, + mailboxPlan.ArchiveSizeMB, mailboxPlan.ArchiveWarningPct, mailboxPlan.EnableForceArchiveDeletion); } catch (Exception ex) { diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs index 6fc370f6..91d88995 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/HostedSolution/OrganizationController.cs @@ -49,6 +49,8 @@ using System.Xml; using System.Xml.Serialization; using WebsitePanel.EnterpriseServer.Base.HostedSolution; using WebsitePanel.Providers.OS; +using System.Text.RegularExpressions; +using WebsitePanel.Server.Client; namespace WebsitePanel.EnterpriseServer { @@ -71,6 +73,21 @@ namespace WebsitePanel.EnterpriseServer return true; } + private static bool CheckDeletedUserQuota(int orgId, out int errorCode) + { + errorCode = 0; + OrganizationStatistics stats = GetOrganizationStatistics(orgId); + + + if (stats.AllocatedDeletedUsers != -1 && (stats.DeletedUsers >= stats.AllocatedDeletedUsers)) + { + errorCode = BusinessErrorCodes.ERROR_DELETED_USERS_RESOURCE_QUOTA_LIMIT; + return false; + } + + return true; + } + private static string EvaluateMailboxTemplate(int itemId, int accountId, bool pmm, bool emailMode, bool signup, string template) { @@ -942,6 +959,7 @@ namespace WebsitePanel.EnterpriseServer stats.CreatedUsers = tempStats.CreatedUsers; stats.CreatedDomains = tempStats.CreatedDomains; stats.CreatedGroups = tempStats.CreatedGroups; + stats.DeletedUsers = tempStats.DeletedUsers; PackageContext cntxTmp = PackageController.GetPackageContext(org.PackageId); @@ -992,6 +1010,13 @@ namespace WebsitePanel.EnterpriseServer stats.UsedEnterpriseStorageSpace = folders.Where(x => x.FRSMQuotaMB != -1).Sum(x => x.FRSMQuotaMB); } + + if (cntxTmp.Groups.ContainsKey(ResourceGroups.RDS)) + { + stats.CreatedRdsUsers = RemoteDesktopServicesController.GetOrganizationRdsUsersCount(org.Id); + stats.CreatedRdsCollections = RemoteDesktopServicesController.GetOrganizationRdsCollectionsCount(org.Id); + stats.CreatedRdsServers = RemoteDesktopServicesController.GetOrganizationRdsServersCount(org.Id); + } } else { @@ -1066,6 +1091,13 @@ namespace WebsitePanel.EnterpriseServer stats.UsedEnterpriseStorageSpace += folders.Where(x => x.FRSMQuotaMB != -1).Sum(x => x.FRSMQuotaMB); } + + if (cntxTmp.Groups.ContainsKey(ResourceGroups.RDS)) + { + stats.CreatedRdsUsers += RemoteDesktopServicesController.GetOrganizationRdsUsersCount(o.Id); + stats.CreatedRdsCollections += RemoteDesktopServicesController.GetOrganizationRdsCollectionsCount(o.Id); + stats.CreatedRdsServers += RemoteDesktopServicesController.GetOrganizationRdsServersCount(o.Id); + } } } } @@ -1076,6 +1108,7 @@ namespace WebsitePanel.EnterpriseServer // allocated quotas PackageContext cntx = PackageController.GetPackageContext(org.PackageId); stats.AllocatedUsers = cntx.Quotas[Quotas.ORGANIZATION_USERS].QuotaAllocatedValue; + stats.AllocatedDeletedUsers = cntx.Quotas[Quotas.ORGANIZATION_DELETED_USERS].QuotaAllocatedValue; stats.AllocatedDomains = cntx.Quotas[Quotas.ORGANIZATION_DOMAINS].QuotaAllocatedValue; stats.AllocatedGroups = cntx.Quotas[Quotas.ORGANIZATION_SECURITYGROUPS].QuotaAllocatedValue; @@ -1119,6 +1152,13 @@ namespace WebsitePanel.EnterpriseServer stats.AllocatedEnterpriseStorageSpace = cntx.Quotas[Quotas.ENTERPRISESTORAGE_DISKSTORAGESPACE].QuotaAllocatedValue; } + if (cntx.Groups.ContainsKey(ResourceGroups.RDS)) + { + stats.AllocatedRdsServers = cntx.Quotas[Quotas.RDS_SERVERS].QuotaAllocatedValue; + stats.AllocatedRdsCollections = cntx.Quotas[Quotas.RDS_COLLECTIONS].QuotaAllocatedValue; + stats.AllocatedRdsUsers = cntx.Quotas[Quotas.RDS_USERS].QuotaAllocatedValue; + } + return stats; } catch (Exception ex) @@ -1336,8 +1376,64 @@ namespace WebsitePanel.EnterpriseServer #region Users + public static List GetOrganizationDeletedUsers(int itemId) + { + var result = new List(); + var orgDeletedUsers = ObjectUtils.CreateListFromDataReader( + DataProvider.GetExchangeAccounts(itemId, (int)ExchangeAccountType.DeletedUser)); + foreach (var orgDeletedUser in orgDeletedUsers) + { + OrganizationDeletedUser deletedUser = GetDeletedUser(orgDeletedUser.AccountId); + + if (deletedUser == null) + continue; + + deletedUser.User = orgDeletedUser; + + result.Add(deletedUser); + } + + return result; + } + + public static OrganizationDeletedUsersPaged GetOrganizationDeletedUsersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, + int startRow, int maximumRows) + { + DataSet ds = + DataProvider.GetExchangeAccountsPaged(SecurityContext.User.UserId, itemId, ((int)ExchangeAccountType.DeletedUser).ToString(), + filterColumn, filterValue, sortColumn, startRow, maximumRows, false); + + OrganizationDeletedUsersPaged result = new OrganizationDeletedUsersPaged(); + result.RecordsCount = (int)ds.Tables[0].Rows[0][0]; + + List Tmpaccounts = new List(); + ObjectUtils.FillCollectionFromDataView(Tmpaccounts, ds.Tables[1].DefaultView); + + List deletedUsers = new List(); + + foreach (OrganizationUser user in Tmpaccounts.ToArray()) + { + OrganizationDeletedUser deletedUser = GetDeletedUser(user.AccountId); + + if (deletedUser == null) + continue; + + OrganizationUser tmpUser = GetUserGeneralSettings(itemId, user.AccountId); + + if (tmpUser != null) + { + deletedUser.User = tmpUser; + + deletedUsers.Add(deletedUser); + } + } + + result.PageDeletedUsers = deletedUsers.ToArray(); + + return result; + } public static OrganizationUsersPaged GetOrganizationUsersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, int startRow, int maximumRows) @@ -1731,10 +1827,256 @@ namespace WebsitePanel.EnterpriseServer } else return true; - - } + #region Deleted Users + + public static int SetDeletedUser(int itemId, int accountId, bool enableForceArchive) + { + // check account + int accountCheck = SecurityContext.CheckAccount(DemandAccount.NotDemo | DemandAccount.IsActive); + if (accountCheck < 0) return accountCheck; + + // place log record + TaskManager.StartTask("ORGANIZATION", "SET_DELETED_USER", itemId); + + try + { + Guid crmUserId = CRMController.GetCrmUserId(accountId); + if (crmUserId != Guid.Empty) + { + return BusinessErrorCodes.CURRENT_USER_IS_CRM_USER; + } + + if (DataProvider.CheckOCSUserExists(accountId)) + { + return BusinessErrorCodes.CURRENT_USER_IS_OCS_USER; + } + + if (DataProvider.CheckLyncUserExists(accountId)) + { + return BusinessErrorCodes.CURRENT_USER_IS_LYNC_USER; + } + + + // load organization + Organization org = GetOrganization(itemId); + if (org == null) + return -1; + + int errorCode; + if (!CheckDeletedUserQuota(org.Id, out errorCode)) + return errorCode; + + // load account + ExchangeAccount account = ExchangeServerController.GetAccount(itemId, accountId); + + string accountName = GetAccountName(account.AccountName); + + var deletedUser = new OrganizationDeletedUser + { + AccountId = account.AccountId, + OriginAT = account.AccountType, + ExpirationDate = DateTime.UtcNow.AddHours(1) + }; + + if (account.AccountType == ExchangeAccountType.User) + { + Organizations orgProxy = GetOrganizationProxy(org.ServiceId); + + //Disable user in AD + orgProxy.DisableUser(accountName, org.OrganizationId); + } + else + { + if (enableForceArchive) + { + var serviceId = PackageController.GetPackageServiceId(org.PackageId, ResourceGroups.HostedOrganizations); + + if (serviceId != 0) + { + var settings = ServerController.GetServiceSettings(serviceId); + + deletedUser.StoragePath = settings["ArchiveStoragePath"]; + + if (!string.IsNullOrEmpty(deletedUser.StoragePath)) + { + deletedUser.FolderName = org.OrganizationId; + + if (!CheckFolderExists(org.PackageId, deletedUser.StoragePath, deletedUser.FolderName)) + { + CreateFolder(org.PackageId, deletedUser.StoragePath, deletedUser.FolderName); + } + + QuotaValueInfo diskSpaceQuota = PackageController.GetPackageQuota(org.PackageId, Quotas.ORGANIZATION_DELETED_USERS_BACKUP_STORAGE_SPACE); + + if (diskSpaceQuota.QuotaAllocatedValue != -1) + { + SetFRSMQuotaOnFolder(org.PackageId, deletedUser.StoragePath, org.OrganizationId, diskSpaceQuota, QuotaType.Hard); + } + + deletedUser.FileName = string.Format("{0}.pst", account.UserPrincipalName); + + ExchangeServerController.ExportMailBox(itemId, accountId, + FilesController.ConvertToUncPath(serviceId, + Path.Combine(GetDirectory(deletedUser.StoragePath), deletedUser.FolderName, deletedUser.FileName))); + } + } + } + + //Set Deleted Mailbox + ExchangeServerController.SetDeletedMailbox(itemId, accountId); + } + + AddDeletedUser(deletedUser); + + account.AccountType = ExchangeAccountType.DeletedUser; + + UpdateAccount(account); + + var taskId = "SCHEDULE_TASK_DELETE_EXCHANGE_ACCOUNTS"; + + if (!CheckScheduleTaskRun(org.PackageId, taskId)) + { + AddScheduleTask(org.PackageId, taskId, "Auto Delete Exchange Account"); + } + + return 0; + } + catch (Exception ex) + { + throw TaskManager.WriteError(ex); + } + finally + { + TaskManager.CompleteTask(); + } + } + + public static byte[] GetArchiveFileBinaryChunk(int packageId, string path, int offset, int length) + { + var os = GetOS(packageId); + + if (os != null && os.CheckFileServicesInstallation()) + { + return os.GetFileBinaryChunk(path, offset, length); + } + + return null; + } + + private static bool CheckScheduleTaskRun(int packageId, string taskId) + { + var schedules = new List(); + + ObjectUtils.FillCollectionFromDataSet(schedules, SchedulerController.GetSchedules(packageId)); + + foreach(var schedule in schedules) + { + if (schedule.TaskId == taskId) + { + return true; + } + } + + return false; + } + + private static int AddScheduleTask(int packageId, string taskId, string taskName) + { + return SchedulerController.AddSchedule(new ScheduleInfo + { + PackageId = packageId, + TaskId = taskId, + ScheduleName = taskName, + ScheduleTypeId = "Daily", + FromTime = new DateTime(2000, 1, 1, 0, 0, 0), + ToTime = new DateTime(2000, 1, 1, 23, 59, 59), + Interval = 3600, + StartTime = new DateTime(2000, 01, 01, 0, 30, 0), + MaxExecutionTime = 3600, + PriorityId = "Normal", + Enabled = true, + WeekMonthDay = 1, + HistoriesNumber = 0 + }); + } + + private static bool CheckFolderExists(int packageId, string path, string folderName) + { + var os = GetOS(packageId); + + if (os != null && os.CheckFileServicesInstallation()) + { + return os.DirectoryExists(Path.Combine(path, folderName)); + } + + return false; + } + + private static void CreateFolder(int packageId, string path, string folderName) + { + var os = GetOS(packageId); + + if (os != null && os.CheckFileServicesInstallation()) + { + os.CreateDirectory(Path.Combine(path, folderName)); + } + } + + private static void RemoveArchive(int packageId, string path, string folderName, string fileName) + { + var os = GetOS(packageId); + + if (os != null && os.CheckFileServicesInstallation()) + { + os.DeleteFile(Path.Combine(path, folderName, fileName)); + } + } + + private static string GetLocationDrive(string path) + { + var drive = System.IO.Path.GetPathRoot(path); + + return drive.Split(':')[0]; + } + + private static string GetDirectory(string path) + { + var drive = System.IO.Path.GetPathRoot(path); + + return path.Replace(drive, string.Empty); + } + + private static void SetFRSMQuotaOnFolder(int packageId, string path, string folderName, QuotaValueInfo quotaInfo, QuotaType quotaType) + { + var os = GetOS(packageId); + + if (os != null && os.CheckFileServicesInstallation()) + { + #region figure Quota Unit + + // Quota Unit + string unit = string.Empty; + if (quotaInfo.QuotaDescription.ToLower().Contains("gb")) + unit = "GB"; + else if (quotaInfo.QuotaDescription.ToLower().Contains("mb")) + unit = "MB"; + else + unit = "KB"; + + #endregion + + os.SetQuotaLimitOnFolder( + Path.Combine(GetDirectory(path), folderName), + GetLocationDrive(path), quotaType, + quotaInfo.QuotaAllocatedValue.ToString() + unit, + 0, String.Empty, String.Empty); + } + } + + #endregion + public static int DeleteUser(int itemId, int accountId) { // check account @@ -1742,7 +2084,7 @@ namespace WebsitePanel.EnterpriseServer if (accountCheck < 0) return accountCheck; // place log record - TaskManager.StartTask("ORGANIZATION", "DELETE_USER", itemId); + TaskManager.StartTask("ORGANIZATION", "REMOVE_USER", itemId); try { @@ -1770,13 +2112,32 @@ namespace WebsitePanel.EnterpriseServer return -1; // load account - OrganizationUser user = GetAccount(itemId, accountId); - + ExchangeAccount user = ExchangeServerController.GetAccount(itemId, accountId); + Organizations orgProxy = GetOrganizationProxy(org.ServiceId); string account = GetAccountName(user.AccountName); - if (user.AccountType == ExchangeAccountType.User) + var accountType = user.AccountType; + + if (accountType == ExchangeAccountType.DeletedUser) + { + var deletedUser = GetDeletedUser(user.AccountId); + + if (deletedUser != null) + { + accountType = deletedUser.OriginAT; + + if (!deletedUser.IsArchiveEmpty) + { + RemoveArchive(org.PackageId, deletedUser.StoragePath, deletedUser.FolderName, deletedUser.FileName); + } + + RemoveDeletedUser(deletedUser.Id); + } + } + + if (user.AccountType == ExchangeAccountType.User ) { //Delete user from AD orgProxy.DeleteUser(account, org.OrganizationId); @@ -1800,6 +2161,30 @@ namespace WebsitePanel.EnterpriseServer } } + public static OrganizationDeletedUser GetDeletedUser(int accountId) + { + OrganizationDeletedUser deletedUser = ObjectUtils.FillObjectFromDataReader( + DataProvider.GetOrganizationDeletedUser(accountId)); + + if (deletedUser == null) + return null; + + deletedUser.IsArchiveEmpty = string.IsNullOrEmpty(deletedUser.FileName); + + return deletedUser; + } + + private static int AddDeletedUser(OrganizationDeletedUser deletedUser) + { + return DataProvider.AddOrganizationDeletedUser( + deletedUser.AccountId, (int)deletedUser.OriginAT, deletedUser.StoragePath, deletedUser.FolderName, deletedUser.FileName, deletedUser.ExpirationDate); + } + + private static void RemoveDeletedUser(int id) + { + DataProvider.DeleteOrganizationDeletedUser(id); + } + public static OrganizationUser GetAccount(int itemId, int userId) { OrganizationUser account = ObjectUtils.FillObjectFromDataReader( @@ -3090,6 +3475,22 @@ namespace WebsitePanel.EnterpriseServer #endregion + #region OS + + private static WebsitePanel.Providers.OS.OperatingSystem GetOS(int packageId) + { + int sid = PackageController.GetPackageServiceId(packageId, ResourceGroups.Os); + if (sid <= 0) + return null; + + var os = new WebsitePanel.Providers.OS.OperatingSystem(); + ServiceProviderProxy.Init(os, sid); + + return os; + } + + #endregion + public static DataSet GetOrganizationObjectsByDomain(int itemId, string domainName) { return DataProvider.GetOrganizationObjectsByDomain(itemId, domainName); diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/RemoteDesktopServices/RemoteDesktopServicesController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/RemoteDesktopServices/RemoteDesktopServicesController.cs index 198490cc..c7338859 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/RemoteDesktopServices/RemoteDesktopServicesController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/RemoteDesktopServices/RemoteDesktopServicesController.cs @@ -63,7 +63,7 @@ namespace WebsitePanel.EnterpriseServer return GetOrganizationRdsCollectionsInternal(itemId); } - public static ResultObject AddRdsCollection(int itemId, RdsCollection collection) + public static int AddRdsCollection(int itemId, RdsCollection collection) { return AddRdsCollectionInternal(itemId, collection); } @@ -203,6 +203,16 @@ namespace WebsitePanel.EnterpriseServer return GetOrganizationRdsUsersCountInternal(itemId); } + public static int GetOrganizationRdsServersCount(int itemId) + { + return GetOrganizationRdsServersCountInternal(itemId); + } + + public static int GetOrganizationRdsCollectionsCount(int itemId) + { + return GetOrganizationRdsCollectionsCountInternal(itemId); + } + public static List GetApplicationUsers(int itemId, int collectionId, RemoteApplication remoteApp) { return GetApplicationUsersInternal(itemId, collectionId, remoteApp); @@ -255,7 +265,7 @@ namespace WebsitePanel.EnterpriseServer return collections; } - private static ResultObject AddRdsCollectionInternal(int itemId, RdsCollection collection) + private static int AddRdsCollectionInternal(int itemId, RdsCollection collection) { var result = TaskManager.StartResultTask("REMOTE_DESKTOP_SERVICES", "ADD_RDS_COLLECTION"); @@ -264,10 +274,8 @@ namespace WebsitePanel.EnterpriseServer // load organization Organization org = OrganizationController.GetOrganization(itemId); if (org == null) - { - result.IsSuccess = false; - result.AddError("", new NullReferenceException("Organization not found")); - return result; + { + return -1; } var rds = GetRemoteDesktopServices(GetRemoteDesktopServiceID(org.PackageId)); @@ -281,8 +289,7 @@ namespace WebsitePanel.EnterpriseServer } } catch (Exception ex) - { - result.AddError("REMOTE_DESKTOP_SERVICES_ADD_RDS_COLLECTION", ex); + { throw TaskManager.WriteError(ex); } finally @@ -297,7 +304,7 @@ namespace WebsitePanel.EnterpriseServer } } - return result; + return collection.Id; } private static ResultObject EditRdsCollectionInternal(int itemId, RdsCollection collection) @@ -591,6 +598,15 @@ namespace WebsitePanel.EnterpriseServer return DataProvider.GetOrganizationRdsUsersCount(itemId); } + private static int GetOrganizationRdsServersCountInternal(int itemId) + { + return DataProvider.GetOrganizationRdsServersCount(itemId); + } + + private static int GetOrganizationRdsCollectionsCountInternal(int itemId) + { + return DataProvider.GetOrganizationRdsCollectionsCount(itemId); + } private static List GetCollectionRdsServersInternal(int collectionId) { diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/SchedulerTasks/DeleteExchangeAccountsTask.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/SchedulerTasks/DeleteExchangeAccountsTask.cs new file mode 100644 index 00000000..e660d534 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/SchedulerTasks/DeleteExchangeAccountsTask.cs @@ -0,0 +1,64 @@ +// Copyright (c) 2014, 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. + +using System; +using System.Diagnostics; +using System.Collections.Generic; +using System.Text; + +using WebsitePanel.Providers.Exchange; +using WebsitePanel.Providers.HostedSolution; + +namespace WebsitePanel.EnterpriseServer +{ + public class DeleteExchangeAccountsTask : SchedulerTask + { + public override void DoWork() + { + DeletedAccounts(); + } + + public void DeletedAccounts() + { + List organizations = OrganizationController.GetOrganizations(TaskManager.TopTask.PackageId, true); + + foreach (Organization organization in organizations) + { + List deletedUsers = OrganizationController.GetOrganizationDeletedUsers(organization.Id); + + foreach (OrganizationDeletedUser deletedUser in deletedUsers) + { + if (deletedUser.ExpirationDate > DateTime.UtcNow) + { + OrganizationController.DeleteUser(TaskManager.TopTask.ItemId, deletedUser.AccountId); + } + } + } + } + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/WebsitePanel.EnterpriseServer.Code.csproj b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/WebsitePanel.EnterpriseServer.Code.csproj index 60954187..58c17bbf 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/WebsitePanel.EnterpriseServer.Code.csproj +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/WebsitePanel.EnterpriseServer.Code.csproj @@ -141,6 +141,7 @@ + diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Web.config b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Web.config index 2c00ab71..3a721fdd 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Web.config +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/Web.config @@ -5,8 +5,7 @@ - - + diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esEnterpriseStorage.asmx.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esEnterpriseStorage.asmx.cs index 4a99f98b..deb4f45a 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esEnterpriseStorage.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esEnterpriseStorage.asmx.cs @@ -56,6 +56,29 @@ namespace WebsitePanel.EnterpriseServer [ToolboxItem(false)] public class esEnterpriseStorage : WebService { + [WebMethod] + public int AddWebDavAccessToken(WebDavAccessToken accessToken) + { + return EnterpriseStorageController.AddWebDavAccessToken(accessToken); + } + + [WebMethod] + public void DeleteExpiredWebDavAccessTokens() + { + EnterpriseStorageController.DeleteExpiredWebDavAccessTokens(); + } + + [WebMethod] + public WebDavAccessToken GetWebDavAccessTokenById(int id) + { + return EnterpriseStorageController.GetWebDavAccessTokenById(id); + } + + [WebMethod] + public WebDavAccessToken GetWebDavAccessTokenByAccessToken(Guid accessToken) + { + return EnterpriseStorageController.GetWebDavAccessTokenByAccessToken(accessToken); + } [WebMethod] public bool CheckFileServicesInstallation(int serviceId) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esExchangeServer.asmx.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esExchangeServer.asmx.cs index 52f05163..7facde41 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esExchangeServer.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esExchangeServer.asmx.cs @@ -344,6 +344,18 @@ namespace WebsitePanel.EnterpriseServer return ExchangeServerController.SetMailboxPermissions(itemId, accountId, sendAsaccounts, fullAccessAcounts); } + [WebMethod] + public int ExportMailBox(int itemId, int accountId, string path) + { + return ExchangeServerController.ExportMailBox(itemId, accountId, path); + } + + [WebMethod] + public int SetDeletedMailbox(int itemId, int accountId) + { + return ExchangeServerController.SetDeletedMailbox(itemId, accountId); + } + #endregion diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esOrganizations.asmx.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esOrganizations.asmx.cs index 95528b5a..14e57cec 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esOrganizations.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esOrganizations.asmx.cs @@ -193,6 +193,12 @@ namespace WebsitePanel.EnterpriseServer return OrganizationController.ImportUser(itemId, accountName, displayName, name, domain, password, subscriberNumber); } + [WebMethod] + public OrganizationDeletedUsersPaged GetOrganizationDeletedUsersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, + int startRow, int maximumRows) + { + return OrganizationController.GetOrganizationDeletedUsersPaged(itemId, filterColumn, filterValue, sortColumn, startRow, maximumRows); + } [WebMethod] public OrganizationUsersPaged GetOrganizationUsersPaged(int itemId, string filterColumn, string filterValue, string sortColumn, @@ -248,6 +254,17 @@ namespace WebsitePanel.EnterpriseServer filterColumn, filterValue, sortColumn, includeMailboxes); } + [WebMethod] + public int SetDeletedUser(int itemId, int accountId, bool enableForceArchive) + { + return OrganizationController.SetDeletedUser(itemId, accountId, enableForceArchive); + } + + [WebMethod] + public byte[] GetArchiveFileBinaryChunk(int packageId, string path, int offset, int length) + { + return OrganizationController.GetArchiveFileBinaryChunk(packageId, path, offset, length); + } [WebMethod] public int DeleteUser(int itemId, int accountId) diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esRemoteDesktopServices.asmx.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esRemoteDesktopServices.asmx.cs index 43df9f33..4061033d 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esRemoteDesktopServices.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer/esRemoteDesktopServices.asmx.cs @@ -65,7 +65,7 @@ namespace WebsitePanel.EnterpriseServer } [WebMethod] - public ResultObject AddRdsCollection(int itemId, RdsCollection collection) + public int AddRdsCollection(int itemId, RdsCollection collection) { return RemoteDesktopServicesController.AddRdsCollection(itemId, collection); } @@ -236,6 +236,18 @@ namespace WebsitePanel.EnterpriseServer return RemoteDesktopServicesController.GetOrganizationRdsUsersCount(itemId); } + [WebMethod] + public int GetOrganizationRdsServersCount(int itemId) + { + return RemoteDesktopServicesController.GetOrganizationRdsServersCount(itemId); + } + + [WebMethod] + public int GetOrganizationRdsCollectionsCount(int itemId) + { + return RemoteDesktopServicesController.GetOrganizationRdsCollectionsCount(itemId); + } + [WebMethod] public List GetApplicationUsers(int itemId, int collectionId, RemoteApplication remoteApp) { diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ExchangeAccountType.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ExchangeAccountType.cs index 4c17d5f0..24cb257c 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ExchangeAccountType.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ExchangeAccountType.cs @@ -40,6 +40,7 @@ namespace WebsitePanel.Providers.HostedSolution User = 7, SecurityGroup = 8, DefaultSecurityGroup = 9, - SharedMailbox = 10 + SharedMailbox = 10, + DeletedUser = 11 } } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ExchangeMailboxPlan.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ExchangeMailboxPlan.cs index 729487c7..99314e8b 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ExchangeMailboxPlan.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/ExchangeMailboxPlan.cs @@ -247,6 +247,13 @@ namespace WebsitePanel.Providers.HostedSolution set { this.archiveWarningPct = value; } } + bool enableForceArchiveDeletion; + public bool EnableForceArchiveDeletion + { + get { return this.enableForceArchiveDeletion; } + set { this.enableForceArchiveDeletion = value; } + } + public string WSPUniqueName { get diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IExchangeServer.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IExchangeServer.cs index 4978858b..559ac8bd 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IExchangeServer.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IExchangeServer.cs @@ -143,6 +143,7 @@ namespace WebsitePanel.Providers.HostedSolution int RemoveDisclamerMember(string name, string member); // Archiving + ResultObject ExportMailBox(string organizationId, string accountName, string storagePath); ResultObject SetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy); // Retention policy diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IOrganization.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IOrganization.cs index 6460e3d0..d136e10f 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IOrganization.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/IOrganization.cs @@ -39,6 +39,8 @@ namespace WebsitePanel.Providers.HostedSolution int CreateUser(string organizationId, string loginName, string displayName, string upn, string password, bool enabled); + void DisableUser(string loginName, string organizationId); + void DeleteUser(string loginName, string organizationId); OrganizationUser GetUserGeneralSettings(string loginName, string organizationId); diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationDeletedUser.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationDeletedUser.cs new file mode 100644 index 00000000..f627e706 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationDeletedUser.cs @@ -0,0 +1,53 @@ +// Copyright (c) 2014, 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. + +using System; + +namespace WebsitePanel.Providers.HostedSolution +{ + public class OrganizationDeletedUser + { + public int Id { get; set; } + + public int AccountId { get; set; } + + public ExchangeAccountType OriginAT { get; set; } + + public string StoragePath { get; set; } + + public string FolderName { get; set; } + + public string FileName { get; set; } + + public DateTime ExpirationDate { get; set; } + + public OrganizationUser User { get; set; } + + public bool IsArchiveEmpty { get; set; } + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationDeletedUsersPaged.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationDeletedUsersPaged.cs new file mode 100644 index 00000000..26579c6c --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationDeletedUsersPaged.cs @@ -0,0 +1,48 @@ +// Copyright (c) 2014, 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. + +namespace WebsitePanel.Providers.HostedSolution +{ + public class OrganizationDeletedUsersPaged + { + int recordsCount; + OrganizationDeletedUser[] pageDeletedUsers; + + public int RecordsCount + { + get { return recordsCount; } + set { recordsCount = value; } + } + + public OrganizationDeletedUser[] PageDeletedUsers + { + get { return pageDeletedUsers; } + set { pageDeletedUsers = value; } + } + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationStatistics.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationStatistics.cs index 4e0fdc62..56923206 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationStatistics.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/HostedSolution/OrganizationStatistics.cs @@ -82,6 +82,12 @@ namespace WebsitePanel.Providers.HostedSolution private int createdProfessionalCRMUsers; private int allocatedProfessionalCRMUsers; + private int allocatedDeletedUsers; + private int deletedUsers; + + private int allocatedDeletedUsersBackupStorageSpace; + private int usedDeletedUsersBackupStorageSpace; + public int CreatedProfessionalCRMUsers { get { return createdProfessionalCRMUsers; } @@ -370,7 +376,35 @@ namespace WebsitePanel.Providers.HostedSolution set { createdResourceMailboxes = value; } } + public int AllocatedDeletedUsers + { + get { return allocatedDeletedUsers; } + set { allocatedDeletedUsers = value; } + } + public int DeletedUsers + { + get { return deletedUsers; } + set { deletedUsers = value; } + } + + public int AllocatedDeletedUsersBackupStorageSpace + { + get { return allocatedDeletedUsersBackupStorageSpace; } + set { allocatedDeletedUsersBackupStorageSpace = value; } + } + public int UsedDeletedUsersBackupStorageSpace + { + get { return usedDeletedUsersBackupStorageSpace; } + set { usedDeletedUsersBackupStorageSpace = value; } + } + + public int CreatedRdsServers { get; set; } + public int CreatedRdsCollections { get; set; } + public int CreatedRdsUsers { get; set; } + public int AllocatedRdsServers { get; set; } + public int AllocatedRdsCollections { get; set; } + public int AllocatedRdsUsers { get; set; } } } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj b/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj index 93fd43e7..99707c63 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Base/WebsitePanel.Providers.Base.csproj @@ -120,6 +120,8 @@ + + diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs index d6763984..6524feb8 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution.Exchange2013/Exchange2013.cs @@ -7482,6 +7482,43 @@ namespace WebsitePanel.Providers.HostedSolution #region Archiving + public ResultObject ExportMailBox(string organizationId, string accountName, string storagePath) + { + return ExportMailBoxInternal(organizationId, accountName, storagePath); + } + + public ResultObject ExportMailBoxInternal(string organizationId, string accountName, string storagePath) + { + ExchangeLog.LogStart("ExportMailBoxInternal"); + ExchangeLog.DebugInfo("Account: {0}", accountName); + + ResultObject res = new ResultObject() { IsSuccess = true }; + + Runspace runSpace = null; + Runspace runSpaceEx = null; + + try + { + runSpace = OpenRunspace(); + runSpaceEx = OpenRunspaceEx(); + + Command cmd = new Command("New-MailboxExportRequest"); + cmd.Parameters.Add("Mailbox", accountName); + cmd.Parameters.Add("FilePath", storagePath); + + ExecuteShellCommand(runSpace, cmd, res); + } + finally + { + CloseRunspace(runSpace); + CloseRunspaceEx(runSpaceEx); + } + + ExchangeLog.LogEnd("ExportMailBoxInternal"); + + return res; + } + public ResultObject SetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) { return SetMailBoxArchivingInternal(organizationId, accountName, archive, archiveQuotaKB, archiveWarningQuotaKB, RetentionPolicy); diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs index 9a34f1ee..a1dd1df4 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/Exchange2007.cs @@ -7103,6 +7103,13 @@ namespace WebsitePanel.Providers.HostedSolution #endregion #region Archiving + + public virtual ResultObject ExportMailBox(string organizationId, string accountName, string storagePath) + { + // not implemented + return null; + } + public virtual ResultObject SetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) { // not implemented diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/OrganizationProvider.cs b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/OrganizationProvider.cs index 0bd30eec..134e020b 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/OrganizationProvider.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.HostedSolution/OrganizationProvider.cs @@ -526,6 +526,36 @@ namespace WebsitePanel.Providers.HostedSolution return res; } + public void DisableUser(string loginName, string organizationId) + { + DisableUserInternal(loginName, organizationId); + } + + public void DisableUserInternal(string loginName, string organizationId) + { + HostedSolutionLog.LogStart("DisableUserInternal"); + HostedSolutionLog.DebugInfo("loginName : {0}", loginName); + HostedSolutionLog.DebugInfo("organizationId : {0}", organizationId); + + if (string.IsNullOrEmpty(loginName)) + throw new ArgumentNullException("loginName"); + + if (string.IsNullOrEmpty(organizationId)) + throw new ArgumentNullException("organizationId"); + + string path = GetUserPath(organizationId, loginName); + + if (ActiveDirectoryUtils.AdObjectExists(path)) + { + DirectoryEntry entry = ActiveDirectoryUtils.GetADObject(path); + + entry.InvokeSet(ADAttributes.AccountDisabled, true); + + entry.CommitChanges(); + } + + HostedSolutionLog.LogEnd("DisableUserInternal"); + } public void DeleteUser(string loginName, string organizationId) { diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.TerminalServices.Windows2012/Windows2012.cs b/WebsitePanel/Sources/WebsitePanel.Providers.TerminalServices.Windows2012/Windows2012.cs index 953addf0..0a71b867 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.TerminalServices.Windows2012/Windows2012.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.TerminalServices.Windows2012/Windows2012.cs @@ -1,4 +1,4 @@ -// Copyright (c) 2015, Outercurve Foundation. +// Copyright (c) 2015, Outercurve Foundation. // All rights reserved. // // Redistribution and use in source and binary forms, with or without modification, @@ -220,20 +220,20 @@ namespace WebsitePanel.Providers.RemoteDesktopServices try { - runSpace = OpenRunspace(); + runSpace = OpenRunspace(); var existingServers = GetServersExistingInCollections(runSpace); - existingServers = existingServers.Select(x => x.ToUpper()).Intersect(collection.Servers.Select(x => x.FqdName.ToUpper())).ToList(); + existingServers = existingServers.Select(x => x.ToUpper()).Intersect(collection.Servers.Select(x => x.FqdName.ToUpper())).ToList(); if (existingServers.Any()) { throw new Exception(string.Format("Server{0} {1} already added to another collection", existingServers.Count == 1 ? "" : "s", string.Join(" ,", existingServers.ToArray()))); - } + } foreach (var server in collection.Servers) { //If server will restart it will not be added to collection - //Do not install feature here + //Do not install feature here if (!ExistRdsServerInDeployment(runSpace, server)) { @@ -786,7 +786,7 @@ namespace WebsitePanel.Providers.RemoteDesktopServices } internal void CreateRdRapForce(Runspace runSpace, string gatewayHost, string policyName, string collectionName, List groups) - { + { //New-Item -Path "RDS:\GatewayServer\RAP" -Name "Allow Connections To Everywhere" -UserGroups "Administrators@." -ComputerGroupType 1 //Set-Item -Path "RDS:\GatewayServer\RAP\Allow Connections To Everywhere\PortNumbers" -Value 3389,3390 @@ -795,6 +795,7 @@ namespace WebsitePanel.Providers.RemoteDesktopServices RemoveRdRap(runSpace, gatewayHost, policyName); } + Log.WriteWarning(gatewayHost); var userGroupParametr = string.Format("@({0})", string.Join(",", groups.Select(x => string.Format("\"{0}@{1}\"", x, RootDomain)).ToArray())); var computerGroupParametr = string.Format("\"{0}@{1}\"", GetComputersGroupName(collectionName), RootDomain); @@ -804,8 +805,10 @@ namespace WebsitePanel.Providers.RemoteDesktopServices rdRapCommand.Parameters.Add("UserGroups", userGroupParametr); rdRapCommand.Parameters.Add("ComputerGroupType", 1); rdRapCommand.Parameters.Add("ComputerGroup", computerGroupParametr); - + Log.WriteWarning("User Group:" + userGroupParametr); + Log.WriteWarning("Computer Group:" + computerGroupParametr); ExecuteRemoteShellCommand(runSpace, gatewayHost, rdRapCommand, RdsModuleName); + Log.WriteWarning("RD RAP Added"); } internal void RemoveRdRap(Runspace runSpace, string gatewayHost, string name) @@ -1595,22 +1598,22 @@ namespace WebsitePanel.Providers.RemoteDesktopServices internal List GetServersExistingInCollections(Runspace runSpace) { var existingHosts = new List(); - var scripts = new List(); - scripts.Add(string.Format("$sessions = Get-RDSessionCollection -ConnectionBroker {0}", ConnectionBroker)); - scripts.Add(string.Format("foreach($session in $sessions){{Get-RDSessionHost $session.CollectionName -ConnectionBroker {0}|Select SessionHost}}", ConnectionBroker)); - object[] errors; + //var scripts = new List(); + //scripts.Add(string.Format("$sessions = Get-RDSessionCollection -ConnectionBroker {0}", ConnectionBroker)); + //scripts.Add(string.Format("foreach($session in $sessions){{Get-RDSessionHost $session.CollectionName -ConnectionBroker {0}|Select SessionHost}}", ConnectionBroker)); + //object[] errors; - var sessionHosts = ExecuteShellCommand(runSpace, scripts, out errors); + //var sessionHosts = ExecuteShellCommand(runSpace, scripts, out errors); - foreach(var host in sessionHosts) - { - var sessionHost = GetPSObjectProperty(host, "SessionHost"); + //foreach(var host in sessionHosts) + //{ + // var sessionHost = GetPSObjectProperty(host, "SessionHost"); - if (sessionHost != null) - { - existingHosts.Add(sessionHost.ToString()); - } - } + // if (sessionHost != null) + // { + // existingHosts.Add(sessionHost.ToString()); + // } + //} return existingHosts; } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/Delegation/DelegationRulesModuleService.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/Delegation/DelegationRulesModuleService.cs index d5d098f8..969b0c50 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/Delegation/DelegationRulesModuleService.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/Delegation/DelegationRulesModuleService.cs @@ -45,8 +45,12 @@ namespace WebsitePanel.Providers.Web.Delegation using (var srvman = new ServerManager()) { var adminConfig = srvman.GetAdministrationConfiguration(); - // - var delegationSection = adminConfig.GetSection("system.webServer/management/delegation"); + + // return if system.webServer/management/delegation section is not exist in config file + if (!HasDelegationSection(adminConfig)) + return; + + var delegationSection = adminConfig.GetSection("system.webServer/management/delegation"); // var rulesCollection = delegationSection.GetCollection(); // Update rule if exists @@ -103,8 +107,12 @@ namespace WebsitePanel.Providers.Web.Delegation using (var srvman = new ServerManager()) { var adminConfig = srvman.GetAdministrationConfiguration(); - // - var delegationSection = adminConfig.GetSection("system.webServer/management/delegation"); + + // return if system.webServer/management/delegation section is not exist in config file + if (!HasDelegationSection(adminConfig)) + return; + + var delegationSection = adminConfig.GetSection("system.webServer/management/delegation"); // var rulesCollection = delegationSection.GetCollection(); // Update rule if exists @@ -142,8 +150,12 @@ namespace WebsitePanel.Providers.Web.Delegation using (var srvman = new ServerManager()) { var adminConfig = srvman.GetAdministrationConfiguration(); - // - var delegationSection = adminConfig.GetSection("system.webServer/management/delegation"); + + // return if system.webServer/management/delegation section is not exist in config file + if (!HasDelegationSection(adminConfig)) + return false; + + var delegationSection = adminConfig.GetSection("system.webServer/management/delegation"); // var rulesCollection = delegationSection.GetCollection(); // Update rule if exists @@ -171,8 +183,12 @@ namespace WebsitePanel.Providers.Web.Delegation using (var srvman = GetServerManager()) { var adminConfig = srvman.GetAdministrationConfiguration(); - // - var delegationSection = adminConfig.GetSection("system.webServer/management/delegation"); + + // return if system.webServer/management/delegation section is not exist in config file + if (!HasDelegationSection(adminConfig)) + return; + + var delegationSection = adminConfig.GetSection("system.webServer/management/delegation"); // var rulesCollection = delegationSection.GetCollection(); // Update rule if exists @@ -245,8 +261,12 @@ namespace WebsitePanel.Providers.Web.Delegation using (var srvman = GetServerManager()) { var adminConfig = srvman.GetAdministrationConfiguration(); - // - var delegationSection = adminConfig.GetSection("system.webServer/management/delegation"); + + // return if system.webServer/management/delegation section is not exist in config file + if (!HasDelegationSection(adminConfig)) + return; + + var delegationSection = adminConfig.GetSection("system.webServer/management/delegation"); // var rulesCollection = delegationSection.GetCollection(); // Remove rule if exists @@ -264,5 +284,21 @@ namespace WebsitePanel.Providers.Web.Delegation } } } + + private bool HasDelegationSection(Configuration adminConfig) + { + // try to get delegation section in config file (C:\Windows\system32\inetsrv\config\administration.config) + try + { + adminConfig.GetSection("system.webServer/management/delegation"); + } + catch (Exception ex) + { + /* skip */ + return false; + } + + return true; + } } } diff --git a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs index 668306c4..163eb5c9 100644 --- a/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs +++ b/WebsitePanel/Sources/WebsitePanel.Providers.Web.IIS70/IIs70.cs @@ -2072,7 +2072,7 @@ namespace WebsitePanel.Providers.Web public new void GrantWebDeployPublishingAccess(string siteName, string accountName, string accountPassword) { // Web Publishing Access feature requires FullControl permissions on the web site's wwwroot folder - //GrantWebManagementAccessInternally(siteName, accountName, accountPassword, NTFSPermission.FullControl); + GrantWebManagementAccessInternally(siteName, accountName, accountPassword, NTFSPermission.FullControl); // EnforceDelegationRulesRestrictions(siteName, accountName); } @@ -2086,7 +2086,7 @@ namespace WebsitePanel.Providers.Web public new void RevokeWebDeployPublishingAccess(string siteName, string accountName) { // Web Publishing Access feature requires FullControl permissions on the web site's wwwroot folder - //RevokeWebManagementAccess(siteName, accountName); + RevokeWebManagementAccess(siteName, accountName); // RemoveDelegationRulesRestrictions(siteName, accountName); } @@ -4336,13 +4336,13 @@ namespace WebsitePanel.Providers.Web protected string GetFullQualifiedAccountName(string accountName) { + if (accountName.IndexOf("\\") != -1) + return accountName; // already has domain information + // if (!ServerSettings.ADEnabled) return String.Format(@"{0}\{1}", Environment.MachineName, accountName); - if (accountName.IndexOf("\\") != -1) - return accountName; // already has domain information - // DO IT FOR ACTIVE DIRECTORY MODE ONLY string domainName = null; try diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerProxy.cs b/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerProxy.cs index 5b51edf9..b8249193 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server.Client/ExchangeServerProxy.cs @@ -1,38 +1,7 @@ -// Copyright (c) 2015, 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. - -using WebsitePanel.Providers.HostedSolution; -using WebsitePanel.Providers.Common; - //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.5466 +// Runtime Version:2.0.50727.7905 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -40,1416 +9,508 @@ using WebsitePanel.Providers.Common; //------------------------------------------------------------------------------ // -// This source code was auto-generated by wsdl, Version=2.0.50727.42. +// This source code was auto-generated by wsdl, Version=2.0.50727.3038. // -namespace WebsitePanel.Providers.Exchange -{ +namespace WebsitePanel.Providers.Exchange { using System.Xml.Serialization; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Diagnostics; - - + using WebsitePanel.Providers.HostedSolution; + using WebsitePanel.Providers.Common; + + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "ExchangeServerSoap", Namespace = "http://smbsaas/websitepanel/server/")] + [System.Web.Services.WebServiceBindingAttribute(Name="ExchangeServerSoap", Namespace="http://smbsaas/websitepanel/server/")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(BaseStatistics))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))] - public partial class ExchangeServer : Microsoft.Web.Services3.WebServicesClientProtocol - { - + public partial class ExchangeServer : Microsoft.Web.Services3.WebServicesClientProtocol { + public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue; - - private System.Threading.SendOrPostCallback GetPublicFolderSizeOperationCompleted; - - private System.Threading.SendOrPostCallback CreateOrganizationRootPublicFolderOperationCompleted; - - private System.Threading.SendOrPostCallback CreateOrganizationActiveSyncPolicyOperationCompleted; - - private System.Threading.SendOrPostCallback GetActiveSyncPolicyOperationCompleted; - - private System.Threading.SendOrPostCallback SetActiveSyncPolicyOperationCompleted; - - private System.Threading.SendOrPostCallback GetMobileDevicesOperationCompleted; - - private System.Threading.SendOrPostCallback GetMobileDeviceOperationCompleted; - - private System.Threading.SendOrPostCallback WipeDataFromDeviceOperationCompleted; - - private System.Threading.SendOrPostCallback CancelRemoteWipeRequestOperationCompleted; - - 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; - + private System.Threading.SendOrPostCallback CreateMailEnableUserOperationCompleted; - + private System.Threading.SendOrPostCallback CreateOrganizationOfflineAddressBookOperationCompleted; - + private System.Threading.SendOrPostCallback UpdateOrganizationOfflineAddressBookOperationCompleted; - + private System.Threading.SendOrPostCallback GetOABVirtualDirectoryOperationCompleted; - + private System.Threading.SendOrPostCallback CreateOrganizationAddressBookPolicyOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteOrganizationOperationCompleted; - + private System.Threading.SendOrPostCallback SetOrganizationStorageLimitsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxesStatisticsOperationCompleted; - + private System.Threading.SendOrPostCallback AddAuthoritativeDomainOperationCompleted; - + private System.Threading.SendOrPostCallback ChangeAcceptedDomainTypeOperationCompleted; - + private System.Threading.SendOrPostCallback GetAuthoritativeDomainsOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteAuthoritativeDomainOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteMailboxOperationCompleted; - + private System.Threading.SendOrPostCallback DisableMailboxOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxAdvancedSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxAdvancedSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxPrimaryEmailAddressOperationCompleted; - + private System.Threading.SendOrPostCallback SetMailboxPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback GetMailboxStatisticsOperationCompleted; - + private System.Threading.SendOrPostCallback SetDefaultPublicFolderMailboxOperationCompleted; - + private System.Threading.SendOrPostCallback CreateContactOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteContactOperationCompleted; - + private System.Threading.SendOrPostCallback GetContactGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetContactGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetContactMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetContactMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback CreateDistributionListOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteDistributionListOperationCompleted; - + private System.Threading.SendOrPostCallback GetDistributionListGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetDistributionListGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetDistributionListMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetDistributionListMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetDistributionListEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetDistributionListEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetDistributionListPrimaryEmailAddressOperationCompleted; - + private System.Threading.SendOrPostCallback SetDistributionListPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback GetDistributionListPermissionsOperationCompleted; - + private System.Threading.SendOrPostCallback SetDisclaimerOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveDisclaimerOperationCompleted; - + private System.Threading.SendOrPostCallback AddDisclamerMemberOperationCompleted; - + private System.Threading.SendOrPostCallback RemoveDisclamerMemberOperationCompleted; - + private System.Threading.SendOrPostCallback CreatePublicFolderOperationCompleted; - + private System.Threading.SendOrPostCallback DeletePublicFolderOperationCompleted; - + private System.Threading.SendOrPostCallback EnableMailPublicFolderOperationCompleted; - + private System.Threading.SendOrPostCallback DisableMailPublicFolderOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFolderGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetPublicFolderGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFolderMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetPublicFolderMailFlowSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFolderEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetPublicFolderEmailAddressesOperationCompleted; - + private System.Threading.SendOrPostCallback SetPublicFolderPrimaryEmailAddressOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFoldersStatisticsOperationCompleted; - + private System.Threading.SendOrPostCallback GetPublicFoldersRecursiveOperationCompleted; - + + private System.Threading.SendOrPostCallback GetPublicFolderSizeOperationCompleted; + + private System.Threading.SendOrPostCallback CreateOrganizationRootPublicFolderOperationCompleted; + + private System.Threading.SendOrPostCallback CreateOrganizationActiveSyncPolicyOperationCompleted; + + private System.Threading.SendOrPostCallback GetActiveSyncPolicyOperationCompleted; + + private System.Threading.SendOrPostCallback SetActiveSyncPolicyOperationCompleted; + + private System.Threading.SendOrPostCallback GetMobileDevicesOperationCompleted; + + private System.Threading.SendOrPostCallback GetMobileDeviceOperationCompleted; + + private System.Threading.SendOrPostCallback WipeDataFromDeviceOperationCompleted; + + private System.Threading.SendOrPostCallback CancelRemoteWipeRequestOperationCompleted; + + private System.Threading.SendOrPostCallback RemoveDeviceOperationCompleted; + + private System.Threading.SendOrPostCallback ExportMailBoxOperationCompleted; + + 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; + /// - public ExchangeServer() - { - this.Url = "http://localhost:9004/ExchangeServer.asmx"; + public ExchangeServer() { + this.Url = "http://localhost:9003/ExchangeServer.asmx"; } - - /// - public event GetPublicFolderSizeCompletedEventHandler GetPublicFolderSizeCompleted; - - /// - public event CreateOrganizationRootPublicFolderCompletedEventHandler CreateOrganizationRootPublicFolderCompleted; - - /// - public event CreateOrganizationActiveSyncPolicyCompletedEventHandler CreateOrganizationActiveSyncPolicyCompleted; - - /// - public event GetActiveSyncPolicyCompletedEventHandler GetActiveSyncPolicyCompleted; - - /// - public event SetActiveSyncPolicyCompletedEventHandler SetActiveSyncPolicyCompleted; - - /// - public event GetMobileDevicesCompletedEventHandler GetMobileDevicesCompleted; - - /// - public event GetMobileDeviceCompletedEventHandler GetMobileDeviceCompleted; - - /// - public event WipeDataFromDeviceCompletedEventHandler WipeDataFromDeviceCompleted; - - /// - public event CancelRemoteWipeRequestCompletedEventHandler CancelRemoteWipeRequestCompleted; - - /// - public event RemoveDeviceCompletedEventHandler RemoveDeviceCompleted; - - /// - public event SetMailBoxArchivingCompletedEventHandler SetMailBoxArchivingCompleted; - - /// - public event SetRetentionPolicyTagCompletedEventHandler SetRetentionPolicyTagCompleted; - - /// - public event RemoveRetentionPolicyTagCompletedEventHandler RemoveRetentionPolicyTagCompleted; - - /// - public event SetRetentionPolicyCompletedEventHandler SetRetentionPolicyCompleted; - - /// - public event RemoveRetentionPolicyCompletedEventHandler RemoveRetentionPolicyCompleted; - + /// public event CheckAccountCredentialsCompletedEventHandler CheckAccountCredentialsCompleted; - + /// public event ExtendToExchangeOrganizationCompletedEventHandler ExtendToExchangeOrganizationCompleted; - + /// public event CreateMailEnableUserCompletedEventHandler CreateMailEnableUserCompleted; - + /// public event CreateOrganizationOfflineAddressBookCompletedEventHandler CreateOrganizationOfflineAddressBookCompleted; - + /// public event UpdateOrganizationOfflineAddressBookCompletedEventHandler UpdateOrganizationOfflineAddressBookCompleted; - + /// public event GetOABVirtualDirectoryCompletedEventHandler GetOABVirtualDirectoryCompleted; - + /// public event CreateOrganizationAddressBookPolicyCompletedEventHandler CreateOrganizationAddressBookPolicyCompleted; - + /// public event DeleteOrganizationCompletedEventHandler DeleteOrganizationCompleted; - + /// public event SetOrganizationStorageLimitsCompletedEventHandler SetOrganizationStorageLimitsCompleted; - + /// public event GetMailboxesStatisticsCompletedEventHandler GetMailboxesStatisticsCompleted; - + /// public event AddAuthoritativeDomainCompletedEventHandler AddAuthoritativeDomainCompleted; - + /// public event ChangeAcceptedDomainTypeCompletedEventHandler ChangeAcceptedDomainTypeCompleted; - + /// public event GetAuthoritativeDomainsCompletedEventHandler GetAuthoritativeDomainsCompleted; - + /// public event DeleteAuthoritativeDomainCompletedEventHandler DeleteAuthoritativeDomainCompleted; - + /// public event DeleteMailboxCompletedEventHandler DeleteMailboxCompleted; - + /// public event DisableMailboxCompletedEventHandler DisableMailboxCompleted; - + /// public event GetMailboxGeneralSettingsCompletedEventHandler GetMailboxGeneralSettingsCompleted; - + /// public event SetMailboxGeneralSettingsCompletedEventHandler SetMailboxGeneralSettingsCompleted; - + /// public event GetMailboxMailFlowSettingsCompletedEventHandler GetMailboxMailFlowSettingsCompleted; - + /// public event SetMailboxMailFlowSettingsCompletedEventHandler SetMailboxMailFlowSettingsCompleted; - + /// public event GetMailboxAdvancedSettingsCompletedEventHandler GetMailboxAdvancedSettingsCompleted; - + /// public event SetMailboxAdvancedSettingsCompletedEventHandler SetMailboxAdvancedSettingsCompleted; - + /// public event GetMailboxEmailAddressesCompletedEventHandler GetMailboxEmailAddressesCompleted; - + /// public event SetMailboxEmailAddressesCompletedEventHandler SetMailboxEmailAddressesCompleted; - + /// public event SetMailboxPrimaryEmailAddressCompletedEventHandler SetMailboxPrimaryEmailAddressCompleted; - + /// public event SetMailboxPermissionsCompletedEventHandler SetMailboxPermissionsCompleted; - + /// public event GetMailboxPermissionsCompletedEventHandler GetMailboxPermissionsCompleted; - + /// public event GetMailboxStatisticsCompletedEventHandler GetMailboxStatisticsCompleted; - + /// public event SetDefaultPublicFolderMailboxCompletedEventHandler SetDefaultPublicFolderMailboxCompleted; - + /// public event CreateContactCompletedEventHandler CreateContactCompleted; - + /// public event DeleteContactCompletedEventHandler DeleteContactCompleted; - + /// public event GetContactGeneralSettingsCompletedEventHandler GetContactGeneralSettingsCompleted; - + /// public event SetContactGeneralSettingsCompletedEventHandler SetContactGeneralSettingsCompleted; - + /// public event GetContactMailFlowSettingsCompletedEventHandler GetContactMailFlowSettingsCompleted; - + /// public event SetContactMailFlowSettingsCompletedEventHandler SetContactMailFlowSettingsCompleted; - + /// public event CreateDistributionListCompletedEventHandler CreateDistributionListCompleted; - + /// public event DeleteDistributionListCompletedEventHandler DeleteDistributionListCompleted; - + /// public event GetDistributionListGeneralSettingsCompletedEventHandler GetDistributionListGeneralSettingsCompleted; - + /// public event SetDistributionListGeneralSettingsCompletedEventHandler SetDistributionListGeneralSettingsCompleted; - + /// public event GetDistributionListMailFlowSettingsCompletedEventHandler GetDistributionListMailFlowSettingsCompleted; - + /// public event SetDistributionListMailFlowSettingsCompletedEventHandler SetDistributionListMailFlowSettingsCompleted; - + /// public event GetDistributionListEmailAddressesCompletedEventHandler GetDistributionListEmailAddressesCompleted; - + /// public event SetDistributionListEmailAddressesCompletedEventHandler SetDistributionListEmailAddressesCompleted; - + /// public event SetDistributionListPrimaryEmailAddressCompletedEventHandler SetDistributionListPrimaryEmailAddressCompleted; - + /// public event SetDistributionListPermissionsCompletedEventHandler SetDistributionListPermissionsCompleted; - + /// public event GetDistributionListPermissionsCompletedEventHandler GetDistributionListPermissionsCompleted; - + /// public event SetDisclaimerCompletedEventHandler SetDisclaimerCompleted; - + /// public event RemoveDisclaimerCompletedEventHandler RemoveDisclaimerCompleted; - + /// public event AddDisclamerMemberCompletedEventHandler AddDisclamerMemberCompleted; - + /// public event RemoveDisclamerMemberCompletedEventHandler RemoveDisclamerMemberCompleted; - + /// public event CreatePublicFolderCompletedEventHandler CreatePublicFolderCompleted; - + /// public event DeletePublicFolderCompletedEventHandler DeletePublicFolderCompleted; - + /// public event EnableMailPublicFolderCompletedEventHandler EnableMailPublicFolderCompleted; - + /// public event DisableMailPublicFolderCompletedEventHandler DisableMailPublicFolderCompleted; - + /// public event GetPublicFolderGeneralSettingsCompletedEventHandler GetPublicFolderGeneralSettingsCompleted; - + /// public event SetPublicFolderGeneralSettingsCompletedEventHandler SetPublicFolderGeneralSettingsCompleted; - + /// public event GetPublicFolderMailFlowSettingsCompletedEventHandler GetPublicFolderMailFlowSettingsCompleted; - + /// public event SetPublicFolderMailFlowSettingsCompletedEventHandler SetPublicFolderMailFlowSettingsCompleted; - + /// public event GetPublicFolderEmailAddressesCompletedEventHandler GetPublicFolderEmailAddressesCompleted; - + /// public event SetPublicFolderEmailAddressesCompletedEventHandler SetPublicFolderEmailAddressesCompleted; - + /// public event SetPublicFolderPrimaryEmailAddressCompletedEventHandler SetPublicFolderPrimaryEmailAddressCompleted; - + /// public event GetPublicFoldersStatisticsCompletedEventHandler GetPublicFoldersStatisticsCompleted; - + /// public event GetPublicFoldersRecursiveCompletedEventHandler GetPublicFoldersRecursiveCompleted; - + + /// + public event GetPublicFolderSizeCompletedEventHandler GetPublicFolderSizeCompleted; + + /// + public event CreateOrganizationRootPublicFolderCompletedEventHandler CreateOrganizationRootPublicFolderCompleted; + + /// + public event CreateOrganizationActiveSyncPolicyCompletedEventHandler CreateOrganizationActiveSyncPolicyCompleted; + + /// + public event GetActiveSyncPolicyCompletedEventHandler GetActiveSyncPolicyCompleted; + + /// + public event SetActiveSyncPolicyCompletedEventHandler SetActiveSyncPolicyCompleted; + + /// + public event GetMobileDevicesCompletedEventHandler GetMobileDevicesCompleted; + + /// + public event GetMobileDeviceCompletedEventHandler GetMobileDeviceCompleted; + + /// + public event WipeDataFromDeviceCompletedEventHandler WipeDataFromDeviceCompleted; + + /// + public event CancelRemoteWipeRequestCompletedEventHandler CancelRemoteWipeRequestCompleted; + + /// + public event RemoveDeviceCompletedEventHandler RemoveDeviceCompleted; + + /// + public event ExportMailBoxCompletedEventHandler ExportMailBoxCompleted; + + /// + public event SetMailBoxArchivingCompletedEventHandler SetMailBoxArchivingCompleted; + + /// + public event SetRetentionPolicyTagCompletedEventHandler SetRetentionPolicyTagCompleted; + + /// + public event RemoveRetentionPolicyTagCompletedEventHandler RemoveRetentionPolicyTagCompleted; + + /// + public event SetRetentionPolicyCompletedEventHandler SetRetentionPolicyCompleted; + + /// + public event RemoveRetentionPolicyCompletedEventHandler RemoveRetentionPolicyCompleted; + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderSize", 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 long GetPublicFolderSize(string organizationId, string folder) - { - object[] results = this.Invoke("GetPublicFolderSize", new object[] { - organizationId, - folder}); - return ((long)(results[0])); - } - - /// - public System.IAsyncResult BeginGetPublicFolderSize(string organizationId, string folder, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("GetPublicFolderSize", new object[] { - organizationId, - folder}, callback, asyncState); - } - - /// - public long EndGetPublicFolderSize(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((long)(results[0])); - } - - /// - public void GetPublicFolderSizeAsync(string organizationId, string folder) - { - this.GetPublicFolderSizeAsync(organizationId, folder, null); - } - - /// - public void GetPublicFolderSizeAsync(string organizationId, string folder, object userState) - { - if ((this.GetPublicFolderSizeOperationCompleted == null)) - { - this.GetPublicFolderSizeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFolderSizeOperationCompleted); - } - this.InvokeAsync("GetPublicFolderSize", new object[] { - organizationId, - folder}, this.GetPublicFolderSizeOperationCompleted, userState); - } - - private void OnGetPublicFolderSizeOperationCompleted(object arg) - { - if ((this.GetPublicFolderSizeCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetPublicFolderSizeCompleted(this, new GetPublicFolderSizeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationRootPublicFolder", 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 string CreateOrganizationRootPublicFolder(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain) - { - object[] results = this.Invoke("CreateOrganizationRootPublicFolder", new object[] { - organizationId, - organizationDistinguishedName, - securityGroup, - organizationDomain}); - return ((string)(results[0])); - } - - /// - public System.IAsyncResult BeginCreateOrganizationRootPublicFolder(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("CreateOrganizationRootPublicFolder", new object[] { - organizationId, - organizationDistinguishedName, - securityGroup, - organizationDomain}, callback, asyncState); - } - - /// - public string EndCreateOrganizationRootPublicFolder(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((string)(results[0])); - } - - /// - public void CreateOrganizationRootPublicFolderAsync(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain) - { - this.CreateOrganizationRootPublicFolderAsync(organizationId, organizationDistinguishedName, securityGroup, organizationDomain, null); - } - - /// - public void CreateOrganizationRootPublicFolderAsync(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain, object userState) - { - if ((this.CreateOrganizationRootPublicFolderOperationCompleted == null)) - { - this.CreateOrganizationRootPublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationRootPublicFolderOperationCompleted); - } - this.InvokeAsync("CreateOrganizationRootPublicFolder", new object[] { - organizationId, - organizationDistinguishedName, - securityGroup, - organizationDomain}, this.CreateOrganizationRootPublicFolderOperationCompleted, userState); - } - - private void OnCreateOrganizationRootPublicFolderOperationCompleted(object arg) - { - if ((this.CreateOrganizationRootPublicFolderCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.CreateOrganizationRootPublicFolderCompleted(this, new CreateOrganizationRootPublicFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationActiveSyncPolicy", 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 CreateOrganizationActiveSyncPolicy(string organizationId) - { - this.Invoke("CreateOrganizationActiveSyncPolicy", new object[] { - organizationId}); - } - - /// - public System.IAsyncResult BeginCreateOrganizationActiveSyncPolicy(string organizationId, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("CreateOrganizationActiveSyncPolicy", new object[] { - organizationId}, callback, asyncState); - } - - /// - public void EndCreateOrganizationActiveSyncPolicy(System.IAsyncResult asyncResult) - { - this.EndInvoke(asyncResult); - } - - /// - public void CreateOrganizationActiveSyncPolicyAsync(string organizationId) - { - this.CreateOrganizationActiveSyncPolicyAsync(organizationId, null); - } - - /// - public void CreateOrganizationActiveSyncPolicyAsync(string organizationId, object userState) - { - if ((this.CreateOrganizationActiveSyncPolicyOperationCompleted == null)) - { - this.CreateOrganizationActiveSyncPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationActiveSyncPolicyOperationCompleted); - } - this.InvokeAsync("CreateOrganizationActiveSyncPolicy", new object[] { - organizationId}, this.CreateOrganizationActiveSyncPolicyOperationCompleted, userState); - } - - private void OnCreateOrganizationActiveSyncPolicyOperationCompleted(object arg) - { - if ((this.CreateOrganizationActiveSyncPolicyCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.CreateOrganizationActiveSyncPolicyCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetActiveSyncPolicy", 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 ExchangeActiveSyncPolicy GetActiveSyncPolicy(string organizationId) - { - object[] results = this.Invoke("GetActiveSyncPolicy", new object[] { - organizationId}); - return ((ExchangeActiveSyncPolicy)(results[0])); - } - - /// - public System.IAsyncResult BeginGetActiveSyncPolicy(string organizationId, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("GetActiveSyncPolicy", new object[] { - organizationId}, callback, asyncState); - } - - /// - public ExchangeActiveSyncPolicy EndGetActiveSyncPolicy(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((ExchangeActiveSyncPolicy)(results[0])); - } - - /// - public void GetActiveSyncPolicyAsync(string organizationId) - { - this.GetActiveSyncPolicyAsync(organizationId, null); - } - - /// - public void GetActiveSyncPolicyAsync(string organizationId, object userState) - { - if ((this.GetActiveSyncPolicyOperationCompleted == null)) - { - this.GetActiveSyncPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetActiveSyncPolicyOperationCompleted); - } - this.InvokeAsync("GetActiveSyncPolicy", new object[] { - organizationId}, this.GetActiveSyncPolicyOperationCompleted, userState); - } - - private void OnGetActiveSyncPolicyOperationCompleted(object arg) - { - if ((this.GetActiveSyncPolicyCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetActiveSyncPolicyCompleted(this, new GetActiveSyncPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetActiveSyncPolicy", 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 SetActiveSyncPolicy( - string id, - bool allowNonProvisionableDevices, - bool attachmentsEnabled, - int maxAttachmentSizeKB, - bool uncAccessEnabled, - bool wssAccessEnabled, - bool devicePasswordEnabled, - bool alphanumericPasswordRequired, - bool passwordRecoveryEnabled, - bool deviceEncryptionEnabled, - bool allowSimplePassword, - int maxPasswordFailedAttempts, - int minPasswordLength, - int inactivityLockMin, - int passwordExpirationDays, - int passwordHistory, - int refreshInterval) - { - this.Invoke("SetActiveSyncPolicy", new object[] { - id, - allowNonProvisionableDevices, - attachmentsEnabled, - maxAttachmentSizeKB, - uncAccessEnabled, - wssAccessEnabled, - devicePasswordEnabled, - alphanumericPasswordRequired, - passwordRecoveryEnabled, - deviceEncryptionEnabled, - allowSimplePassword, - maxPasswordFailedAttempts, - minPasswordLength, - inactivityLockMin, - passwordExpirationDays, - passwordHistory, - refreshInterval}); - } - - /// - public System.IAsyncResult BeginSetActiveSyncPolicy( - string id, - bool allowNonProvisionableDevices, - bool attachmentsEnabled, - int maxAttachmentSizeKB, - bool uncAccessEnabled, - bool wssAccessEnabled, - bool devicePasswordEnabled, - bool alphanumericPasswordRequired, - bool passwordRecoveryEnabled, - bool deviceEncryptionEnabled, - bool allowSimplePassword, - int maxPasswordFailedAttempts, - int minPasswordLength, - int inactivityLockMin, - int passwordExpirationDays, - int passwordHistory, - int refreshInterval, - System.AsyncCallback callback, - object asyncState) - { - return this.BeginInvoke("SetActiveSyncPolicy", new object[] { - id, - allowNonProvisionableDevices, - attachmentsEnabled, - maxAttachmentSizeKB, - uncAccessEnabled, - wssAccessEnabled, - devicePasswordEnabled, - alphanumericPasswordRequired, - passwordRecoveryEnabled, - deviceEncryptionEnabled, - allowSimplePassword, - maxPasswordFailedAttempts, - minPasswordLength, - inactivityLockMin, - passwordExpirationDays, - passwordHistory, - refreshInterval}, callback, asyncState); - } - - /// - public void EndSetActiveSyncPolicy(System.IAsyncResult asyncResult) - { - this.EndInvoke(asyncResult); - } - - /// - public void SetActiveSyncPolicyAsync( - string id, - bool allowNonProvisionableDevices, - bool attachmentsEnabled, - int maxAttachmentSizeKB, - bool uncAccessEnabled, - bool wssAccessEnabled, - bool devicePasswordEnabled, - bool alphanumericPasswordRequired, - bool passwordRecoveryEnabled, - bool deviceEncryptionEnabled, - bool allowSimplePassword, - int maxPasswordFailedAttempts, - int minPasswordLength, - int inactivityLockMin, - int passwordExpirationDays, - int passwordHistory, - int refreshInterval) - { - this.SetActiveSyncPolicyAsync(id, allowNonProvisionableDevices, attachmentsEnabled, maxAttachmentSizeKB, uncAccessEnabled, wssAccessEnabled, devicePasswordEnabled, alphanumericPasswordRequired, passwordRecoveryEnabled, deviceEncryptionEnabled, allowSimplePassword, maxPasswordFailedAttempts, minPasswordLength, inactivityLockMin, passwordExpirationDays, passwordHistory, refreshInterval, null); - } - - /// - public void SetActiveSyncPolicyAsync( - string id, - bool allowNonProvisionableDevices, - bool attachmentsEnabled, - int maxAttachmentSizeKB, - bool uncAccessEnabled, - bool wssAccessEnabled, - bool devicePasswordEnabled, - bool alphanumericPasswordRequired, - bool passwordRecoveryEnabled, - bool deviceEncryptionEnabled, - bool allowSimplePassword, - int maxPasswordFailedAttempts, - int minPasswordLength, - int inactivityLockMin, - int passwordExpirationDays, - int passwordHistory, - int refreshInterval, - object userState) - { - if ((this.SetActiveSyncPolicyOperationCompleted == null)) - { - this.SetActiveSyncPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetActiveSyncPolicyOperationCompleted); - } - this.InvokeAsync("SetActiveSyncPolicy", new object[] { - id, - allowNonProvisionableDevices, - attachmentsEnabled, - maxAttachmentSizeKB, - uncAccessEnabled, - wssAccessEnabled, - devicePasswordEnabled, - alphanumericPasswordRequired, - passwordRecoveryEnabled, - deviceEncryptionEnabled, - allowSimplePassword, - maxPasswordFailedAttempts, - minPasswordLength, - inactivityLockMin, - passwordExpirationDays, - passwordHistory, - refreshInterval}, this.SetActiveSyncPolicyOperationCompleted, userState); - } - - private void OnSetActiveSyncPolicyOperationCompleted(object arg) - { - if ((this.SetActiveSyncPolicyCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.SetActiveSyncPolicyCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMobileDevices", 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 ExchangeMobileDevice[] GetMobileDevices(string accountName) - { - object[] results = this.Invoke("GetMobileDevices", new object[] { - accountName}); - return ((ExchangeMobileDevice[])(results[0])); - } - - /// - public System.IAsyncResult BeginGetMobileDevices(string accountName, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("GetMobileDevices", new object[] { - accountName}, callback, asyncState); - } - - /// - public ExchangeMobileDevice[] EndGetMobileDevices(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((ExchangeMobileDevice[])(results[0])); - } - - /// - public void GetMobileDevicesAsync(string accountName) - { - this.GetMobileDevicesAsync(accountName, null); - } - - /// - public void GetMobileDevicesAsync(string accountName, object userState) - { - if ((this.GetMobileDevicesOperationCompleted == null)) - { - this.GetMobileDevicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMobileDevicesOperationCompleted); - } - this.InvokeAsync("GetMobileDevices", new object[] { - accountName}, this.GetMobileDevicesOperationCompleted, userState); - } - - private void OnGetMobileDevicesOperationCompleted(object arg) - { - if ((this.GetMobileDevicesCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetMobileDevicesCompleted(this, new GetMobileDevicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMobileDevice", 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 ExchangeMobileDevice GetMobileDevice(string id) - { - object[] results = this.Invoke("GetMobileDevice", new object[] { - id}); - return ((ExchangeMobileDevice)(results[0])); - } - - /// - public System.IAsyncResult BeginGetMobileDevice(string id, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("GetMobileDevice", new object[] { - id}, callback, asyncState); - } - - /// - public ExchangeMobileDevice EndGetMobileDevice(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((ExchangeMobileDevice)(results[0])); - } - - /// - public void GetMobileDeviceAsync(string id) - { - this.GetMobileDeviceAsync(id, null); - } - - /// - public void GetMobileDeviceAsync(string id, object userState) - { - if ((this.GetMobileDeviceOperationCompleted == null)) - { - this.GetMobileDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMobileDeviceOperationCompleted); - } - this.InvokeAsync("GetMobileDevice", new object[] { - id}, this.GetMobileDeviceOperationCompleted, userState); - } - - private void OnGetMobileDeviceOperationCompleted(object arg) - { - if ((this.GetMobileDeviceCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.GetMobileDeviceCompleted(this, new GetMobileDeviceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/WipeDataFromDevice", 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 WipeDataFromDevice(string id) - { - this.Invoke("WipeDataFromDevice", new object[] { - id}); - } - - /// - public System.IAsyncResult BeginWipeDataFromDevice(string id, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("WipeDataFromDevice", new object[] { - id}, callback, asyncState); - } - - /// - public void EndWipeDataFromDevice(System.IAsyncResult asyncResult) - { - this.EndInvoke(asyncResult); - } - - /// - public void WipeDataFromDeviceAsync(string id) - { - this.WipeDataFromDeviceAsync(id, null); - } - - /// - public void WipeDataFromDeviceAsync(string id, object userState) - { - if ((this.WipeDataFromDeviceOperationCompleted == null)) - { - this.WipeDataFromDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnWipeDataFromDeviceOperationCompleted); - } - this.InvokeAsync("WipeDataFromDevice", new object[] { - id}, this.WipeDataFromDeviceOperationCompleted, userState); - } - - private void OnWipeDataFromDeviceOperationCompleted(object arg) - { - if ((this.WipeDataFromDeviceCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.WipeDataFromDeviceCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CancelRemoteWipeRequest", 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 CancelRemoteWipeRequest(string id) - { - this.Invoke("CancelRemoteWipeRequest", new object[] { - id}); - } - - /// - public System.IAsyncResult BeginCancelRemoteWipeRequest(string id, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("CancelRemoteWipeRequest", new object[] { - id}, callback, asyncState); - } - - /// - public void EndCancelRemoteWipeRequest(System.IAsyncResult asyncResult) - { - this.EndInvoke(asyncResult); - } - - /// - public void CancelRemoteWipeRequestAsync(string id) - { - this.CancelRemoteWipeRequestAsync(id, null); - } - - /// - public void CancelRemoteWipeRequestAsync(string id, object userState) - { - if ((this.CancelRemoteWipeRequestOperationCompleted == null)) - { - this.CancelRemoteWipeRequestOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCancelRemoteWipeRequestOperationCompleted); - } - this.InvokeAsync("CancelRemoteWipeRequest", new object[] { - id}, this.CancelRemoteWipeRequestOperationCompleted, userState); - } - - private void OnCancelRemoteWipeRequestOperationCompleted(object arg) - { - if ((this.CancelRemoteWipeRequestCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.CancelRemoteWipeRequestCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDevice", 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 RemoveDevice(string id) - { - this.Invoke("RemoveDevice", new object[] { - id}); - } - - /// - public System.IAsyncResult BeginRemoveDevice(string id, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("RemoveDevice", new object[] { - id}, callback, asyncState); - } - - /// - public void EndRemoveDevice(System.IAsyncResult asyncResult) - { - this.EndInvoke(asyncResult); - } - - /// - public void RemoveDeviceAsync(string id) - { - this.RemoveDeviceAsync(id, null); - } - - /// - public void RemoveDeviceAsync(string id, object userState) - { - if ((this.RemoveDeviceOperationCompleted == null)) - { - this.RemoveDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveDeviceOperationCompleted); - } - this.InvokeAsync("RemoveDevice", new object[] { - id}, this.RemoveDeviceOperationCompleted, userState); - } - - private void OnRemoveDeviceOperationCompleted(object arg) - { - if ((this.RemoveDeviceCompleted != null)) - { - System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); - this.RemoveDeviceCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [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 ResultObject SetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) - { - object[] results = this.Invoke("SetMailBoxArchiving", new object[] { - organizationId, - accountName, - archive, - archiveQuotaKB, - archiveWarningQuotaKB, - RetentionPolicy}); - return ((ResultObject)(results[0])); - } - - /// - 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); - } - - /// - public ResultObject EndSetMailBoxArchiving(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void SetMailBoxArchivingAsync(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) - { - this.SetMailBoxArchivingAsync(organizationId, accountName, archive, archiveQuotaKB, archiveWarningQuotaKB, RetentionPolicy, null); - } - - /// - 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 SetMailBoxArchivingCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [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 ResultObject SetRetentionPolicyTag(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction) - { - object[] results = this.Invoke("SetRetentionPolicyTag", new object[] { - Identity, - Type, - AgeLimitForRetention, - RetentionAction}); - return ((ResultObject)(results[0])); - } - - /// - 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); - } - - /// - public ResultObject EndSetRetentionPolicyTag(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void SetRetentionPolicyTagAsync(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction) - { - this.SetRetentionPolicyTagAsync(Identity, Type, AgeLimitForRetention, RetentionAction, null); - } - - /// - 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 SetRetentionPolicyTagCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [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 ResultObject RemoveRetentionPolicyTag(string Identity) - { - object[] results = this.Invoke("RemoveRetentionPolicyTag", new object[] { - Identity}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginRemoveRetentionPolicyTag(string Identity, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("RemoveRetentionPolicyTag", new object[] { - Identity}, callback, asyncState); - } - - /// - public ResultObject EndRemoveRetentionPolicyTag(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void RemoveRetentionPolicyTagAsync(string Identity) - { - this.RemoveRetentionPolicyTagAsync(Identity, null); - } - - /// - 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 RemoveRetentionPolicyTagCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [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 ResultObject SetRetentionPolicy(string Identity, string[] RetentionPolicyTagLinks) - { - object[] results = this.Invoke("SetRetentionPolicy", new object[] { - Identity, - RetentionPolicyTagLinks}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginSetRetentionPolicy(string Identity, string[] RetentionPolicyTagLinks, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("SetRetentionPolicy", new object[] { - Identity, - RetentionPolicyTagLinks}, callback, asyncState); - } - - /// - public ResultObject EndSetRetentionPolicy(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void SetRetentionPolicyAsync(string Identity, string[] RetentionPolicyTagLinks) - { - this.SetRetentionPolicyAsync(Identity, RetentionPolicyTagLinks, null); - } - - /// - 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 SetRetentionPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [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 ResultObject RemoveRetentionPolicy(string Identity) - { - object[] results = this.Invoke("RemoveRetentionPolicy", new object[] { - Identity}); - return ((ResultObject)(results[0])); - } - - /// - public System.IAsyncResult BeginRemoveRetentionPolicy(string Identity, System.AsyncCallback callback, object asyncState) - { - return this.BeginInvoke("RemoveRetentionPolicy", new object[] { - Identity}, callback, asyncState); - } - - /// - public ResultObject EndRemoveRetentionPolicy(System.IAsyncResult asyncResult) - { - object[] results = this.EndInvoke(asyncResult); - return ((ResultObject)(results[0])); - } - - /// - public void RemoveRetentionPolicyAsync(string Identity) - { - this.RemoveRetentionPolicyAsync(Identity, null); - } - - /// - 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 RemoveRetentionPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); - } - } - - /// - [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)] - public bool CheckAccountCredentials(string username, string password) - { + [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)] + public bool CheckAccountCredentials(string username, string password) { object[] results = this.Invoke("CheckAccountCredentials", new object[] { username, password}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginCheckAccountCredentials(string username, string password, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCheckAccountCredentials(string username, string password, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CheckAccountCredentials", new object[] { username, password}, callback, asyncState); } - + /// - public bool EndCheckAccountCredentials(System.IAsyncResult asyncResult) - { + public bool EndCheckAccountCredentials(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void CheckAccountCredentialsAsync(string username, string password) - { + public void CheckAccountCredentialsAsync(string username, string password) { this.CheckAccountCredentialsAsync(username, password, null); } - + /// - public void CheckAccountCredentialsAsync(string username, string password, object userState) - { - if ((this.CheckAccountCredentialsOperationCompleted == null)) - { + public void CheckAccountCredentialsAsync(string username, string password, object userState) { + if ((this.CheckAccountCredentialsOperationCompleted == null)) { this.CheckAccountCredentialsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCheckAccountCredentialsOperationCompleted); } this.InvokeAsync("CheckAccountCredentials", new object[] { username, password}, this.CheckAccountCredentialsOperationCompleted, userState); } - - private void OnCheckAccountCredentialsOperationCompleted(object arg) - { - if ((this.CheckAccountCredentialsCompleted != null)) - { + + private void OnCheckAccountCredentialsOperationCompleted(object arg) { + if ((this.CheckAccountCredentialsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CheckAccountCredentialsCompleted(this, new CheckAccountCredentialsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ExtendToExchangeOrganization", 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 Organization ExtendToExchangeOrganization(string organizationId, string securityGroup, bool IsConsumer) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ExtendToExchangeOrganization", 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 Organization ExtendToExchangeOrganization(string organizationId, string securityGroup, bool IsConsumer) { object[] results = this.Invoke("ExtendToExchangeOrganization", new object[] { organizationId, securityGroup, IsConsumer}); return ((Organization)(results[0])); } - + /// - public System.IAsyncResult BeginExtendToExchangeOrganization(string organizationId, string securityGroup, bool IsConsumer, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginExtendToExchangeOrganization(string organizationId, string securityGroup, bool IsConsumer, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("ExtendToExchangeOrganization", new object[] { organizationId, securityGroup, IsConsumer}, callback, asyncState); } - + /// - public Organization EndExtendToExchangeOrganization(System.IAsyncResult asyncResult) - { + public Organization EndExtendToExchangeOrganization(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((Organization)(results[0])); } - + /// - public void ExtendToExchangeOrganizationAsync(string organizationId, string securityGroup, bool IsConsumer) - { + public void ExtendToExchangeOrganizationAsync(string organizationId, string securityGroup, bool IsConsumer) { this.ExtendToExchangeOrganizationAsync(organizationId, securityGroup, IsConsumer, null); } - + /// - public void ExtendToExchangeOrganizationAsync(string organizationId, string securityGroup, bool IsConsumer, object userState) - { - if ((this.ExtendToExchangeOrganizationOperationCompleted == null)) - { + public void ExtendToExchangeOrganizationAsync(string organizationId, string securityGroup, bool IsConsumer, object userState) { + if ((this.ExtendToExchangeOrganizationOperationCompleted == null)) { this.ExtendToExchangeOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnExtendToExchangeOrganizationOperationCompleted); } this.InvokeAsync("ExtendToExchangeOrganization", new object[] { @@ -1457,48 +518,45 @@ namespace WebsitePanel.Providers.Exchange securityGroup, IsConsumer}, this.ExtendToExchangeOrganizationOperationCompleted, userState); } - - private void OnExtendToExchangeOrganizationOperationCompleted(object arg) - { - if ((this.ExtendToExchangeOrganizationCompleted != null)) - { + + private void OnExtendToExchangeOrganizationOperationCompleted(object arg) { + if ((this.ExtendToExchangeOrganizationCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ExtendToExchangeOrganizationCompleted(this, new ExtendToExchangeOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateMailEnableUser", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateMailEnableUser", 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 string CreateMailEnableUser( - string upn, - string organizationId, - string organizationDistinguishedName, - string securityGroup, - string organizationDomain, - ExchangeAccountType accountType, - string mailboxDatabase, - string offlineAddressBook, - string addressBookPolicy, - 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 hideFromAddressBook, - bool isConsumer, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning) - { + string upn, + string organizationId, + string organizationDistinguishedName, + string securityGroup, + string organizationDomain, + ExchangeAccountType accountType, + string mailboxDatabase, + string offlineAddressBook, + string addressBookPolicy, + 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 hideFromAddressBook, + bool isConsumer, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning) { object[] results = this.Invoke("CreateMailEnableUser", new object[] { upn, organizationId, @@ -1529,39 +587,38 @@ namespace WebsitePanel.Providers.Exchange recoverabelItemsWarning}); return ((string)(results[0])); } - + /// public System.IAsyncResult BeginCreateMailEnableUser( - string upn, - string organizationId, - string organizationDistinguishedName, - string securityGroup, - string organizationDomain, - ExchangeAccountType accountType, - string mailboxDatabase, - string offlineAddressBook, - string addressBookPolicy, - 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 hideFromAddressBook, - bool isConsumer, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning, - System.AsyncCallback callback, - object asyncState) - { + string upn, + string organizationId, + string organizationDistinguishedName, + string securityGroup, + string organizationDomain, + ExchangeAccountType accountType, + string mailboxDatabase, + string offlineAddressBook, + string addressBookPolicy, + 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 hideFromAddressBook, + bool isConsumer, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning, + System.AsyncCallback callback, + object asyncState) { return this.BeginInvoke("CreateMailEnableUser", new object[] { upn, organizationId, @@ -1591,80 +648,76 @@ namespace WebsitePanel.Providers.Exchange recoverabelItemsSpace, recoverabelItemsWarning}, callback, asyncState); } - + /// - public string EndCreateMailEnableUser(System.IAsyncResult asyncResult) - { + public string EndCreateMailEnableUser(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } - + /// public void CreateMailEnableUserAsync( - string upn, - string organizationId, - string organizationDistinguishedName, - string securityGroup, - string organizationDomain, - ExchangeAccountType accountType, - string mailboxDatabase, - string offlineAddressBook, - string addressBookPolicy, - 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 hideFromAddressBook, - bool isConsumer, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning) - { + string upn, + string organizationId, + string organizationDistinguishedName, + string securityGroup, + string organizationDomain, + ExchangeAccountType accountType, + string mailboxDatabase, + string offlineAddressBook, + string addressBookPolicy, + 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 hideFromAddressBook, + bool isConsumer, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning) { this.CreateMailEnableUserAsync(upn, organizationId, organizationDistinguishedName, securityGroup, organizationDomain, accountType, mailboxDatabase, offlineAddressBook, addressBookPolicy, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync, issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB, hideFromAddressBook, isConsumer, enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning, null); } - + /// public void CreateMailEnableUserAsync( - string upn, - string organizationId, - string organizationDistinguishedName, - string securityGroup, - string organizationDomain, - ExchangeAccountType accountType, - string mailboxDatabase, - string offlineAddressBook, - string addressBookPolicy, - 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 hideFromAddressBook, - bool isConsumer, - bool enabledLitigationHold, - long recoverabelItemsSpace, - long recoverabelItemsWarning, - object userState) - { - if ((this.CreateMailEnableUserOperationCompleted == null)) - { + string upn, + string organizationId, + string organizationDistinguishedName, + string securityGroup, + string organizationDomain, + ExchangeAccountType accountType, + string mailboxDatabase, + string offlineAddressBook, + string addressBookPolicy, + 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 hideFromAddressBook, + bool isConsumer, + bool enabledLitigationHold, + long recoverabelItemsSpace, + long recoverabelItemsWarning, + object userState) { + if ((this.CreateMailEnableUserOperationCompleted == null)) { this.CreateMailEnableUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateMailEnableUserOperationCompleted); } this.InvokeAsync("CreateMailEnableUser", new object[] { @@ -1696,55 +749,47 @@ namespace WebsitePanel.Providers.Exchange recoverabelItemsSpace, recoverabelItemsWarning}, this.CreateMailEnableUserOperationCompleted, userState); } - - private void OnCreateMailEnableUserOperationCompleted(object arg) - { - if ((this.CreateMailEnableUserCompleted != null)) - { + + private void OnCreateMailEnableUserOperationCompleted(object arg) { + if ((this.CreateMailEnableUserCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateMailEnableUserCompleted(this, new CreateMailEnableUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationOfflineAddressBook", 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 Organization CreateOrganizationOfflineAddressBook(string organizationId, string securityGroup, string oabVirtualDir) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationOfflineAddressBook", 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 Organization CreateOrganizationOfflineAddressBook(string organizationId, string securityGroup, string oabVirtualDir) { object[] results = this.Invoke("CreateOrganizationOfflineAddressBook", new object[] { organizationId, securityGroup, oabVirtualDir}); return ((Organization)(results[0])); } - + /// - public System.IAsyncResult BeginCreateOrganizationOfflineAddressBook(string organizationId, string securityGroup, string oabVirtualDir, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateOrganizationOfflineAddressBook(string organizationId, string securityGroup, string oabVirtualDir, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateOrganizationOfflineAddressBook", new object[] { organizationId, securityGroup, oabVirtualDir}, callback, asyncState); } - + /// - public Organization EndCreateOrganizationOfflineAddressBook(System.IAsyncResult asyncResult) - { + public Organization EndCreateOrganizationOfflineAddressBook(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((Organization)(results[0])); } - + /// - public void CreateOrganizationOfflineAddressBookAsync(string organizationId, string securityGroup, string oabVirtualDir) - { + public void CreateOrganizationOfflineAddressBookAsync(string organizationId, string securityGroup, string oabVirtualDir) { this.CreateOrganizationOfflineAddressBookAsync(organizationId, securityGroup, oabVirtualDir, null); } - + /// - public void CreateOrganizationOfflineAddressBookAsync(string organizationId, string securityGroup, string oabVirtualDir, object userState) - { - if ((this.CreateOrganizationOfflineAddressBookOperationCompleted == null)) - { + public void CreateOrganizationOfflineAddressBookAsync(string organizationId, string securityGroup, string oabVirtualDir, object userState) { + if ((this.CreateOrganizationOfflineAddressBookOperationCompleted == null)) { this.CreateOrganizationOfflineAddressBookOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationOfflineAddressBookOperationCompleted); } this.InvokeAsync("CreateOrganizationOfflineAddressBook", new object[] { @@ -1752,116 +797,97 @@ namespace WebsitePanel.Providers.Exchange securityGroup, oabVirtualDir}, this.CreateOrganizationOfflineAddressBookOperationCompleted, userState); } - - private void OnCreateOrganizationOfflineAddressBookOperationCompleted(object arg) - { - if ((this.CreateOrganizationOfflineAddressBookCompleted != null)) - { + + private void OnCreateOrganizationOfflineAddressBookOperationCompleted(object arg) { + if ((this.CreateOrganizationOfflineAddressBookCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateOrganizationOfflineAddressBookCompleted(this, new CreateOrganizationOfflineAddressBookCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateOrganizationOfflineAddressBook", 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 UpdateOrganizationOfflineAddressBook(string id) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/UpdateOrganizationOfflineAddressBook", 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 UpdateOrganizationOfflineAddressBook(string id) { this.Invoke("UpdateOrganizationOfflineAddressBook", new object[] { id}); } - + /// - public System.IAsyncResult BeginUpdateOrganizationOfflineAddressBook(string id, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginUpdateOrganizationOfflineAddressBook(string id, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("UpdateOrganizationOfflineAddressBook", new object[] { id}, callback, asyncState); } - + /// - public void EndUpdateOrganizationOfflineAddressBook(System.IAsyncResult asyncResult) - { + public void EndUpdateOrganizationOfflineAddressBook(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void UpdateOrganizationOfflineAddressBookAsync(string id) - { + public void UpdateOrganizationOfflineAddressBookAsync(string id) { this.UpdateOrganizationOfflineAddressBookAsync(id, null); } - + /// - public void UpdateOrganizationOfflineAddressBookAsync(string id, object userState) - { - if ((this.UpdateOrganizationOfflineAddressBookOperationCompleted == null)) - { + public void UpdateOrganizationOfflineAddressBookAsync(string id, object userState) { + if ((this.UpdateOrganizationOfflineAddressBookOperationCompleted == null)) { this.UpdateOrganizationOfflineAddressBookOperationCompleted = new System.Threading.SendOrPostCallback(this.OnUpdateOrganizationOfflineAddressBookOperationCompleted); } this.InvokeAsync("UpdateOrganizationOfflineAddressBook", new object[] { id}, this.UpdateOrganizationOfflineAddressBookOperationCompleted, userState); } - - private void OnUpdateOrganizationOfflineAddressBookOperationCompleted(object arg) - { - if ((this.UpdateOrganizationOfflineAddressBookCompleted != null)) - { + + private void OnUpdateOrganizationOfflineAddressBookOperationCompleted(object arg) { + if ((this.UpdateOrganizationOfflineAddressBookCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.UpdateOrganizationOfflineAddressBookCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetOABVirtualDirectory", 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 string GetOABVirtualDirectory() - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetOABVirtualDirectory", 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 string GetOABVirtualDirectory() { object[] results = this.Invoke("GetOABVirtualDirectory", new object[0]); return ((string)(results[0])); } - + /// - public System.IAsyncResult BeginGetOABVirtualDirectory(System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetOABVirtualDirectory(System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetOABVirtualDirectory", new object[0], callback, asyncState); } - + /// - public string EndGetOABVirtualDirectory(System.IAsyncResult asyncResult) - { + public string EndGetOABVirtualDirectory(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } - + /// - public void GetOABVirtualDirectoryAsync() - { + public void GetOABVirtualDirectoryAsync() { this.GetOABVirtualDirectoryAsync(null); } - + /// - public void GetOABVirtualDirectoryAsync(object userState) - { - if ((this.GetOABVirtualDirectoryOperationCompleted == null)) - { + public void GetOABVirtualDirectoryAsync(object userState) { + if ((this.GetOABVirtualDirectoryOperationCompleted == null)) { this.GetOABVirtualDirectoryOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetOABVirtualDirectoryOperationCompleted); } this.InvokeAsync("GetOABVirtualDirectory", new object[0], this.GetOABVirtualDirectoryOperationCompleted, userState); } - - private void OnGetOABVirtualDirectoryOperationCompleted(object arg) - { - if ((this.GetOABVirtualDirectoryCompleted != null)) - { + + private void OnGetOABVirtualDirectoryOperationCompleted(object arg) { + if ((this.GetOABVirtualDirectoryCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetOABVirtualDirectoryCompleted(this, new GetOABVirtualDirectoryCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationAddressBookPolicy", 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 Organization CreateOrganizationAddressBookPolicy(string organizationId, string gal, string addressBook, string roomList, string oab) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationAddressBookPolicy", 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 Organization CreateOrganizationAddressBookPolicy(string organizationId, string gal, string addressBook, string roomList, string oab) { object[] results = this.Invoke("CreateOrganizationAddressBookPolicy", new object[] { organizationId, gal, @@ -1870,10 +896,9 @@ namespace WebsitePanel.Providers.Exchange oab}); return ((Organization)(results[0])); } - + /// - public System.IAsyncResult BeginCreateOrganizationAddressBookPolicy(string organizationId, string gal, string addressBook, string roomList, string oab, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateOrganizationAddressBookPolicy(string organizationId, string gal, string addressBook, string roomList, string oab, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateOrganizationAddressBookPolicy", new object[] { organizationId, gal, @@ -1881,25 +906,21 @@ namespace WebsitePanel.Providers.Exchange roomList, oab}, callback, asyncState); } - + /// - public Organization EndCreateOrganizationAddressBookPolicy(System.IAsyncResult asyncResult) - { + public Organization EndCreateOrganizationAddressBookPolicy(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((Organization)(results[0])); } - + /// - public void CreateOrganizationAddressBookPolicyAsync(string organizationId, string gal, string addressBook, string roomList, string oab) - { + public void CreateOrganizationAddressBookPolicyAsync(string organizationId, string gal, string addressBook, string roomList, string oab) { this.CreateOrganizationAddressBookPolicyAsync(organizationId, gal, addressBook, roomList, oab, null); } - + /// - public void CreateOrganizationAddressBookPolicyAsync(string organizationId, string gal, string addressBook, string roomList, string oab, object userState) - { - if ((this.CreateOrganizationAddressBookPolicyOperationCompleted == null)) - { + public void CreateOrganizationAddressBookPolicyAsync(string organizationId, string gal, string addressBook, string roomList, string oab, object userState) { + if ((this.CreateOrganizationAddressBookPolicyOperationCompleted == null)) { this.CreateOrganizationAddressBookPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationAddressBookPolicyOperationCompleted); } this.InvokeAsync("CreateOrganizationAddressBookPolicy", new object[] { @@ -1909,21 +930,18 @@ namespace WebsitePanel.Providers.Exchange roomList, oab}, this.CreateOrganizationAddressBookPolicyOperationCompleted, userState); } - - private void OnCreateOrganizationAddressBookPolicyOperationCompleted(object arg) - { - if ((this.CreateOrganizationAddressBookPolicyCompleted != null)) - { + + private void OnCreateOrganizationAddressBookPolicyOperationCompleted(object arg) { + if ((this.CreateOrganizationAddressBookPolicyCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateOrganizationAddressBookPolicyCompleted(this, new CreateOrganizationAddressBookPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteOrganization", 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 bool DeleteOrganization(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteOrganization", 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 bool DeleteOrganization(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains) { object[] results = this.Invoke("DeleteOrganization", new object[] { organizationId, distinguishedName, @@ -1936,10 +954,9 @@ namespace WebsitePanel.Providers.Exchange acceptedDomains}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginDeleteOrganization(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteOrganization(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteOrganization", new object[] { organizationId, distinguishedName, @@ -1951,25 +968,21 @@ namespace WebsitePanel.Providers.Exchange addressBookPolicy, acceptedDomains}, callback, asyncState); } - + /// - public bool EndDeleteOrganization(System.IAsyncResult asyncResult) - { + public bool EndDeleteOrganization(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void DeleteOrganizationAsync(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains) - { + public void DeleteOrganizationAsync(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains) { this.DeleteOrganizationAsync(organizationId, distinguishedName, globalAddressList, addressList, roomList, offlineAddressBook, securityGroup, addressBookPolicy, acceptedDomains, null); } - + /// - public void DeleteOrganizationAsync(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains, object userState) - { - if ((this.DeleteOrganizationOperationCompleted == null)) - { + public void DeleteOrganizationAsync(string organizationId, string distinguishedName, string globalAddressList, string addressList, string roomList, string offlineAddressBook, string securityGroup, string addressBookPolicy, ExchangeDomainName[] acceptedDomains, object userState) { + if ((this.DeleteOrganizationOperationCompleted == null)) { this.DeleteOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOrganizationOperationCompleted); } this.InvokeAsync("DeleteOrganization", new object[] { @@ -1983,21 +996,18 @@ namespace WebsitePanel.Providers.Exchange addressBookPolicy, acceptedDomains}, this.DeleteOrganizationOperationCompleted, userState); } - - private void OnDeleteOrganizationOperationCompleted(object arg) - { - if ((this.DeleteOrganizationCompleted != null)) - { + + private void OnDeleteOrganizationOperationCompleted(object arg) { + if ((this.DeleteOrganizationCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteOrganizationCompleted(this, new DeleteOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetOrganizationStorageLimits", 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 SetOrganizationStorageLimits(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetOrganizationStorageLimits", 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 SetOrganizationStorageLimits(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays) { this.Invoke("SetOrganizationStorageLimits", new object[] { organizationDistinguishedName, issueWarningKB, @@ -2005,10 +1015,9 @@ namespace WebsitePanel.Providers.Exchange prohibitSendReceiveKB, keepDeletedItemsDays}); } - + /// - public System.IAsyncResult BeginSetOrganizationStorageLimits(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetOrganizationStorageLimits(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetOrganizationStorageLimits", new object[] { organizationDistinguishedName, issueWarningKB, @@ -2016,24 +1025,20 @@ namespace WebsitePanel.Providers.Exchange prohibitSendReceiveKB, keepDeletedItemsDays}, callback, asyncState); } - + /// - public void EndSetOrganizationStorageLimits(System.IAsyncResult asyncResult) - { + public void EndSetOrganizationStorageLimits(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetOrganizationStorageLimitsAsync(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays) - { + public void SetOrganizationStorageLimitsAsync(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays) { this.SetOrganizationStorageLimitsAsync(organizationDistinguishedName, issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, null); } - + /// - public void SetOrganizationStorageLimitsAsync(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, object userState) - { - if ((this.SetOrganizationStorageLimitsOperationCompleted == null)) - { + public void SetOrganizationStorageLimitsAsync(string organizationDistinguishedName, long issueWarningKB, long prohibitSendKB, long prohibitSendReceiveKB, int keepDeletedItemsDays, object userState) { + if ((this.SetOrganizationStorageLimitsOperationCompleted == null)) { this.SetOrganizationStorageLimitsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetOrganizationStorageLimitsOperationCompleted); } this.InvokeAsync("SetOrganizationStorageLimits", new object[] { @@ -2043,443 +1048,371 @@ namespace WebsitePanel.Providers.Exchange prohibitSendReceiveKB, keepDeletedItemsDays}, this.SetOrganizationStorageLimitsOperationCompleted, userState); } - - private void OnSetOrganizationStorageLimitsOperationCompleted(object arg) - { - if ((this.SetOrganizationStorageLimitsCompleted != null)) - { + + private void OnSetOrganizationStorageLimitsOperationCompleted(object arg) { + if ((this.SetOrganizationStorageLimitsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetOrganizationStorageLimitsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxesStatistics", 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 ExchangeItemStatistics[] GetMailboxesStatistics(string organizationDistinguishedName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxesStatistics", 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 ExchangeItemStatistics[] GetMailboxesStatistics(string organizationDistinguishedName) { object[] results = this.Invoke("GetMailboxesStatistics", new object[] { organizationDistinguishedName}); return ((ExchangeItemStatistics[])(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxesStatistics(string organizationDistinguishedName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetMailboxesStatistics(string organizationDistinguishedName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetMailboxesStatistics", new object[] { organizationDistinguishedName}, callback, asyncState); } - + /// - public ExchangeItemStatistics[] EndGetMailboxesStatistics(System.IAsyncResult asyncResult) - { + public ExchangeItemStatistics[] EndGetMailboxesStatistics(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeItemStatistics[])(results[0])); } - + /// - public void GetMailboxesStatisticsAsync(string organizationDistinguishedName) - { + public void GetMailboxesStatisticsAsync(string organizationDistinguishedName) { this.GetMailboxesStatisticsAsync(organizationDistinguishedName, null); } - + /// - public void GetMailboxesStatisticsAsync(string organizationDistinguishedName, object userState) - { - if ((this.GetMailboxesStatisticsOperationCompleted == null)) - { + public void GetMailboxesStatisticsAsync(string organizationDistinguishedName, object userState) { + if ((this.GetMailboxesStatisticsOperationCompleted == null)) { this.GetMailboxesStatisticsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxesStatisticsOperationCompleted); } this.InvokeAsync("GetMailboxesStatistics", new object[] { organizationDistinguishedName}, this.GetMailboxesStatisticsOperationCompleted, userState); } - - private void OnGetMailboxesStatisticsOperationCompleted(object arg) - { - if ((this.GetMailboxesStatisticsCompleted != null)) - { + + private void OnGetMailboxesStatisticsOperationCompleted(object arg) { + if ((this.GetMailboxesStatisticsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxesStatisticsCompleted(this, new GetMailboxesStatisticsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddAuthoritativeDomain", 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 AddAuthoritativeDomain(string domain) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddAuthoritativeDomain", 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 AddAuthoritativeDomain(string domain) { this.Invoke("AddAuthoritativeDomain", new object[] { domain}); } - + /// - public System.IAsyncResult BeginAddAuthoritativeDomain(string domain, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginAddAuthoritativeDomain(string domain, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddAuthoritativeDomain", new object[] { domain}, callback, asyncState); } - + /// - public void EndAddAuthoritativeDomain(System.IAsyncResult asyncResult) - { + public void EndAddAuthoritativeDomain(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void AddAuthoritativeDomainAsync(string domain) - { + public void AddAuthoritativeDomainAsync(string domain) { this.AddAuthoritativeDomainAsync(domain, null); } - + /// - public void AddAuthoritativeDomainAsync(string domain, object userState) - { - if ((this.AddAuthoritativeDomainOperationCompleted == null)) - { + public void AddAuthoritativeDomainAsync(string domain, object userState) { + if ((this.AddAuthoritativeDomainOperationCompleted == null)) { this.AddAuthoritativeDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddAuthoritativeDomainOperationCompleted); } this.InvokeAsync("AddAuthoritativeDomain", new object[] { domain}, this.AddAuthoritativeDomainOperationCompleted, userState); } - - private void OnAddAuthoritativeDomainOperationCompleted(object arg) - { - if ((this.AddAuthoritativeDomainCompleted != null)) - { + + private void OnAddAuthoritativeDomainOperationCompleted(object arg) { + if ((this.AddAuthoritativeDomainCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddAuthoritativeDomainCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ChangeAcceptedDomainType", 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 ChangeAcceptedDomainType(string domain, ExchangeAcceptedDomainType domainType) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ChangeAcceptedDomainType", 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 ChangeAcceptedDomainType(string domain, ExchangeAcceptedDomainType domainType) { this.Invoke("ChangeAcceptedDomainType", new object[] { domain, domainType}); } - + /// - public System.IAsyncResult BeginChangeAcceptedDomainType(string domain, ExchangeAcceptedDomainType domainType, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginChangeAcceptedDomainType(string domain, ExchangeAcceptedDomainType domainType, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("ChangeAcceptedDomainType", new object[] { domain, domainType}, callback, asyncState); } - + /// - public void EndChangeAcceptedDomainType(System.IAsyncResult asyncResult) - { + public void EndChangeAcceptedDomainType(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void ChangeAcceptedDomainTypeAsync(string domain, ExchangeAcceptedDomainType domainType) - { + public void ChangeAcceptedDomainTypeAsync(string domain, ExchangeAcceptedDomainType domainType) { this.ChangeAcceptedDomainTypeAsync(domain, domainType, null); } - + /// - public void ChangeAcceptedDomainTypeAsync(string domain, ExchangeAcceptedDomainType domainType, object userState) - { - if ((this.ChangeAcceptedDomainTypeOperationCompleted == null)) - { + public void ChangeAcceptedDomainTypeAsync(string domain, ExchangeAcceptedDomainType domainType, object userState) { + if ((this.ChangeAcceptedDomainTypeOperationCompleted == null)) { this.ChangeAcceptedDomainTypeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeAcceptedDomainTypeOperationCompleted); } this.InvokeAsync("ChangeAcceptedDomainType", new object[] { domain, domainType}, this.ChangeAcceptedDomainTypeOperationCompleted, userState); } - - private void OnChangeAcceptedDomainTypeOperationCompleted(object arg) - { - if ((this.ChangeAcceptedDomainTypeCompleted != null)) - { + + private void OnChangeAcceptedDomainTypeOperationCompleted(object arg) { + if ((this.ChangeAcceptedDomainTypeCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ChangeAcceptedDomainTypeCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetAuthoritativeDomains", 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 string[] GetAuthoritativeDomains() - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetAuthoritativeDomains", 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 string[] GetAuthoritativeDomains() { object[] results = this.Invoke("GetAuthoritativeDomains", new object[0]); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginGetAuthoritativeDomains(System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetAuthoritativeDomains(System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetAuthoritativeDomains", new object[0], callback, asyncState); } - + /// - public string[] EndGetAuthoritativeDomains(System.IAsyncResult asyncResult) - { + public string[] EndGetAuthoritativeDomains(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void GetAuthoritativeDomainsAsync() - { + public void GetAuthoritativeDomainsAsync() { this.GetAuthoritativeDomainsAsync(null); } - + /// - public void GetAuthoritativeDomainsAsync(object userState) - { - if ((this.GetAuthoritativeDomainsOperationCompleted == null)) - { + public void GetAuthoritativeDomainsAsync(object userState) { + if ((this.GetAuthoritativeDomainsOperationCompleted == null)) { this.GetAuthoritativeDomainsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetAuthoritativeDomainsOperationCompleted); } this.InvokeAsync("GetAuthoritativeDomains", new object[0], this.GetAuthoritativeDomainsOperationCompleted, userState); } - - private void OnGetAuthoritativeDomainsOperationCompleted(object arg) - { - if ((this.GetAuthoritativeDomainsCompleted != null)) - { + + private void OnGetAuthoritativeDomainsOperationCompleted(object arg) { + if ((this.GetAuthoritativeDomainsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetAuthoritativeDomainsCompleted(this, new GetAuthoritativeDomainsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteAuthoritativeDomain", 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 DeleteAuthoritativeDomain(string domain) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteAuthoritativeDomain", 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 DeleteAuthoritativeDomain(string domain) { this.Invoke("DeleteAuthoritativeDomain", new object[] { domain}); } - + /// - public System.IAsyncResult BeginDeleteAuthoritativeDomain(string domain, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteAuthoritativeDomain(string domain, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteAuthoritativeDomain", new object[] { domain}, callback, asyncState); } - + /// - public void EndDeleteAuthoritativeDomain(System.IAsyncResult asyncResult) - { + public void EndDeleteAuthoritativeDomain(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteAuthoritativeDomainAsync(string domain) - { + public void DeleteAuthoritativeDomainAsync(string domain) { this.DeleteAuthoritativeDomainAsync(domain, null); } - + /// - public void DeleteAuthoritativeDomainAsync(string domain, object userState) - { - if ((this.DeleteAuthoritativeDomainOperationCompleted == null)) - { + public void DeleteAuthoritativeDomainAsync(string domain, object userState) { + if ((this.DeleteAuthoritativeDomainOperationCompleted == null)) { this.DeleteAuthoritativeDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteAuthoritativeDomainOperationCompleted); } this.InvokeAsync("DeleteAuthoritativeDomain", new object[] { domain}, this.DeleteAuthoritativeDomainOperationCompleted, userState); } - - private void OnDeleteAuthoritativeDomainOperationCompleted(object arg) - { - if ((this.DeleteAuthoritativeDomainCompleted != null)) - { + + private void OnDeleteAuthoritativeDomainOperationCompleted(object arg) { + if ((this.DeleteAuthoritativeDomainCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteAuthoritativeDomainCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteMailbox", 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 DeleteMailbox(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteMailbox", 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 DeleteMailbox(string accountName) { this.Invoke("DeleteMailbox", new object[] { accountName}); } - + /// - public System.IAsyncResult BeginDeleteMailbox(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteMailbox(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteMailbox", new object[] { accountName}, callback, asyncState); } - + /// - public void EndDeleteMailbox(System.IAsyncResult asyncResult) - { + public void EndDeleteMailbox(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteMailboxAsync(string accountName) - { + public void DeleteMailboxAsync(string accountName) { this.DeleteMailboxAsync(accountName, null); } - + /// - public void DeleteMailboxAsync(string accountName, object userState) - { - if ((this.DeleteMailboxOperationCompleted == null)) - { + public void DeleteMailboxAsync(string accountName, object userState) { + if ((this.DeleteMailboxOperationCompleted == null)) { this.DeleteMailboxOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteMailboxOperationCompleted); } this.InvokeAsync("DeleteMailbox", new object[] { accountName}, this.DeleteMailboxOperationCompleted, userState); } - - private void OnDeleteMailboxOperationCompleted(object arg) - { - if ((this.DeleteMailboxCompleted != null)) - { + + private void OnDeleteMailboxOperationCompleted(object arg) { + if ((this.DeleteMailboxCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteMailboxCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DisableMailbox", 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 DisableMailbox(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DisableMailbox", 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 DisableMailbox(string accountName) { this.Invoke("DisableMailbox", new object[] { accountName}); } - + /// - public System.IAsyncResult BeginDisableMailbox(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDisableMailbox(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DisableMailbox", new object[] { accountName}, callback, asyncState); } - + /// - public void EndDisableMailbox(System.IAsyncResult asyncResult) - { + public void EndDisableMailbox(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DisableMailboxAsync(string accountName) - { + public void DisableMailboxAsync(string accountName) { this.DisableMailboxAsync(accountName, null); } - + /// - public void DisableMailboxAsync(string accountName, object userState) - { - if ((this.DisableMailboxOperationCompleted == null)) - { + public void DisableMailboxAsync(string accountName, object userState) { + if ((this.DisableMailboxOperationCompleted == null)) { this.DisableMailboxOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDisableMailboxOperationCompleted); } this.InvokeAsync("DisableMailbox", new object[] { accountName}, this.DisableMailboxOperationCompleted, userState); } - - private void OnDisableMailboxOperationCompleted(object arg) - { - if ((this.DisableMailboxCompleted != null)) - { + + private void OnDisableMailboxOperationCompleted(object arg) { + if ((this.DisableMailboxCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DisableMailboxCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxGeneralSettings", 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 ExchangeMailbox GetMailboxGeneralSettings(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxGeneralSettings", 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 ExchangeMailbox GetMailboxGeneralSettings(string accountName) { object[] results = this.Invoke("GetMailboxGeneralSettings", new object[] { accountName}); return ((ExchangeMailbox)(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetMailboxGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetMailboxGeneralSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeMailbox EndGetMailboxGeneralSettings(System.IAsyncResult asyncResult) - { + public ExchangeMailbox EndGetMailboxGeneralSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMailbox)(results[0])); } - + /// - public void GetMailboxGeneralSettingsAsync(string accountName) - { + public void GetMailboxGeneralSettingsAsync(string accountName) { this.GetMailboxGeneralSettingsAsync(accountName, null); } - + /// - public void GetMailboxGeneralSettingsAsync(string accountName, object userState) - { - if ((this.GetMailboxGeneralSettingsOperationCompleted == null)) - { + public void GetMailboxGeneralSettingsAsync(string accountName, object userState) { + if ((this.GetMailboxGeneralSettingsOperationCompleted == null)) { this.GetMailboxGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxGeneralSettingsOperationCompleted); } this.InvokeAsync("GetMailboxGeneralSettings", new object[] { accountName}, this.GetMailboxGeneralSettingsOperationCompleted, userState); } - - private void OnGetMailboxGeneralSettingsOperationCompleted(object arg) - { - if ((this.GetMailboxGeneralSettingsCompleted != null)) - { + + private void OnGetMailboxGeneralSettingsOperationCompleted(object arg) { + if ((this.GetMailboxGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxGeneralSettingsCompleted(this, new GetMailboxGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxGeneralSettings", 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 SetMailboxGeneralSettings(string accountName, bool hideFromAddressBook, bool disabled) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxGeneralSettings", 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 SetMailboxGeneralSettings(string accountName, bool hideFromAddressBook, bool disabled) { this.Invoke("SetMailboxGeneralSettings", new object[] { accountName, hideFromAddressBook, disabled}); } - + /// - public System.IAsyncResult BeginSetMailboxGeneralSettings(string accountName, bool hideFromAddressBook, bool disabled, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetMailboxGeneralSettings(string accountName, bool hideFromAddressBook, bool disabled, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetMailboxGeneralSettings", new object[] { accountName, hideFromAddressBook, disabled}, callback, asyncState); } - + /// - public void EndSetMailboxGeneralSettings(System.IAsyncResult asyncResult) - { + public void EndSetMailboxGeneralSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetMailboxGeneralSettingsAsync(string accountName, bool hideFromAddressBook, bool disabled) - { + public void SetMailboxGeneralSettingsAsync(string accountName, bool hideFromAddressBook, bool disabled) { this.SetMailboxGeneralSettingsAsync(accountName, hideFromAddressBook, disabled, null); } - + /// - public void SetMailboxGeneralSettingsAsync(string accountName, bool hideFromAddressBook, bool disabled, object userState) - { - if ((this.SetMailboxGeneralSettingsOperationCompleted == null)) - { + public void SetMailboxGeneralSettingsAsync(string accountName, bool hideFromAddressBook, bool disabled, object userState) { + if ((this.SetMailboxGeneralSettingsOperationCompleted == null)) { this.SetMailboxGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxGeneralSettingsOperationCompleted); } this.InvokeAsync("SetMailboxGeneralSettings", new object[] { @@ -2487,71 +1420,60 @@ namespace WebsitePanel.Providers.Exchange hideFromAddressBook, disabled}, this.SetMailboxGeneralSettingsOperationCompleted, userState); } - - private void OnSetMailboxGeneralSettingsOperationCompleted(object arg) - { - if ((this.SetMailboxGeneralSettingsCompleted != null)) - { + + private void OnSetMailboxGeneralSettingsOperationCompleted(object arg) { + if ((this.SetMailboxGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxGeneralSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxMailFlowSettings", 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 ExchangeMailbox GetMailboxMailFlowSettings(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxMailFlowSettings", 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 ExchangeMailbox GetMailboxMailFlowSettings(string accountName) { object[] results = this.Invoke("GetMailboxMailFlowSettings", new object[] { accountName}); return ((ExchangeMailbox)(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetMailboxMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetMailboxMailFlowSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeMailbox EndGetMailboxMailFlowSettings(System.IAsyncResult asyncResult) - { + public ExchangeMailbox EndGetMailboxMailFlowSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMailbox)(results[0])); } - + /// - public void GetMailboxMailFlowSettingsAsync(string accountName) - { + public void GetMailboxMailFlowSettingsAsync(string accountName) { this.GetMailboxMailFlowSettingsAsync(accountName, null); } - + /// - public void GetMailboxMailFlowSettingsAsync(string accountName, object userState) - { - if ((this.GetMailboxMailFlowSettingsOperationCompleted == null)) - { + public void GetMailboxMailFlowSettingsAsync(string accountName, object userState) { + if ((this.GetMailboxMailFlowSettingsOperationCompleted == null)) { this.GetMailboxMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxMailFlowSettingsOperationCompleted); } this.InvokeAsync("GetMailboxMailFlowSettings", new object[] { accountName}, this.GetMailboxMailFlowSettingsOperationCompleted, userState); } - - private void OnGetMailboxMailFlowSettingsOperationCompleted(object arg) - { - if ((this.GetMailboxMailFlowSettingsCompleted != null)) - { + + private void OnGetMailboxMailFlowSettingsOperationCompleted(object arg) { + if ((this.GetMailboxMailFlowSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxMailFlowSettingsCompleted(this, new GetMailboxMailFlowSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxMailFlowSettings", 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 SetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxMailFlowSettings", 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 SetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { this.Invoke("SetMailboxMailFlowSettings", new object[] { accountName, enableForwarding, @@ -2562,10 +1484,9 @@ namespace WebsitePanel.Providers.Exchange rejectAccounts, requireSenderAuthentication}); } - + /// - public System.IAsyncResult BeginSetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetMailboxMailFlowSettings", new object[] { accountName, enableForwarding, @@ -2576,24 +1497,20 @@ namespace WebsitePanel.Providers.Exchange rejectAccounts, requireSenderAuthentication}, callback, asyncState); } - + /// - public void EndSetMailboxMailFlowSettings(System.IAsyncResult asyncResult) - { + public void EndSetMailboxMailFlowSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetMailboxMailFlowSettingsAsync(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) - { + public void SetMailboxMailFlowSettingsAsync(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { this.SetMailboxMailFlowSettingsAsync(accountName, enableForwarding, forwardingAccountName, forwardToBoth, sendOnBehalfAccounts, acceptAccounts, rejectAccounts, requireSenderAuthentication, null); } - + /// - public void SetMailboxMailFlowSettingsAsync(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) - { - if ((this.SetMailboxMailFlowSettingsOperationCompleted == null)) - { + public void SetMailboxMailFlowSettingsAsync(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) { + if ((this.SetMailboxMailFlowSettingsOperationCompleted == null)) { this.SetMailboxMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxMailFlowSettingsOperationCompleted); } this.InvokeAsync("SetMailboxMailFlowSettings", new object[] { @@ -2606,90 +1523,79 @@ namespace WebsitePanel.Providers.Exchange rejectAccounts, requireSenderAuthentication}, this.SetMailboxMailFlowSettingsOperationCompleted, userState); } - - private void OnSetMailboxMailFlowSettingsOperationCompleted(object arg) - { - if ((this.SetMailboxMailFlowSettingsCompleted != null)) - { + + private void OnSetMailboxMailFlowSettingsOperationCompleted(object arg) { + if ((this.SetMailboxMailFlowSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxMailFlowSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxAdvancedSettings", 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 ExchangeMailbox GetMailboxAdvancedSettings(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxAdvancedSettings", 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 ExchangeMailbox GetMailboxAdvancedSettings(string accountName) { object[] results = this.Invoke("GetMailboxAdvancedSettings", new object[] { accountName}); return ((ExchangeMailbox)(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxAdvancedSettings(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetMailboxAdvancedSettings(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetMailboxAdvancedSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeMailbox EndGetMailboxAdvancedSettings(System.IAsyncResult asyncResult) - { + public ExchangeMailbox EndGetMailboxAdvancedSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMailbox)(results[0])); } - + /// - public void GetMailboxAdvancedSettingsAsync(string accountName) - { + public void GetMailboxAdvancedSettingsAsync(string accountName) { this.GetMailboxAdvancedSettingsAsync(accountName, null); } - + /// - public void GetMailboxAdvancedSettingsAsync(string accountName, object userState) - { - if ((this.GetMailboxAdvancedSettingsOperationCompleted == null)) - { + public void GetMailboxAdvancedSettingsAsync(string accountName, object userState) { + if ((this.GetMailboxAdvancedSettingsOperationCompleted == null)) { this.GetMailboxAdvancedSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxAdvancedSettingsOperationCompleted); } this.InvokeAsync("GetMailboxAdvancedSettings", new object[] { accountName}, this.GetMailboxAdvancedSettingsOperationCompleted, userState); } - - private void OnGetMailboxAdvancedSettingsOperationCompleted(object arg) - { - if ((this.GetMailboxAdvancedSettingsCompleted != null)) - { + + private void OnGetMailboxAdvancedSettingsOperationCompleted(object arg) { + if ((this.GetMailboxAdvancedSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxAdvancedSettingsCompleted(this, new GetMailboxAdvancedSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxAdvancedSettings", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxAdvancedSettings", 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 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) - { + 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) { this.Invoke("SetMailboxAdvancedSettings", new object[] { organizationId, accountName, @@ -2711,31 +1617,30 @@ namespace WebsitePanel.Providers.Exchange litigationHoldUrl, litigationHoldMsg}); } - + /// public System.IAsyncResult BeginSetMailboxAdvancedSettings( - 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, - System.AsyncCallback callback, - object asyncState) - { + 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, + System.AsyncCallback callback, + object asyncState) { return this.BeginInvoke("SetMailboxAdvancedSettings", new object[] { organizationId, accountName, @@ -2757,63 +1662,59 @@ namespace WebsitePanel.Providers.Exchange litigationHoldUrl, litigationHoldMsg}, callback, asyncState); } - + /// - public void EndSetMailboxAdvancedSettings(System.IAsyncResult asyncResult) - { + public void EndSetMailboxAdvancedSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// public void SetMailboxAdvancedSettingsAsync( - 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) - { + 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) { this.SetMailboxAdvancedSettingsAsync(organizationId, accountName, enablePOP, enableIMAP, enableOWA, enableMAPI, enableActiveSync, issueWarningKB, prohibitSendKB, prohibitSendReceiveKB, keepDeletedItemsDays, maxRecipients, maxSendMessageSizeKB, maxReceiveMessageSizeKB, enabledLitigationHold, recoverabelItemsSpace, recoverabelItemsWarning, litigationHoldUrl, litigationHoldMsg, null); } - + /// public void SetMailboxAdvancedSettingsAsync( - 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, - object userState) - { - if ((this.SetMailboxAdvancedSettingsOperationCompleted == null)) - { + 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, + object userState) { + if ((this.SetMailboxAdvancedSettingsOperationCompleted == null)) { this.SetMailboxAdvancedSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxAdvancedSettingsOperationCompleted); } this.InvokeAsync("SetMailboxAdvancedSettings", new object[] { @@ -2837,207 +1738,175 @@ namespace WebsitePanel.Providers.Exchange litigationHoldUrl, litigationHoldMsg}, this.SetMailboxAdvancedSettingsOperationCompleted, userState); } - - private void OnSetMailboxAdvancedSettingsOperationCompleted(object arg) - { - if ((this.SetMailboxAdvancedSettingsCompleted != null)) - { + + private void OnSetMailboxAdvancedSettingsOperationCompleted(object arg) { + if ((this.SetMailboxAdvancedSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxAdvancedSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxEmailAddresses", 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 ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxEmailAddresses", 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 ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName) { object[] results = this.Invoke("GetMailboxEmailAddresses", new object[] { accountName}); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxEmailAddresses(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetMailboxEmailAddresses(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetMailboxEmailAddresses", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeEmailAddress[] EndGetMailboxEmailAddresses(System.IAsyncResult asyncResult) - { + public ExchangeEmailAddress[] EndGetMailboxEmailAddresses(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public void GetMailboxEmailAddressesAsync(string accountName) - { + public void GetMailboxEmailAddressesAsync(string accountName) { this.GetMailboxEmailAddressesAsync(accountName, null); } - + /// - public void GetMailboxEmailAddressesAsync(string accountName, object userState) - { - if ((this.GetMailboxEmailAddressesOperationCompleted == null)) - { + public void GetMailboxEmailAddressesAsync(string accountName, object userState) { + if ((this.GetMailboxEmailAddressesOperationCompleted == null)) { this.GetMailboxEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxEmailAddressesOperationCompleted); } this.InvokeAsync("GetMailboxEmailAddresses", new object[] { accountName}, this.GetMailboxEmailAddressesOperationCompleted, userState); } - - private void OnGetMailboxEmailAddressesOperationCompleted(object arg) - { - if ((this.GetMailboxEmailAddressesCompleted != null)) - { + + private void OnGetMailboxEmailAddressesOperationCompleted(object arg) { + if ((this.GetMailboxEmailAddressesCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxEmailAddressesCompleted(this, new GetMailboxEmailAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxEmailAddresses", 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 SetMailboxEmailAddresses(string accountName, string[] emailAddresses) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxEmailAddresses", 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 SetMailboxEmailAddresses(string accountName, string[] emailAddresses) { this.Invoke("SetMailboxEmailAddresses", new object[] { accountName, emailAddresses}); } - + /// - public System.IAsyncResult BeginSetMailboxEmailAddresses(string accountName, string[] emailAddresses, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetMailboxEmailAddresses(string accountName, string[] emailAddresses, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetMailboxEmailAddresses", new object[] { accountName, emailAddresses}, callback, asyncState); } - + /// - public void EndSetMailboxEmailAddresses(System.IAsyncResult asyncResult) - { + public void EndSetMailboxEmailAddresses(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetMailboxEmailAddressesAsync(string accountName, string[] emailAddresses) - { + public void SetMailboxEmailAddressesAsync(string accountName, string[] emailAddresses) { this.SetMailboxEmailAddressesAsync(accountName, emailAddresses, null); } - + /// - public void SetMailboxEmailAddressesAsync(string accountName, string[] emailAddresses, object userState) - { - if ((this.SetMailboxEmailAddressesOperationCompleted == null)) - { + public void SetMailboxEmailAddressesAsync(string accountName, string[] emailAddresses, object userState) { + if ((this.SetMailboxEmailAddressesOperationCompleted == null)) { this.SetMailboxEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxEmailAddressesOperationCompleted); } this.InvokeAsync("SetMailboxEmailAddresses", new object[] { accountName, emailAddresses}, this.SetMailboxEmailAddressesOperationCompleted, userState); } - - private void OnSetMailboxEmailAddressesOperationCompleted(object arg) - { - if ((this.SetMailboxEmailAddressesCompleted != null)) - { + + private void OnSetMailboxEmailAddressesOperationCompleted(object arg) { + if ((this.SetMailboxEmailAddressesCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxEmailAddressesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxPrimaryEmailAddress", 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 SetMailboxPrimaryEmailAddress(string accountName, string emailAddress) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxPrimaryEmailAddress", 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 SetMailboxPrimaryEmailAddress(string accountName, string emailAddress) { this.Invoke("SetMailboxPrimaryEmailAddress", new object[] { accountName, emailAddress}); } - + /// - public System.IAsyncResult BeginSetMailboxPrimaryEmailAddress(string accountName, string emailAddress, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetMailboxPrimaryEmailAddress(string accountName, string emailAddress, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetMailboxPrimaryEmailAddress", new object[] { accountName, emailAddress}, callback, asyncState); } - + /// - public void EndSetMailboxPrimaryEmailAddress(System.IAsyncResult asyncResult) - { + public void EndSetMailboxPrimaryEmailAddress(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetMailboxPrimaryEmailAddressAsync(string accountName, string emailAddress) - { + public void SetMailboxPrimaryEmailAddressAsync(string accountName, string emailAddress) { this.SetMailboxPrimaryEmailAddressAsync(accountName, emailAddress, null); } - + /// - public void SetMailboxPrimaryEmailAddressAsync(string accountName, string emailAddress, object userState) - { - if ((this.SetMailboxPrimaryEmailAddressOperationCompleted == null)) - { + public void SetMailboxPrimaryEmailAddressAsync(string accountName, string emailAddress, object userState) { + if ((this.SetMailboxPrimaryEmailAddressOperationCompleted == null)) { this.SetMailboxPrimaryEmailAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxPrimaryEmailAddressOperationCompleted); } this.InvokeAsync("SetMailboxPrimaryEmailAddress", new object[] { accountName, emailAddress}, this.SetMailboxPrimaryEmailAddressOperationCompleted, userState); } - - private void OnSetMailboxPrimaryEmailAddressOperationCompleted(object arg) - { - if ((this.SetMailboxPrimaryEmailAddressCompleted != null)) - { + + private void OnSetMailboxPrimaryEmailAddressOperationCompleted(object arg) { + if ((this.SetMailboxPrimaryEmailAddressCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxPrimaryEmailAddressCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxPermissions", 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 SetMailboxPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetMailboxPermissions", 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 SetMailboxPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts) { this.Invoke("SetMailboxPermissions", new object[] { organizationId, accountName, sendAsAccounts, fullAccessAccounts}); } - + /// - public System.IAsyncResult BeginSetMailboxPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetMailboxPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetMailboxPermissions", new object[] { organizationId, accountName, sendAsAccounts, fullAccessAccounts}, callback, asyncState); } - + /// - public void EndSetMailboxPermissions(System.IAsyncResult asyncResult) - { + public void EndSetMailboxPermissions(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetMailboxPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts) - { + public void SetMailboxPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts) { this.SetMailboxPermissionsAsync(organizationId, accountName, sendAsAccounts, fullAccessAccounts, null); } - + /// - public void SetMailboxPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts, object userState) - { - if ((this.SetMailboxPermissionsOperationCompleted == null)) - { + public void SetMailboxPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts, object userState) { + if ((this.SetMailboxPermissionsOperationCompleted == null)) { this.SetMailboxPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetMailboxPermissionsOperationCompleted); } this.InvokeAsync("SetMailboxPermissions", new object[] { @@ -3046,158 +1915,134 @@ namespace WebsitePanel.Providers.Exchange sendAsAccounts, fullAccessAccounts}, this.SetMailboxPermissionsOperationCompleted, userState); } - - private void OnSetMailboxPermissionsOperationCompleted(object arg) - { - if ((this.SetMailboxPermissionsCompleted != null)) - { + + private void OnSetMailboxPermissionsOperationCompleted(object arg) { + if ((this.SetMailboxPermissionsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetMailboxPermissionsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxPermissions", 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 ExchangeMailbox GetMailboxPermissions(string organizationId, string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxPermissions", 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 ExchangeMailbox GetMailboxPermissions(string organizationId, string accountName) { object[] results = this.Invoke("GetMailboxPermissions", new object[] { organizationId, accountName}); return ((ExchangeMailbox)(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxPermissions(string organizationId, string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetMailboxPermissions(string organizationId, string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetMailboxPermissions", new object[] { organizationId, accountName}, callback, asyncState); } - + /// - public ExchangeMailbox EndGetMailboxPermissions(System.IAsyncResult asyncResult) - { + public ExchangeMailbox EndGetMailboxPermissions(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMailbox)(results[0])); } - + /// - public void GetMailboxPermissionsAsync(string organizationId, string accountName) - { + public void GetMailboxPermissionsAsync(string organizationId, string accountName) { this.GetMailboxPermissionsAsync(organizationId, accountName, null); } - + /// - public void GetMailboxPermissionsAsync(string organizationId, string accountName, object userState) - { - if ((this.GetMailboxPermissionsOperationCompleted == null)) - { + public void GetMailboxPermissionsAsync(string organizationId, string accountName, object userState) { + if ((this.GetMailboxPermissionsOperationCompleted == null)) { this.GetMailboxPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxPermissionsOperationCompleted); } this.InvokeAsync("GetMailboxPermissions", new object[] { organizationId, accountName}, this.GetMailboxPermissionsOperationCompleted, userState); } - - private void OnGetMailboxPermissionsOperationCompleted(object arg) - { - if ((this.GetMailboxPermissionsCompleted != null)) - { + + private void OnGetMailboxPermissionsOperationCompleted(object arg) { + if ((this.GetMailboxPermissionsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxPermissionsCompleted(this, new GetMailboxPermissionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxStatistics", 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 ExchangeMailboxStatistics GetMailboxStatistics(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMailboxStatistics", 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 ExchangeMailboxStatistics GetMailboxStatistics(string accountName) { object[] results = this.Invoke("GetMailboxStatistics", new object[] { accountName}); return ((ExchangeMailboxStatistics)(results[0])); } - + /// - public System.IAsyncResult BeginGetMailboxStatistics(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetMailboxStatistics(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetMailboxStatistics", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeMailboxStatistics EndGetMailboxStatistics(System.IAsyncResult asyncResult) - { + public ExchangeMailboxStatistics EndGetMailboxStatistics(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeMailboxStatistics)(results[0])); } - + /// - public void GetMailboxStatisticsAsync(string accountName) - { + public void GetMailboxStatisticsAsync(string accountName) { this.GetMailboxStatisticsAsync(accountName, null); } - + /// - public void GetMailboxStatisticsAsync(string accountName, object userState) - { - if ((this.GetMailboxStatisticsOperationCompleted == null)) - { + public void GetMailboxStatisticsAsync(string accountName, object userState) { + if ((this.GetMailboxStatisticsOperationCompleted == null)) { this.GetMailboxStatisticsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMailboxStatisticsOperationCompleted); } this.InvokeAsync("GetMailboxStatistics", new object[] { accountName}, this.GetMailboxStatisticsOperationCompleted, userState); } - - private void OnGetMailboxStatisticsOperationCompleted(object arg) - { - if ((this.GetMailboxStatisticsCompleted != null)) - { + + private void OnGetMailboxStatisticsOperationCompleted(object arg) { + if ((this.GetMailboxStatisticsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetMailboxStatisticsCompleted(this, new GetMailboxStatisticsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDefaultPublicFolderMailbox", 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 string[] SetDefaultPublicFolderMailbox(string id, string organizationId, string organizationDistinguishedName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDefaultPublicFolderMailbox", 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 string[] SetDefaultPublicFolderMailbox(string id, string organizationId, string organizationDistinguishedName) { object[] results = this.Invoke("SetDefaultPublicFolderMailbox", new object[] { id, organizationId, organizationDistinguishedName}); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginSetDefaultPublicFolderMailbox(string id, string organizationId, string organizationDistinguishedName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetDefaultPublicFolderMailbox(string id, string organizationId, string organizationDistinguishedName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDefaultPublicFolderMailbox", new object[] { id, organizationId, organizationDistinguishedName}, callback, asyncState); } - + /// - public string[] EndSetDefaultPublicFolderMailbox(System.IAsyncResult asyncResult) - { + public string[] EndSetDefaultPublicFolderMailbox(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void SetDefaultPublicFolderMailboxAsync(string id, string organizationId, string organizationDistinguishedName) - { + public void SetDefaultPublicFolderMailboxAsync(string id, string organizationId, string organizationDistinguishedName) { this.SetDefaultPublicFolderMailboxAsync(id, organizationId, organizationDistinguishedName, null); } - + /// - public void SetDefaultPublicFolderMailboxAsync(string id, string organizationId, string organizationDistinguishedName, object userState) - { - if ((this.SetDefaultPublicFolderMailboxOperationCompleted == null)) - { + public void SetDefaultPublicFolderMailboxAsync(string id, string organizationId, string organizationDistinguishedName, object userState) { + if ((this.SetDefaultPublicFolderMailboxOperationCompleted == null)) { this.SetDefaultPublicFolderMailboxOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDefaultPublicFolderMailboxOperationCompleted); } this.InvokeAsync("SetDefaultPublicFolderMailbox", new object[] { @@ -3205,21 +2050,18 @@ namespace WebsitePanel.Providers.Exchange organizationId, organizationDistinguishedName}, this.SetDefaultPublicFolderMailboxOperationCompleted, userState); } - - private void OnSetDefaultPublicFolderMailboxOperationCompleted(object arg) - { - if ((this.SetDefaultPublicFolderMailboxCompleted != null)) - { + + private void OnSetDefaultPublicFolderMailboxOperationCompleted(object arg) { + if ((this.SetDefaultPublicFolderMailboxCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDefaultPublicFolderMailboxCompleted(this, new SetDefaultPublicFolderMailboxCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateContact", 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 CreateContact(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateContact", 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 CreateContact(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain) { this.Invoke("CreateContact", new object[] { organizationId, organizationDistinguishedName, @@ -3228,10 +2070,9 @@ namespace WebsitePanel.Providers.Exchange contactEmail, defaultOrganizationDomain}); } - + /// - public System.IAsyncResult BeginCreateContact(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateContact(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateContact", new object[] { organizationId, organizationDistinguishedName, @@ -3240,24 +2081,20 @@ namespace WebsitePanel.Providers.Exchange contactEmail, defaultOrganizationDomain}, callback, asyncState); } - + /// - public void EndCreateContact(System.IAsyncResult asyncResult) - { + public void EndCreateContact(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void CreateContactAsync(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain) - { + public void CreateContactAsync(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain) { this.CreateContactAsync(organizationId, organizationDistinguishedName, contactDisplayName, contactAccountName, contactEmail, defaultOrganizationDomain, null); } - + /// - public void CreateContactAsync(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain, object userState) - { - if ((this.CreateContactOperationCompleted == null)) - { + public void CreateContactAsync(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain, object userState) { + if ((this.CreateContactOperationCompleted == null)) { this.CreateContactOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateContactOperationCompleted); } this.InvokeAsync("CreateContact", new object[] { @@ -3268,145 +2105,126 @@ namespace WebsitePanel.Providers.Exchange contactEmail, defaultOrganizationDomain}, this.CreateContactOperationCompleted, userState); } - - private void OnCreateContactOperationCompleted(object arg) - { - if ((this.CreateContactCompleted != null)) - { + + private void OnCreateContactOperationCompleted(object arg) { + if ((this.CreateContactCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateContactCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteContact", 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 DeleteContact(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteContact", 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 DeleteContact(string accountName) { this.Invoke("DeleteContact", new object[] { accountName}); } - + /// - public System.IAsyncResult BeginDeleteContact(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteContact(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteContact", new object[] { accountName}, callback, asyncState); } - + /// - public void EndDeleteContact(System.IAsyncResult asyncResult) - { + public void EndDeleteContact(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteContactAsync(string accountName) - { + public void DeleteContactAsync(string accountName) { this.DeleteContactAsync(accountName, null); } - + /// - public void DeleteContactAsync(string accountName, object userState) - { - if ((this.DeleteContactOperationCompleted == null)) - { + public void DeleteContactAsync(string accountName, object userState) { + if ((this.DeleteContactOperationCompleted == null)) { this.DeleteContactOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteContactOperationCompleted); } this.InvokeAsync("DeleteContact", new object[] { accountName}, this.DeleteContactOperationCompleted, userState); } - - private void OnDeleteContactOperationCompleted(object arg) - { - if ((this.DeleteContactCompleted != null)) - { + + private void OnDeleteContactOperationCompleted(object arg) { + if ((this.DeleteContactCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteContactCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetContactGeneralSettings", 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 ExchangeContact GetContactGeneralSettings(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetContactGeneralSettings", 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 ExchangeContact GetContactGeneralSettings(string accountName) { object[] results = this.Invoke("GetContactGeneralSettings", new object[] { accountName}); return ((ExchangeContact)(results[0])); } - + /// - public System.IAsyncResult BeginGetContactGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetContactGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetContactGeneralSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeContact EndGetContactGeneralSettings(System.IAsyncResult asyncResult) - { + public ExchangeContact EndGetContactGeneralSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeContact)(results[0])); } - + /// - public void GetContactGeneralSettingsAsync(string accountName) - { + public void GetContactGeneralSettingsAsync(string accountName) { this.GetContactGeneralSettingsAsync(accountName, null); } - + /// - public void GetContactGeneralSettingsAsync(string accountName, object userState) - { - if ((this.GetContactGeneralSettingsOperationCompleted == null)) - { + public void GetContactGeneralSettingsAsync(string accountName, object userState) { + if ((this.GetContactGeneralSettingsOperationCompleted == null)) { this.GetContactGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetContactGeneralSettingsOperationCompleted); } this.InvokeAsync("GetContactGeneralSettings", new object[] { accountName}, this.GetContactGeneralSettingsOperationCompleted, userState); } - - private void OnGetContactGeneralSettingsOperationCompleted(object arg) - { - if ((this.GetContactGeneralSettingsCompleted != null)) - { + + private void OnGetContactGeneralSettingsOperationCompleted(object arg) { + if ((this.GetContactGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetContactGeneralSettingsCompleted(this, new GetContactGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetContactGeneralSettings", RequestNamespace = "http://smbsaas/websitepanel/server/", ResponseNamespace = "http://smbsaas/websitepanel/server/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetContactGeneralSettings", 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 SetContactGeneralSettings( - string accountName, - string displayName, - string email, - bool hideFromAddressBook, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - int useMapiRichTextFormat, - string defaultDomain) - { + string accountName, + string displayName, + string email, + bool hideFromAddressBook, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + int useMapiRichTextFormat, + string defaultDomain) { this.Invoke("SetContactGeneralSettings", new object[] { accountName, displayName, @@ -3435,38 +2253,37 @@ namespace WebsitePanel.Providers.Exchange useMapiRichTextFormat, defaultDomain}); } - + /// public System.IAsyncResult BeginSetContactGeneralSettings( - string accountName, - string displayName, - string email, - bool hideFromAddressBook, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - int useMapiRichTextFormat, - string defaultDomain, - System.AsyncCallback callback, - object asyncState) - { + string accountName, + string displayName, + string email, + bool hideFromAddressBook, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + int useMapiRichTextFormat, + string defaultDomain, + System.AsyncCallback callback, + object asyncState) { return this.BeginInvoke("SetContactGeneralSettings", new object[] { accountName, displayName, @@ -3495,77 +2312,73 @@ namespace WebsitePanel.Providers.Exchange useMapiRichTextFormat, defaultDomain}, callback, asyncState); } - + /// - public void EndSetContactGeneralSettings(System.IAsyncResult asyncResult) - { + public void EndSetContactGeneralSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// public void SetContactGeneralSettingsAsync( - string accountName, - string displayName, - string email, - bool hideFromAddressBook, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - int useMapiRichTextFormat, - string defaultDomain) - { + string accountName, + string displayName, + string email, + bool hideFromAddressBook, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + int useMapiRichTextFormat, + string defaultDomain) { this.SetContactGeneralSettingsAsync(accountName, displayName, email, hideFromAddressBook, firstName, initials, lastName, address, city, state, zip, country, jobTitle, company, department, office, managerAccountName, businessPhone, fax, homePhone, mobilePhone, pager, webPage, notes, useMapiRichTextFormat, defaultDomain, null); } - + /// public void SetContactGeneralSettingsAsync( - string accountName, - string displayName, - string email, - bool hideFromAddressBook, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - int useMapiRichTextFormat, - string defaultDomain, - object userState) - { - if ((this.SetContactGeneralSettingsOperationCompleted == null)) - { + string accountName, + string displayName, + string email, + bool hideFromAddressBook, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + int useMapiRichTextFormat, + string defaultDomain, + object userState) { + if ((this.SetContactGeneralSettingsOperationCompleted == null)) { this.SetContactGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetContactGeneralSettingsOperationCompleted); } this.InvokeAsync("SetContactGeneralSettings", new object[] { @@ -3596,105 +2409,89 @@ namespace WebsitePanel.Providers.Exchange useMapiRichTextFormat, defaultDomain}, this.SetContactGeneralSettingsOperationCompleted, userState); } - - private void OnSetContactGeneralSettingsOperationCompleted(object arg) - { - if ((this.SetContactGeneralSettingsCompleted != null)) - { + + private void OnSetContactGeneralSettingsOperationCompleted(object arg) { + if ((this.SetContactGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetContactGeneralSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetContactMailFlowSettings", 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 ExchangeContact GetContactMailFlowSettings(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetContactMailFlowSettings", 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 ExchangeContact GetContactMailFlowSettings(string accountName) { object[] results = this.Invoke("GetContactMailFlowSettings", new object[] { accountName}); return ((ExchangeContact)(results[0])); } - + /// - public System.IAsyncResult BeginGetContactMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetContactMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetContactMailFlowSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeContact EndGetContactMailFlowSettings(System.IAsyncResult asyncResult) - { + public ExchangeContact EndGetContactMailFlowSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeContact)(results[0])); } - + /// - public void GetContactMailFlowSettingsAsync(string accountName) - { + public void GetContactMailFlowSettingsAsync(string accountName) { this.GetContactMailFlowSettingsAsync(accountName, null); } - + /// - public void GetContactMailFlowSettingsAsync(string accountName, object userState) - { - if ((this.GetContactMailFlowSettingsOperationCompleted == null)) - { + public void GetContactMailFlowSettingsAsync(string accountName, object userState) { + if ((this.GetContactMailFlowSettingsOperationCompleted == null)) { this.GetContactMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetContactMailFlowSettingsOperationCompleted); } this.InvokeAsync("GetContactMailFlowSettings", new object[] { accountName}, this.GetContactMailFlowSettingsOperationCompleted, userState); } - - private void OnGetContactMailFlowSettingsOperationCompleted(object arg) - { - if ((this.GetContactMailFlowSettingsCompleted != null)) - { + + private void OnGetContactMailFlowSettingsOperationCompleted(object arg) { + if ((this.GetContactMailFlowSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetContactMailFlowSettingsCompleted(this, new GetContactMailFlowSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetContactMailFlowSettings", 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 SetContactMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetContactMailFlowSettings", 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 SetContactMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { this.Invoke("SetContactMailFlowSettings", new object[] { accountName, acceptAccounts, rejectAccounts, requireSenderAuthentication}); } - + /// - public System.IAsyncResult BeginSetContactMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetContactMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetContactMailFlowSettings", new object[] { accountName, acceptAccounts, rejectAccounts, requireSenderAuthentication}, callback, asyncState); } - + /// - public void EndSetContactMailFlowSettings(System.IAsyncResult asyncResult) - { + public void EndSetContactMailFlowSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetContactMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) - { + public void SetContactMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { this.SetContactMailFlowSettingsAsync(accountName, acceptAccounts, rejectAccounts, requireSenderAuthentication, null); } - + /// - public void SetContactMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) - { - if ((this.SetContactMailFlowSettingsOperationCompleted == null)) - { + public void SetContactMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) { + if ((this.SetContactMailFlowSettingsOperationCompleted == null)) { this.SetContactMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetContactMailFlowSettingsOperationCompleted); } this.InvokeAsync("SetContactMailFlowSettings", new object[] { @@ -3703,21 +2500,18 @@ namespace WebsitePanel.Providers.Exchange rejectAccounts, requireSenderAuthentication}, this.SetContactMailFlowSettingsOperationCompleted, userState); } - - private void OnSetContactMailFlowSettingsOperationCompleted(object arg) - { - if ((this.SetContactMailFlowSettingsCompleted != null)) - { + + private void OnSetContactMailFlowSettingsOperationCompleted(object arg) { + if ((this.SetContactMailFlowSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetContactMailFlowSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateDistributionList", 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 CreateDistributionList(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateDistributionList", 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 CreateDistributionList(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists) { this.Invoke("CreateDistributionList", new object[] { organizationId, organizationDistinguishedName, @@ -3728,10 +2522,9 @@ namespace WebsitePanel.Providers.Exchange managedBy, addressLists}); } - + /// - public System.IAsyncResult BeginCreateDistributionList(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateDistributionList(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateDistributionList", new object[] { organizationId, organizationDistinguishedName, @@ -3742,24 +2535,20 @@ namespace WebsitePanel.Providers.Exchange managedBy, addressLists}, callback, asyncState); } - + /// - public void EndCreateDistributionList(System.IAsyncResult asyncResult) - { + public void EndCreateDistributionList(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void CreateDistributionListAsync(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists) - { + public void CreateDistributionListAsync(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists) { this.CreateDistributionListAsync(organizationId, organizationDistinguishedName, displayName, accountName, name, domain, managedBy, addressLists, null); } - + /// - public void CreateDistributionListAsync(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists, object userState) - { - if ((this.CreateDistributionListOperationCompleted == null)) - { + public void CreateDistributionListAsync(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy, string[] addressLists, object userState) { + if ((this.CreateDistributionListOperationCompleted == null)) { this.CreateDistributionListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateDistributionListOperationCompleted); } this.InvokeAsync("CreateDistributionList", new object[] { @@ -3772,119 +2561,100 @@ namespace WebsitePanel.Providers.Exchange managedBy, addressLists}, this.CreateDistributionListOperationCompleted, userState); } - - private void OnCreateDistributionListOperationCompleted(object arg) - { - if ((this.CreateDistributionListCompleted != null)) - { + + private void OnCreateDistributionListOperationCompleted(object arg) { + if ((this.CreateDistributionListCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateDistributionListCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteDistributionList", 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 DeleteDistributionList(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeleteDistributionList", 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 DeleteDistributionList(string accountName) { this.Invoke("DeleteDistributionList", new object[] { accountName}); } - + /// - public System.IAsyncResult BeginDeleteDistributionList(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteDistributionList(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteDistributionList", new object[] { accountName}, callback, asyncState); } - + /// - public void EndDeleteDistributionList(System.IAsyncResult asyncResult) - { + public void EndDeleteDistributionList(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteDistributionListAsync(string accountName) - { + public void DeleteDistributionListAsync(string accountName) { this.DeleteDistributionListAsync(accountName, null); } - + /// - public void DeleteDistributionListAsync(string accountName, object userState) - { - if ((this.DeleteDistributionListOperationCompleted == null)) - { + public void DeleteDistributionListAsync(string accountName, object userState) { + if ((this.DeleteDistributionListOperationCompleted == null)) { this.DeleteDistributionListOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteDistributionListOperationCompleted); } this.InvokeAsync("DeleteDistributionList", new object[] { accountName}, this.DeleteDistributionListOperationCompleted, userState); } - - private void OnDeleteDistributionListOperationCompleted(object arg) - { - if ((this.DeleteDistributionListCompleted != null)) - { + + private void OnDeleteDistributionListOperationCompleted(object arg) { + if ((this.DeleteDistributionListCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteDistributionListCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListGeneralSettings", 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 ExchangeDistributionList GetDistributionListGeneralSettings(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListGeneralSettings", 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 ExchangeDistributionList GetDistributionListGeneralSettings(string accountName) { object[] results = this.Invoke("GetDistributionListGeneralSettings", new object[] { accountName}); return ((ExchangeDistributionList)(results[0])); } - + /// - public System.IAsyncResult BeginGetDistributionListGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetDistributionListGeneralSettings(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetDistributionListGeneralSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeDistributionList EndGetDistributionListGeneralSettings(System.IAsyncResult asyncResult) - { + public ExchangeDistributionList EndGetDistributionListGeneralSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeDistributionList)(results[0])); } - + /// - public void GetDistributionListGeneralSettingsAsync(string accountName) - { + public void GetDistributionListGeneralSettingsAsync(string accountName) { this.GetDistributionListGeneralSettingsAsync(accountName, null); } - + /// - public void GetDistributionListGeneralSettingsAsync(string accountName, object userState) - { - if ((this.GetDistributionListGeneralSettingsOperationCompleted == null)) - { + public void GetDistributionListGeneralSettingsAsync(string accountName, object userState) { + if ((this.GetDistributionListGeneralSettingsOperationCompleted == null)) { this.GetDistributionListGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDistributionListGeneralSettingsOperationCompleted); } this.InvokeAsync("GetDistributionListGeneralSettings", new object[] { accountName}, this.GetDistributionListGeneralSettingsOperationCompleted, userState); } - - private void OnGetDistributionListGeneralSettingsOperationCompleted(object arg) - { - if ((this.GetDistributionListGeneralSettingsCompleted != null)) - { + + private void OnGetDistributionListGeneralSettingsOperationCompleted(object arg) { + if ((this.GetDistributionListGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDistributionListGeneralSettingsCompleted(this, new GetDistributionListGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListGeneralSettings", 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 SetDistributionListGeneralSettings(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListGeneralSettings", 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 SetDistributionListGeneralSettings(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists) { this.Invoke("SetDistributionListGeneralSettings", new object[] { accountName, displayName, @@ -3894,10 +2664,9 @@ namespace WebsitePanel.Providers.Exchange notes, addressLists}); } - + /// - public System.IAsyncResult BeginSetDistributionListGeneralSettings(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetDistributionListGeneralSettings(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDistributionListGeneralSettings", new object[] { accountName, displayName, @@ -3907,24 +2676,20 @@ namespace WebsitePanel.Providers.Exchange notes, addressLists}, callback, asyncState); } - + /// - public void EndSetDistributionListGeneralSettings(System.IAsyncResult asyncResult) - { + public void EndSetDistributionListGeneralSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetDistributionListGeneralSettingsAsync(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists) - { + public void SetDistributionListGeneralSettingsAsync(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists) { this.SetDistributionListGeneralSettingsAsync(accountName, displayName, hideFromAddressBook, managedBy, members, notes, addressLists, null); } - + /// - public void SetDistributionListGeneralSettingsAsync(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists, object userState) - { - if ((this.SetDistributionListGeneralSettingsOperationCompleted == null)) - { + public void SetDistributionListGeneralSettingsAsync(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] members, string notes, string[] addressLists, object userState) { + if ((this.SetDistributionListGeneralSettingsOperationCompleted == null)) { this.SetDistributionListGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDistributionListGeneralSettingsOperationCompleted); } this.InvokeAsync("SetDistributionListGeneralSettings", new object[] { @@ -3936,71 +2701,60 @@ namespace WebsitePanel.Providers.Exchange notes, addressLists}, this.SetDistributionListGeneralSettingsOperationCompleted, userState); } - - private void OnSetDistributionListGeneralSettingsOperationCompleted(object arg) - { - if ((this.SetDistributionListGeneralSettingsCompleted != null)) - { + + private void OnSetDistributionListGeneralSettingsOperationCompleted(object arg) { + if ((this.SetDistributionListGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDistributionListGeneralSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListMailFlowSettings", 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 ExchangeDistributionList GetDistributionListMailFlowSettings(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListMailFlowSettings", 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 ExchangeDistributionList GetDistributionListMailFlowSettings(string accountName) { object[] results = this.Invoke("GetDistributionListMailFlowSettings", new object[] { accountName}); return ((ExchangeDistributionList)(results[0])); } - + /// - public System.IAsyncResult BeginGetDistributionListMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetDistributionListMailFlowSettings(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetDistributionListMailFlowSettings", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeDistributionList EndGetDistributionListMailFlowSettings(System.IAsyncResult asyncResult) - { + public ExchangeDistributionList EndGetDistributionListMailFlowSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeDistributionList)(results[0])); } - + /// - public void GetDistributionListMailFlowSettingsAsync(string accountName) - { + public void GetDistributionListMailFlowSettingsAsync(string accountName) { this.GetDistributionListMailFlowSettingsAsync(accountName, null); } - + /// - public void GetDistributionListMailFlowSettingsAsync(string accountName, object userState) - { - if ((this.GetDistributionListMailFlowSettingsOperationCompleted == null)) - { + public void GetDistributionListMailFlowSettingsAsync(string accountName, object userState) { + if ((this.GetDistributionListMailFlowSettingsOperationCompleted == null)) { this.GetDistributionListMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDistributionListMailFlowSettingsOperationCompleted); } this.InvokeAsync("GetDistributionListMailFlowSettings", new object[] { accountName}, this.GetDistributionListMailFlowSettingsOperationCompleted, userState); } - - private void OnGetDistributionListMailFlowSettingsOperationCompleted(object arg) - { - if ((this.GetDistributionListMailFlowSettingsCompleted != null)) - { + + private void OnGetDistributionListMailFlowSettingsOperationCompleted(object arg) { + if ((this.GetDistributionListMailFlowSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDistributionListMailFlowSettingsCompleted(this, new GetDistributionListMailFlowSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListMailFlowSettings", 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 SetDistributionListMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListMailFlowSettings", 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 SetDistributionListMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists) { this.Invoke("SetDistributionListMailFlowSettings", new object[] { accountName, acceptAccounts, @@ -4008,10 +2762,9 @@ namespace WebsitePanel.Providers.Exchange requireSenderAuthentication, addressLists}); } - + /// - public System.IAsyncResult BeginSetDistributionListMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetDistributionListMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDistributionListMailFlowSettings", new object[] { accountName, acceptAccounts, @@ -4019,24 +2772,20 @@ namespace WebsitePanel.Providers.Exchange requireSenderAuthentication, addressLists}, callback, asyncState); } - + /// - public void EndSetDistributionListMailFlowSettings(System.IAsyncResult asyncResult) - { + public void EndSetDistributionListMailFlowSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetDistributionListMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists) - { + public void SetDistributionListMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists) { this.SetDistributionListMailFlowSettingsAsync(accountName, acceptAccounts, rejectAccounts, requireSenderAuthentication, addressLists, null); } - + /// - public void SetDistributionListMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists, object userState) - { - if ((this.SetDistributionListMailFlowSettingsOperationCompleted == null)) - { + public void SetDistributionListMailFlowSettingsAsync(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, string[] addressLists, object userState) { + if ((this.SetDistributionListMailFlowSettingsOperationCompleted == null)) { this.SetDistributionListMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDistributionListMailFlowSettingsOperationCompleted); } this.InvokeAsync("SetDistributionListMailFlowSettings", new object[] { @@ -4046,103 +2795,87 @@ namespace WebsitePanel.Providers.Exchange requireSenderAuthentication, addressLists}, this.SetDistributionListMailFlowSettingsOperationCompleted, userState); } - - private void OnSetDistributionListMailFlowSettingsOperationCompleted(object arg) - { - if ((this.SetDistributionListMailFlowSettingsCompleted != null)) - { + + private void OnSetDistributionListMailFlowSettingsOperationCompleted(object arg) { + if ((this.SetDistributionListMailFlowSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDistributionListMailFlowSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListEmailAddresses", 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 ExchangeEmailAddress[] GetDistributionListEmailAddresses(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListEmailAddresses", 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 ExchangeEmailAddress[] GetDistributionListEmailAddresses(string accountName) { object[] results = this.Invoke("GetDistributionListEmailAddresses", new object[] { accountName}); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public System.IAsyncResult BeginGetDistributionListEmailAddresses(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetDistributionListEmailAddresses(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetDistributionListEmailAddresses", new object[] { accountName}, callback, asyncState); } - + /// - public ExchangeEmailAddress[] EndGetDistributionListEmailAddresses(System.IAsyncResult asyncResult) - { + public ExchangeEmailAddress[] EndGetDistributionListEmailAddresses(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public void GetDistributionListEmailAddressesAsync(string accountName) - { + public void GetDistributionListEmailAddressesAsync(string accountName) { this.GetDistributionListEmailAddressesAsync(accountName, null); } - + /// - public void GetDistributionListEmailAddressesAsync(string accountName, object userState) - { - if ((this.GetDistributionListEmailAddressesOperationCompleted == null)) - { + public void GetDistributionListEmailAddressesAsync(string accountName, object userState) { + if ((this.GetDistributionListEmailAddressesOperationCompleted == null)) { this.GetDistributionListEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDistributionListEmailAddressesOperationCompleted); } this.InvokeAsync("GetDistributionListEmailAddresses", new object[] { accountName}, this.GetDistributionListEmailAddressesOperationCompleted, userState); } - - private void OnGetDistributionListEmailAddressesOperationCompleted(object arg) - { - if ((this.GetDistributionListEmailAddressesCompleted != null)) - { + + private void OnGetDistributionListEmailAddressesOperationCompleted(object arg) { + if ((this.GetDistributionListEmailAddressesCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDistributionListEmailAddressesCompleted(this, new GetDistributionListEmailAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListEmailAddresses", 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 SetDistributionListEmailAddresses(string accountName, string[] emailAddresses, string[] addressLists) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListEmailAddresses", 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 SetDistributionListEmailAddresses(string accountName, string[] emailAddresses, string[] addressLists) { this.Invoke("SetDistributionListEmailAddresses", new object[] { accountName, emailAddresses, addressLists}); } - + /// - public System.IAsyncResult BeginSetDistributionListEmailAddresses(string accountName, string[] emailAddresses, string[] addressLists, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetDistributionListEmailAddresses(string accountName, string[] emailAddresses, string[] addressLists, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDistributionListEmailAddresses", new object[] { accountName, emailAddresses, addressLists}, callback, asyncState); } - + /// - public void EndSetDistributionListEmailAddresses(System.IAsyncResult asyncResult) - { + public void EndSetDistributionListEmailAddresses(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetDistributionListEmailAddressesAsync(string accountName, string[] emailAddresses, string[] addressLists) - { + public void SetDistributionListEmailAddressesAsync(string accountName, string[] emailAddresses, string[] addressLists) { this.SetDistributionListEmailAddressesAsync(accountName, emailAddresses, addressLists, null); } - + /// - public void SetDistributionListEmailAddressesAsync(string accountName, string[] emailAddresses, string[] addressLists, object userState) - { - if ((this.SetDistributionListEmailAddressesOperationCompleted == null)) - { + public void SetDistributionListEmailAddressesAsync(string accountName, string[] emailAddresses, string[] addressLists, object userState) { + if ((this.SetDistributionListEmailAddressesOperationCompleted == null)) { this.SetDistributionListEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDistributionListEmailAddressesOperationCompleted); } this.InvokeAsync("SetDistributionListEmailAddresses", new object[] { @@ -4150,53 +2883,45 @@ namespace WebsitePanel.Providers.Exchange emailAddresses, addressLists}, this.SetDistributionListEmailAddressesOperationCompleted, userState); } - - private void OnSetDistributionListEmailAddressesOperationCompleted(object arg) - { - if ((this.SetDistributionListEmailAddressesCompleted != null)) - { + + private void OnSetDistributionListEmailAddressesOperationCompleted(object arg) { + if ((this.SetDistributionListEmailAddressesCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDistributionListEmailAddressesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListPrimaryEmailAddress", 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 SetDistributionListPrimaryEmailAddress(string accountName, string emailAddress, string[] addressLists) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListPrimaryEmailAddress", 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 SetDistributionListPrimaryEmailAddress(string accountName, string emailAddress, string[] addressLists) { this.Invoke("SetDistributionListPrimaryEmailAddress", new object[] { accountName, emailAddress, addressLists}); } - + /// - public System.IAsyncResult BeginSetDistributionListPrimaryEmailAddress(string accountName, string emailAddress, string[] addressLists, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetDistributionListPrimaryEmailAddress(string accountName, string emailAddress, string[] addressLists, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDistributionListPrimaryEmailAddress", new object[] { accountName, emailAddress, addressLists}, callback, asyncState); } - + /// - public void EndSetDistributionListPrimaryEmailAddress(System.IAsyncResult asyncResult) - { + public void EndSetDistributionListPrimaryEmailAddress(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetDistributionListPrimaryEmailAddressAsync(string accountName, string emailAddress, string[] addressLists) - { + public void SetDistributionListPrimaryEmailAddressAsync(string accountName, string emailAddress, string[] addressLists) { this.SetDistributionListPrimaryEmailAddressAsync(accountName, emailAddress, addressLists, null); } - + /// - public void SetDistributionListPrimaryEmailAddressAsync(string accountName, string emailAddress, string[] addressLists, object userState) - { - if ((this.SetDistributionListPrimaryEmailAddressOperationCompleted == null)) - { + public void SetDistributionListPrimaryEmailAddressAsync(string accountName, string emailAddress, string[] addressLists, object userState) { + if ((this.SetDistributionListPrimaryEmailAddressOperationCompleted == null)) { this.SetDistributionListPrimaryEmailAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDistributionListPrimaryEmailAddressOperationCompleted); } this.InvokeAsync("SetDistributionListPrimaryEmailAddress", new object[] { @@ -4204,21 +2929,18 @@ namespace WebsitePanel.Providers.Exchange emailAddress, addressLists}, this.SetDistributionListPrimaryEmailAddressOperationCompleted, userState); } - - private void OnSetDistributionListPrimaryEmailAddressOperationCompleted(object arg) - { - if ((this.SetDistributionListPrimaryEmailAddressCompleted != null)) - { + + private void OnSetDistributionListPrimaryEmailAddressOperationCompleted(object arg) { + if ((this.SetDistributionListPrimaryEmailAddressCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDistributionListPrimaryEmailAddressCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListPermissions", 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 SetDistributionListPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDistributionListPermissions", 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 SetDistributionListPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists) { this.Invoke("SetDistributionListPermissions", new object[] { organizationId, accountName, @@ -4226,10 +2948,9 @@ namespace WebsitePanel.Providers.Exchange sendOnBehalfAccounts, addressLists}); } - + /// - public System.IAsyncResult BeginSetDistributionListPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetDistributionListPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDistributionListPermissions", new object[] { organizationId, accountName, @@ -4237,24 +2958,20 @@ namespace WebsitePanel.Providers.Exchange sendOnBehalfAccounts, addressLists}, callback, asyncState); } - + /// - public void EndSetDistributionListPermissions(System.IAsyncResult asyncResult) - { + public void EndSetDistributionListPermissions(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetDistributionListPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists) - { + public void SetDistributionListPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists) { this.SetDistributionListPermissionsAsync(organizationId, accountName, sendAsAccounts, sendOnBehalfAccounts, addressLists, null); } - + /// - public void SetDistributionListPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists, object userState) - { - if ((this.SetDistributionListPermissionsOperationCompleted == null)) - { + public void SetDistributionListPermissionsAsync(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts, string[] addressLists, object userState) { + if ((this.SetDistributionListPermissionsOperationCompleted == null)) { this.SetDistributionListPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDistributionListPermissionsOperationCompleted); } this.InvokeAsync("SetDistributionListPermissions", new object[] { @@ -4264,283 +2981,240 @@ namespace WebsitePanel.Providers.Exchange sendOnBehalfAccounts, addressLists}, this.SetDistributionListPermissionsOperationCompleted, userState); } - - private void OnSetDistributionListPermissionsOperationCompleted(object arg) - { - if ((this.SetDistributionListPermissionsCompleted != null)) - { + + private void OnSetDistributionListPermissionsOperationCompleted(object arg) { + if ((this.SetDistributionListPermissionsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDistributionListPermissionsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListPermissions", 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 ExchangeDistributionList GetDistributionListPermissions(string organizationId, string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetDistributionListPermissions", 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 ExchangeDistributionList GetDistributionListPermissions(string organizationId, string accountName) { object[] results = this.Invoke("GetDistributionListPermissions", new object[] { organizationId, accountName}); return ((ExchangeDistributionList)(results[0])); } - + /// - public System.IAsyncResult BeginGetDistributionListPermissions(string organizationId, string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetDistributionListPermissions(string organizationId, string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetDistributionListPermissions", new object[] { organizationId, accountName}, callback, asyncState); } - + /// - public ExchangeDistributionList EndGetDistributionListPermissions(System.IAsyncResult asyncResult) - { + public ExchangeDistributionList EndGetDistributionListPermissions(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeDistributionList)(results[0])); } - + /// - public void GetDistributionListPermissionsAsync(string organizationId, string accountName) - { + public void GetDistributionListPermissionsAsync(string organizationId, string accountName) { this.GetDistributionListPermissionsAsync(organizationId, accountName, null); } - + /// - public void GetDistributionListPermissionsAsync(string organizationId, string accountName, object userState) - { - if ((this.GetDistributionListPermissionsOperationCompleted == null)) - { + public void GetDistributionListPermissionsAsync(string organizationId, string accountName, object userState) { + if ((this.GetDistributionListPermissionsOperationCompleted == null)) { this.GetDistributionListPermissionsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDistributionListPermissionsOperationCompleted); } this.InvokeAsync("GetDistributionListPermissions", new object[] { organizationId, accountName}, this.GetDistributionListPermissionsOperationCompleted, userState); } - - private void OnGetDistributionListPermissionsOperationCompleted(object arg) - { - if ((this.GetDistributionListPermissionsCompleted != null)) - { + + private void OnGetDistributionListPermissionsOperationCompleted(object arg) { + if ((this.GetDistributionListPermissionsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDistributionListPermissionsCompleted(this, new GetDistributionListPermissionsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDisclaimer", 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 int SetDisclaimer(string name, string text) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetDisclaimer", 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 int SetDisclaimer(string name, string text) { object[] results = this.Invoke("SetDisclaimer", new object[] { name, text}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginSetDisclaimer(string name, string text, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetDisclaimer(string name, string text, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDisclaimer", new object[] { name, text}, callback, asyncState); } - + /// - public int EndSetDisclaimer(System.IAsyncResult asyncResult) - { + public int EndSetDisclaimer(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void SetDisclaimerAsync(string name, string text) - { + public void SetDisclaimerAsync(string name, string text) { this.SetDisclaimerAsync(name, text, null); } - + /// - public void SetDisclaimerAsync(string name, string text, object userState) - { - if ((this.SetDisclaimerOperationCompleted == null)) - { + public void SetDisclaimerAsync(string name, string text, object userState) { + if ((this.SetDisclaimerOperationCompleted == null)) { this.SetDisclaimerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDisclaimerOperationCompleted); } this.InvokeAsync("SetDisclaimer", new object[] { name, text}, this.SetDisclaimerOperationCompleted, userState); } - - private void OnSetDisclaimerOperationCompleted(object arg) - { - if ((this.SetDisclaimerCompleted != null)) - { + + private void OnSetDisclaimerOperationCompleted(object arg) { + if ((this.SetDisclaimerCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDisclaimerCompleted(this, new SetDisclaimerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDisclaimer", 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 int RemoveDisclaimer(string name) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDisclaimer", 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 int RemoveDisclaimer(string name) { object[] results = this.Invoke("RemoveDisclaimer", new object[] { name}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveDisclaimer(string name, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginRemoveDisclaimer(string name, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("RemoveDisclaimer", new object[] { name}, callback, asyncState); } - + /// - public int EndRemoveDisclaimer(System.IAsyncResult asyncResult) - { + public int EndRemoveDisclaimer(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void RemoveDisclaimerAsync(string name) - { + public void RemoveDisclaimerAsync(string name) { this.RemoveDisclaimerAsync(name, null); } - + /// - public void RemoveDisclaimerAsync(string name, object userState) - { - if ((this.RemoveDisclaimerOperationCompleted == null)) - { + public void RemoveDisclaimerAsync(string name, object userState) { + if ((this.RemoveDisclaimerOperationCompleted == null)) { this.RemoveDisclaimerOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveDisclaimerOperationCompleted); } this.InvokeAsync("RemoveDisclaimer", new object[] { name}, this.RemoveDisclaimerOperationCompleted, userState); } - - private void OnRemoveDisclaimerOperationCompleted(object arg) - { - if ((this.RemoveDisclaimerCompleted != null)) - { + + private void OnRemoveDisclaimerOperationCompleted(object arg) { + if ((this.RemoveDisclaimerCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveDisclaimerCompleted(this, new RemoveDisclaimerCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddDisclamerMember", 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 int AddDisclamerMember(string name, string member) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/AddDisclamerMember", 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 int AddDisclamerMember(string name, string member) { object[] results = this.Invoke("AddDisclamerMember", new object[] { name, member}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginAddDisclamerMember(string name, string member, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginAddDisclamerMember(string name, string member, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddDisclamerMember", new object[] { name, member}, callback, asyncState); } - + /// - public int EndAddDisclamerMember(System.IAsyncResult asyncResult) - { + public int EndAddDisclamerMember(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void AddDisclamerMemberAsync(string name, string member) - { + public void AddDisclamerMemberAsync(string name, string member) { this.AddDisclamerMemberAsync(name, member, null); } - + /// - public void AddDisclamerMemberAsync(string name, string member, object userState) - { - if ((this.AddDisclamerMemberOperationCompleted == null)) - { + public void AddDisclamerMemberAsync(string name, string member, object userState) { + if ((this.AddDisclamerMemberOperationCompleted == null)) { this.AddDisclamerMemberOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddDisclamerMemberOperationCompleted); } this.InvokeAsync("AddDisclamerMember", new object[] { name, member}, this.AddDisclamerMemberOperationCompleted, userState); } - - private void OnAddDisclamerMemberOperationCompleted(object arg) - { - if ((this.AddDisclamerMemberCompleted != null)) - { + + private void OnAddDisclamerMemberOperationCompleted(object arg) { + if ((this.AddDisclamerMemberCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddDisclamerMemberCompleted(this, new AddDisclamerMemberCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDisclamerMember", 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 int RemoveDisclamerMember(string name, string member) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDisclamerMember", 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 int RemoveDisclamerMember(string name, string member) { object[] results = this.Invoke("RemoveDisclamerMember", new object[] { name, member}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginRemoveDisclamerMember(string name, string member, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginRemoveDisclamerMember(string name, string member, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("RemoveDisclamerMember", new object[] { name, member}, callback, asyncState); } - + /// - public int EndRemoveDisclamerMember(System.IAsyncResult asyncResult) - { + public int EndRemoveDisclamerMember(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void RemoveDisclamerMemberAsync(string name, string member) - { + public void RemoveDisclamerMemberAsync(string name, string member) { this.RemoveDisclamerMemberAsync(name, member, null); } - + /// - public void RemoveDisclamerMemberAsync(string name, string member, object userState) - { - if ((this.RemoveDisclamerMemberOperationCompleted == null)) - { + public void RemoveDisclamerMemberAsync(string name, string member, object userState) { + if ((this.RemoveDisclamerMemberOperationCompleted == null)) { this.RemoveDisclamerMemberOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveDisclamerMemberOperationCompleted); } this.InvokeAsync("RemoveDisclamerMember", new object[] { name, member}, this.RemoveDisclamerMemberOperationCompleted, userState); } - - private void OnRemoveDisclamerMemberOperationCompleted(object arg) - { - if ((this.RemoveDisclamerMemberCompleted != null)) - { + + private void OnRemoveDisclamerMemberOperationCompleted(object arg) { + if ((this.RemoveDisclamerMemberCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.RemoveDisclamerMemberCompleted(this, new RemoveDisclamerMemberCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreatePublicFolder", 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 CreatePublicFolder(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreatePublicFolder", 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 CreatePublicFolder(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain) { this.Invoke("CreatePublicFolder", new object[] { organizationDistinguishedName, organizationId, @@ -4552,10 +3226,9 @@ namespace WebsitePanel.Providers.Exchange name, domain}); } - + /// - public System.IAsyncResult BeginCreatePublicFolder(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreatePublicFolder(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreatePublicFolder", new object[] { organizationDistinguishedName, organizationId, @@ -4567,24 +3240,20 @@ namespace WebsitePanel.Providers.Exchange name, domain}, callback, asyncState); } - + /// - public void EndCreatePublicFolder(System.IAsyncResult asyncResult) - { + public void EndCreatePublicFolder(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void CreatePublicFolderAsync(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain) - { + public void CreatePublicFolderAsync(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain) { this.CreatePublicFolderAsync(organizationDistinguishedName, organizationId, securityGroup, parentFolder, folderName, mailEnabled, accountName, name, domain, null); } - + /// - public void CreatePublicFolderAsync(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain, object userState) - { - if ((this.CreatePublicFolderOperationCompleted == null)) - { + public void CreatePublicFolderAsync(string organizationDistinguishedName, string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain, object userState) { + if ((this.CreatePublicFolderOperationCompleted == null)) { this.CreatePublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreatePublicFolderOperationCompleted); } this.InvokeAsync("CreatePublicFolder", new object[] { @@ -4598,72 +3267,61 @@ namespace WebsitePanel.Providers.Exchange name, domain}, this.CreatePublicFolderOperationCompleted, userState); } - - private void OnCreatePublicFolderOperationCompleted(object arg) - { - if ((this.CreatePublicFolderCompleted != null)) - { + + private void OnCreatePublicFolderOperationCompleted(object arg) { + if ((this.CreatePublicFolderCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreatePublicFolderCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeletePublicFolder", 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 DeletePublicFolder(string organizationId, string folder) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DeletePublicFolder", 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 DeletePublicFolder(string organizationId, string folder) { this.Invoke("DeletePublicFolder", new object[] { organizationId, folder}); } - + /// - public System.IAsyncResult BeginDeletePublicFolder(string organizationId, string folder, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeletePublicFolder(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeletePublicFolder", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public void EndDeletePublicFolder(System.IAsyncResult asyncResult) - { + public void EndDeletePublicFolder(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeletePublicFolderAsync(string organizationId, string folder) - { + public void DeletePublicFolderAsync(string organizationId, string folder) { this.DeletePublicFolderAsync(organizationId, folder, null); } - + /// - public void DeletePublicFolderAsync(string organizationId, string folder, object userState) - { - if ((this.DeletePublicFolderOperationCompleted == null)) - { + public void DeletePublicFolderAsync(string organizationId, string folder, object userState) { + if ((this.DeletePublicFolderOperationCompleted == null)) { this.DeletePublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeletePublicFolderOperationCompleted); } this.InvokeAsync("DeletePublicFolder", new object[] { organizationId, folder}, this.DeletePublicFolderOperationCompleted, userState); } - - private void OnDeletePublicFolderOperationCompleted(object arg) - { - if ((this.DeletePublicFolderCompleted != null)) - { + + private void OnDeletePublicFolderOperationCompleted(object arg) { + if ((this.DeletePublicFolderCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeletePublicFolderCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/EnableMailPublicFolder", 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 EnableMailPublicFolder(string organizationId, string folder, string accountName, string name, string domain) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/EnableMailPublicFolder", 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 EnableMailPublicFolder(string organizationId, string folder, string accountName, string name, string domain) { this.Invoke("EnableMailPublicFolder", new object[] { organizationId, folder, @@ -4671,10 +3329,9 @@ namespace WebsitePanel.Providers.Exchange name, domain}); } - + /// - public System.IAsyncResult BeginEnableMailPublicFolder(string organizationId, string folder, string accountName, string name, string domain, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginEnableMailPublicFolder(string organizationId, string folder, string accountName, string name, string domain, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("EnableMailPublicFolder", new object[] { organizationId, folder, @@ -4682,24 +3339,20 @@ namespace WebsitePanel.Providers.Exchange name, domain}, callback, asyncState); } - + /// - public void EndEnableMailPublicFolder(System.IAsyncResult asyncResult) - { + public void EndEnableMailPublicFolder(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void EnableMailPublicFolderAsync(string organizationId, string folder, string accountName, string name, string domain) - { + public void EnableMailPublicFolderAsync(string organizationId, string folder, string accountName, string name, string domain) { this.EnableMailPublicFolderAsync(organizationId, folder, accountName, name, domain, null); } - + /// - public void EnableMailPublicFolderAsync(string organizationId, string folder, string accountName, string name, string domain, object userState) - { - if ((this.EnableMailPublicFolderOperationCompleted == null)) - { + public void EnableMailPublicFolderAsync(string organizationId, string folder, string accountName, string name, string domain, object userState) { + if ((this.EnableMailPublicFolderOperationCompleted == null)) { this.EnableMailPublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnEnableMailPublicFolderOperationCompleted); } this.InvokeAsync("EnableMailPublicFolder", new object[] { @@ -4709,125 +3362,106 @@ namespace WebsitePanel.Providers.Exchange name, domain}, this.EnableMailPublicFolderOperationCompleted, userState); } - - private void OnEnableMailPublicFolderOperationCompleted(object arg) - { - if ((this.EnableMailPublicFolderCompleted != null)) - { + + private void OnEnableMailPublicFolderOperationCompleted(object arg) { + if ((this.EnableMailPublicFolderCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.EnableMailPublicFolderCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DisableMailPublicFolder", 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 DisableMailPublicFolder(string organizationId, string folder) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/DisableMailPublicFolder", 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 DisableMailPublicFolder(string organizationId, string folder) { this.Invoke("DisableMailPublicFolder", new object[] { organizationId, folder}); } - + /// - public System.IAsyncResult BeginDisableMailPublicFolder(string organizationId, string folder, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDisableMailPublicFolder(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DisableMailPublicFolder", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public void EndDisableMailPublicFolder(System.IAsyncResult asyncResult) - { + public void EndDisableMailPublicFolder(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DisableMailPublicFolderAsync(string organizationId, string folder) - { + public void DisableMailPublicFolderAsync(string organizationId, string folder) { this.DisableMailPublicFolderAsync(organizationId, folder, null); } - + /// - public void DisableMailPublicFolderAsync(string organizationId, string folder, object userState) - { - if ((this.DisableMailPublicFolderOperationCompleted == null)) - { + public void DisableMailPublicFolderAsync(string organizationId, string folder, object userState) { + if ((this.DisableMailPublicFolderOperationCompleted == null)) { this.DisableMailPublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDisableMailPublicFolderOperationCompleted); } this.InvokeAsync("DisableMailPublicFolder", new object[] { organizationId, folder}, this.DisableMailPublicFolderOperationCompleted, userState); } - - private void OnDisableMailPublicFolderOperationCompleted(object arg) - { - if ((this.DisableMailPublicFolderCompleted != null)) - { + + private void OnDisableMailPublicFolderOperationCompleted(object arg) { + if ((this.DisableMailPublicFolderCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DisableMailPublicFolderCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderGeneralSettings", 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 ExchangePublicFolder GetPublicFolderGeneralSettings(string organizationId, string folder) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderGeneralSettings", 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 ExchangePublicFolder GetPublicFolderGeneralSettings(string organizationId, string folder) { object[] results = this.Invoke("GetPublicFolderGeneralSettings", new object[] { organizationId, folder}); return ((ExchangePublicFolder)(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFolderGeneralSettings(string organizationId, string folder, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetPublicFolderGeneralSettings(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetPublicFolderGeneralSettings", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public ExchangePublicFolder EndGetPublicFolderGeneralSettings(System.IAsyncResult asyncResult) - { + public ExchangePublicFolder EndGetPublicFolderGeneralSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangePublicFolder)(results[0])); } - + /// - public void GetPublicFolderGeneralSettingsAsync(string organizationId, string folder) - { + public void GetPublicFolderGeneralSettingsAsync(string organizationId, string folder) { this.GetPublicFolderGeneralSettingsAsync(organizationId, folder, null); } - + /// - public void GetPublicFolderGeneralSettingsAsync(string organizationId, string folder, object userState) - { - if ((this.GetPublicFolderGeneralSettingsOperationCompleted == null)) - { + public void GetPublicFolderGeneralSettingsAsync(string organizationId, string folder, object userState) { + if ((this.GetPublicFolderGeneralSettingsOperationCompleted == null)) { this.GetPublicFolderGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFolderGeneralSettingsOperationCompleted); } this.InvokeAsync("GetPublicFolderGeneralSettings", new object[] { organizationId, folder}, this.GetPublicFolderGeneralSettingsOperationCompleted, userState); } - - private void OnGetPublicFolderGeneralSettingsOperationCompleted(object arg) - { - if ((this.GetPublicFolderGeneralSettingsCompleted != null)) - { + + private void OnGetPublicFolderGeneralSettingsOperationCompleted(object arg) { + if ((this.GetPublicFolderGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFolderGeneralSettingsCompleted(this, new GetPublicFolderGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderGeneralSettings", 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 SetPublicFolderGeneralSettings(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderGeneralSettings", 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 SetPublicFolderGeneralSettings(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts) { this.Invoke("SetPublicFolderGeneralSettings", new object[] { organizationId, folder, @@ -4835,10 +3469,9 @@ namespace WebsitePanel.Providers.Exchange hideFromAddressBook, accounts}); } - + /// - public System.IAsyncResult BeginSetPublicFolderGeneralSettings(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetPublicFolderGeneralSettings(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetPublicFolderGeneralSettings", new object[] { organizationId, folder, @@ -4846,24 +3479,20 @@ namespace WebsitePanel.Providers.Exchange hideFromAddressBook, accounts}, callback, asyncState); } - + /// - public void EndSetPublicFolderGeneralSettings(System.IAsyncResult asyncResult) - { + public void EndSetPublicFolderGeneralSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetPublicFolderGeneralSettingsAsync(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts) - { + public void SetPublicFolderGeneralSettingsAsync(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts) { this.SetPublicFolderGeneralSettingsAsync(organizationId, folder, newFolderName, hideFromAddressBook, accounts, null); } - + /// - public void SetPublicFolderGeneralSettingsAsync(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts, object userState) - { - if ((this.SetPublicFolderGeneralSettingsOperationCompleted == null)) - { + public void SetPublicFolderGeneralSettingsAsync(string organizationId, string folder, string newFolderName, bool hideFromAddressBook, ExchangeAccount[] accounts, object userState) { + if ((this.SetPublicFolderGeneralSettingsOperationCompleted == null)) { this.SetPublicFolderGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPublicFolderGeneralSettingsOperationCompleted); } this.InvokeAsync("SetPublicFolderGeneralSettings", new object[] { @@ -4873,74 +3502,63 @@ namespace WebsitePanel.Providers.Exchange hideFromAddressBook, accounts}, this.SetPublicFolderGeneralSettingsOperationCompleted, userState); } - - private void OnSetPublicFolderGeneralSettingsOperationCompleted(object arg) - { - if ((this.SetPublicFolderGeneralSettingsCompleted != null)) - { + + private void OnSetPublicFolderGeneralSettingsOperationCompleted(object arg) { + if ((this.SetPublicFolderGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetPublicFolderGeneralSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderMailFlowSettings", 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 ExchangePublicFolder GetPublicFolderMailFlowSettings(string organizationId, string folder) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderMailFlowSettings", 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 ExchangePublicFolder GetPublicFolderMailFlowSettings(string organizationId, string folder) { object[] results = this.Invoke("GetPublicFolderMailFlowSettings", new object[] { organizationId, folder}); return ((ExchangePublicFolder)(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFolderMailFlowSettings(string organizationId, string folder, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetPublicFolderMailFlowSettings(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetPublicFolderMailFlowSettings", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public ExchangePublicFolder EndGetPublicFolderMailFlowSettings(System.IAsyncResult asyncResult) - { + public ExchangePublicFolder EndGetPublicFolderMailFlowSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangePublicFolder)(results[0])); } - + /// - public void GetPublicFolderMailFlowSettingsAsync(string organizationId, string folder) - { + public void GetPublicFolderMailFlowSettingsAsync(string organizationId, string folder) { this.GetPublicFolderMailFlowSettingsAsync(organizationId, folder, null); } - + /// - public void GetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, object userState) - { - if ((this.GetPublicFolderMailFlowSettingsOperationCompleted == null)) - { + public void GetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, object userState) { + if ((this.GetPublicFolderMailFlowSettingsOperationCompleted == null)) { this.GetPublicFolderMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFolderMailFlowSettingsOperationCompleted); } this.InvokeAsync("GetPublicFolderMailFlowSettings", new object[] { organizationId, folder}, this.GetPublicFolderMailFlowSettingsOperationCompleted, userState); } - - private void OnGetPublicFolderMailFlowSettingsOperationCompleted(object arg) - { - if ((this.GetPublicFolderMailFlowSettingsCompleted != null)) - { + + private void OnGetPublicFolderMailFlowSettingsOperationCompleted(object arg) { + if ((this.GetPublicFolderMailFlowSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFolderMailFlowSettingsCompleted(this, new GetPublicFolderMailFlowSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderMailFlowSettings", 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 SetPublicFolderMailFlowSettings(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderMailFlowSettings", 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 SetPublicFolderMailFlowSettings(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { this.Invoke("SetPublicFolderMailFlowSettings", new object[] { organizationId, folder, @@ -4948,10 +3566,9 @@ namespace WebsitePanel.Providers.Exchange rejectAccounts, requireSenderAuthentication}); } - + /// - public System.IAsyncResult BeginSetPublicFolderMailFlowSettings(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetPublicFolderMailFlowSettings(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetPublicFolderMailFlowSettings", new object[] { organizationId, folder, @@ -4959,24 +3576,20 @@ namespace WebsitePanel.Providers.Exchange rejectAccounts, requireSenderAuthentication}, callback, asyncState); } - + /// - public void EndSetPublicFolderMailFlowSettings(System.IAsyncResult asyncResult) - { + public void EndSetPublicFolderMailFlowSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) - { + public void SetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication) { this.SetPublicFolderMailFlowSettingsAsync(organizationId, folder, acceptAccounts, rejectAccounts, requireSenderAuthentication, null); } - + /// - public void SetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) - { - if ((this.SetPublicFolderMailFlowSettingsOperationCompleted == null)) - { + public void SetPublicFolderMailFlowSettingsAsync(string organizationId, string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication, object userState) { + if ((this.SetPublicFolderMailFlowSettingsOperationCompleted == null)) { this.SetPublicFolderMailFlowSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPublicFolderMailFlowSettingsOperationCompleted); } this.InvokeAsync("SetPublicFolderMailFlowSettings", new object[] { @@ -4986,106 +3599,90 @@ namespace WebsitePanel.Providers.Exchange rejectAccounts, requireSenderAuthentication}, this.SetPublicFolderMailFlowSettingsOperationCompleted, userState); } - - private void OnSetPublicFolderMailFlowSettingsOperationCompleted(object arg) - { - if ((this.SetPublicFolderMailFlowSettingsCompleted != null)) - { + + private void OnSetPublicFolderMailFlowSettingsOperationCompleted(object arg) { + if ((this.SetPublicFolderMailFlowSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetPublicFolderMailFlowSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderEmailAddresses", 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 ExchangeEmailAddress[] GetPublicFolderEmailAddresses(string organizationId, string folder) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderEmailAddresses", 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 ExchangeEmailAddress[] GetPublicFolderEmailAddresses(string organizationId, string folder) { object[] results = this.Invoke("GetPublicFolderEmailAddresses", new object[] { organizationId, folder}); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFolderEmailAddresses(string organizationId, string folder, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetPublicFolderEmailAddresses(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetPublicFolderEmailAddresses", new object[] { organizationId, folder}, callback, asyncState); } - + /// - public ExchangeEmailAddress[] EndGetPublicFolderEmailAddresses(System.IAsyncResult asyncResult) - { + public ExchangeEmailAddress[] EndGetPublicFolderEmailAddresses(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeEmailAddress[])(results[0])); } - + /// - public void GetPublicFolderEmailAddressesAsync(string organizationId, string folder) - { + public void GetPublicFolderEmailAddressesAsync(string organizationId, string folder) { this.GetPublicFolderEmailAddressesAsync(organizationId, folder, null); } - + /// - public void GetPublicFolderEmailAddressesAsync(string organizationId, string folder, object userState) - { - if ((this.GetPublicFolderEmailAddressesOperationCompleted == null)) - { + public void GetPublicFolderEmailAddressesAsync(string organizationId, string folder, object userState) { + if ((this.GetPublicFolderEmailAddressesOperationCompleted == null)) { this.GetPublicFolderEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFolderEmailAddressesOperationCompleted); } this.InvokeAsync("GetPublicFolderEmailAddresses", new object[] { organizationId, folder}, this.GetPublicFolderEmailAddressesOperationCompleted, userState); } - - private void OnGetPublicFolderEmailAddressesOperationCompleted(object arg) - { - if ((this.GetPublicFolderEmailAddressesCompleted != null)) - { + + private void OnGetPublicFolderEmailAddressesOperationCompleted(object arg) { + if ((this.GetPublicFolderEmailAddressesCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFolderEmailAddressesCompleted(this, new GetPublicFolderEmailAddressesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderEmailAddresses", 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 SetPublicFolderEmailAddresses(string organizationId, string folder, string[] emailAddresses) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderEmailAddresses", 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 SetPublicFolderEmailAddresses(string organizationId, string folder, string[] emailAddresses) { this.Invoke("SetPublicFolderEmailAddresses", new object[] { organizationId, folder, emailAddresses}); } - + /// - public System.IAsyncResult BeginSetPublicFolderEmailAddresses(string organizationId, string folder, string[] emailAddresses, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetPublicFolderEmailAddresses(string organizationId, string folder, string[] emailAddresses, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetPublicFolderEmailAddresses", new object[] { organizationId, folder, emailAddresses}, callback, asyncState); } - + /// - public void EndSetPublicFolderEmailAddresses(System.IAsyncResult asyncResult) - { + public void EndSetPublicFolderEmailAddresses(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetPublicFolderEmailAddressesAsync(string organizationId, string folder, string[] emailAddresses) - { + public void SetPublicFolderEmailAddressesAsync(string organizationId, string folder, string[] emailAddresses) { this.SetPublicFolderEmailAddressesAsync(organizationId, folder, emailAddresses, null); } - + /// - public void SetPublicFolderEmailAddressesAsync(string organizationId, string folder, string[] emailAddresses, object userState) - { - if ((this.SetPublicFolderEmailAddressesOperationCompleted == null)) - { + public void SetPublicFolderEmailAddressesAsync(string organizationId, string folder, string[] emailAddresses, object userState) { + if ((this.SetPublicFolderEmailAddressesOperationCompleted == null)) { this.SetPublicFolderEmailAddressesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPublicFolderEmailAddressesOperationCompleted); } this.InvokeAsync("SetPublicFolderEmailAddresses", new object[] { @@ -5093,53 +3690,45 @@ namespace WebsitePanel.Providers.Exchange folder, emailAddresses}, this.SetPublicFolderEmailAddressesOperationCompleted, userState); } - - private void OnSetPublicFolderEmailAddressesOperationCompleted(object arg) - { - if ((this.SetPublicFolderEmailAddressesCompleted != null)) - { + + private void OnSetPublicFolderEmailAddressesOperationCompleted(object arg) { + if ((this.SetPublicFolderEmailAddressesCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetPublicFolderEmailAddressesCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderPrimaryEmailAddress", 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 SetPublicFolderPrimaryEmailAddress(string organizationId, string folder, string emailAddress) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetPublicFolderPrimaryEmailAddress", 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 SetPublicFolderPrimaryEmailAddress(string organizationId, string folder, string emailAddress) { this.Invoke("SetPublicFolderPrimaryEmailAddress", new object[] { organizationId, folder, emailAddress}); } - + /// - public System.IAsyncResult BeginSetPublicFolderPrimaryEmailAddress(string organizationId, string folder, string emailAddress, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetPublicFolderPrimaryEmailAddress(string organizationId, string folder, string emailAddress, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetPublicFolderPrimaryEmailAddress", new object[] { organizationId, folder, emailAddress}, callback, asyncState); } - + /// - public void EndSetPublicFolderPrimaryEmailAddress(System.IAsyncResult asyncResult) - { + public void EndSetPublicFolderPrimaryEmailAddress(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetPublicFolderPrimaryEmailAddressAsync(string organizationId, string folder, string emailAddress) - { + public void SetPublicFolderPrimaryEmailAddressAsync(string organizationId, string folder, string emailAddress) { this.SetPublicFolderPrimaryEmailAddressAsync(organizationId, folder, emailAddress, null); } - + /// - public void SetPublicFolderPrimaryEmailAddressAsync(string organizationId, string folder, string emailAddress, object userState) - { - if ((this.SetPublicFolderPrimaryEmailAddressOperationCompleted == null)) - { + public void SetPublicFolderPrimaryEmailAddressAsync(string organizationId, string folder, string emailAddress, object userState) { + if ((this.SetPublicFolderPrimaryEmailAddressOperationCompleted == null)) { this.SetPublicFolderPrimaryEmailAddressOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetPublicFolderPrimaryEmailAddressOperationCompleted); } this.InvokeAsync("SetPublicFolderPrimaryEmailAddress", new object[] { @@ -5147,1504 +3736,2173 @@ namespace WebsitePanel.Providers.Exchange folder, emailAddress}, this.SetPublicFolderPrimaryEmailAddressOperationCompleted, userState); } - - private void OnSetPublicFolderPrimaryEmailAddressOperationCompleted(object arg) - { - if ((this.SetPublicFolderPrimaryEmailAddressCompleted != null)) - { + + private void OnSetPublicFolderPrimaryEmailAddressOperationCompleted(object arg) { + if ((this.SetPublicFolderPrimaryEmailAddressCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetPublicFolderPrimaryEmailAddressCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFoldersStatistics", 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 ExchangeItemStatistics[] GetPublicFoldersStatistics(string organizationId, string[] folders) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFoldersStatistics", 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 ExchangeItemStatistics[] GetPublicFoldersStatistics(string organizationId, string[] folders) { object[] results = this.Invoke("GetPublicFoldersStatistics", new object[] { organizationId, folders}); return ((ExchangeItemStatistics[])(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFoldersStatistics(string organizationId, string[] folders, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetPublicFoldersStatistics(string organizationId, string[] folders, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetPublicFoldersStatistics", new object[] { organizationId, folders}, callback, asyncState); } - + /// - public ExchangeItemStatistics[] EndGetPublicFoldersStatistics(System.IAsyncResult asyncResult) - { + public ExchangeItemStatistics[] EndGetPublicFoldersStatistics(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((ExchangeItemStatistics[])(results[0])); } - + /// - public void GetPublicFoldersStatisticsAsync(string organizationId, string[] folders) - { + public void GetPublicFoldersStatisticsAsync(string organizationId, string[] folders) { this.GetPublicFoldersStatisticsAsync(organizationId, folders, null); } - + /// - public void GetPublicFoldersStatisticsAsync(string organizationId, string[] folders, object userState) - { - if ((this.GetPublicFoldersStatisticsOperationCompleted == null)) - { + public void GetPublicFoldersStatisticsAsync(string organizationId, string[] folders, object userState) { + if ((this.GetPublicFoldersStatisticsOperationCompleted == null)) { this.GetPublicFoldersStatisticsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFoldersStatisticsOperationCompleted); } this.InvokeAsync("GetPublicFoldersStatistics", new object[] { organizationId, folders}, this.GetPublicFoldersStatisticsOperationCompleted, userState); } - - private void OnGetPublicFoldersStatisticsOperationCompleted(object arg) - { - if ((this.GetPublicFoldersStatisticsCompleted != null)) - { + + private void OnGetPublicFoldersStatisticsOperationCompleted(object arg) { + if ((this.GetPublicFoldersStatisticsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFoldersStatisticsCompleted(this, new GetPublicFoldersStatisticsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFoldersRecursive", 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 string[] GetPublicFoldersRecursive(string organizationId, string parent) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFoldersRecursive", 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 string[] GetPublicFoldersRecursive(string organizationId, string parent) { object[] results = this.Invoke("GetPublicFoldersRecursive", new object[] { organizationId, parent}); return ((string[])(results[0])); } - + /// - public System.IAsyncResult BeginGetPublicFoldersRecursive(string organizationId, string parent, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetPublicFoldersRecursive(string organizationId, string parent, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetPublicFoldersRecursive", new object[] { organizationId, parent}, callback, asyncState); } - + /// - public string[] EndGetPublicFoldersRecursive(System.IAsyncResult asyncResult) - { + public string[] EndGetPublicFoldersRecursive(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string[])(results[0])); } - + /// - public void GetPublicFoldersRecursiveAsync(string organizationId, string parent) - { + public void GetPublicFoldersRecursiveAsync(string organizationId, string parent) { this.GetPublicFoldersRecursiveAsync(organizationId, parent, null); } - + /// - public void GetPublicFoldersRecursiveAsync(string organizationId, string parent, object userState) - { - if ((this.GetPublicFoldersRecursiveOperationCompleted == null)) - { + public void GetPublicFoldersRecursiveAsync(string organizationId, string parent, object userState) { + if ((this.GetPublicFoldersRecursiveOperationCompleted == null)) { this.GetPublicFoldersRecursiveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFoldersRecursiveOperationCompleted); } this.InvokeAsync("GetPublicFoldersRecursive", new object[] { organizationId, parent}, this.GetPublicFoldersRecursiveOperationCompleted, userState); } - - private void OnGetPublicFoldersRecursiveOperationCompleted(object arg) - { - if ((this.GetPublicFoldersRecursiveCompleted != null)) - { + + private void OnGetPublicFoldersRecursiveOperationCompleted(object arg) { + if ((this.GetPublicFoldersRecursiveCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPublicFoldersRecursiveCompleted(this, new GetPublicFoldersRecursiveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - public new void CancelAsync(object userState) - { + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetPublicFolderSize", 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 long GetPublicFolderSize(string organizationId, string folder) { + object[] results = this.Invoke("GetPublicFolderSize", new object[] { + organizationId, + folder}); + return ((long)(results[0])); + } + + /// + public System.IAsyncResult BeginGetPublicFolderSize(string organizationId, string folder, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetPublicFolderSize", new object[] { + organizationId, + folder}, callback, asyncState); + } + + /// + public long EndGetPublicFolderSize(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((long)(results[0])); + } + + /// + public void GetPublicFolderSizeAsync(string organizationId, string folder) { + this.GetPublicFolderSizeAsync(organizationId, folder, null); + } + + /// + public void GetPublicFolderSizeAsync(string organizationId, string folder, object userState) { + if ((this.GetPublicFolderSizeOperationCompleted == null)) { + this.GetPublicFolderSizeOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPublicFolderSizeOperationCompleted); + } + this.InvokeAsync("GetPublicFolderSize", new object[] { + organizationId, + folder}, this.GetPublicFolderSizeOperationCompleted, userState); + } + + private void OnGetPublicFolderSizeOperationCompleted(object arg) { + if ((this.GetPublicFolderSizeCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetPublicFolderSizeCompleted(this, new GetPublicFolderSizeCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationRootPublicFolder", 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 string CreateOrganizationRootPublicFolder(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain) { + object[] results = this.Invoke("CreateOrganizationRootPublicFolder", new object[] { + organizationId, + organizationDistinguishedName, + securityGroup, + organizationDomain}); + return ((string)(results[0])); + } + + /// + public System.IAsyncResult BeginCreateOrganizationRootPublicFolder(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("CreateOrganizationRootPublicFolder", new object[] { + organizationId, + organizationDistinguishedName, + securityGroup, + organizationDomain}, callback, asyncState); + } + + /// + public string EndCreateOrganizationRootPublicFolder(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((string)(results[0])); + } + + /// + public void CreateOrganizationRootPublicFolderAsync(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain) { + this.CreateOrganizationRootPublicFolderAsync(organizationId, organizationDistinguishedName, securityGroup, organizationDomain, null); + } + + /// + public void CreateOrganizationRootPublicFolderAsync(string organizationId, string organizationDistinguishedName, string securityGroup, string organizationDomain, object userState) { + if ((this.CreateOrganizationRootPublicFolderOperationCompleted == null)) { + this.CreateOrganizationRootPublicFolderOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationRootPublicFolderOperationCompleted); + } + this.InvokeAsync("CreateOrganizationRootPublicFolder", new object[] { + organizationId, + organizationDistinguishedName, + securityGroup, + organizationDomain}, this.CreateOrganizationRootPublicFolderOperationCompleted, userState); + } + + private void OnCreateOrganizationRootPublicFolderOperationCompleted(object arg) { + if ((this.CreateOrganizationRootPublicFolderCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.CreateOrganizationRootPublicFolderCompleted(this, new CreateOrganizationRootPublicFolderCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CreateOrganizationActiveSyncPolicy", 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 CreateOrganizationActiveSyncPolicy(string organizationId) { + this.Invoke("CreateOrganizationActiveSyncPolicy", new object[] { + organizationId}); + } + + /// + public System.IAsyncResult BeginCreateOrganizationActiveSyncPolicy(string organizationId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("CreateOrganizationActiveSyncPolicy", new object[] { + organizationId}, callback, asyncState); + } + + /// + public void EndCreateOrganizationActiveSyncPolicy(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void CreateOrganizationActiveSyncPolicyAsync(string organizationId) { + this.CreateOrganizationActiveSyncPolicyAsync(organizationId, null); + } + + /// + public void CreateOrganizationActiveSyncPolicyAsync(string organizationId, object userState) { + if ((this.CreateOrganizationActiveSyncPolicyOperationCompleted == null)) { + this.CreateOrganizationActiveSyncPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationActiveSyncPolicyOperationCompleted); + } + this.InvokeAsync("CreateOrganizationActiveSyncPolicy", new object[] { + organizationId}, this.CreateOrganizationActiveSyncPolicyOperationCompleted, userState); + } + + private void OnCreateOrganizationActiveSyncPolicyOperationCompleted(object arg) { + if ((this.CreateOrganizationActiveSyncPolicyCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.CreateOrganizationActiveSyncPolicyCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetActiveSyncPolicy", 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 ExchangeActiveSyncPolicy GetActiveSyncPolicy(string organizationId) { + object[] results = this.Invoke("GetActiveSyncPolicy", new object[] { + organizationId}); + return ((ExchangeActiveSyncPolicy)(results[0])); + } + + /// + public System.IAsyncResult BeginGetActiveSyncPolicy(string organizationId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetActiveSyncPolicy", new object[] { + organizationId}, callback, asyncState); + } + + /// + public ExchangeActiveSyncPolicy EndGetActiveSyncPolicy(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ExchangeActiveSyncPolicy)(results[0])); + } + + /// + public void GetActiveSyncPolicyAsync(string organizationId) { + this.GetActiveSyncPolicyAsync(organizationId, null); + } + + /// + public void GetActiveSyncPolicyAsync(string organizationId, object userState) { + if ((this.GetActiveSyncPolicyOperationCompleted == null)) { + this.GetActiveSyncPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetActiveSyncPolicyOperationCompleted); + } + this.InvokeAsync("GetActiveSyncPolicy", new object[] { + organizationId}, this.GetActiveSyncPolicyOperationCompleted, userState); + } + + private void OnGetActiveSyncPolicyOperationCompleted(object arg) { + if ((this.GetActiveSyncPolicyCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetActiveSyncPolicyCompleted(this, new GetActiveSyncPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/SetActiveSyncPolicy", 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 SetActiveSyncPolicy( + string id, + bool allowNonProvisionableDevices, + bool attachmentsEnabled, + int maxAttachmentSizeKB, + bool uncAccessEnabled, + bool wssAccessEnabled, + bool devicePasswordEnabled, + bool alphanumericPasswordRequired, + bool passwordRecoveryEnabled, + bool deviceEncryptionEnabled, + bool allowSimplePassword, + int maxPasswordFailedAttempts, + int minPasswordLength, + int inactivityLockMin, + int passwordExpirationDays, + int passwordHistory, + int refreshInterval) { + this.Invoke("SetActiveSyncPolicy", new object[] { + id, + allowNonProvisionableDevices, + attachmentsEnabled, + maxAttachmentSizeKB, + uncAccessEnabled, + wssAccessEnabled, + devicePasswordEnabled, + alphanumericPasswordRequired, + passwordRecoveryEnabled, + deviceEncryptionEnabled, + allowSimplePassword, + maxPasswordFailedAttempts, + minPasswordLength, + inactivityLockMin, + passwordExpirationDays, + passwordHistory, + refreshInterval}); + } + + /// + public System.IAsyncResult BeginSetActiveSyncPolicy( + string id, + bool allowNonProvisionableDevices, + bool attachmentsEnabled, + int maxAttachmentSizeKB, + bool uncAccessEnabled, + bool wssAccessEnabled, + bool devicePasswordEnabled, + bool alphanumericPasswordRequired, + bool passwordRecoveryEnabled, + bool deviceEncryptionEnabled, + bool allowSimplePassword, + int maxPasswordFailedAttempts, + int minPasswordLength, + int inactivityLockMin, + int passwordExpirationDays, + int passwordHistory, + int refreshInterval, + System.AsyncCallback callback, + object asyncState) { + return this.BeginInvoke("SetActiveSyncPolicy", new object[] { + id, + allowNonProvisionableDevices, + attachmentsEnabled, + maxAttachmentSizeKB, + uncAccessEnabled, + wssAccessEnabled, + devicePasswordEnabled, + alphanumericPasswordRequired, + passwordRecoveryEnabled, + deviceEncryptionEnabled, + allowSimplePassword, + maxPasswordFailedAttempts, + minPasswordLength, + inactivityLockMin, + passwordExpirationDays, + passwordHistory, + refreshInterval}, callback, asyncState); + } + + /// + public void EndSetActiveSyncPolicy(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void SetActiveSyncPolicyAsync( + string id, + bool allowNonProvisionableDevices, + bool attachmentsEnabled, + int maxAttachmentSizeKB, + bool uncAccessEnabled, + bool wssAccessEnabled, + bool devicePasswordEnabled, + bool alphanumericPasswordRequired, + bool passwordRecoveryEnabled, + bool deviceEncryptionEnabled, + bool allowSimplePassword, + int maxPasswordFailedAttempts, + int minPasswordLength, + int inactivityLockMin, + int passwordExpirationDays, + int passwordHistory, + int refreshInterval) { + this.SetActiveSyncPolicyAsync(id, allowNonProvisionableDevices, attachmentsEnabled, maxAttachmentSizeKB, uncAccessEnabled, wssAccessEnabled, devicePasswordEnabled, alphanumericPasswordRequired, passwordRecoveryEnabled, deviceEncryptionEnabled, allowSimplePassword, maxPasswordFailedAttempts, minPasswordLength, inactivityLockMin, passwordExpirationDays, passwordHistory, refreshInterval, null); + } + + /// + public void SetActiveSyncPolicyAsync( + string id, + bool allowNonProvisionableDevices, + bool attachmentsEnabled, + int maxAttachmentSizeKB, + bool uncAccessEnabled, + bool wssAccessEnabled, + bool devicePasswordEnabled, + bool alphanumericPasswordRequired, + bool passwordRecoveryEnabled, + bool deviceEncryptionEnabled, + bool allowSimplePassword, + int maxPasswordFailedAttempts, + int minPasswordLength, + int inactivityLockMin, + int passwordExpirationDays, + int passwordHistory, + int refreshInterval, + object userState) { + if ((this.SetActiveSyncPolicyOperationCompleted == null)) { + this.SetActiveSyncPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetActiveSyncPolicyOperationCompleted); + } + this.InvokeAsync("SetActiveSyncPolicy", new object[] { + id, + allowNonProvisionableDevices, + attachmentsEnabled, + maxAttachmentSizeKB, + uncAccessEnabled, + wssAccessEnabled, + devicePasswordEnabled, + alphanumericPasswordRequired, + passwordRecoveryEnabled, + deviceEncryptionEnabled, + allowSimplePassword, + maxPasswordFailedAttempts, + minPasswordLength, + inactivityLockMin, + passwordExpirationDays, + passwordHistory, + refreshInterval}, this.SetActiveSyncPolicyOperationCompleted, userState); + } + + private void OnSetActiveSyncPolicyOperationCompleted(object arg) { + if ((this.SetActiveSyncPolicyCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.SetActiveSyncPolicyCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMobileDevices", 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 ExchangeMobileDevice[] GetMobileDevices(string accountName) { + object[] results = this.Invoke("GetMobileDevices", new object[] { + accountName}); + return ((ExchangeMobileDevice[])(results[0])); + } + + /// + public System.IAsyncResult BeginGetMobileDevices(string accountName, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetMobileDevices", new object[] { + accountName}, callback, asyncState); + } + + /// + public ExchangeMobileDevice[] EndGetMobileDevices(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ExchangeMobileDevice[])(results[0])); + } + + /// + public void GetMobileDevicesAsync(string accountName) { + this.GetMobileDevicesAsync(accountName, null); + } + + /// + public void GetMobileDevicesAsync(string accountName, object userState) { + if ((this.GetMobileDevicesOperationCompleted == null)) { + this.GetMobileDevicesOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMobileDevicesOperationCompleted); + } + this.InvokeAsync("GetMobileDevices", new object[] { + accountName}, this.GetMobileDevicesOperationCompleted, userState); + } + + private void OnGetMobileDevicesOperationCompleted(object arg) { + if ((this.GetMobileDevicesCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetMobileDevicesCompleted(this, new GetMobileDevicesCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/GetMobileDevice", 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 ExchangeMobileDevice GetMobileDevice(string id) { + object[] results = this.Invoke("GetMobileDevice", new object[] { + id}); + return ((ExchangeMobileDevice)(results[0])); + } + + /// + public System.IAsyncResult BeginGetMobileDevice(string id, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("GetMobileDevice", new object[] { + id}, callback, asyncState); + } + + /// + public ExchangeMobileDevice EndGetMobileDevice(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ExchangeMobileDevice)(results[0])); + } + + /// + public void GetMobileDeviceAsync(string id) { + this.GetMobileDeviceAsync(id, null); + } + + /// + public void GetMobileDeviceAsync(string id, object userState) { + if ((this.GetMobileDeviceOperationCompleted == null)) { + this.GetMobileDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetMobileDeviceOperationCompleted); + } + this.InvokeAsync("GetMobileDevice", new object[] { + id}, this.GetMobileDeviceOperationCompleted, userState); + } + + private void OnGetMobileDeviceOperationCompleted(object arg) { + if ((this.GetMobileDeviceCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.GetMobileDeviceCompleted(this, new GetMobileDeviceCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/WipeDataFromDevice", 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 WipeDataFromDevice(string id) { + this.Invoke("WipeDataFromDevice", new object[] { + id}); + } + + /// + public System.IAsyncResult BeginWipeDataFromDevice(string id, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("WipeDataFromDevice", new object[] { + id}, callback, asyncState); + } + + /// + public void EndWipeDataFromDevice(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void WipeDataFromDeviceAsync(string id) { + this.WipeDataFromDeviceAsync(id, null); + } + + /// + public void WipeDataFromDeviceAsync(string id, object userState) { + if ((this.WipeDataFromDeviceOperationCompleted == null)) { + this.WipeDataFromDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnWipeDataFromDeviceOperationCompleted); + } + this.InvokeAsync("WipeDataFromDevice", new object[] { + id}, this.WipeDataFromDeviceOperationCompleted, userState); + } + + private void OnWipeDataFromDeviceOperationCompleted(object arg) { + if ((this.WipeDataFromDeviceCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.WipeDataFromDeviceCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/CancelRemoteWipeRequest", 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 CancelRemoteWipeRequest(string id) { + this.Invoke("CancelRemoteWipeRequest", new object[] { + id}); + } + + /// + public System.IAsyncResult BeginCancelRemoteWipeRequest(string id, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("CancelRemoteWipeRequest", new object[] { + id}, callback, asyncState); + } + + /// + public void EndCancelRemoteWipeRequest(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void CancelRemoteWipeRequestAsync(string id) { + this.CancelRemoteWipeRequestAsync(id, null); + } + + /// + public void CancelRemoteWipeRequestAsync(string id, object userState) { + if ((this.CancelRemoteWipeRequestOperationCompleted == null)) { + this.CancelRemoteWipeRequestOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCancelRemoteWipeRequestOperationCompleted); + } + this.InvokeAsync("CancelRemoteWipeRequest", new object[] { + id}, this.CancelRemoteWipeRequestOperationCompleted, userState); + } + + private void OnCancelRemoteWipeRequestOperationCompleted(object arg) { + if ((this.CancelRemoteWipeRequestCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.CancelRemoteWipeRequestCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/RemoveDevice", 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 RemoveDevice(string id) { + this.Invoke("RemoveDevice", new object[] { + id}); + } + + /// + public System.IAsyncResult BeginRemoveDevice(string id, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("RemoveDevice", new object[] { + id}, callback, asyncState); + } + + /// + public void EndRemoveDevice(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void RemoveDeviceAsync(string id) { + this.RemoveDeviceAsync(id, null); + } + + /// + public void RemoveDeviceAsync(string id, object userState) { + if ((this.RemoveDeviceOperationCompleted == null)) { + this.RemoveDeviceOperationCompleted = new System.Threading.SendOrPostCallback(this.OnRemoveDeviceOperationCompleted); + } + this.InvokeAsync("RemoveDevice", new object[] { + id}, this.RemoveDeviceOperationCompleted, userState); + } + + private void OnRemoveDeviceOperationCompleted(object arg) { + if ((this.RemoveDeviceCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.RemoveDeviceCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://smbsaas/websitepanel/server/ExportMailBox", 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 ResultObject ExportMailBox(string organizationId, string accountName, string storagePath) { + object[] results = this.Invoke("ExportMailBox", new object[] { + organizationId, + accountName, + storagePath}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginExportMailBox(string organizationId, string accountName, string storagePath, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("ExportMailBox", new object[] { + organizationId, + accountName, + storagePath}, callback, asyncState); + } + + /// + public ResultObject EndExportMailBox(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void ExportMailBoxAsync(string organizationId, string accountName, string storagePath) { + this.ExportMailBoxAsync(organizationId, accountName, storagePath, null); + } + + /// + public void ExportMailBoxAsync(string organizationId, string accountName, string storagePath, object userState) { + if ((this.ExportMailBoxOperationCompleted == null)) { + this.ExportMailBoxOperationCompleted = new System.Threading.SendOrPostCallback(this.OnExportMailBoxOperationCompleted); + } + this.InvokeAsync("ExportMailBox", new object[] { + organizationId, + accountName, + storagePath}, this.ExportMailBoxOperationCompleted, userState); + } + + private void OnExportMailBoxOperationCompleted(object arg) { + if ((this.ExportMailBoxCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.ExportMailBoxCompleted(this, new ExportMailBoxCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [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 ResultObject SetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) { + object[] results = this.Invoke("SetMailBoxArchiving", new object[] { + organizationId, + accountName, + archive, + archiveQuotaKB, + archiveWarningQuotaKB, + RetentionPolicy}); + return ((ResultObject)(results[0])); + } + + /// + 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); + } + + /// + public ResultObject EndSetMailBoxArchiving(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void SetMailBoxArchivingAsync(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) { + this.SetMailBoxArchivingAsync(organizationId, accountName, archive, archiveQuotaKB, archiveWarningQuotaKB, RetentionPolicy, null); + } + + /// + 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 SetMailBoxArchivingCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [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 ResultObject SetRetentionPolicyTag(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction) { + object[] results = this.Invoke("SetRetentionPolicyTag", new object[] { + Identity, + Type, + AgeLimitForRetention, + RetentionAction}); + return ((ResultObject)(results[0])); + } + + /// + 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); + } + + /// + public ResultObject EndSetRetentionPolicyTag(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void SetRetentionPolicyTagAsync(string Identity, ExchangeRetentionPolicyTagType Type, int AgeLimitForRetention, ExchangeRetentionPolicyTagAction RetentionAction) { + this.SetRetentionPolicyTagAsync(Identity, Type, AgeLimitForRetention, RetentionAction, null); + } + + /// + 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 SetRetentionPolicyTagCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [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 ResultObject RemoveRetentionPolicyTag(string Identity) { + object[] results = this.Invoke("RemoveRetentionPolicyTag", new object[] { + Identity}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginRemoveRetentionPolicyTag(string Identity, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("RemoveRetentionPolicyTag", new object[] { + Identity}, callback, asyncState); + } + + /// + public ResultObject EndRemoveRetentionPolicyTag(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void RemoveRetentionPolicyTagAsync(string Identity) { + this.RemoveRetentionPolicyTagAsync(Identity, null); + } + + /// + 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 RemoveRetentionPolicyTagCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [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 ResultObject SetRetentionPolicy(string Identity, string[] RetentionPolicyTagLinks) { + object[] results = this.Invoke("SetRetentionPolicy", new object[] { + Identity, + RetentionPolicyTagLinks}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginSetRetentionPolicy(string Identity, string[] RetentionPolicyTagLinks, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("SetRetentionPolicy", new object[] { + Identity, + RetentionPolicyTagLinks}, callback, asyncState); + } + + /// + public ResultObject EndSetRetentionPolicy(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void SetRetentionPolicyAsync(string Identity, string[] RetentionPolicyTagLinks) { + this.SetRetentionPolicyAsync(Identity, RetentionPolicyTagLinks, null); + } + + /// + 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 SetRetentionPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [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 ResultObject RemoveRetentionPolicy(string Identity) { + object[] results = this.Invoke("RemoveRetentionPolicy", new object[] { + Identity}); + return ((ResultObject)(results[0])); + } + + /// + public System.IAsyncResult BeginRemoveRetentionPolicy(string Identity, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("RemoveRetentionPolicy", new object[] { + Identity}, callback, asyncState); + } + + /// + public ResultObject EndRemoveRetentionPolicy(System.IAsyncResult asyncResult) { + object[] results = this.EndInvoke(asyncResult); + return ((ResultObject)(results[0])); + } + + /// + public void RemoveRetentionPolicyAsync(string Identity) { + this.RemoveRetentionPolicyAsync(Identity, null); + } + + /// + 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 RemoveRetentionPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + public new void CancelAsync(object userState) { base.CancelAsync(userState); } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetPublicFolderSizeCompletedEventHandler(object sender, GetPublicFolderSizeCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFolderSizeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal GetPublicFolderSizeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// - public long Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((long)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CreateOrganizationRootPublicFolderCompletedEventHandler(object sender, CreateOrganizationRootPublicFolderCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateOrganizationRootPublicFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal CreateOrganizationRootPublicFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// - public string Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((string)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CreateOrganizationActiveSyncPolicyCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetActiveSyncPolicyCompletedEventHandler(object sender, GetActiveSyncPolicyCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetActiveSyncPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal GetActiveSyncPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// - public ExchangeActiveSyncPolicy Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((ExchangeActiveSyncPolicy)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void SetActiveSyncPolicyCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetMobileDevicesCompletedEventHandler(object sender, GetMobileDevicesCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMobileDevicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal GetMobileDevicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// - public ExchangeMobileDevice[] Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((ExchangeMobileDevice[])(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void GetMobileDeviceCompletedEventHandler(object sender, GetMobileDeviceCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMobileDeviceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal GetMobileDeviceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// - public ExchangeMobileDevice Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((ExchangeMobileDevice)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void WipeDataFromDeviceCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void CancelRemoteWipeRequestCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void RemoveDeviceCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void SetMailBoxArchivingCompletedEventHandler(object sender, SetMailBoxArchivingCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetMailBoxArchivingCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal SetMailBoxArchivingCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// - public ResultObject Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void SetRetentionPolicyTagCompletedEventHandler(object sender, SetRetentionPolicyTagCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetRetentionPolicyTagCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal SetRetentionPolicyTagCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// - public ResultObject Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void RemoveRetentionPolicyTagCompletedEventHandler(object sender, RemoveRetentionPolicyTagCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveRetentionPolicyTagCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal RemoveRetentionPolicyTagCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// - public ResultObject Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void SetRetentionPolicyCompletedEventHandler(object sender, SetRetentionPolicyCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetRetentionPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal SetRetentionPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// - public ResultObject Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - public delegate void RemoveRetentionPolicyCompletedEventHandler(object sender, RemoveRetentionPolicyCompletedEventArgs e); - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] - [System.Diagnostics.DebuggerStepThroughAttribute()] - [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveRetentionPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - - private object[] results; - - internal RemoveRetentionPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { - this.results = results; - } - - /// - public ResultObject Result - { - get - { - this.RaiseExceptionIfNecessary(); - return ((ResultObject)(this.results[0])); - } - } - } - - /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CheckAccountCredentialsCompletedEventHandler(object sender, CheckAccountCredentialsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CheckAccountCredentialsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CheckAccountCredentialsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CheckAccountCredentialsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CheckAccountCredentialsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public bool Result - { - get - { + public bool Result { + get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void ExtendToExchangeOrganizationCompletedEventHandler(object sender, ExtendToExchangeOrganizationCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class ExtendToExchangeOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class ExtendToExchangeOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal ExtendToExchangeOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal ExtendToExchangeOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public Organization Result - { - get - { + public Organization Result { + get { this.RaiseExceptionIfNecessary(); return ((Organization)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateMailEnableUserCompletedEventHandler(object sender, CreateMailEnableUserCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateMailEnableUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CreateMailEnableUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CreateMailEnableUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CreateMailEnableUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public string Result - { - get - { + public string Result { + get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateOrganizationOfflineAddressBookCompletedEventHandler(object sender, CreateOrganizationOfflineAddressBookCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateOrganizationOfflineAddressBookCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CreateOrganizationOfflineAddressBookCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CreateOrganizationOfflineAddressBookCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CreateOrganizationOfflineAddressBookCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public Organization Result - { - get - { + public Organization Result { + get { this.RaiseExceptionIfNecessary(); return ((Organization)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void UpdateOrganizationOfflineAddressBookCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetOABVirtualDirectoryCompletedEventHandler(object sender, GetOABVirtualDirectoryCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetOABVirtualDirectoryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetOABVirtualDirectoryCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetOABVirtualDirectoryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetOABVirtualDirectoryCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public string Result - { - get - { + public string Result { + get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateOrganizationAddressBookPolicyCompletedEventHandler(object sender, CreateOrganizationAddressBookPolicyCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateOrganizationAddressBookPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CreateOrganizationAddressBookPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CreateOrganizationAddressBookPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CreateOrganizationAddressBookPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public Organization Result - { - get - { + public Organization Result { + get { this.RaiseExceptionIfNecessary(); return ((Organization)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteOrganizationCompletedEventHandler(object sender, DeleteOrganizationCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DeleteOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class DeleteOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal DeleteOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal DeleteOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public bool Result - { - get - { + public bool Result { + get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetOrganizationStorageLimitsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetMailboxesStatisticsCompletedEventHandler(object sender, GetMailboxesStatisticsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxesStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetMailboxesStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetMailboxesStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetMailboxesStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeItemStatistics[] Result - { - get - { + public ExchangeItemStatistics[] Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeItemStatistics[])(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void AddAuthoritativeDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void ChangeAcceptedDomainTypeCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetAuthoritativeDomainsCompletedEventHandler(object sender, GetAuthoritativeDomainsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetAuthoritativeDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetAuthoritativeDomainsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetAuthoritativeDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetAuthoritativeDomainsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public string[] Result - { - get - { + public string[] Result { + get { this.RaiseExceptionIfNecessary(); return ((string[])(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteAuthoritativeDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteMailboxCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DisableMailboxCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetMailboxGeneralSettingsCompletedEventHandler(object sender, GetMailboxGeneralSettingsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetMailboxGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetMailboxGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetMailboxGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeMailbox Result - { - get - { + public ExchangeMailbox Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeMailbox)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetMailboxGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetMailboxMailFlowSettingsCompletedEventHandler(object sender, GetMailboxMailFlowSettingsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetMailboxMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetMailboxMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetMailboxMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeMailbox Result - { - get - { + public ExchangeMailbox Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeMailbox)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetMailboxMailFlowSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetMailboxAdvancedSettingsCompletedEventHandler(object sender, GetMailboxAdvancedSettingsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxAdvancedSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetMailboxAdvancedSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetMailboxAdvancedSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetMailboxAdvancedSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeMailbox Result - { - get - { + public ExchangeMailbox Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeMailbox)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetMailboxAdvancedSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetMailboxEmailAddressesCompletedEventHandler(object sender, GetMailboxEmailAddressesCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetMailboxEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetMailboxEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetMailboxEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeEmailAddress[] Result - { - get - { + public ExchangeEmailAddress[] Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeEmailAddress[])(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetMailboxEmailAddressesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetMailboxPrimaryEmailAddressCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetMailboxPermissionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetMailboxPermissionsCompletedEventHandler(object sender, GetMailboxPermissionsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetMailboxPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetMailboxPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetMailboxPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeMailbox Result - { - get - { + public ExchangeMailbox Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeMailbox)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetMailboxStatisticsCompletedEventHandler(object sender, GetMailboxStatisticsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetMailboxStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetMailboxStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetMailboxStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetMailboxStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeMailboxStatistics Result - { - get - { + public ExchangeMailboxStatistics Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeMailboxStatistics)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetDefaultPublicFolderMailboxCompletedEventHandler(object sender, SetDefaultPublicFolderMailboxCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetDefaultPublicFolderMailboxCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class SetDefaultPublicFolderMailboxCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal SetDefaultPublicFolderMailboxCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal SetDefaultPublicFolderMailboxCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public string[] Result - { - get - { + public string[] Result { + get { this.RaiseExceptionIfNecessary(); return ((string[])(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateContactCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteContactCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetContactGeneralSettingsCompletedEventHandler(object sender, GetContactGeneralSettingsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetContactGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetContactGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetContactGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetContactGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeContact Result - { - get - { + public ExchangeContact Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeContact)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetContactGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetContactMailFlowSettingsCompletedEventHandler(object sender, GetContactMailFlowSettingsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetContactMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetContactMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetContactMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetContactMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeContact Result - { - get - { + public ExchangeContact Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeContact)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetContactMailFlowSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateDistributionListCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteDistributionListCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetDistributionListGeneralSettingsCompletedEventHandler(object sender, GetDistributionListGeneralSettingsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDistributionListGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetDistributionListGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetDistributionListGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetDistributionListGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeDistributionList Result - { - get - { + public ExchangeDistributionList Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeDistributionList)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetDistributionListGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetDistributionListMailFlowSettingsCompletedEventHandler(object sender, GetDistributionListMailFlowSettingsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDistributionListMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetDistributionListMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetDistributionListMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetDistributionListMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeDistributionList Result - { - get - { + public ExchangeDistributionList Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeDistributionList)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetDistributionListMailFlowSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetDistributionListEmailAddressesCompletedEventHandler(object sender, GetDistributionListEmailAddressesCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDistributionListEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetDistributionListEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetDistributionListEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetDistributionListEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeEmailAddress[] Result - { - get - { + public ExchangeEmailAddress[] Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeEmailAddress[])(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetDistributionListEmailAddressesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetDistributionListPrimaryEmailAddressCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetDistributionListPermissionsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetDistributionListPermissionsCompletedEventHandler(object sender, GetDistributionListPermissionsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDistributionListPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetDistributionListPermissionsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetDistributionListPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetDistributionListPermissionsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeDistributionList Result - { - get - { + public ExchangeDistributionList Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeDistributionList)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetDisclaimerCompletedEventHandler(object sender, SetDisclaimerCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class SetDisclaimerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class SetDisclaimerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal SetDisclaimerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal SetDisclaimerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public int Result - { - get - { + public int Result { + get { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void RemoveDisclaimerCompletedEventHandler(object sender, RemoveDisclaimerCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveDisclaimerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class RemoveDisclaimerCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal RemoveDisclaimerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal RemoveDisclaimerCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public int Result - { - get - { + public int Result { + get { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void AddDisclamerMemberCompletedEventHandler(object sender, AddDisclamerMemberCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class AddDisclamerMemberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class AddDisclamerMemberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal AddDisclamerMemberCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal AddDisclamerMemberCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public int Result - { - get - { + public int Result { + get { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void RemoveDisclamerMemberCompletedEventHandler(object sender, RemoveDisclamerMemberCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class RemoveDisclamerMemberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class RemoveDisclamerMemberCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal RemoveDisclamerMemberCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal RemoveDisclamerMemberCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public int Result - { - get - { + public int Result { + get { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreatePublicFolderCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeletePublicFolderCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void EnableMailPublicFolderCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DisableMailPublicFolderCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetPublicFolderGeneralSettingsCompletedEventHandler(object sender, GetPublicFolderGeneralSettingsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFolderGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetPublicFolderGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetPublicFolderGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetPublicFolderGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangePublicFolder Result - { - get - { + public ExchangePublicFolder Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangePublicFolder)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetPublicFolderGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetPublicFolderMailFlowSettingsCompletedEventHandler(object sender, GetPublicFolderMailFlowSettingsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFolderMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetPublicFolderMailFlowSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetPublicFolderMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetPublicFolderMailFlowSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangePublicFolder Result - { - get - { + public ExchangePublicFolder Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangePublicFolder)(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetPublicFolderMailFlowSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetPublicFolderEmailAddressesCompletedEventHandler(object sender, GetPublicFolderEmailAddressesCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFolderEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetPublicFolderEmailAddressesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetPublicFolderEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetPublicFolderEmailAddressesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeEmailAddress[] Result - { - get - { + public ExchangeEmailAddress[] Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeEmailAddress[])(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetPublicFolderEmailAddressesCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetPublicFolderPrimaryEmailAddressCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetPublicFoldersStatisticsCompletedEventHandler(object sender, GetPublicFoldersStatisticsCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFoldersStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetPublicFoldersStatisticsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetPublicFoldersStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetPublicFoldersStatisticsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public ExchangeItemStatistics[] Result - { - get - { + public ExchangeItemStatistics[] Result { + get { this.RaiseExceptionIfNecessary(); return ((ExchangeItemStatistics[])(this.results[0])); } } } - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetPublicFoldersRecursiveCompletedEventHandler(object sender, GetPublicFoldersRecursiveCompletedEventArgs e); - + /// - [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.42")] + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPublicFoldersRecursiveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetPublicFoldersRecursiveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetPublicFoldersRecursiveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetPublicFoldersRecursiveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public string[] Result - { - get - { + public string[] Result { + get { this.RaiseExceptionIfNecessary(); return ((string[])(this.results[0])); } } } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetPublicFolderSizeCompletedEventHandler(object sender, GetPublicFolderSizeCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetPublicFolderSizeCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetPublicFolderSizeCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public long Result { + get { + this.RaiseExceptionIfNecessary(); + return ((long)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void CreateOrganizationRootPublicFolderCompletedEventHandler(object sender, CreateOrganizationRootPublicFolderCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class CreateOrganizationRootPublicFolderCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal CreateOrganizationRootPublicFolderCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public string Result { + get { + this.RaiseExceptionIfNecessary(); + return ((string)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void CreateOrganizationActiveSyncPolicyCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetActiveSyncPolicyCompletedEventHandler(object sender, GetActiveSyncPolicyCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetActiveSyncPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetActiveSyncPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ExchangeActiveSyncPolicy Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ExchangeActiveSyncPolicy)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void SetActiveSyncPolicyCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetMobileDevicesCompletedEventHandler(object sender, GetMobileDevicesCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetMobileDevicesCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetMobileDevicesCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ExchangeMobileDevice[] Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ExchangeMobileDevice[])(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void GetMobileDeviceCompletedEventHandler(object sender, GetMobileDeviceCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class GetMobileDeviceCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal GetMobileDeviceCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ExchangeMobileDevice Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ExchangeMobileDevice)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void WipeDataFromDeviceCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void CancelRemoteWipeRequestCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void RemoveDeviceCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void ExportMailBoxCompletedEventHandler(object sender, ExportMailBoxCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class ExportMailBoxCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal ExportMailBoxCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ResultObject Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ResultObject)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void SetMailBoxArchivingCompletedEventHandler(object sender, SetMailBoxArchivingCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class SetMailBoxArchivingCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal SetMailBoxArchivingCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ResultObject Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ResultObject)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void SetRetentionPolicyTagCompletedEventHandler(object sender, SetRetentionPolicyTagCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class SetRetentionPolicyTagCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal SetRetentionPolicyTagCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ResultObject Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ResultObject)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void RemoveRetentionPolicyTagCompletedEventHandler(object sender, RemoveRetentionPolicyTagCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class RemoveRetentionPolicyTagCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal RemoveRetentionPolicyTagCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ResultObject Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ResultObject)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void SetRetentionPolicyCompletedEventHandler(object sender, SetRetentionPolicyCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class SetRetentionPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal SetRetentionPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ResultObject Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ResultObject)(this.results[0])); + } + } + } + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void RemoveRetentionPolicyCompletedEventHandler(object sender, RemoveRetentionPolicyCompletedEventArgs e); + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + [System.Diagnostics.DebuggerStepThroughAttribute()] + [System.ComponentModel.DesignerCategoryAttribute("code")] + public partial class RemoveRetentionPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + + private object[] results; + + internal RemoveRetentionPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { + this.results = results; + } + + /// + public ResultObject Result { + get { + this.RaiseExceptionIfNecessary(); + return ((ResultObject)(this.results[0])); + } + } + } } diff --git a/WebsitePanel/Sources/WebsitePanel.Server.Client/OrganizationProxy.cs b/WebsitePanel/Sources/WebsitePanel.Server.Client/OrganizationProxy.cs index d214f9c2..5e388760 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.Client/OrganizationProxy.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server.Client/OrganizationProxy.cs @@ -1,35 +1,7 @@ -// Copyright (c) 2015, 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. - //------------------------------------------------------------------------------ // // This code was generated by a tool. -// Runtime Version:2.0.50727.6400 +// Runtime Version:2.0.50727.7905 // // Changes to this file may cause incorrect behavior and will be lost if // the code is regenerated. @@ -39,327 +11,302 @@ // // This source code was auto-generated by wsdl, Version=2.0.50727.3038. // -namespace WebsitePanel.Providers.HostedSolution -{ +namespace WebsitePanel.Providers.HostedSolution { using System.Xml.Serialization; using System.Web.Services; using System.ComponentModel; using System.Web.Services.Protocols; using System; using System.Diagnostics; - - using WebsitePanel.Providers.Common; using WebsitePanel.Providers.ResultObjects; using WebsitePanel.Providers.OS; - - - + using WebsitePanel.Providers.Common; + + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - [System.Web.Services.WebServiceBindingAttribute(Name = "OrganizationsSoap", Namespace = "http://tempuri.org/")] + [System.Web.Services.WebServiceBindingAttribute(Name="OrganizationsSoap", Namespace="http://tempuri.org/")] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ResultObject))] [System.Xml.Serialization.XmlIncludeAttribute(typeof(ServiceProviderItem))] - public partial class Organizations : Microsoft.Web.Services3.WebServicesClientProtocol - { - + public partial class Organizations : Microsoft.Web.Services3.WebServicesClientProtocol { + public ServiceProviderSettingsSoapHeader ServiceProviderSettingsSoapHeaderValue; - + private System.Threading.SendOrPostCallback OrganizationExistsOperationCompleted; - + private System.Threading.SendOrPostCallback CreateOrganizationOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteOrganizationOperationCompleted; - + private System.Threading.SendOrPostCallback CreateUserOperationCompleted; - + + private System.Threading.SendOrPostCallback DisableUserOperationCompleted; + private System.Threading.SendOrPostCallback DeleteUserOperationCompleted; - + private System.Threading.SendOrPostCallback GetUserGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback CreateSecurityGroupOperationCompleted; - + private System.Threading.SendOrPostCallback GetSecurityGroupGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteSecurityGroupOperationCompleted; - + private System.Threading.SendOrPostCallback SetSecurityGroupGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback AddObjectToSecurityGroupOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteObjectFromSecurityGroupOperationCompleted; - + private System.Threading.SendOrPostCallback SetUserGeneralSettingsOperationCompleted; - + private System.Threading.SendOrPostCallback SetUserPasswordOperationCompleted; - + private System.Threading.SendOrPostCallback SetUserPrincipalNameOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteOrganizationDomainOperationCompleted; - + private System.Threading.SendOrPostCallback CreateOrganizationDomainOperationCompleted; - + private System.Threading.SendOrPostCallback GetPasswordPolicyOperationCompleted; - + private System.Threading.SendOrPostCallback GetSamAccountNameByUserPrincipalNameOperationCompleted; - + private System.Threading.SendOrPostCallback DoesSamAccountNameExistOperationCompleted; - + private System.Threading.SendOrPostCallback GetDriveMapsOperationCompleted; - + private System.Threading.SendOrPostCallback CreateMappedDriveOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteMappedDriveOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteMappedDriveByPathOperationCompleted; - + private System.Threading.SendOrPostCallback DeleteMappedDrivesGPOOperationCompleted; - + private System.Threading.SendOrPostCallback SetDriveMapsTargetingFilterOperationCompleted; - + private System.Threading.SendOrPostCallback ChangeDriveMapFolderPathOperationCompleted; - + /// - public Organizations() - { + public Organizations() { this.Url = "http://localhost:9003/Organizations.asmx"; } - + /// public event OrganizationExistsCompletedEventHandler OrganizationExistsCompleted; - + /// public event CreateOrganizationCompletedEventHandler CreateOrganizationCompleted; - + /// public event DeleteOrganizationCompletedEventHandler DeleteOrganizationCompleted; - + /// public event CreateUserCompletedEventHandler CreateUserCompleted; - + + /// + public event DisableUserCompletedEventHandler DisableUserCompleted; + /// public event DeleteUserCompletedEventHandler DeleteUserCompleted; - + /// public event GetUserGeneralSettingsCompletedEventHandler GetUserGeneralSettingsCompleted; - + /// public event CreateSecurityGroupCompletedEventHandler CreateSecurityGroupCompleted; - + /// public event GetSecurityGroupGeneralSettingsCompletedEventHandler GetSecurityGroupGeneralSettingsCompleted; - + /// public event DeleteSecurityGroupCompletedEventHandler DeleteSecurityGroupCompleted; - + /// public event SetSecurityGroupGeneralSettingsCompletedEventHandler SetSecurityGroupGeneralSettingsCompleted; - + /// public event AddObjectToSecurityGroupCompletedEventHandler AddObjectToSecurityGroupCompleted; - + /// public event DeleteObjectFromSecurityGroupCompletedEventHandler DeleteObjectFromSecurityGroupCompleted; - + /// public event SetUserGeneralSettingsCompletedEventHandler SetUserGeneralSettingsCompleted; - + /// public event SetUserPasswordCompletedEventHandler SetUserPasswordCompleted; - + /// public event SetUserPrincipalNameCompletedEventHandler SetUserPrincipalNameCompleted; - + /// public event DeleteOrganizationDomainCompletedEventHandler DeleteOrganizationDomainCompleted; - + /// public event CreateOrganizationDomainCompletedEventHandler CreateOrganizationDomainCompleted; - + /// public event GetPasswordPolicyCompletedEventHandler GetPasswordPolicyCompleted; - + /// public event GetSamAccountNameByUserPrincipalNameCompletedEventHandler GetSamAccountNameByUserPrincipalNameCompleted; - + /// public event DoesSamAccountNameExistCompletedEventHandler DoesSamAccountNameExistCompleted; - + /// public event GetDriveMapsCompletedEventHandler GetDriveMapsCompleted; - + /// public event CreateMappedDriveCompletedEventHandler CreateMappedDriveCompleted; - + /// public event DeleteMappedDriveCompletedEventHandler DeleteMappedDriveCompleted; - + /// public event DeleteMappedDriveByPathCompletedEventHandler DeleteMappedDriveByPathCompleted; - + /// public event DeleteMappedDrivesGPOCompletedEventHandler DeleteMappedDrivesGPOCompleted; - + /// public event SetDriveMapsTargetingFilterCompletedEventHandler SetDriveMapsTargetingFilterCompleted; - + /// public event ChangeDriveMapFolderPathCompletedEventHandler ChangeDriveMapFolderPathCompleted; - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/OrganizationExists", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public bool OrganizationExists(string organizationId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/OrganizationExists", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public bool OrganizationExists(string organizationId) { object[] results = this.Invoke("OrganizationExists", new object[] { organizationId}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginOrganizationExists(string organizationId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginOrganizationExists(string organizationId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("OrganizationExists", new object[] { organizationId}, callback, asyncState); } - + /// - public bool EndOrganizationExists(System.IAsyncResult asyncResult) - { + public bool EndOrganizationExists(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void OrganizationExistsAsync(string organizationId) - { + public void OrganizationExistsAsync(string organizationId) { this.OrganizationExistsAsync(organizationId, null); } - + /// - public void OrganizationExistsAsync(string organizationId, object userState) - { - if ((this.OrganizationExistsOperationCompleted == null)) - { + public void OrganizationExistsAsync(string organizationId, object userState) { + if ((this.OrganizationExistsOperationCompleted == null)) { this.OrganizationExistsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnOrganizationExistsOperationCompleted); } this.InvokeAsync("OrganizationExists", new object[] { organizationId}, this.OrganizationExistsOperationCompleted, userState); } - - private void OnOrganizationExistsOperationCompleted(object arg) - { - if ((this.OrganizationExistsCompleted != null)) - { + + private void OnOrganizationExistsOperationCompleted(object arg) { + if ((this.OrganizationExistsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.OrganizationExistsCompleted(this, new OrganizationExistsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateOrganization", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public Organization CreateOrganization(string organizationId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateOrganization", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public Organization CreateOrganization(string organizationId) { object[] results = this.Invoke("CreateOrganization", new object[] { organizationId}); return ((Organization)(results[0])); } - + /// - public System.IAsyncResult BeginCreateOrganization(string organizationId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateOrganization(string organizationId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateOrganization", new object[] { organizationId}, callback, asyncState); } - + /// - public Organization EndCreateOrganization(System.IAsyncResult asyncResult) - { + public Organization EndCreateOrganization(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((Organization)(results[0])); } - + /// - public void CreateOrganizationAsync(string organizationId) - { + public void CreateOrganizationAsync(string organizationId) { this.CreateOrganizationAsync(organizationId, null); } - + /// - public void CreateOrganizationAsync(string organizationId, object userState) - { - if ((this.CreateOrganizationOperationCompleted == null)) - { + public void CreateOrganizationAsync(string organizationId, object userState) { + if ((this.CreateOrganizationOperationCompleted == null)) { this.CreateOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationOperationCompleted); } this.InvokeAsync("CreateOrganization", new object[] { organizationId}, this.CreateOrganizationOperationCompleted, userState); } - - private void OnCreateOrganizationOperationCompleted(object arg) - { - if ((this.CreateOrganizationCompleted != null)) - { + + private void OnCreateOrganizationOperationCompleted(object arg) { + if ((this.CreateOrganizationCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateOrganizationCompleted(this, new CreateOrganizationCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteOrganization", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteOrganization(string organizationId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteOrganization", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteOrganization(string organizationId) { this.Invoke("DeleteOrganization", new object[] { organizationId}); } - + /// - public System.IAsyncResult BeginDeleteOrganization(string organizationId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteOrganization(string organizationId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteOrganization", new object[] { organizationId}, callback, asyncState); } - + /// - public void EndDeleteOrganization(System.IAsyncResult asyncResult) - { + public void EndDeleteOrganization(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteOrganizationAsync(string organizationId) - { + public void DeleteOrganizationAsync(string organizationId) { this.DeleteOrganizationAsync(organizationId, null); } - + /// - public void DeleteOrganizationAsync(string organizationId, object userState) - { - if ((this.DeleteOrganizationOperationCompleted == null)) - { + public void DeleteOrganizationAsync(string organizationId, object userState) { + if ((this.DeleteOrganizationOperationCompleted == null)) { this.DeleteOrganizationOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOrganizationOperationCompleted); } this.InvokeAsync("DeleteOrganization", new object[] { organizationId}, this.DeleteOrganizationOperationCompleted, userState); } - - private void OnDeleteOrganizationOperationCompleted(object arg) - { - if ((this.DeleteOrganizationCompleted != null)) - { + + private void OnDeleteOrganizationOperationCompleted(object arg) { + if ((this.DeleteOrganizationCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteOrganizationCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateUser", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public int CreateUser(string organizationId, string loginName, string displayName, string upn, string password, bool enabled) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public int CreateUser(string organizationId, string loginName, string displayName, string upn, string password, bool enabled) { object[] results = this.Invoke("CreateUser", new object[] { organizationId, loginName, @@ -369,10 +316,9 @@ namespace WebsitePanel.Providers.HostedSolution enabled}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginCreateUser(string organizationId, string loginName, string displayName, string upn, string password, bool enabled, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateUser(string organizationId, string loginName, string displayName, string upn, string password, bool enabled, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateUser", new object[] { organizationId, loginName, @@ -381,25 +327,21 @@ namespace WebsitePanel.Providers.HostedSolution password, enabled}, callback, asyncState); } - + /// - public int EndCreateUser(System.IAsyncResult asyncResult) - { + public int EndCreateUser(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void CreateUserAsync(string organizationId, string loginName, string displayName, string upn, string password, bool enabled) - { + public void CreateUserAsync(string organizationId, string loginName, string displayName, string upn, string password, bool enabled) { this.CreateUserAsync(organizationId, loginName, displayName, upn, password, enabled, null); } - + /// - public void CreateUserAsync(string organizationId, string loginName, string displayName, string upn, string password, bool enabled, object userState) - { - if ((this.CreateUserOperationCompleted == null)) - { + public void CreateUserAsync(string organizationId, string loginName, string displayName, string upn, string password, bool enabled, object userState) { + if ((this.CreateUserOperationCompleted == null)) { this.CreateUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateUserOperationCompleted); } this.InvokeAsync("CreateUser", new object[] { @@ -410,475 +352,451 @@ namespace WebsitePanel.Providers.HostedSolution password, enabled}, this.CreateUserOperationCompleted, userState); } - - private void OnCreateUserOperationCompleted(object arg) - { - if ((this.CreateUserCompleted != null)) - { + + private void OnCreateUserOperationCompleted(object arg) { + if ((this.CreateUserCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateUserCompleted(this, new CreateUserCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteUser", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteUser(string loginName, string organizationId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DisableUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DisableUser(string loginName, string organizationId) { + this.Invoke("DisableUser", new object[] { + loginName, + organizationId}); + } + + /// + public System.IAsyncResult BeginDisableUser(string loginName, string organizationId, System.AsyncCallback callback, object asyncState) { + return this.BeginInvoke("DisableUser", new object[] { + loginName, + organizationId}, callback, asyncState); + } + + /// + public void EndDisableUser(System.IAsyncResult asyncResult) { + this.EndInvoke(asyncResult); + } + + /// + public void DisableUserAsync(string loginName, string organizationId) { + this.DisableUserAsync(loginName, organizationId, null); + } + + /// + public void DisableUserAsync(string loginName, string organizationId, object userState) { + if ((this.DisableUserOperationCompleted == null)) { + this.DisableUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDisableUserOperationCompleted); + } + this.InvokeAsync("DisableUser", new object[] { + loginName, + organizationId}, this.DisableUserOperationCompleted, userState); + } + + private void OnDisableUserOperationCompleted(object arg) { + if ((this.DisableUserCompleted != null)) { + System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); + this.DisableUserCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); + } + } + + /// + [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteUser", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteUser(string loginName, string organizationId) { this.Invoke("DeleteUser", new object[] { loginName, organizationId}); } - + /// - public System.IAsyncResult BeginDeleteUser(string loginName, string organizationId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteUser(string loginName, string organizationId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteUser", new object[] { loginName, organizationId}, callback, asyncState); } - + /// - public void EndDeleteUser(System.IAsyncResult asyncResult) - { + public void EndDeleteUser(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteUserAsync(string loginName, string organizationId) - { + public void DeleteUserAsync(string loginName, string organizationId) { this.DeleteUserAsync(loginName, organizationId, null); } - + /// - public void DeleteUserAsync(string loginName, string organizationId, object userState) - { - if ((this.DeleteUserOperationCompleted == null)) - { + public void DeleteUserAsync(string loginName, string organizationId, object userState) { + if ((this.DeleteUserOperationCompleted == null)) { this.DeleteUserOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteUserOperationCompleted); } this.InvokeAsync("DeleteUser", new object[] { loginName, organizationId}, this.DeleteUserOperationCompleted, userState); } - - private void OnDeleteUserOperationCompleted(object arg) - { - if ((this.DeleteUserCompleted != null)) - { + + private void OnDeleteUserOperationCompleted(object arg) { + if ((this.DeleteUserCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteUserCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetUserGeneralSettings", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public OrganizationUser GetUserGeneralSettings(string loginName, string organizationId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetUserGeneralSettings", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public OrganizationUser GetUserGeneralSettings(string loginName, string organizationId) { object[] results = this.Invoke("GetUserGeneralSettings", new object[] { loginName, organizationId}); return ((OrganizationUser)(results[0])); } - + /// - public System.IAsyncResult BeginGetUserGeneralSettings(string loginName, string organizationId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetUserGeneralSettings(string loginName, string organizationId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetUserGeneralSettings", new object[] { loginName, organizationId}, callback, asyncState); } - + /// - public OrganizationUser EndGetUserGeneralSettings(System.IAsyncResult asyncResult) - { + public OrganizationUser EndGetUserGeneralSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((OrganizationUser)(results[0])); } - + /// - public void GetUserGeneralSettingsAsync(string loginName, string organizationId) - { + public void GetUserGeneralSettingsAsync(string loginName, string organizationId) { this.GetUserGeneralSettingsAsync(loginName, organizationId, null); } - + /// - public void GetUserGeneralSettingsAsync(string loginName, string organizationId, object userState) - { - if ((this.GetUserGeneralSettingsOperationCompleted == null)) - { + public void GetUserGeneralSettingsAsync(string loginName, string organizationId, object userState) { + if ((this.GetUserGeneralSettingsOperationCompleted == null)) { this.GetUserGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetUserGeneralSettingsOperationCompleted); } this.InvokeAsync("GetUserGeneralSettings", new object[] { loginName, organizationId}, this.GetUserGeneralSettingsOperationCompleted, userState); } - - private void OnGetUserGeneralSettingsOperationCompleted(object arg) - { - if ((this.GetUserGeneralSettingsCompleted != null)) - { + + private void OnGetUserGeneralSettingsOperationCompleted(object arg) { + if ((this.GetUserGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetUserGeneralSettingsCompleted(this, new GetUserGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateSecurityGroup", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public int CreateSecurityGroup(string organizationId, string groupName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateSecurityGroup", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public int CreateSecurityGroup(string organizationId, string groupName) { object[] results = this.Invoke("CreateSecurityGroup", new object[] { - organizationId, - groupName}); + organizationId, + groupName}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginCreateSecurityGroup(string organizationId, string groupName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateSecurityGroup(string organizationId, string groupName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateSecurityGroup", new object[] { - organizationId, - groupName}, callback, asyncState); + organizationId, + groupName}, callback, asyncState); } - + /// - public int EndCreateSecurityGroup(System.IAsyncResult asyncResult) - { + public int EndCreateSecurityGroup(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void CreateSecurityGroupAsync(string organizationId, string groupName) - { + public void CreateSecurityGroupAsync(string organizationId, string groupName) { this.CreateSecurityGroupAsync(organizationId, groupName, null); } - + /// - public void CreateSecurityGroupAsync(string organizationId, string groupName, object userState) - { - if ((this.CreateSecurityGroupOperationCompleted == null)) - { + public void CreateSecurityGroupAsync(string organizationId, string groupName, object userState) { + if ((this.CreateSecurityGroupOperationCompleted == null)) { this.CreateSecurityGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateSecurityGroupOperationCompleted); } this.InvokeAsync("CreateSecurityGroup", new object[] { - organizationId, - groupName}, this.CreateSecurityGroupOperationCompleted, userState); + organizationId, + groupName}, this.CreateSecurityGroupOperationCompleted, userState); } - - private void OnCreateSecurityGroupOperationCompleted(object arg) - { - if ((this.CreateSecurityGroupCompleted != null)) - { + + private void OnCreateSecurityGroupOperationCompleted(object arg) { + if ((this.CreateSecurityGroupCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateSecurityGroupCompleted(this, new CreateSecurityGroupCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSecurityGroupGeneralSettings", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public OrganizationSecurityGroup GetSecurityGroupGeneralSettings(string groupName, string organizationId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSecurityGroupGeneralSettings", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public OrganizationSecurityGroup GetSecurityGroupGeneralSettings(string groupName, string organizationId) { object[] results = this.Invoke("GetSecurityGroupGeneralSettings", new object[] { - groupName, - organizationId}); + groupName, + organizationId}); return ((OrganizationSecurityGroup)(results[0])); } - + /// - public System.IAsyncResult BeginGetSecurityGroupGeneralSettings(string groupName, string organizationId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetSecurityGroupGeneralSettings(string groupName, string organizationId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetSecurityGroupGeneralSettings", new object[] { - groupName, - organizationId}, callback, asyncState); + groupName, + organizationId}, callback, asyncState); } - + /// - public OrganizationSecurityGroup EndGetSecurityGroupGeneralSettings(System.IAsyncResult asyncResult) - { + public OrganizationSecurityGroup EndGetSecurityGroupGeneralSettings(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((OrganizationSecurityGroup)(results[0])); } - + /// - public void GetSecurityGroupGeneralSettingsAsync(string groupName, string organizationId) - { + public void GetSecurityGroupGeneralSettingsAsync(string groupName, string organizationId) { this.GetSecurityGroupGeneralSettingsAsync(groupName, organizationId, null); } - + /// - public void GetSecurityGroupGeneralSettingsAsync(string groupName, string organizationId, object userState) - { - if ((this.GetSecurityGroupGeneralSettingsOperationCompleted == null)) - { + public void GetSecurityGroupGeneralSettingsAsync(string groupName, string organizationId, object userState) { + if ((this.GetSecurityGroupGeneralSettingsOperationCompleted == null)) { this.GetSecurityGroupGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSecurityGroupGeneralSettingsOperationCompleted); } this.InvokeAsync("GetSecurityGroupGeneralSettings", new object[] { - groupName, - organizationId}, this.GetSecurityGroupGeneralSettingsOperationCompleted, userState); + groupName, + organizationId}, this.GetSecurityGroupGeneralSettingsOperationCompleted, userState); } - - private void OnGetSecurityGroupGeneralSettingsOperationCompleted(object arg) - { - if ((this.GetSecurityGroupGeneralSettingsCompleted != null)) - { + + private void OnGetSecurityGroupGeneralSettingsOperationCompleted(object arg) { + if ((this.GetSecurityGroupGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetSecurityGroupGeneralSettingsCompleted(this, new GetSecurityGroupGeneralSettingsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteSecurityGroup", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteSecurityGroup(string groupName, string organizationId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteSecurityGroup", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteSecurityGroup(string groupName, string organizationId) { this.Invoke("DeleteSecurityGroup", new object[] { - groupName, - organizationId}); + groupName, + organizationId}); } - + /// - public System.IAsyncResult BeginDeleteSecurityGroup(string groupName, string organizationId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteSecurityGroup(string groupName, string organizationId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteSecurityGroup", new object[] { - groupName, - organizationId}, callback, asyncState); + groupName, + organizationId}, callback, asyncState); } - + /// - public void EndDeleteSecurityGroup(System.IAsyncResult asyncResult) - { + public void EndDeleteSecurityGroup(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteSecurityGroupAsync(string groupName, string organizationId) - { + public void DeleteSecurityGroupAsync(string groupName, string organizationId) { this.DeleteSecurityGroupAsync(groupName, organizationId, null); } - + /// - public void DeleteSecurityGroupAsync(string groupName, string organizationId, object userState) - { - if ((this.DeleteSecurityGroupOperationCompleted == null)) - { + public void DeleteSecurityGroupAsync(string groupName, string organizationId, object userState) { + if ((this.DeleteSecurityGroupOperationCompleted == null)) { this.DeleteSecurityGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteSecurityGroupOperationCompleted); } this.InvokeAsync("DeleteSecurityGroup", new object[] { - groupName, - organizationId}, this.DeleteSecurityGroupOperationCompleted, userState); + groupName, + organizationId}, this.DeleteSecurityGroupOperationCompleted, userState); } - - private void OnDeleteSecurityGroupOperationCompleted(object arg) - { - if ((this.DeleteSecurityGroupCompleted != null)) - { + + private void OnDeleteSecurityGroupOperationCompleted(object arg) { + if ((this.DeleteSecurityGroupCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteSecurityGroupCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetSecurityGroupGeneralSettings", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void SetSecurityGroupGeneralSettings(string organizationId, string groupName, string[] memberAccounts, string notes) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetSecurityGroupGeneralSettings", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void SetSecurityGroupGeneralSettings(string organizationId, string groupName, string[] memberAccounts, string notes) { this.Invoke("SetSecurityGroupGeneralSettings", new object[] { - organizationId, - groupName, - memberAccounts, - notes}); + organizationId, + groupName, + memberAccounts, + notes}); } - + /// - public System.IAsyncResult BeginSetSecurityGroupGeneralSettings(string organizationId, string groupName, string[] memberAccounts, string notes, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetSecurityGroupGeneralSettings(string organizationId, string groupName, string[] memberAccounts, string notes, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetSecurityGroupGeneralSettings", new object[] { - organizationId, - groupName, - memberAccounts, - notes}, callback, asyncState); + organizationId, + groupName, + memberAccounts, + notes}, callback, asyncState); } - + /// - public void EndSetSecurityGroupGeneralSettings(System.IAsyncResult asyncResult) - { + public void EndSetSecurityGroupGeneralSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetSecurityGroupGeneralSettingsAsync(string organizationId, string groupName, string[] memberAccounts, string notes) - { + public void SetSecurityGroupGeneralSettingsAsync(string organizationId, string groupName, string[] memberAccounts, string notes) { this.SetSecurityGroupGeneralSettingsAsync(organizationId, groupName, memberAccounts, notes, null); } - + /// - public void SetSecurityGroupGeneralSettingsAsync(string organizationId, string groupName, string[] memberAccounts, string notes, object userState) - { - if ((this.SetSecurityGroupGeneralSettingsOperationCompleted == null)) - { + public void SetSecurityGroupGeneralSettingsAsync(string organizationId, string groupName, string[] memberAccounts, string notes, object userState) { + if ((this.SetSecurityGroupGeneralSettingsOperationCompleted == null)) { this.SetSecurityGroupGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetSecurityGroupGeneralSettingsOperationCompleted); } this.InvokeAsync("SetSecurityGroupGeneralSettings", new object[] { - organizationId, - groupName, - memberAccounts, - notes}, this.SetSecurityGroupGeneralSettingsOperationCompleted, userState); + organizationId, + groupName, + memberAccounts, + notes}, this.SetSecurityGroupGeneralSettingsOperationCompleted, userState); } - - private void OnSetSecurityGroupGeneralSettingsOperationCompleted(object arg) - { - if ((this.SetSecurityGroupGeneralSettingsCompleted != null)) - { + + private void OnSetSecurityGroupGeneralSettingsOperationCompleted(object arg) { + if ((this.SetSecurityGroupGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetSecurityGroupGeneralSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddObjectToSecurityGroup", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void AddObjectToSecurityGroup(string organizationId, string accountName, string groupName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/AddObjectToSecurityGroup", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void AddObjectToSecurityGroup(string organizationId, string accountName, string groupName) { this.Invoke("AddObjectToSecurityGroup", new object[] { - organizationId, - accountName, - groupName}); + organizationId, + accountName, + groupName}); } - + /// - public System.IAsyncResult BeginAddObjectToSecurityGroup(string organizationId, string accountName, string groupName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginAddObjectToSecurityGroup(string organizationId, string accountName, string groupName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("AddObjectToSecurityGroup", new object[] { - organizationId, - accountName, - groupName}, callback, asyncState); + organizationId, + accountName, + groupName}, callback, asyncState); } - + /// - public void EndAddObjectToSecurityGroup(System.IAsyncResult asyncResult) - { + public void EndAddObjectToSecurityGroup(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void AddObjectToSecurityGroupAsync(string organizationId, string accountName, string groupName) - { + public void AddObjectToSecurityGroupAsync(string organizationId, string accountName, string groupName) { this.AddObjectToSecurityGroupAsync(organizationId, accountName, groupName, null); } - + /// - public void AddObjectToSecurityGroupAsync(string organizationId, string accountName, string groupName, object userState) - { - if ((this.AddObjectToSecurityGroupOperationCompleted == null)) - { + public void AddObjectToSecurityGroupAsync(string organizationId, string accountName, string groupName, object userState) { + if ((this.AddObjectToSecurityGroupOperationCompleted == null)) { this.AddObjectToSecurityGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnAddObjectToSecurityGroupOperationCompleted); } this.InvokeAsync("AddObjectToSecurityGroup", new object[] { - organizationId, - accountName, - groupName}, this.AddObjectToSecurityGroupOperationCompleted, userState); + organizationId, + accountName, + groupName}, this.AddObjectToSecurityGroupOperationCompleted, userState); } - - private void OnAddObjectToSecurityGroupOperationCompleted(object arg) - { - if ((this.AddObjectToSecurityGroupCompleted != null)) - { + + private void OnAddObjectToSecurityGroupOperationCompleted(object arg) { + if ((this.AddObjectToSecurityGroupCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.AddObjectToSecurityGroupCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteObjectFromSecurityGroup", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteObjectFromSecurityGroup(string organizationId, string accountName, string groupName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteObjectFromSecurityGroup", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteObjectFromSecurityGroup(string organizationId, string accountName, string groupName) { this.Invoke("DeleteObjectFromSecurityGroup", new object[] { - organizationId, - accountName, - groupName}); + organizationId, + accountName, + groupName}); } - + /// - public System.IAsyncResult BeginDeleteObjectFromSecurityGroup(string organizationId, string accountName, string groupName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteObjectFromSecurityGroup(string organizationId, string accountName, string groupName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteObjectFromSecurityGroup", new object[] { - organizationId, - accountName, - groupName}, callback, asyncState); + organizationId, + accountName, + groupName}, callback, asyncState); } - + /// - public void EndDeleteObjectFromSecurityGroup(System.IAsyncResult asyncResult) - { + public void EndDeleteObjectFromSecurityGroup(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteObjectFromSecurityGroupAsync(string organizationId, string accountName, string groupName) - { + public void DeleteObjectFromSecurityGroupAsync(string organizationId, string accountName, string groupName) { this.DeleteObjectFromSecurityGroupAsync(organizationId, accountName, groupName, null); } - + /// - public void DeleteObjectFromSecurityGroupAsync(string organizationId, string accountName, string groupName, object userState) - { - if ((this.DeleteObjectFromSecurityGroupOperationCompleted == null)) - { + public void DeleteObjectFromSecurityGroupAsync(string organizationId, string accountName, string groupName, object userState) { + if ((this.DeleteObjectFromSecurityGroupOperationCompleted == null)) { this.DeleteObjectFromSecurityGroupOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteObjectFromSecurityGroupOperationCompleted); } this.InvokeAsync("DeleteObjectFromSecurityGroup", new object[] { - organizationId, - accountName, - groupName}, this.DeleteObjectFromSecurityGroupOperationCompleted, userState); + organizationId, + accountName, + groupName}, this.DeleteObjectFromSecurityGroupOperationCompleted, userState); } - - private void OnDeleteObjectFromSecurityGroupOperationCompleted(object arg) - { - if ((this.DeleteObjectFromSecurityGroupCompleted != null)) - { + + private void OnDeleteObjectFromSecurityGroupOperationCompleted(object arg) { + if ((this.DeleteObjectFromSecurityGroupCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteObjectFromSecurityGroupCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetUserGeneralSettings", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetUserGeneralSettings", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] public void SetUserGeneralSettings( - string organizationId, - string accountName, - string displayName, - string password, - bool hideFromAddressBook, - bool disabled, - bool locked, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - string externalEmail) - { + string organizationId, + string accountName, + string displayName, + string password, + bool hideFromAddressBook, + bool disabled, + bool locked, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + string externalEmail) { this.Invoke("SetUserGeneralSettings", new object[] { organizationId, accountName, @@ -909,40 +827,39 @@ namespace WebsitePanel.Providers.HostedSolution notes, externalEmail}); } - + /// public System.IAsyncResult BeginSetUserGeneralSettings( - string organizationId, - string accountName, - string displayName, - string password, - bool hideFromAddressBook, - bool disabled, - bool locked, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - string externalEmail, - System.AsyncCallback callback, - object asyncState) - { + string organizationId, + string accountName, + string displayName, + string password, + bool hideFromAddressBook, + bool disabled, + bool locked, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + string externalEmail, + System.AsyncCallback callback, + object asyncState) { return this.BeginInvoke("SetUserGeneralSettings", new object[] { organizationId, accountName, @@ -973,81 +890,77 @@ namespace WebsitePanel.Providers.HostedSolution notes, externalEmail}, callback, asyncState); } - + /// - public void EndSetUserGeneralSettings(System.IAsyncResult asyncResult) - { + public void EndSetUserGeneralSettings(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// public void SetUserGeneralSettingsAsync( - string organizationId, - string accountName, - string displayName, - string password, - bool hideFromAddressBook, - bool disabled, - bool locked, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - string externalEmail) - { + string organizationId, + string accountName, + string displayName, + string password, + bool hideFromAddressBook, + bool disabled, + bool locked, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + string externalEmail) { this.SetUserGeneralSettingsAsync(organizationId, accountName, displayName, password, hideFromAddressBook, disabled, locked, firstName, initials, lastName, address, city, state, zip, country, jobTitle, company, department, office, managerAccountName, businessPhone, fax, homePhone, mobilePhone, pager, webPage, notes, externalEmail, null); } - + /// public void SetUserGeneralSettingsAsync( - string organizationId, - string accountName, - string displayName, - string password, - bool hideFromAddressBook, - bool disabled, - bool locked, - string firstName, - string initials, - string lastName, - string address, - string city, - string state, - string zip, - string country, - string jobTitle, - string company, - string department, - string office, - string managerAccountName, - string businessPhone, - string fax, - string homePhone, - string mobilePhone, - string pager, - string webPage, - string notes, - string externalEmail, - object userState) - { - if ((this.SetUserGeneralSettingsOperationCompleted == null)) - { + string organizationId, + string accountName, + string displayName, + string password, + bool hideFromAddressBook, + bool disabled, + bool locked, + string firstName, + string initials, + string lastName, + string address, + string city, + string state, + string zip, + string country, + string jobTitle, + string company, + string department, + string office, + string managerAccountName, + string businessPhone, + string fax, + string homePhone, + string mobilePhone, + string pager, + string webPage, + string notes, + string externalEmail, + object userState) { + if ((this.SetUserGeneralSettingsOperationCompleted == null)) { this.SetUserGeneralSettingsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetUserGeneralSettingsOperationCompleted); } this.InvokeAsync("SetUserGeneralSettings", new object[] { @@ -1080,53 +993,45 @@ namespace WebsitePanel.Providers.HostedSolution notes, externalEmail}, this.SetUserGeneralSettingsOperationCompleted, userState); } - - private void OnSetUserGeneralSettingsOperationCompleted(object arg) - { - if ((this.SetUserGeneralSettingsCompleted != null)) - { + + private void OnSetUserGeneralSettingsOperationCompleted(object arg) { + if ((this.SetUserGeneralSettingsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetUserGeneralSettingsCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetUserPassword", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void SetUserPassword(string organizationId, string accountName, string password) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetUserPassword", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void SetUserPassword(string organizationId, string accountName, string password) { this.Invoke("SetUserPassword", new object[] { organizationId, accountName, password}); } - + /// - public System.IAsyncResult BeginSetUserPassword(string organizationId, string accountName, string password, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetUserPassword(string organizationId, string accountName, string password, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetUserPassword", new object[] { organizationId, accountName, password}, callback, asyncState); } - + /// - public void EndSetUserPassword(System.IAsyncResult asyncResult) - { + public void EndSetUserPassword(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetUserPasswordAsync(string organizationId, string accountName, string password) - { + public void SetUserPasswordAsync(string organizationId, string accountName, string password) { this.SetUserPasswordAsync(organizationId, accountName, password, null); } - + /// - public void SetUserPasswordAsync(string organizationId, string accountName, string password, object userState) - { - if ((this.SetUserPasswordOperationCompleted == null)) - { + public void SetUserPasswordAsync(string organizationId, string accountName, string password, object userState) { + if ((this.SetUserPasswordOperationCompleted == null)) { this.SetUserPasswordOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetUserPasswordOperationCompleted); } this.InvokeAsync("SetUserPassword", new object[] { @@ -1134,53 +1039,45 @@ namespace WebsitePanel.Providers.HostedSolution accountName, password}, this.SetUserPasswordOperationCompleted, userState); } - - private void OnSetUserPasswordOperationCompleted(object arg) - { - if ((this.SetUserPasswordCompleted != null)) - { + + private void OnSetUserPasswordOperationCompleted(object arg) { + if ((this.SetUserPasswordCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetUserPasswordCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetUserPrincipalName", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void SetUserPrincipalName(string organizationId, string accountName, string userPrincipalName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetUserPrincipalName", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void SetUserPrincipalName(string organizationId, string accountName, string userPrincipalName) { this.Invoke("SetUserPrincipalName", new object[] { organizationId, accountName, userPrincipalName}); } - + /// - public System.IAsyncResult BeginSetUserPrincipalName(string organizationId, string accountName, string userPrincipalName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetUserPrincipalName(string organizationId, string accountName, string userPrincipalName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetUserPrincipalName", new object[] { organizationId, accountName, userPrincipalName}, callback, asyncState); } - + /// - public void EndSetUserPrincipalName(System.IAsyncResult asyncResult) - { + public void EndSetUserPrincipalName(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetUserPrincipalNameAsync(string organizationId, string accountName, string userPrincipalName) - { + public void SetUserPrincipalNameAsync(string organizationId, string accountName, string userPrincipalName) { this.SetUserPrincipalNameAsync(organizationId, accountName, userPrincipalName, null); } - + /// - public void SetUserPrincipalNameAsync(string organizationId, string accountName, string userPrincipalName, object userState) - { - if ((this.SetUserPrincipalNameOperationCompleted == null)) - { + public void SetUserPrincipalNameAsync(string organizationId, string accountName, string userPrincipalName, object userState) { + if ((this.SetUserPrincipalNameOperationCompleted == null)) { this.SetUserPrincipalNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetUserPrincipalNameOperationCompleted); } this.InvokeAsync("SetUserPrincipalName", new object[] { @@ -1188,1032 +1085,893 @@ namespace WebsitePanel.Providers.HostedSolution accountName, userPrincipalName}, this.SetUserPrincipalNameOperationCompleted, userState); } - - private void OnSetUserPrincipalNameOperationCompleted(object arg) - { - if ((this.SetUserPrincipalNameCompleted != null)) - { + + private void OnSetUserPrincipalNameOperationCompleted(object arg) { + if ((this.SetUserPrincipalNameCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetUserPrincipalNameCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteOrganizationDomain", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteOrganizationDomain(string organizationDistinguishedName, string domain) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteOrganizationDomain", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteOrganizationDomain(string organizationDistinguishedName, string domain) { this.Invoke("DeleteOrganizationDomain", new object[] { organizationDistinguishedName, domain}); } - + /// - public System.IAsyncResult BeginDeleteOrganizationDomain(string organizationDistinguishedName, string domain, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteOrganizationDomain(string organizationDistinguishedName, string domain, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteOrganizationDomain", new object[] { organizationDistinguishedName, domain}, callback, asyncState); } - + /// - public void EndDeleteOrganizationDomain(System.IAsyncResult asyncResult) - { + public void EndDeleteOrganizationDomain(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteOrganizationDomainAsync(string organizationDistinguishedName, string domain) - { + public void DeleteOrganizationDomainAsync(string organizationDistinguishedName, string domain) { this.DeleteOrganizationDomainAsync(organizationDistinguishedName, domain, null); } - + /// - public void DeleteOrganizationDomainAsync(string organizationDistinguishedName, string domain, object userState) - { - if ((this.DeleteOrganizationDomainOperationCompleted == null)) - { + public void DeleteOrganizationDomainAsync(string organizationDistinguishedName, string domain, object userState) { + if ((this.DeleteOrganizationDomainOperationCompleted == null)) { this.DeleteOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteOrganizationDomainOperationCompleted); } this.InvokeAsync("DeleteOrganizationDomain", new object[] { organizationDistinguishedName, domain}, this.DeleteOrganizationDomainOperationCompleted, userState); } - - private void OnDeleteOrganizationDomainOperationCompleted(object arg) - { - if ((this.DeleteOrganizationDomainCompleted != null)) - { + + private void OnDeleteOrganizationDomainOperationCompleted(object arg) { + if ((this.DeleteOrganizationDomainCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteOrganizationDomainCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateOrganizationDomain", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void CreateOrganizationDomain(string organizationDistinguishedName, string domain) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateOrganizationDomain", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void CreateOrganizationDomain(string organizationDistinguishedName, string domain) { this.Invoke("CreateOrganizationDomain", new object[] { organizationDistinguishedName, domain}); } - + /// - public System.IAsyncResult BeginCreateOrganizationDomain(string organizationDistinguishedName, string domain, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateOrganizationDomain(string organizationDistinguishedName, string domain, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateOrganizationDomain", new object[] { organizationDistinguishedName, domain}, callback, asyncState); } - + /// - public void EndCreateOrganizationDomain(System.IAsyncResult asyncResult) - { + public void EndCreateOrganizationDomain(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void CreateOrganizationDomainAsync(string organizationDistinguishedName, string domain) - { + public void CreateOrganizationDomainAsync(string organizationDistinguishedName, string domain) { this.CreateOrganizationDomainAsync(organizationDistinguishedName, domain, null); } - + /// - public void CreateOrganizationDomainAsync(string organizationDistinguishedName, string domain, object userState) - { - if ((this.CreateOrganizationDomainOperationCompleted == null)) - { + public void CreateOrganizationDomainAsync(string organizationDistinguishedName, string domain, object userState) { + if ((this.CreateOrganizationDomainOperationCompleted == null)) { this.CreateOrganizationDomainOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateOrganizationDomainOperationCompleted); } this.InvokeAsync("CreateOrganizationDomain", new object[] { organizationDistinguishedName, domain}, this.CreateOrganizationDomainOperationCompleted, userState); } - - private void OnCreateOrganizationDomainOperationCompleted(object arg) - { - if ((this.CreateOrganizationDomainCompleted != null)) - { + + private void OnCreateOrganizationDomainOperationCompleted(object arg) { + if ((this.CreateOrganizationDomainCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateOrganizationDomainCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetPasswordPolicy", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public PasswordPolicyResult GetPasswordPolicy() - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetPasswordPolicy", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public PasswordPolicyResult GetPasswordPolicy() { object[] results = this.Invoke("GetPasswordPolicy", new object[0]); return ((PasswordPolicyResult)(results[0])); } - + /// - public System.IAsyncResult BeginGetPasswordPolicy(System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetPasswordPolicy(System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetPasswordPolicy", new object[0], callback, asyncState); } - + /// - public PasswordPolicyResult EndGetPasswordPolicy(System.IAsyncResult asyncResult) - { + public PasswordPolicyResult EndGetPasswordPolicy(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((PasswordPolicyResult)(results[0])); } - + /// - public void GetPasswordPolicyAsync() - { + public void GetPasswordPolicyAsync() { this.GetPasswordPolicyAsync(null); } - + /// - public void GetPasswordPolicyAsync(object userState) - { - if ((this.GetPasswordPolicyOperationCompleted == null)) - { + public void GetPasswordPolicyAsync(object userState) { + if ((this.GetPasswordPolicyOperationCompleted == null)) { this.GetPasswordPolicyOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetPasswordPolicyOperationCompleted); } this.InvokeAsync("GetPasswordPolicy", new object[0], this.GetPasswordPolicyOperationCompleted, userState); } - - private void OnGetPasswordPolicyOperationCompleted(object arg) - { - if ((this.GetPasswordPolicyCompleted != null)) - { + + private void OnGetPasswordPolicyOperationCompleted(object arg) { + if ((this.GetPasswordPolicyCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetPasswordPolicyCompleted(this, new GetPasswordPolicyCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSamAccountNameByUserPrincipalName", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public string GetSamAccountNameByUserPrincipalName(string organizationId, string userPrincipalName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetSamAccountNameByUserPrincipalName", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public string GetSamAccountNameByUserPrincipalName(string organizationId, string userPrincipalName) { object[] results = this.Invoke("GetSamAccountNameByUserPrincipalName", new object[] { organizationId, userPrincipalName}); return ((string)(results[0])); } - + /// - public System.IAsyncResult BeginGetSamAccountNameByUserPrincipalName(string organizationId, string userPrincipalName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetSamAccountNameByUserPrincipalName(string organizationId, string userPrincipalName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetSamAccountNameByUserPrincipalName", new object[] { organizationId, userPrincipalName}, callback, asyncState); } - + /// - public string EndGetSamAccountNameByUserPrincipalName(System.IAsyncResult asyncResult) - { + public string EndGetSamAccountNameByUserPrincipalName(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((string)(results[0])); } - + /// - public void GetSamAccountNameByUserPrincipalNameAsync(string organizationId, string userPrincipalName) - { + public void GetSamAccountNameByUserPrincipalNameAsync(string organizationId, string userPrincipalName) { this.GetSamAccountNameByUserPrincipalNameAsync(organizationId, userPrincipalName, null); } - + /// - public void GetSamAccountNameByUserPrincipalNameAsync(string organizationId, string userPrincipalName, object userState) - { - if ((this.GetSamAccountNameByUserPrincipalNameOperationCompleted == null)) - { + public void GetSamAccountNameByUserPrincipalNameAsync(string organizationId, string userPrincipalName, object userState) { + if ((this.GetSamAccountNameByUserPrincipalNameOperationCompleted == null)) { this.GetSamAccountNameByUserPrincipalNameOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetSamAccountNameByUserPrincipalNameOperationCompleted); } this.InvokeAsync("GetSamAccountNameByUserPrincipalName", new object[] { organizationId, userPrincipalName}, this.GetSamAccountNameByUserPrincipalNameOperationCompleted, userState); } - - private void OnGetSamAccountNameByUserPrincipalNameOperationCompleted(object arg) - { - if ((this.GetSamAccountNameByUserPrincipalNameCompleted != null)) - { + + private void OnGetSamAccountNameByUserPrincipalNameOperationCompleted(object arg) { + if ((this.GetSamAccountNameByUserPrincipalNameCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetSamAccountNameByUserPrincipalNameCompleted(this, new GetSamAccountNameByUserPrincipalNameCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DoesSamAccountNameExist", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public bool DoesSamAccountNameExist(string accountName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DoesSamAccountNameExist", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public bool DoesSamAccountNameExist(string accountName) { object[] results = this.Invoke("DoesSamAccountNameExist", new object[] { accountName}); return ((bool)(results[0])); } - + /// - public System.IAsyncResult BeginDoesSamAccountNameExist(string accountName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDoesSamAccountNameExist(string accountName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DoesSamAccountNameExist", new object[] { accountName}, callback, asyncState); } - + /// - public bool EndDoesSamAccountNameExist(System.IAsyncResult asyncResult) - { + public bool EndDoesSamAccountNameExist(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((bool)(results[0])); } - + /// - public void DoesSamAccountNameExistAsync(string accountName) - { + public void DoesSamAccountNameExistAsync(string accountName) { this.DoesSamAccountNameExistAsync(accountName, null); } - + /// - public void DoesSamAccountNameExistAsync(string accountName, object userState) - { - if ((this.DoesSamAccountNameExistOperationCompleted == null)) - { + public void DoesSamAccountNameExistAsync(string accountName, object userState) { + if ((this.DoesSamAccountNameExistOperationCompleted == null)) { this.DoesSamAccountNameExistOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDoesSamAccountNameExistOperationCompleted); } this.InvokeAsync("DoesSamAccountNameExist", new object[] { accountName}, this.DoesSamAccountNameExistOperationCompleted, userState); } - - private void OnDoesSamAccountNameExistOperationCompleted(object arg) - { - if ((this.DoesSamAccountNameExistCompleted != null)) - { + + private void OnDoesSamAccountNameExistOperationCompleted(object arg) { + if ((this.DoesSamAccountNameExistCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DoesSamAccountNameExistCompleted(this, new DoesSamAccountNameExistCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetDriveMaps", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public MappedDrive[] GetDriveMaps(string organizationId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/GetDriveMaps", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public MappedDrive[] GetDriveMaps(string organizationId) { object[] results = this.Invoke("GetDriveMaps", new object[] { - organizationId}); + organizationId}); return ((MappedDrive[])(results[0])); } - + /// - public System.IAsyncResult BeginGetDriveMaps(string organizationId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginGetDriveMaps(string organizationId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("GetDriveMaps", new object[] { - organizationId}, callback, asyncState); + organizationId}, callback, asyncState); } - + /// - public MappedDrive[] EndGetDriveMaps(System.IAsyncResult asyncResult) - { + public MappedDrive[] EndGetDriveMaps(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((MappedDrive[])(results[0])); } - + /// - public void GetDriveMapsAsync(string organizationId) - { + public void GetDriveMapsAsync(string organizationId) { this.GetDriveMapsAsync(organizationId, null); } - + /// - public void GetDriveMapsAsync(string organizationId, object userState) - { - if ((this.GetDriveMapsOperationCompleted == null)) - { + public void GetDriveMapsAsync(string organizationId, object userState) { + if ((this.GetDriveMapsOperationCompleted == null)) { this.GetDriveMapsOperationCompleted = new System.Threading.SendOrPostCallback(this.OnGetDriveMapsOperationCompleted); } this.InvokeAsync("GetDriveMaps", new object[] { - organizationId}, this.GetDriveMapsOperationCompleted, userState); + organizationId}, this.GetDriveMapsOperationCompleted, userState); } - - private void OnGetDriveMapsOperationCompleted(object arg) - { - if ((this.GetDriveMapsCompleted != null)) - { + + private void OnGetDriveMapsOperationCompleted(object arg) { + if ((this.GetDriveMapsCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.GetDriveMapsCompleted(this, new GetDriveMapsCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateMappedDrive", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public int CreateMappedDrive(string organizationId, string drive, string labelAs, string path) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/CreateMappedDrive", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public int CreateMappedDrive(string organizationId, string drive, string labelAs, string path) { object[] results = this.Invoke("CreateMappedDrive", new object[] { - organizationId, - drive, - labelAs, - path}); + organizationId, + drive, + labelAs, + path}); return ((int)(results[0])); } - + /// - public System.IAsyncResult BeginCreateMappedDrive(string organizationId, string drive, string labelAs, string path, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginCreateMappedDrive(string organizationId, string drive, string labelAs, string path, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("CreateMappedDrive", new object[] { - organizationId, - drive, - labelAs, - path}, callback, asyncState); + organizationId, + drive, + labelAs, + path}, callback, asyncState); } - + /// - public int EndCreateMappedDrive(System.IAsyncResult asyncResult) - { + public int EndCreateMappedDrive(System.IAsyncResult asyncResult) { object[] results = this.EndInvoke(asyncResult); return ((int)(results[0])); } - + /// - public void CreateMappedDriveAsync(string organizationId, string drive, string labelAs, string path) - { + public void CreateMappedDriveAsync(string organizationId, string drive, string labelAs, string path) { this.CreateMappedDriveAsync(organizationId, drive, labelAs, path, null); } - + /// - public void CreateMappedDriveAsync(string organizationId, string drive, string labelAs, string path, object userState) - { - if ((this.CreateMappedDriveOperationCompleted == null)) - { + public void CreateMappedDriveAsync(string organizationId, string drive, string labelAs, string path, object userState) { + if ((this.CreateMappedDriveOperationCompleted == null)) { this.CreateMappedDriveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnCreateMappedDriveOperationCompleted); } this.InvokeAsync("CreateMappedDrive", new object[] { - organizationId, - drive, - labelAs, - path}, this.CreateMappedDriveOperationCompleted, userState); + organizationId, + drive, + labelAs, + path}, this.CreateMappedDriveOperationCompleted, userState); } - - private void OnCreateMappedDriveOperationCompleted(object arg) - { - if ((this.CreateMappedDriveCompleted != null)) - { + + private void OnCreateMappedDriveOperationCompleted(object arg) { + if ((this.CreateMappedDriveCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.CreateMappedDriveCompleted(this, new CreateMappedDriveCompletedEventArgs(invokeArgs.Results, invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteMappedDrive", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteMappedDrive(string organizationId, string drive) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteMappedDrive", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteMappedDrive(string organizationId, string drive) { this.Invoke("DeleteMappedDrive", new object[] { - organizationId, - drive}); + organizationId, + drive}); } - + /// - public System.IAsyncResult BeginDeleteMappedDrive(string organizationId, string drive, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteMappedDrive(string organizationId, string drive, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteMappedDrive", new object[] { - organizationId, - drive}, callback, asyncState); + organizationId, + drive}, callback, asyncState); } - + /// - public void EndDeleteMappedDrive(System.IAsyncResult asyncResult) - { + public void EndDeleteMappedDrive(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteMappedDriveAsync(string organizationId, string drive) - { + public void DeleteMappedDriveAsync(string organizationId, string drive) { this.DeleteMappedDriveAsync(organizationId, drive, null); } - + /// - public void DeleteMappedDriveAsync(string organizationId, string drive, object userState) - { - if ((this.DeleteMappedDriveOperationCompleted == null)) - { + public void DeleteMappedDriveAsync(string organizationId, string drive, object userState) { + if ((this.DeleteMappedDriveOperationCompleted == null)) { this.DeleteMappedDriveOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteMappedDriveOperationCompleted); } this.InvokeAsync("DeleteMappedDrive", new object[] { - organizationId, - drive}, this.DeleteMappedDriveOperationCompleted, userState); + organizationId, + drive}, this.DeleteMappedDriveOperationCompleted, userState); } - - private void OnDeleteMappedDriveOperationCompleted(object arg) - { - if ((this.DeleteMappedDriveCompleted != null)) - { + + private void OnDeleteMappedDriveOperationCompleted(object arg) { + if ((this.DeleteMappedDriveCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteMappedDriveCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteMappedDriveByPath", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteMappedDriveByPath(string organizationId, string path) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteMappedDriveByPath", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteMappedDriveByPath(string organizationId, string path) { this.Invoke("DeleteMappedDriveByPath", new object[] { - organizationId, - path}); + organizationId, + path}); } - + /// - public System.IAsyncResult BeginDeleteMappedDriveByPath(string organizationId, string path, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteMappedDriveByPath(string organizationId, string path, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteMappedDriveByPath", new object[] { - organizationId, - path}, callback, asyncState); + organizationId, + path}, callback, asyncState); } - + /// - public void EndDeleteMappedDriveByPath(System.IAsyncResult asyncResult) - { + public void EndDeleteMappedDriveByPath(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteMappedDriveByPathAsync(string organizationId, string path) - { + public void DeleteMappedDriveByPathAsync(string organizationId, string path) { this.DeleteMappedDriveByPathAsync(organizationId, path, null); } - + /// - public void DeleteMappedDriveByPathAsync(string organizationId, string path, object userState) - { - if ((this.DeleteMappedDriveByPathOperationCompleted == null)) - { + public void DeleteMappedDriveByPathAsync(string organizationId, string path, object userState) { + if ((this.DeleteMappedDriveByPathOperationCompleted == null)) { this.DeleteMappedDriveByPathOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteMappedDriveByPathOperationCompleted); } this.InvokeAsync("DeleteMappedDriveByPath", new object[] { - organizationId, - path}, this.DeleteMappedDriveByPathOperationCompleted, userState); + organizationId, + path}, this.DeleteMappedDriveByPathOperationCompleted, userState); } - - private void OnDeleteMappedDriveByPathOperationCompleted(object arg) - { - if ((this.DeleteMappedDriveByPathCompleted != null)) - { + + private void OnDeleteMappedDriveByPathOperationCompleted(object arg) { + if ((this.DeleteMappedDriveByPathCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteMappedDriveByPathCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteMappedDrivesGPO", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void DeleteMappedDrivesGPO(string organizationId) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/DeleteMappedDrivesGPO", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void DeleteMappedDrivesGPO(string organizationId) { this.Invoke("DeleteMappedDrivesGPO", new object[] { - organizationId}); + organizationId}); } - + /// - public System.IAsyncResult BeginDeleteMappedDrivesGPO(string organizationId, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginDeleteMappedDrivesGPO(string organizationId, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("DeleteMappedDrivesGPO", new object[] { - organizationId}, callback, asyncState); + organizationId}, callback, asyncState); } - + /// - public void EndDeleteMappedDrivesGPO(System.IAsyncResult asyncResult) - { + public void EndDeleteMappedDrivesGPO(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void DeleteMappedDrivesGPOAsync(string organizationId) - { + public void DeleteMappedDrivesGPOAsync(string organizationId) { this.DeleteMappedDrivesGPOAsync(organizationId, null); } - + /// - public void DeleteMappedDrivesGPOAsync(string organizationId, object userState) - { - if ((this.DeleteMappedDrivesGPOOperationCompleted == null)) - { + public void DeleteMappedDrivesGPOAsync(string organizationId, object userState) { + if ((this.DeleteMappedDrivesGPOOperationCompleted == null)) { this.DeleteMappedDrivesGPOOperationCompleted = new System.Threading.SendOrPostCallback(this.OnDeleteMappedDrivesGPOOperationCompleted); } this.InvokeAsync("DeleteMappedDrivesGPO", new object[] { - organizationId}, this.DeleteMappedDrivesGPOOperationCompleted, userState); + organizationId}, this.DeleteMappedDrivesGPOOperationCompleted, userState); } - - private void OnDeleteMappedDrivesGPOOperationCompleted(object arg) - { - if ((this.DeleteMappedDrivesGPOCompleted != null)) - { + + private void OnDeleteMappedDrivesGPOOperationCompleted(object arg) { + if ((this.DeleteMappedDrivesGPOCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.DeleteMappedDrivesGPOCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetDriveMapsTargetingFilter", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void SetDriveMapsTargetingFilter(string organizationId, ExchangeAccount[] accounts, string folderName) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/SetDriveMapsTargetingFilter", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void SetDriveMapsTargetingFilter(string organizationId, ExchangeAccount[] accounts, string folderName) { this.Invoke("SetDriveMapsTargetingFilter", new object[] { - organizationId, - accounts, - folderName}); + organizationId, + accounts, + folderName}); } - + /// - public System.IAsyncResult BeginSetDriveMapsTargetingFilter(string organizationId, ExchangeAccount[] accounts, string folderName, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginSetDriveMapsTargetingFilter(string organizationId, ExchangeAccount[] accounts, string folderName, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("SetDriveMapsTargetingFilter", new object[] { - organizationId, - accounts, - folderName}, callback, asyncState); + organizationId, + accounts, + folderName}, callback, asyncState); } - + /// - public void EndSetDriveMapsTargetingFilter(System.IAsyncResult asyncResult) - { + public void EndSetDriveMapsTargetingFilter(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void SetDriveMapsTargetingFilterAsync(string organizationId, ExchangeAccount[] accounts, string folderName) - { + public void SetDriveMapsTargetingFilterAsync(string organizationId, ExchangeAccount[] accounts, string folderName) { this.SetDriveMapsTargetingFilterAsync(organizationId, accounts, folderName, null); } - + /// - public void SetDriveMapsTargetingFilterAsync(string organizationId, ExchangeAccount[] accounts, string folderName, object userState) - { - if ((this.SetDriveMapsTargetingFilterOperationCompleted == null)) - { + public void SetDriveMapsTargetingFilterAsync(string organizationId, ExchangeAccount[] accounts, string folderName, object userState) { + if ((this.SetDriveMapsTargetingFilterOperationCompleted == null)) { this.SetDriveMapsTargetingFilterOperationCompleted = new System.Threading.SendOrPostCallback(this.OnSetDriveMapsTargetingFilterOperationCompleted); } this.InvokeAsync("SetDriveMapsTargetingFilter", new object[] { - organizationId, - accounts, - folderName}, this.SetDriveMapsTargetingFilterOperationCompleted, userState); + organizationId, + accounts, + folderName}, this.SetDriveMapsTargetingFilterOperationCompleted, userState); } - - private void OnSetDriveMapsTargetingFilterOperationCompleted(object arg) - { - if ((this.SetDriveMapsTargetingFilterCompleted != null)) - { + + private void OnSetDriveMapsTargetingFilterOperationCompleted(object arg) { + if ((this.SetDriveMapsTargetingFilterCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.SetDriveMapsTargetingFilterCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// [System.Web.Services.Protocols.SoapHeaderAttribute("ServiceProviderSettingsSoapHeaderValue")] - [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ChangeDriveMapFolderPath", RequestNamespace = "http://tempuri.org/", ResponseNamespace = "http://tempuri.org/", Use = System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle = System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] - public void ChangeDriveMapFolderPath(string organizationId, string oldFolder, string newFolder) - { + [System.Web.Services.Protocols.SoapDocumentMethodAttribute("http://tempuri.org/ChangeDriveMapFolderPath", RequestNamespace="http://tempuri.org/", ResponseNamespace="http://tempuri.org/", Use=System.Web.Services.Description.SoapBindingUse.Literal, ParameterStyle=System.Web.Services.Protocols.SoapParameterStyle.Wrapped)] + public void ChangeDriveMapFolderPath(string organizationId, string oldFolder, string newFolder) { this.Invoke("ChangeDriveMapFolderPath", new object[] { - organizationId, - oldFolder, - newFolder}); + organizationId, + oldFolder, + newFolder}); } - + /// - public System.IAsyncResult BeginChangeDriveMapFolderPath(string organizationId, string oldFolder, string newFolder, System.AsyncCallback callback, object asyncState) - { + public System.IAsyncResult BeginChangeDriveMapFolderPath(string organizationId, string oldFolder, string newFolder, System.AsyncCallback callback, object asyncState) { return this.BeginInvoke("ChangeDriveMapFolderPath", new object[] { - organizationId, - oldFolder, - newFolder}, callback, asyncState); + organizationId, + oldFolder, + newFolder}, callback, asyncState); } - + /// - public void EndChangeDriveMapFolderPath(System.IAsyncResult asyncResult) - { + public void EndChangeDriveMapFolderPath(System.IAsyncResult asyncResult) { this.EndInvoke(asyncResult); } - + /// - public void ChangeDriveMapFolderPathAsync(string organizationId, string oldFolder, string newFolder) - { + public void ChangeDriveMapFolderPathAsync(string organizationId, string oldFolder, string newFolder) { this.ChangeDriveMapFolderPathAsync(organizationId, oldFolder, newFolder, null); } - + /// - public void ChangeDriveMapFolderPathAsync(string organizationId, string oldFolder, string newFolder, object userState) - { - if ((this.ChangeDriveMapFolderPathOperationCompleted == null)) - { + public void ChangeDriveMapFolderPathAsync(string organizationId, string oldFolder, string newFolder, object userState) { + if ((this.ChangeDriveMapFolderPathOperationCompleted == null)) { this.ChangeDriveMapFolderPathOperationCompleted = new System.Threading.SendOrPostCallback(this.OnChangeDriveMapFolderPathOperationCompleted); } this.InvokeAsync("ChangeDriveMapFolderPath", new object[] { - organizationId, - oldFolder, - newFolder}, this.ChangeDriveMapFolderPathOperationCompleted, userState); + organizationId, + oldFolder, + newFolder}, this.ChangeDriveMapFolderPathOperationCompleted, userState); } - - private void OnChangeDriveMapFolderPathOperationCompleted(object arg) - { - if ((this.ChangeDriveMapFolderPathCompleted != null)) - { + + private void OnChangeDriveMapFolderPathOperationCompleted(object arg) { + if ((this.ChangeDriveMapFolderPathCompleted != null)) { System.Web.Services.Protocols.InvokeCompletedEventArgs invokeArgs = ((System.Web.Services.Protocols.InvokeCompletedEventArgs)(arg)); this.ChangeDriveMapFolderPathCompleted(this, new System.ComponentModel.AsyncCompletedEventArgs(invokeArgs.Error, invokeArgs.Cancelled, invokeArgs.UserState)); } } - + /// - public new void CancelAsync(object userState) - { + public new void CancelAsync(object userState) { base.CancelAsync(userState); } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void OrganizationExistsCompletedEventHandler(object sender, OrganizationExistsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class OrganizationExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class OrganizationExistsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal OrganizationExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal OrganizationExistsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public bool Result - { - get - { + public bool Result { + get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateOrganizationCompletedEventHandler(object sender, CreateOrganizationCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CreateOrganizationCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CreateOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CreateOrganizationCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public Organization Result - { - get - { + public Organization Result { + get { this.RaiseExceptionIfNecessary(); return ((Organization)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteOrganizationCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateUserCompletedEventHandler(object sender, CreateUserCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CreateUserCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CreateUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CreateUserCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public int Result - { - get - { + public int Result { + get { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + + /// + [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] + public delegate void DisableUserCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteUserCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetUserGeneralSettingsCompletedEventHandler(object sender, GetUserGeneralSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetUserGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetUserGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetUserGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetUserGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public OrganizationUser Result - { - get - { + public OrganizationUser Result { + get { this.RaiseExceptionIfNecessary(); return ((OrganizationUser)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateSecurityGroupCompletedEventHandler(object sender, CreateSecurityGroupCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateSecurityGroupCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CreateSecurityGroupCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CreateSecurityGroupCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CreateSecurityGroupCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public int Result - { - get - { + public int Result { + get { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetSecurityGroupGeneralSettingsCompletedEventHandler(object sender, GetSecurityGroupGeneralSettingsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetSecurityGroupGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetSecurityGroupGeneralSettingsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetSecurityGroupGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetSecurityGroupGeneralSettingsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public OrganizationSecurityGroup Result - { - get - { + public OrganizationSecurityGroup Result { + get { this.RaiseExceptionIfNecessary(); return ((OrganizationSecurityGroup)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteSecurityGroupCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetSecurityGroupGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void AddObjectToSecurityGroupCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteObjectFromSecurityGroupCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetUserGeneralSettingsCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetUserPasswordCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetUserPrincipalNameCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteOrganizationDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateOrganizationDomainCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetPasswordPolicyCompletedEventHandler(object sender, GetPasswordPolicyCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetPasswordPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetPasswordPolicyCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetPasswordPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetPasswordPolicyCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public PasswordPolicyResult Result - { - get - { + public PasswordPolicyResult Result { + get { this.RaiseExceptionIfNecessary(); return ((PasswordPolicyResult)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetSamAccountNameByUserPrincipalNameCompletedEventHandler(object sender, GetSamAccountNameByUserPrincipalNameCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetSamAccountNameByUserPrincipalNameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetSamAccountNameByUserPrincipalNameCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetSamAccountNameByUserPrincipalNameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetSamAccountNameByUserPrincipalNameCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public string Result - { - get - { + public string Result { + get { this.RaiseExceptionIfNecessary(); return ((string)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DoesSamAccountNameExistCompletedEventHandler(object sender, DoesSamAccountNameExistCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class DoesSamAccountNameExistCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class DoesSamAccountNameExistCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal DoesSamAccountNameExistCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal DoesSamAccountNameExistCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public bool Result - { - get - { + public bool Result { + get { this.RaiseExceptionIfNecessary(); return ((bool)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void GetDriveMapsCompletedEventHandler(object sender, GetDriveMapsCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class GetDriveMapsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class GetDriveMapsCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal GetDriveMapsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal GetDriveMapsCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public MappedDrive[] Result - { - get - { + public MappedDrive[] Result { + get { this.RaiseExceptionIfNecessary(); return ((MappedDrive[])(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void CreateMappedDriveCompletedEventHandler(object sender, CreateMappedDriveCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] [System.Diagnostics.DebuggerStepThroughAttribute()] [System.ComponentModel.DesignerCategoryAttribute("code")] - public partial class CreateMappedDriveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs - { - + public partial class CreateMappedDriveCompletedEventArgs : System.ComponentModel.AsyncCompletedEventArgs { + private object[] results; - - internal CreateMappedDriveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : - base(exception, cancelled, userState) - { + + internal CreateMappedDriveCompletedEventArgs(object[] results, System.Exception exception, bool cancelled, object userState) : + base(exception, cancelled, userState) { this.results = results; } - + /// - public int Result - { - get - { + public int Result { + get { this.RaiseExceptionIfNecessary(); return ((int)(this.results[0])); } } } - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteMappedDriveCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteMappedDriveByPathCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void DeleteMappedDrivesGPOCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void SetDriveMapsTargetingFilterCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); - + /// [System.CodeDom.Compiler.GeneratedCodeAttribute("wsdl", "2.0.50727.3038")] public delegate void ChangeDriveMapFolderPathCompletedEventHandler(object sender, System.ComponentModel.AsyncCompletedEventArgs e); diff --git a/WebsitePanel/Sources/WebsitePanel.Server.sln b/WebsitePanel/Sources/WebsitePanel.Server.sln index 8d0401c9..8f1323d3 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server.sln +++ b/WebsitePanel/Sources/WebsitePanel.Server.sln @@ -1,5 +1,7 @@ Microsoft Visual Studio Solution File, Format Version 12.00 -# Visual Studio 2012 +# Visual Studio 2013 +VisualStudioVersion = 12.0.30723.0 +MinimumVisualStudioVersion = 10.0.40219.1 Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Caching Application Block", "Caching Application Block", "{C8E6F2E4-A5B8-486A-A56E-92D864524682}" ProjectSection(SolutionItems) = preProject Bin\Microsoft.Practices.EnterpriseLibrary.Common.dll = Bin\Microsoft.Practices.EnterpriseLibrary.Common.dll diff --git a/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServer.asmx.cs b/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServer.asmx.cs index 27e9996d..9aa2b9f9 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServer.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server/ExchangeServer.asmx.cs @@ -1271,6 +1271,28 @@ namespace WebsitePanel.Server #endregion #region Archiving + + [WebMethod, SoapHeader("settings")] + public ResultObject ExportMailBox(string organizationId, string accountName, string storagePath) + { + ResultObject res = null; + try + { + LogStart("ExportMailBox"); + + res = ES.ExportMailBox(organizationId, accountName, storagePath); + + LogEnd("ExportMailBox"); + } + catch (Exception ex) + { + LogError("ExportMailBox", ex); + throw; + } + + return res; + } + [WebMethod, SoapHeader("settings")] public ResultObject SetMailBoxArchiving(string organizationId, string accountName, bool archive, long archiveQuotaKB, long archiveWarningQuotaKB, string RetentionPolicy) { diff --git a/WebsitePanel/Sources/WebsitePanel.Server/Organizations.asmx.cs b/WebsitePanel/Sources/WebsitePanel.Server/Organizations.asmx.cs index 3cfb62ba..f30a1190 100644 --- a/WebsitePanel/Sources/WebsitePanel.Server/Organizations.asmx.cs +++ b/WebsitePanel/Sources/WebsitePanel.Server/Organizations.asmx.cs @@ -99,6 +99,12 @@ namespace WebsitePanel.Server return Organization.CreateUser(organizationId, loginName, displayName, upn, password, enabled); } + [WebMethod, SoapHeader("settings")] + public void DisableUser(string loginName, string organizationId) + { + Organization.DisableUser(loginName, organizationId); + } + [WebMethod, SoapHeader("settings")] public void DeleteUser(string loginName, string organizationId) { diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/Entities/OfficeOnlineCollection.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/Entities/OfficeOnlineCollection.cs index a28114b5..4ecb0c7f 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/Entities/OfficeOnlineCollection.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/Entities/OfficeOnlineCollection.cs @@ -5,21 +5,21 @@ using WebsitePanel.WebDavPortal.WebConfigSections; namespace WebsitePanel.WebDav.Core.Config.Entities { - public class OfficeOnlineCollection : AbstractConfigCollection, IReadOnlyCollection + public class OfficeOnlineCollection : AbstractConfigCollection, IReadOnlyCollection { - private readonly IList _officeExtensions; + private readonly IList _officeExtensions; public OfficeOnlineCollection() { IsEnabled = ConfigSection.OfficeOnline.IsEnabled; Url = ConfigSection.OfficeOnline.Url; - _officeExtensions = ConfigSection.OfficeOnline.Cast().Select(x => x.Extension).ToList(); + _officeExtensions = ConfigSection.OfficeOnline.Cast().ToList(); } public bool IsEnabled { get; private set; } public string Url { get; private set; } - public IEnumerator GetEnumerator() + public IEnumerator GetEnumerator() { return _officeExtensions.GetEnumerator(); } @@ -36,7 +36,7 @@ namespace WebsitePanel.WebDav.Core.Config.Entities public bool Contains(string extension) { - return _officeExtensions.Contains(extension); + return _officeExtensions.Any(x=>x.Extension == extension); } } } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/Entities/SessionKeysCollection.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/Entities/SessionKeysCollection.cs index 057be2cf..f9337401 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/Entities/SessionKeysCollection.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/Entities/SessionKeysCollection.cs @@ -1,5 +1,7 @@ using System.Collections.Generic; using System.Linq; +using WebsitePanel.EnterpriseServer.Base.HostedSolution; +using WebsitePanel.WebDav.Core.Config.WebConfigSections; using WebsitePanel.WebDavPortal.WebConfigSections; namespace WebsitePanel.WebDav.Core.Config.Entities @@ -33,6 +35,26 @@ namespace WebsitePanel.WebDav.Core.Config.Entities } } + public string UserGroupsKey + { + get + { + SessionKeysElement sessionKey = + _sessionKeys.FirstOrDefault(x => x.Key == SessionKeysElement.UserGroupsKey); + return sessionKey != null ? sessionKey.Value : null; + } + } + + public string WebDavRootFoldersPermissions + { + get + { + SessionKeysElement sessionKey = + _sessionKeys.FirstOrDefault(x => x.Key == SessionKeysElement.WebDavRootFolderPermissionsKey); + return sessionKey != null ? sessionKey.Value : null; + } + } + public string ResourseRenderCount { get diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/OfficeOnlineElement.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/OfficeOnlineElement.cs index a6c25031..1f836eb3 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/OfficeOnlineElement.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/OfficeOnlineElement.cs @@ -5,6 +5,7 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections public class OfficeOnlineElement : ConfigurationElement { private const string ExtensionKey = "extension"; + private const string OwaOpenerKey = "owaOpener"; [ConfigurationProperty(ExtensionKey, IsKey = true, IsRequired = true)] public string Extension @@ -12,5 +13,12 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections get { return this[ExtensionKey].ToString(); } set { this[ExtensionKey] = value; } } + + [ConfigurationProperty(OwaOpenerKey, IsKey = true, IsRequired = true)] + public string OwaOpener + { + get { return this[OwaOpenerKey].ToString(); } + set { this[OwaOpenerKey] = value; } + } } } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/SessionKeysElement.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/SessionKeysElement.cs index cfe2e0b9..ca2a44fd 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/SessionKeysElement.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/SessionKeysElement.cs @@ -1,6 +1,6 @@ using System.Configuration; -namespace WebsitePanel.WebDavPortal.WebConfigSections +namespace WebsitePanel.WebDav.Core.Config.WebConfigSections { public class SessionKeysElement : ConfigurationElement { @@ -10,6 +10,8 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections public const string AccountInfoKey = "AccountInfoSessionKey"; public const string AuthTicketKey = "AuthTicketKey"; public const string WebDavManagerKey = "WebDavManagerSessionKey"; + public const string UserGroupsKey = "UserGroupsKey"; + public const string WebDavRootFolderPermissionsKey = "WebDavRootFolderPermissionsKey"; public const string ResourseRenderCountKey = "ResourseRenderCountSessionKey"; public const string ItemIdSessionKey = "ItemId"; diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/WebDavExplorerConfigurationSettingsSection.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/WebDavExplorerConfigurationSettingsSection.cs index af4e472e..1849b692 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/WebDavExplorerConfigurationSettingsSection.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/WebDavExplorerConfigurationSettingsSection.cs @@ -6,6 +6,7 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections public class WebDavExplorerConfigurationSettingsSection : ConfigurationSection { private const string UserDomainKey = "userDomain"; + private const string WebdavRootKey = "webdavRoot"; private const string AuthTimeoutCookieNameKey = "authTimeoutCookieName"; private const string AppName = "applicationName"; private const string WebsitePanelConstantUserKey = "websitePanelConstantUser"; @@ -25,6 +26,13 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections set { this[AuthTimeoutCookieNameKey] = value; } } + [ConfigurationProperty(WebdavRootKey, IsRequired = true)] + public WebdavRootElement WebdavRoot + { + get { return (WebdavRootElement)this[WebdavRootKey]; } + set { this[WebdavRootKey] = value; } + } + [ConfigurationProperty(UserDomainKey, IsRequired = true)] public UserDomainElement UserDomain { diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/WebdavRootElement.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/WebdavRootElement.cs new file mode 100644 index 00000000..2e6d1222 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebConfigSections/WebdavRootElement.cs @@ -0,0 +1,21 @@ +using System; +using System.Collections.Generic; +using System.Configuration; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace WebsitePanel.WebDav.Core.Config.WebConfigSections +{ + public class WebdavRootElement : ConfigurationElement + { + private const string ValueKey = "value"; + + [ConfigurationProperty(ValueKey, IsKey = true, IsRequired = true)] + public string Value + { + get { return (string)this[ValueKey]; } + set { this[ValueKey] = value; } + } + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebDavAppConfigManager.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebDavAppConfigManager.cs index cd28a090..01eebf42 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebDavAppConfigManager.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Config/WebDavAppConfigManager.cs @@ -30,6 +30,11 @@ namespace WebsitePanel.WebDav.Core.Config get { return _configSection.UserDomain.Value; } } + public string WebdavRoot + { + get { return _configSection.WebdavRoot.Value; } + } + public string ApplicationName { get { return _configSection.ApplicationName.Value; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Entities/Owa/CheckFileInfo.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Entities/Owa/CheckFileInfo.cs new file mode 100644 index 00000000..e4283ac9 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Entities/Owa/CheckFileInfo.cs @@ -0,0 +1,124 @@ +using System.Runtime.Serialization; + +namespace WebsitePanel.WebDav.Core.Entities.Owa +{ + [DataContract] + public class CheckFileInfo + { + [DataMember] + public string BaseFileName { get; set; } + [DataMember] + public string OwnerId { get; set; } + [DataMember] + public long Size { get; set; } + [DataMember] + public string Version { get; set; } + + //[DataMember] + //public string SHA256 { get; set; } + //[DataMember] + //public bool AllowExternalMarketplace { get; set; } + //[DataMember] + //public string BreadcrumbBrandName { get; set; } + //[DataMember] + //public string BreadcrumbBrandUrl { get; set; } + //[DataMember] + //public string BreadcrumbDocName { get; set; } + //[DataMember] + //public string BreadcrumbDocUrl { get; set; } + //[DataMember] + //public string BreadcrumbFolderName { get; set; } + //[DataMember] + //public string BreadcrumbFolderUrl { get; set; } + //[DataMember] + //public string ClientUrl { get; set; } + //[DataMember] + //public bool CloseButtonClosesWindow { get; set; } + //[DataMember] + //public string CloseUrl { get; set; } + //[DataMember] + //public bool DisableBrowserCachingOfUserContent { get; set; } + //[DataMember] + //public bool DisablePrint { get; set; } + //[DataMember] + //public bool DisableTranslation { get; set; } + //[DataMember] + //public string DownloadUrl { get; set; } + //[DataMember] + //public string FileSharingUrl { get; set; } + //[DataMember] + //public string FileUrl { get; set; } + //[DataMember] + //public string HostAuthenticationId { get; set; } + //[DataMember] + //public string HostEditUrl { get; set; } + //[DataMember] + //public string HostEmbeddedEditUrl { get; set; } + //[DataMember] + //public string HostEmbeddedViewUrl { get; set; } + //[DataMember] + //public string HostName { get; set; } + //[DataMember] + //public string HostNotes { get; set; } + //[DataMember] + //public string HostRestUrl { get; set; } + //[DataMember] + //public string HostViewUrl { get; set; } + //[DataMember] + //public string IrmPolicyDescription { get; set; } + //[DataMember] + //public string IrmPolicyTitle { get; set; } + + //[DataMember] + //public string PresenceProvider { get; set; } + //[DataMember] + //public string PresenceUserId { get; set; } + //[DataMember] + //public string PrivacyUrl { get; set; } + //[DataMember] + //public bool ProtectInClient { get; set; } + //[DataMember] + //public bool ReadOnly { get; set; } + //[DataMember] + //public bool RestrictedWebViewOnly { get; set; } + + //[DataMember] + //public string SignoutUrl { get; set; } + + //[DataMember] + //public bool SupportsCoauth { get; set; } + //[DataMember] + //public bool SupportsCobalt { get; set; } + //[DataMember] + //public bool SupportsFolders { get; set; } + //[DataMember] + //public bool SupportsLocks { get; set; } + //[DataMember] + //public bool SupportsScenarioLinks { get; set; } + //[DataMember] + //public bool SupportsSecureStore { get; set; } + //[DataMember] + //public bool SupportsUpdate { get; set; } + //[DataMember] + //public string TenantId { get; set; } + //[DataMember] + //public string TermsOfUseUrl { get; set; } + //[DataMember] + //public string TimeZone { get; set; } + //[DataMember] + //public bool UserCanAttend { get; set; } + //[DataMember] + //public bool UserCanNotWriteRelative { get; set; } + //[DataMember] + //public bool UserCanPresent { get; set; } + //[DataMember] + //public bool UserCanWrite { get; set; } + //[DataMember] + //public string UserFriendlyName { get; set; } + //[DataMember] + //public string UserId { get; set; } + + //[DataMember] + //public bool WebEditingDisabled { get; set; } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Exceptions/ConnectToWebDavServerException.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Exceptions/ConnectToWebDavServerException.cs similarity index 89% rename from WebsitePanel/Sources/WebsitePanel.WebDavPortal/Exceptions/ConnectToWebDavServerException.cs rename to WebsitePanel/Sources/WebsitePanel.WebDav.Core/Exceptions/ConnectToWebDavServerException.cs index 00cc4047..b0c58dd3 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Exceptions/ConnectToWebDavServerException.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Exceptions/ConnectToWebDavServerException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace WebsitePanel.WebDavPortal.Exceptions +namespace WebsitePanel.WebDav.Core.Exceptions { [Serializable] public class ConnectToWebDavServerException : Exception diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Exceptions/ResourceNotFoundException.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Exceptions/ResourceNotFoundException.cs similarity index 88% rename from WebsitePanel/Sources/WebsitePanel.WebDavPortal/Exceptions/ResourceNotFoundException.cs rename to WebsitePanel/Sources/WebsitePanel.WebDav.Core/Exceptions/ResourceNotFoundException.cs index fd6aca0d..46d6f1c0 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Exceptions/ResourceNotFoundException.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Exceptions/ResourceNotFoundException.cs @@ -1,7 +1,7 @@ using System; using System.Runtime.Serialization; -namespace WebsitePanel.WebDavPortal.Exceptions +namespace WebsitePanel.WebDav.Core.Exceptions { [Serializable] public class ResourceNotFoundException : Exception diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Exceptions/WebDavException.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Exceptions/WebDavException.cs index ea5a647b..3e4895a5 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Exceptions/WebDavException.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Exceptions/WebDavException.cs @@ -4,5 +4,19 @@ namespace WebsitePanel.WebDav.Core.Exceptions { public class WebDavException : Exception { + public WebDavException() + : base() { } + + public WebDavException(string message) + : base(message) { } + + public WebDavException(string format, params object[] args) + : base(string.Format(format, args)) { } + + public WebDavException(string message, Exception innerException) + : base(message, innerException) { } + + public WebDavException(string format, Exception innerException, params object[] args) + : base(string.Format(format, args), innerException) { } } } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Extensions/UriExtensions.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Extensions/UriExtensions.cs new file mode 100644 index 00000000..3f6bd4c6 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Extensions/UriExtensions.cs @@ -0,0 +1,13 @@ +using System; +using System.Linq; + +namespace WebsitePanel.WebDav.Core.Extensions +{ + static class UriExtensions + { + public static Uri Append(this Uri uri, params string[] paths) + { + return new Uri(paths.Aggregate(uri.AbsoluteUri, (current, path) => string.Format("{0}/{1}", current.TrimEnd('/'), path.TrimStart('/')))); + } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IFolder.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IFolder.cs index 9b14cf8a..1f45f389 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IFolder.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IFolder.cs @@ -1,4 +1,5 @@ using System; +using System.DirectoryServices.AccountManagement; using System.IO; using System.Linq; using System.Net; @@ -6,6 +7,7 @@ using System.Net.Security; using System.Text; using System.Text.RegularExpressions; using System.Xml; +using WebsitePanel.WebDav.Core.Config; using WebsitePanel.WebDav.Core.Exceptions; namespace WebsitePanel.WebDav.Core @@ -18,6 +20,7 @@ namespace WebsitePanel.WebDav.Core IFolder CreateFolder(string name); IHierarchyItem[] GetChildren(); IResource GetResource(string name); + Uri Path { get; } } public class WebDavFolder : WebDavHierarchyItem, IFolder @@ -25,6 +28,8 @@ namespace WebsitePanel.WebDav.Core private IHierarchyItem[] _children = new IHierarchyItem[0]; private Uri _path; + public Uri Path { get { return _path; } } + /// /// The constructor /// @@ -143,7 +148,7 @@ namespace WebsitePanel.WebDav.Core public IResource GetResource(string name) { IHierarchyItem item = - _children.Single(i => i.ItemType == ItemType.Resource && i.DisplayName.Trim('/') == name.Trim('/')); + _children.Single(i => i.DisplayName.Trim('/') == name.Trim('/')); var resource = new WebDavResource(); resource.SetCredentials(_credentials); resource.SetHierarchyItem(item); @@ -155,7 +160,7 @@ namespace WebsitePanel.WebDav.Core /// public void Open() { - var request = (HttpWebRequest) WebRequest.Create(_path); + var request = (HttpWebRequest)WebRequest.Create(_path); request.PreAuthenticate = true; request.Method = "PROPFIND"; request.ContentType = "application/xml"; @@ -163,10 +168,10 @@ namespace WebsitePanel.WebDav.Core //TODO Disable SSL ServicePointManager.ServerCertificateValidationCallback = new RemoteCertificateValidationCallback(delegate { return true; }); - var credentials = (NetworkCredential) _credentials; + var credentials = (NetworkCredential)_credentials; if (credentials != null && credentials.UserName != null) { - request.Credentials = credentials; + //request.Credentials = credentials; string auth = "Basic " + Convert.ToBase64String( Encoding.Default.GetBytes(credentials.UserName + ":" + credentials.Password)); diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IHierarchyItem.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IHierarchyItem.cs index 94f7348f..55369709 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IHierarchyItem.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IHierarchyItem.cs @@ -17,8 +17,9 @@ namespace WebsitePanel.WebDav.Core DateTime CreationDate { get; } string CreatorDisplayName { get; } string DisplayName { get; } + bool IsRootItem { get; set; } Uri Href { get; } - ItemType ItemType { get; } + ItemType ItemType { get;} DateTime LastModified { get; } Property[] Properties { get; } @@ -73,6 +74,8 @@ namespace WebsitePanel.WebDav.Core } } + public bool IsRootItem { get; set; } + public Uri Href { get { return _href; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IItemContent.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IItemContent.cs index 1a2d8e84..399aeba0 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IItemContent.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IItemContent.cs @@ -7,6 +7,7 @@ namespace WebsitePanel.WebDav.Core public interface IItemContent { long ContentLength { get; } + long AllocatedSpace { get; set; } string ContentType { get; } void Download(string filename); diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IResource.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IResource.cs index be8d4db3..4470ac67 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IResource.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/IResource.cs @@ -64,6 +64,7 @@ namespace WebsitePanel.WebDav.Core public long ContentLength { get { return _contentLength; } + set { _contentLength = value; } } public string ContentType @@ -110,6 +111,23 @@ namespace WebsitePanel.WebDav.Core webClient.UploadFile(Href, "PUT", filename); } + /// + /// Uploads content of a file specified by filename to the server + /// + /// Posted file data to be uploaded + public void Upload(byte[] data) + { + var credentials = (NetworkCredential)_credentials; + string auth = "Basic " + + Convert.ToBase64String( + Encoding.Default.GetBytes(credentials.UserName + ":" + credentials.Password)); + var webClient = new WebClient(); + webClient.Credentials = credentials; + webClient.Headers.Add("Authorization", auth); + + webClient.UploadData(Href, "PUT", data); + } + /// /// Loads content of the resource from WebDAV server. /// @@ -233,14 +251,19 @@ namespace WebsitePanel.WebDav.Core } } + public long AllocatedSpace { get; set; } + public bool IsRootItem { get; set; } + public Uri Href { get { return _href; } + set { SetHref(value.ToString(), new Uri(value.Scheme + "://" + value.Host + value.Segments[0] + value.Segments[1])); } } public ItemType ItemType { get { return _itemType; } + set { _itemType = value; } } public DateTime LastModified @@ -405,6 +428,15 @@ namespace WebsitePanel.WebDav.Core _lastModified = lastModified; } + /// + /// For internal use only. + /// + /// + public void SetItemType(ItemType type) + { + _itemType = type; + } + /// /// For internal use only. /// @@ -518,6 +550,7 @@ namespace WebsitePanel.WebDav.Core SetHref(item.Href); SetLastModified(item.LastModified); SetProperties(item.Properties); + SetItemType(item.ItemType); } } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Managers/IAccessTokenManager.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Managers/IAccessTokenManager.cs new file mode 100644 index 00000000..fb498205 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Managers/IAccessTokenManager.cs @@ -0,0 +1,14 @@ +using System; +using WebsitePanel.EnterpriseServer.Base.HostedSolution; +using WebsitePanel.WebDav.Core.Security.Authentication.Principals; + +namespace WebsitePanel.WebDav.Core.Interfaces.Managers +{ + public interface IAccessTokenManager + { + WebDavAccessToken CreateToken(WspPrincipal principal, string filePath); + WebDavAccessToken GetToken(int id); + WebDavAccessToken GetToken(Guid guid); + void ClearExpiredTokens(); + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Managers/IWebDavManager.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Managers/IWebDavManager.cs new file mode 100644 index 00000000..f6611a66 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Managers/IWebDavManager.cs @@ -0,0 +1,17 @@ +using System.Collections.Generic; +using System.Web; +using WebsitePanel.WebDav.Core.Client; + +namespace WebsitePanel.WebDav.Core.Interfaces.Managers +{ + public interface IWebDavManager + { + IEnumerable OpenFolder(string path); + bool IsFile(string path); + byte[] GetFileBytes(string path); + void UploadFile(string path, HttpPostedFileBase file); + IResource GetResource(string path); + string GetFileUrl(string path); + void DeleteResource(string path); + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Owa/IWopiServer.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Owa/IWopiServer.cs new file mode 100644 index 00000000..6f35d7ff --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Owa/IWopiServer.cs @@ -0,0 +1,12 @@ +using System.Web.Mvc; +using WebsitePanel.WebDav.Core.Client; +using WebsitePanel.WebDav.Core.Entities.Owa; + +namespace WebsitePanel.WebDav.Core.Interfaces.Owa +{ + public interface IWopiServer + { + CheckFileInfo GetCheckFileInfo(string path); + FileResult GetFile(string path); + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Security/IAuthenticationService.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Security/IAuthenticationService.cs index 6bd042a4..0cddd68c 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Security/IAuthenticationService.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Security/IAuthenticationService.cs @@ -3,6 +3,8 @@ using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; +using System.Web.Security; +using WebsitePanel.EnterpriseServer.Base.HostedSolution; using WebsitePanel.WebDav.Core.Security.Authentication.Principals; namespace WebsitePanel.WebDav.Core.Interfaces.Security diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Security/IWebDavAuthorizationService.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Security/IWebDavAuthorizationService.cs new file mode 100644 index 00000000..a8c376d3 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Interfaces/Security/IWebDavAuthorizationService.cs @@ -0,0 +1,11 @@ +using WebsitePanel.WebDav.Core.Security.Authentication.Principals; +using WebsitePanel.WebDav.Core.Security.Authorization.Enums; + +namespace WebsitePanel.WebDav.Core.Interfaces.Security +{ + public interface IWebDavAuthorizationService + { + bool HasAccess(WspPrincipal principal, string path); + WebDavPermissions GetPermissions(WspPrincipal principal, string path); + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Managers/AccessTokenManager.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Managers/AccessTokenManager.cs new file mode 100644 index 00000000..818a76a4 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Managers/AccessTokenManager.cs @@ -0,0 +1,42 @@ +using System; +using WebsitePanel.EnterpriseServer.Base.HostedSolution; +using WebsitePanel.WebDav.Core.Interfaces.Managers; +using WebsitePanel.WebDav.Core.Security.Authentication.Principals; +using WebsitePanel.WebDav.Core.Wsp.Framework; + +namespace WebsitePanel.WebDav.Core.Managers +{ + public class AccessTokenManager : IAccessTokenManager + { + public WebDavAccessToken CreateToken(WspPrincipal principal, string filePath) + { + var token = new WebDavAccessToken(); + + token.AccessToken = Guid.NewGuid(); + token.AccountId = principal.AccountId; + token.ItemId = principal.ItemId; + token.AuthData = principal.EncryptedPassword; + token.ExpirationDate = DateTime.Now.AddHours(3); + token.FilePath = filePath; + + token.Id = WSP.Services.EnterpriseStorage.AddWebDavAccessToken(token); + + return token; + } + + public WebDavAccessToken GetToken(int id) + { + return WSP.Services.EnterpriseStorage.GetWebDavAccessTokenById(id); + } + + public WebDavAccessToken GetToken(Guid guid) + { + return WSP.Services.EnterpriseStorage.GetWebDavAccessTokenByAccessToken(guid); + } + + public void ClearExpiredTokens() + { + WSP.Services.EnterpriseStorage.DeleteExpiredWebDavAccessTokens(); + } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Managers/WebDavManager.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Managers/WebDavManager.cs new file mode 100644 index 00000000..9575f2d2 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Managers/WebDavManager.cs @@ -0,0 +1,293 @@ +using System; +using System.Collections.Generic; +using System.IO; +using System.Linq; +using System.Net; +using System.Text; +using System.Web; +using System.Xml.Serialization; +using log4net; +using WebsitePanel.Providers.OS; +using WebsitePanel.WebDav.Core.Client; +using WebsitePanel.WebDav.Core.Config; +using WebsitePanel.WebDav.Core.Exceptions; +using WebsitePanel.WebDav.Core.Extensions; +using WebsitePanel.WebDav.Core.Interfaces.Managers; +using WebsitePanel.WebDav.Core.Resources; +using WebsitePanel.WebDav.Core.Security.Cryptography; +using WebsitePanel.WebDav.Core.Wsp.Framework; + +namespace WebsitePanel.WebDav.Core.Managers +{ + public class WebDavManager : IWebDavManager + { + private readonly ICryptography _cryptography; + private readonly WebDavSession _webDavSession; + + private readonly ILog Log; + + private bool _isRoot = true; + private IFolder _currentFolder; + + public WebDavManager(ICryptography cryptography) + { + _cryptography = cryptography; + Log = LogManager.GetLogger(this.GetType()); + + _webDavSession = new WebDavSession(); + } + + public IEnumerable OpenFolder(string pathPart) + { + IHierarchyItem[] children; + + if (string.IsNullOrWhiteSpace(pathPart)) + { + var resources = ConnectToWebDavServer().Select(x => new WebDavResource { Href = new Uri(x.Url), ItemType = ItemType.Folder }).ToArray(); + + var items = WSP.Services.EnterpriseStorage.GetEnterpriseFolders(WspContext.User.ItemId); + + foreach (var resource in resources) + { + var folder = items.FirstOrDefault(x => x.Name == resource.DisplayName); + + if (folder == null) + { + continue; + } + + resource.ContentLength = folder.Size; + resource.AllocatedSpace = folder.FRSMQuotaMB; + resource.IsRootItem = true; + } + + children = resources; + } + else + { + if (_currentFolder == null || _currentFolder.Path.ToString() != pathPart) + { + _webDavSession.Credentials = new NetworkCredential(WspContext.User.Login, + _cryptography.Decrypt(WspContext.User.EncryptedPassword), + WebDavAppConfigManager.Instance.UserDomain); + + _currentFolder = _webDavSession.OpenFolder(string.Format("{0}{1}/{2}", WebDavAppConfigManager.Instance.WebdavRoot, WspContext.User.OrganizationId, pathPart.TrimStart('/'))); + } + + children = _currentFolder.GetChildren().Where(x => !WebDavAppConfigManager.Instance.ElementsRendering.ElementsToIgnore.Contains(x.DisplayName.Trim('/'))).ToArray(); + } + + List sortedChildren = children.Where(x => x.ItemType == ItemType.Folder).OrderBy(x => x.DisplayName).ToList(); + sortedChildren.AddRange(children.Where(x => x.ItemType != ItemType.Folder).OrderBy(x => x.DisplayName)); + + return sortedChildren; + } + + public bool IsFile(string path) + { + string folder = GetFileFolder(path); + + if (string.IsNullOrWhiteSpace(folder)) + { + return false; + } + + var resourceName = GetResourceName(path); + + OpenFolder(folder); + + IResource resource = _currentFolder.GetResource(resourceName); + + return resource.ItemType != ItemType.Folder; + } + + + public byte[] GetFileBytes(string path) + { + try + { + string folder = GetFileFolder(path); + + var resourceName = GetResourceName(path); + + OpenFolder(folder); + + IResource resource = _currentFolder.GetResource(resourceName); + + Stream stream = resource.GetReadStream(); + byte[] fileBytes = ReadFully(stream); + + return fileBytes; + } + catch (InvalidOperationException exception) + { + throw new ResourceNotFoundException("Resource not found", exception); + } + } + + public void UploadFile(string path, HttpPostedFileBase file) + { + var resource = new WebDavResource(); + + var fileUrl = new Uri(WebDavAppConfigManager.Instance.WebdavRoot) + .Append(WspContext.User.OrganizationId) + .Append(path) + .Append(Path.GetFileName(file.FileName)); + + resource.SetHref(fileUrl); + resource.SetCredentials(new NetworkCredential(WspContext.User.Login, _cryptography.Decrypt(WspContext.User.EncryptedPassword))); + + file.InputStream.Seek(0, SeekOrigin.Begin); + var bytes = ReadFully(file.InputStream); + + resource.Upload(bytes); + } + + public void DeleteResource(string path) + { + path = RemoveLeadingFromPath(path, "office365"); + path = RemoveLeadingFromPath(path, WspContext.User.OrganizationId); + + string folderPath = GetFileFolder(path); + + OpenFolder(folderPath); + + var resourceName = GetResourceName(path); + + IResource resource = _currentFolder.GetResource(resourceName); + + if (resource.ItemType == ItemType.Folder && GetFoldersItemsCount(path) > 0) + { + throw new WebDavException(string.Format(WebDavResources.FolderIsNotEmptyFormat, resource.DisplayName)); + } + + resource.Delete(); + } + + public IResource GetResource(string path) + { + try + { + string folder = GetFileFolder(path); + + var resourceName = GetResourceName(path); + + OpenFolder(folder); + + return _currentFolder.GetResource(resourceName); + } + catch (InvalidOperationException exception) + { + throw new ResourceNotFoundException("Resource not found", exception); + } + } + + public string GetFileUrl(string path) + { + try + { + string folder = GetFileFolder(path); + + var resourceName = GetResourceName(path); + + OpenFolder(folder); + + IResource resource = _currentFolder.GetResource(resourceName); + return resource.Href.ToString(); + } + catch (InvalidOperationException exception) + { + throw new ResourceNotFoundException("Resource not found", exception); + } + } + + private IList ConnectToWebDavServer() + { + var rootFolders = new List(); + var user = WspContext.User; + + var userGroups = WSP.Services.Organizations.GetSecurityGroupsByMember(user.ItemId, user.AccountId); + + foreach (var folder in WSP.Services.EnterpriseStorage.GetEnterpriseFolders(WspContext.User.ItemId)) + { + var permissions = WSP.Services.EnterpriseStorage.GetEnterpriseFolderPermissions(WspContext.User.ItemId, folder.Name); + + foreach (var permission in permissions) + { + if ((!permission.IsGroup + && (permission.DisplayName == user.UserName || permission.DisplayName == user.DisplayName)) + || (permission.IsGroup && userGroups.Any(x => x.DisplayName == permission.DisplayName))) + { + rootFolders.Add(folder); + break; + } + } + } + return rootFolders; + } + + private int GetFoldersItemsCount(string path) + { + var items = OpenFolder(path); + + return items.Count(); + } + + #region Helpers + + private string RemoveLeadingFromPath(string pathPart, string toRemove) + { + return pathPart.StartsWith('/' + toRemove) ? pathPart.Substring(toRemove.Length + 1) : pathPart; + } + + private byte[] ReadFully(Stream input) + { + var buffer = new byte[16 * 1024]; + using (var ms = new MemoryStream()) + { + int read; + while ((read = input.Read(buffer, 0, buffer.Length)) > 0) + ms.Write(buffer, 0, read); + return ms.ToArray(); + } + } + + public void WriteTo(Stream sourceStream, Stream targetStream) + { + byte[] buffer = new byte[16 * 1024]; + int n; + while ((n = sourceStream.Read(buffer, 0, buffer.Length)) != 0) + targetStream.Write(buffer, 0, n); + } + + private string GetFileFolder(string path) + { + path = path.TrimEnd('/'); + + if (string.IsNullOrEmpty(path) || !path.Contains('/')) + { + return string.Empty; + } + + string fileName = path.Split('/').Last(); + int index = path.LastIndexOf(fileName, StringComparison.InvariantCultureIgnoreCase); + string folder = string.IsNullOrEmpty(fileName)? path : path.Remove(index - 1, fileName.Length + 1); + + return folder; + } + + private string GetResourceName(string path) + { + path = path.TrimEnd('/'); + + if (string.IsNullOrEmpty(path) || !path.Contains('/')) + { + return string.Empty; + } + + return path.Split('/').Last(); ; + } + + #endregion + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Owa/WopiServer.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Owa/WopiServer.cs new file mode 100644 index 00000000..c55f3e53 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Owa/WopiServer.cs @@ -0,0 +1,46 @@ +using System; +using System.IO; +using System.Linq; +using System.Net.Mime; +using System.Runtime.Serialization.Json; +using System.Text; +using System.Web.Mvc; +using WebsitePanel.WebDav.Core.Client; +using WebsitePanel.WebDav.Core.Entities.Owa; +using WebsitePanel.WebDav.Core.Interfaces.Managers; +using WebsitePanel.WebDav.Core.Interfaces.Owa; + +namespace WebsitePanel.WebDav.Core.Owa +{ + public class WopiServer : IWopiServer + { + private readonly IWebDavManager _webDavManager; + + public WopiServer(IWebDavManager webDavManager) + { + _webDavManager = webDavManager; + } + + public CheckFileInfo GetCheckFileInfo(string path) + { + var resource = _webDavManager.GetResource(path); + + var cFileInfo = new CheckFileInfo + { + BaseFileName = resource.DisplayName, + OwnerId = @"4257508bfe174aa28b461536d8b6b648", + Size = resource.ContentLength, + Version = @"%22%7B59CCD75F%2D0687%2D4F86%2DBBCF%2D059126640640%7D%2C1%22" + }; + + return cFileInfo; + } + + public FileResult GetFile(string path) + { + var fileBytes = _webDavManager.GetFileBytes(path); + + return new FileContentResult(fileBytes, MediaTypeNames.Application.Octet); + } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Resources/WebDavResources.Designer.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Resources/WebDavResources.Designer.cs new file mode 100644 index 00000000..2cb3ad80 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Resources/WebDavResources.Designer.cs @@ -0,0 +1,72 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.33440 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WebsitePanel.WebDav.Core.Resources { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + internal class WebDavResources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal WebDavResources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WebsitePanel.WebDav.Core.Resources.WebDavResources", typeof(WebDavResources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + internal static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Folder {0} is not empty.. + /// + internal static string FolderIsNotEmptyFormat { + get { + return ResourceManager.GetString("FolderIsNotEmptyFormat", resourceCulture); + } + } + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Resources/WebDavResources.resx b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Resources/WebDavResources.resx new file mode 100644 index 00000000..fb231645 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Resources/WebDavResources.resx @@ -0,0 +1,123 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Folder {0} is not empty. + + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authentication/FormsAuthenticationService.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authentication/FormsAuthenticationService.cs index b33ae4ac..f802b9b8 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authentication/FormsAuthenticationService.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authentication/FormsAuthenticationService.cs @@ -1,8 +1,10 @@ using System; using System.DirectoryServices.AccountManagement; +using System.Threading; using System.Web; using System.Web.Script.Serialization; using System.Web.Security; +using WebsitePanel.EnterpriseServer.Base.HostedSolution; using WebsitePanel.WebDav.Core.Config; using WebsitePanel.WebDav.Core.Interfaces.Security; using WebsitePanel.WebDav.Core.Security.Authentication.Principals; @@ -24,13 +26,20 @@ namespace WebsitePanel.WebDav.Core.Security.Authentication public WspPrincipal LogIn(string login, string password) { - if (_principalContext.ValidateCredentials(login, password) == false) + if (string.IsNullOrEmpty(login) || string.IsNullOrEmpty(password)) + { + return null; + } + + var user = UserPrincipal.FindByIdentity(_principalContext, IdentityType.UserPrincipalName, login); + + if (user == null || _principalContext.ValidateCredentials(login, password) == false) { return null; } var principal = new WspPrincipal(login); - + var exchangeAccount = WSP.Services.ExchangeServer.GetAccountByAccountNameWithoutItemId(login); var organization = WSP.Services.Organizations.GetOrganization(exchangeAccount.ItemId); @@ -40,9 +49,12 @@ namespace WebsitePanel.WebDav.Core.Security.Authentication principal.DisplayName = exchangeAccount.DisplayName; principal.EncryptedPassword = _cryptography.Encrypt(password); - CreateAuthenticationTicket(principal); + if (HttpContext.Current != null) + { + HttpContext.Current.User = principal; + } - HttpContext.Current.User = principal; + Thread.CurrentPrincipal = principal; return principal; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authentication/Principals/WspPrincipal.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authentication/Principals/WspPrincipal.cs index 15401a14..e70bb304 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authentication/Principals/WspPrincipal.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authentication/Principals/WspPrincipal.cs @@ -12,7 +12,6 @@ namespace WebsitePanel.WebDav.Core.Security.Authentication.Principals public int ItemId { get; set; } public string Login { get; set; } - public string EncryptedPassword { get; set; } public string DisplayName { get; set; } @@ -27,9 +26,11 @@ namespace WebsitePanel.WebDav.Core.Security.Authentication.Principals [XmlIgnore, ScriptIgnore] public IIdentity Identity { get; private set; } + public string EncryptedPassword { get; set; } + public WspPrincipal(string username) - { - Identity = new GenericIdentity(username); + { + Identity = new GenericIdentity(username);//new WindowsIdentity(username, "WindowsAuthentication"); Login = username; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authorization/Enums/WebDavPermissions.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authorization/Enums/WebDavPermissions.cs new file mode 100644 index 00000000..b3c9a52e --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authorization/Enums/WebDavPermissions.cs @@ -0,0 +1,13 @@ +using System; + +namespace WebsitePanel.WebDav.Core.Security.Authorization.Enums +{ + [Flags] + public enum WebDavPermissions + { + Empty = 0, + None = 1, + Read = 2, + Write = 4 + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authorization/WebDavAuthorizationService.cs b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authorization/WebDavAuthorizationService.cs new file mode 100644 index 00000000..e632b873 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/Security/Authorization/WebDavAuthorizationService.cs @@ -0,0 +1,104 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using WebsitePanel.EnterpriseServer.Base.HostedSolution; +using WebsitePanel.Providers.HostedSolution; +using WebsitePanel.WebDav.Core.Config; +using WebsitePanel.WebDav.Core.Interfaces.Security; +using WebsitePanel.WebDav.Core.Security.Authentication.Principals; +using WebsitePanel.WebDav.Core.Security.Authorization.Enums; +using WebsitePanel.WebDav.Core.Wsp.Framework; + +namespace WebsitePanel.WebDav.Core.Security.Authorization +{ + public class WebDavAuthorizationService : IWebDavAuthorizationService + { + public bool HasAccess(WspPrincipal principal, string path) + { + var permissions = GetPermissions(principal, path); + + return permissions.HasFlag(WebDavPermissions.Read) || permissions.HasFlag(WebDavPermissions.Write); + } + + public WebDavPermissions GetPermissions(WspPrincipal principal, string path) + { + if (string.IsNullOrEmpty(path)) + { + return WebDavPermissions.Read; + } + + var resultPermissions = WebDavPermissions.Empty; + + var rootFolder = GetRootFolder(path); + + var userGroups = GetUserSecurityGroups(principal); + + var permissions = GetFolderEsPermissions(principal, rootFolder); + + foreach (var permission in permissions) + { + if ((!permission.IsGroup + && (permission.DisplayName == principal.UserName || permission.DisplayName == principal.DisplayName)) + || (permission.IsGroup && userGroups.Any(x => x.DisplayName == permission.DisplayName))) + { + if (permission.Access.ToLowerInvariant().Contains("read")) + { + resultPermissions |= WebDavPermissions.Read; + } + + if (permission.Access.ToLowerInvariant().Contains("write")) + { + resultPermissions |= WebDavPermissions.Write; + } + } + } + + return resultPermissions; + } + + private string GetRootFolder(string path) + { + return path.Split(new[]{'/'}, StringSplitOptions.RemoveEmptyEntries)[0]; + } + + private IEnumerable GetFolderEsPermissions(WspPrincipal principal, string rootFolderName) + { + var dictionary = HttpContext.Current.Session[WebDavAppConfigManager.Instance.SessionKeys.WebDavRootFoldersPermissions] as + Dictionary>; + + if (dictionary == null) + { + dictionary = new Dictionary>(); + + var rootFolders = WSP.Services.EnterpriseStorage.GetEnterpriseFolders(principal.ItemId); + + foreach (var rootFolder in rootFolders) + { + var permissions = WSP.Services.EnterpriseStorage.GetEnterpriseFolderPermissions(principal.ItemId, rootFolder.Name); + + dictionary.Add(rootFolder.Name, permissions); + } + + HttpContext.Current.Session[WebDavAppConfigManager.Instance.SessionKeys.WebDavRootFoldersPermissions] = dictionary; + } + + return dictionary.ContainsKey(rootFolderName) ? dictionary[rootFolderName] : new ESPermission[0]; + } + + private IEnumerable GetUserSecurityGroups(WspPrincipal principal) + { + var groups = HttpContext.Current.Session[WebDavAppConfigManager.Instance.SessionKeys.UserGroupsKey] as + IEnumerable; + + if (groups == null) + { + groups = WSP.Services.Organizations.GetSecurityGroupsByMember(principal.ItemId, principal.AccountId); + + HttpContext.Current.Session[WebDavAppConfigManager.Instance.SessionKeys.UserGroupsKey] = groups; + } + + return groups ?? new ExchangeAccount[0]; + } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/WebsitePanel.WebDav.Core.csproj b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/WebsitePanel.WebDav.Core.csproj index cdd7e02b..5f810c52 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/WebsitePanel.WebDav.Core.csproj +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/WebsitePanel.WebDav.Core.csproj @@ -32,6 +32,9 @@ 4 + + ..\packages\log4net.2.0.0\lib\net40-full\log4net.dll + True ..\packages\Microsoft.Web.Infrastructure.1.0.0.0\lib\net40\Microsoft.Web.Infrastructure.dll @@ -42,9 +45,11 @@ True + + C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5\System.Web.dll @@ -79,6 +84,9 @@ + + ..\WebsitePanel.WebPortal\Bin\WebsitePanel.EnterpriseServer.Base.dll + ..\WebsitePanel.WebPortal\Bin\WebsitePanel.EnterpriseServer.Client.dll @@ -106,20 +114,31 @@ + + + + + + + + + + + @@ -128,10 +147,18 @@ True HttpErrors.resx + + True + True + WebDavResources.resx + + + + @@ -153,6 +180,10 @@ ResXFileCodeGenerator HttpErrors.Designer.cs + + ResXFileCodeGenerator + WebDavResources.Designer.cs + diff --git a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/packages.config b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/packages.config index 2b0a9f5f..ad6a1af2 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDav.Core/packages.config +++ b/WebsitePanel/Sources/WebsitePanel.WebDav.Core/packages.config @@ -1,5 +1,6 @@  + diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/BundleConfig.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/BundleConfig.cs index a2285f14..411062bb 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/BundleConfig.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/BundleConfig.cs @@ -26,7 +26,12 @@ namespace WebsitePanel.WebDavPortal bundles.Add(new ScriptBundle("~/bundles/appScripts").Include( "~/Scripts/appScripts/recalculateResourseHeight.js", "~/Scripts/appScripts/uploadingData2.js", - "~/Scripts/appScripts/authentication.js")); + "~/Scripts/appScripts/authentication.js", + "~/Scripts/appScripts/messages.js", + "~/Scripts/appScripts/fileBrowsing.js", + "~/Scripts/appScripts/dialogs.js", + "~/Scripts/appScripts/wsp.js" + )); bundles.Add(new ScriptBundle("~/bundles/authScripts").Include( "~/Scripts/appScripts/authentication.js")); diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs index d8b9682d..c757a379 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/App_Start/RouteConfig.cs @@ -26,14 +26,48 @@ namespace WebsitePanel.WebDavPortal #endregion + #region Owa + routes.MapRoute( - name: "Office365DocumentRoute", + name: OwaRouteNames.GetFile, + url: "owa/wopi*/files/{accessTokenId}/contents", + defaults: new { controller = "Owa", action = "GetFile" } + ); + + routes.MapRoute( + name: OwaRouteNames.CheckFileInfo, + url: "owa/wopi*/files/{accessTokenId}", + defaults: new { controller = "Owa", action = "CheckFileInfo" } + ); + + #endregion + + routes.MapRoute( + name: FileSystemRouteNames.DeleteFiles, + url: "files-group-action/delete", + defaults: new { controller = "FileSystem", action = "DeleteFiles" } + ); + + routes.MapRoute( + name: FileSystemRouteNames.UploadFile, + url: "upload-file/{org}/{*pathPart}", + defaults: new { controller = "FileSystem", action = "UploadFile" } + ); + + routes.MapRoute( + name: FileSystemRouteNames.ShowOfficeOnlinePath, url: "office365/{org}/{*pathPart}", defaults: new { controller = "FileSystem", action = "ShowOfficeDocument", pathPart = UrlParameter.Optional } ); - + routes.MapRoute( - name: FileSystemRouteNames.FilePath, + name: FileSystemRouteNames.ShowAdditionalContent, + url: "show-additional-content/{*path}", + defaults: new { controller = "FileSystem", action = "ShowAdditionalContent", path = UrlParameter.Optional } + ); + + routes.MapRoute( + name: FileSystemRouteNames.ShowContentPath, url: "{org}/{*pathPart}", defaults: new { controller = "FileSystem", action = "ShowContent", pathPart = UrlParameter.Optional } ); diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Content/Site.css b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Content/Site.css index 2389aea4..4cff7279 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Content/Site.css +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Content/Site.css @@ -26,6 +26,32 @@ textarea { .element-container { margin-bottom: 15px; text-align:center; + cursor: pointer; +} + +.element-container .element { + position: relative; + text-align:center; +} + +.selected-file .element { + position: relative; + box-sizing:border-box; + -moz-box-sizing:border-box; + -webkit-box-sizing:border-box; + border: 1px solid rgb(80, 152, 249); + padding: 3px; +} + +.selected-file .element div.selected-element-overlay { + position:absolute; + top:0px; + left: 0px; + width:100%; + height:100%; + background:rgb(200, 224, 255); + opacity:0.3; + pointer-events: none; } #errorMessage { @@ -45,4 +71,27 @@ textarea { #logout :hover { color: white; +} + + +.web-dav-folder-progress { + margin-bottom: 0px; +} + +.modal-vertical-centered { + margin-top: 25%; +} + + +.file-actions-menu { + margin-top: 10px; + margin-bottom: 15px; +} + +.file-actions-menu .file-deletion { + display: none; +} + +#message-area { + margin-top: 15px; } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/AccountController.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/AccountController.cs index f3b3e1b2..2642f2f5 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/AccountController.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/AccountController.cs @@ -3,9 +3,11 @@ using System.Net; using System.Web.Mvc; using System.Web.Routing; using WebsitePanel.WebDav.Core.Config; +using WebsitePanel.WebDav.Core.Security.Authentication; using WebsitePanel.WebDav.Core.Security.Cryptography; -using WebsitePanel.WebDavPortal.Exceptions; using WebsitePanel.WebDavPortal.Models; +using WebsitePanel.WebDavPortal.Models.Common; +using WebsitePanel.WebDavPortal.Models.Common.Enums; using WebsitePanel.WebDavPortal.UI.Routes; using WebsitePanel.WebDav.Core.Interfaces.Security; using WebsitePanel.WebDav.Core; @@ -29,7 +31,7 @@ namespace WebsitePanel.WebDavPortal.Controllers { if (WspContext.User != null && WspContext.User.Identity.IsAuthenticated) { - return RedirectToRoute(FileSystemRouteNames.FilePath, new { org = WspContext.User.OrganizationId }); + return RedirectToRoute(FileSystemRouteNames.ShowContentPath, new { org = WspContext.User.OrganizationId }); } return View(); @@ -39,14 +41,14 @@ namespace WebsitePanel.WebDavPortal.Controllers public ActionResult Login(AccountModel model) { var user = _authenticationService.LogIn(model.Login, model.Password); + + ViewBag.LdapIsAuthentication = user != null; - ViewBag.LdapIsAuthentication = user.Identity.IsAuthenticated; - - if (user.Identity.IsAuthenticated) + if (user != null && user.Identity.IsAuthenticated) { - Session[WebDavAppConfigManager.Instance.SessionKeys.WebDavManager] = null; + _authenticationService.CreateAuthenticationTicket(user); - return RedirectToRoute(FileSystemRouteNames.FilePath, new { org = WspContext.User.OrganizationId }); + return RedirectToRoute(FileSystemRouteNames.ShowContentPath, new { org = WspContext.User.OrganizationId }); } return View(new AccountModel { LdapError = "The user name or password is incorrect" }); @@ -57,8 +59,6 @@ namespace WebsitePanel.WebDavPortal.Controllers { _authenticationService.LogOut(); - Session[WebDavAppConfigManager.Instance.SessionKeys.WebDavManager] = null; - return RedirectToRoute(AccountRouteNames.Login); } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/FileSystemController.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/FileSystemController.cs index 80966704..65d352e6 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/FileSystemController.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/FileSystemController.cs @@ -1,17 +1,29 @@ using System; using System.Collections.Generic; +using System.Diagnostics; +using System.IO; using System.Linq; using System.Net.Mime; using System.Web; using System.Web.Mvc; +using System.Web.Routing; +using log4net; using WebsitePanel.WebDav.Core; using WebsitePanel.WebDav.Core.Client; using WebsitePanel.WebDav.Core.Config; using WebsitePanel.WebDav.Core.Exceptions; +using WebsitePanel.WebDav.Core.Interfaces.Managers; +using WebsitePanel.WebDav.Core.Interfaces.Security; +using WebsitePanel.WebDav.Core.Security.Cryptography; using WebsitePanel.WebDavPortal.CustomAttributes; using WebsitePanel.WebDavPortal.Extensions; using WebsitePanel.WebDavPortal.Models; using System.Net; +using WebsitePanel.WebDavPortal.Models.Common; +using WebsitePanel.WebDavPortal.Models.Common.Enums; +using WebsitePanel.WebDavPortal.Models.FileSystem; +using WebsitePanel.WebDavPortal.UI; +using WebsitePanel.WebDavPortal.UI.Routes; namespace WebsitePanel.WebDavPortal.Controllers @@ -20,37 +32,51 @@ namespace WebsitePanel.WebDavPortal.Controllers [LdapAuthorization] public class FileSystemController : Controller { + private readonly ICryptography _cryptography; private readonly IWebDavManager _webdavManager; + private readonly IAuthenticationService _authenticationService; + private readonly IAccessTokenManager _tokenManager; + private readonly IWebDavAuthorizationService _webDavAuthorizationService; + private readonly ILog Log; - public FileSystemController(IWebDavManager webdavManager) + public FileSystemController(ICryptography cryptography, IWebDavManager webdavManager, IAuthenticationService authenticationService, IAccessTokenManager tokenManager, IWebDavAuthorizationService webDavAuthorizationService) { + _cryptography = cryptography; _webdavManager = webdavManager; + _authenticationService = authenticationService; + _tokenManager = tokenManager; + _webDavAuthorizationService = webDavAuthorizationService; + + Log = LogManager.GetLogger(this.GetType()); } [HttpGet] public ActionResult ShowContent(string org, string pathPart = "") { if (org != WspContext.User.OrganizationId) - return new HttpStatusCodeResult(HttpStatusCode.NoContent); - - string fileName = pathPart.Split('/').Last(); - if (_webdavManager.IsFile(fileName)) { - var fileBytes = _webdavManager.GetFileBytes(fileName); + return new HttpStatusCodeResult(HttpStatusCode.NoContent); + } + + string fileName = pathPart.Split('/').Last(); + + if (_webdavManager.IsFile(pathPart)) + { + var fileBytes = _webdavManager.GetFileBytes(pathPart); return File(fileBytes, MediaTypeNames.Application.Octet, fileName); } try { - _webdavManager.OpenFolder(pathPart); - IEnumerable children = _webdavManager.GetChildren().Where(x => !WebDavAppConfigManager.Instance.ElementsRendering.ElementsToIgnore.Contains(x.DisplayName.Trim('/'))); + IEnumerable children = _webdavManager.OpenFolder(pathPart); - var model = new ModelForWebDav { Items = children.Take(WebDavAppConfigManager.Instance.ElementsRendering.DefaultCount), UrlSuffix = pathPart }; - Session[WebDavAppConfigManager.Instance.SessionKeys.ResourseRenderCount] = WebDavAppConfigManager.Instance.ElementsRendering.DefaultCount; + var permissions = _webDavAuthorizationService.GetPermissions(WspContext.User, pathPart); + + var model = new ModelForWebDav { Items = children.Take(WebDavAppConfigManager.Instance.ElementsRendering.DefaultCount), UrlSuffix = pathPart, Permissions = permissions}; return View(model); } - catch (UnauthorizedException) + catch (UnauthorizedException e) { throw new HttpException(404, "Not Found"); } @@ -58,29 +84,80 @@ namespace WebsitePanel.WebDavPortal.Controllers public ActionResult ShowOfficeDocument(string org, string pathPart = "") { - string fileUrl = _webdavManager.RootPath.TrimEnd('/') + "/" + pathPart.TrimStart('/'); - var uri = new Uri(WebDavAppConfigManager.Instance.OfficeOnline.Url).AddParameter("src", fileUrl).ToString(); + var owaOpener = WebDavAppConfigManager.Instance.OfficeOnline.Single(x => x.Extension == Path.GetExtension(pathPart)); + + string fileUrl = WebDavAppConfigManager.Instance.WebdavRoot+ org + "/" + pathPart.TrimStart('/'); + var accessToken = _tokenManager.CreateToken(WspContext.User, pathPart); + + string wopiSrc = Server.UrlDecode(Url.RouteUrl(OwaRouteNames.CheckFileInfo, new { accessTokenId = accessToken.Id }, Request.Url.Scheme)); + + var uri = string.Format("{0}/{1}?WOPISrc={2}&access_token={3}", WebDavAppConfigManager.Instance.OfficeOnline.Url, owaOpener.OwaOpener, Server.UrlEncode(wopiSrc), Server.UrlEncode(accessToken.AccessToken.ToString("N"))); return View(new OfficeOnlineModel(uri, new Uri(fileUrl).Segments.Last())); } [HttpPost] - public ActionResult ShowAdditionalContent() + public ActionResult ShowAdditionalContent(string path = "", int resourseRenderCount = 0) { - if (Session[WebDavAppConfigManager.Instance.SessionKeys.ResourseRenderCount] != null) + path = path.Replace(WspContext.User.OrganizationId, "").Trim('/'); + + IEnumerable children = _webdavManager.OpenFolder(path); + + var result = children.Skip(resourseRenderCount).Take(WebDavAppConfigManager.Instance.ElementsRendering.AddElementsCount); + + return PartialView("_ResourseCollectionPartial", result); + } + + [HttpPost] + public ActionResult UploadFile(string org, string pathPart) + { + foreach (string fileName in Request.Files) { - var renderedElementsCount = (int)Session[WebDavAppConfigManager.Instance.SessionKeys.ResourseRenderCount]; + var file = Request.Files[fileName]; - IEnumerable children = _webdavManager.GetChildren(); + if (file == null || file.ContentLength == 0) + { + continue; + } - var result = children.Skip(renderedElementsCount).Take(WebDavAppConfigManager.Instance.ElementsRendering.AddElementsCount); - - Session[WebDavAppConfigManager.Instance.SessionKeys.ResourseRenderCount] = renderedElementsCount + WebDavAppConfigManager.Instance.ElementsRendering.AddElementsCount; - - return PartialView("_ResourseCollectionPartial", result); + _webdavManager.UploadFile(pathPart, file); } - return new HttpStatusCodeResult(HttpStatusCode.NoContent); ; + return RedirectToRoute(FileSystemRouteNames.ShowContentPath); + } + + [HttpPost] + public JsonResult DeleteFiles(IEnumerable filePathes = null) + { + var model = new DeleteFilesModel(); + + if (filePathes == null) + { + model.AddMessage(MessageType.Error, Resources.NoFilesAreSelected); + + return Json(model); + } + + foreach (var file in filePathes) + { + try + { + _webdavManager.DeleteResource(Server.UrlDecode(file)); + + model.DeletedFiles.Add(file); + } + catch (WebDavException exception) + { + model.AddMessage(MessageType.Error, exception.Message); + } + } + + if (model.DeletedFiles.Any()) + { + model.AddMessage(MessageType.Success, string.Format(Resources.ItemsWasRemovedFormat, model.DeletedFiles.Count)); + } + + return Json(model); } } } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/OwaController.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/OwaController.cs new file mode 100644 index 00000000..2a56a3c0 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Controllers/OwaController.cs @@ -0,0 +1,86 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Net; +using System.Web; +using System.Web.Mvc; +using WebsitePanel.EnterpriseServer.Base.HostedSolution; +using WebsitePanel.WebDav.Core.Interfaces.Managers; +using WebsitePanel.WebDav.Core.Interfaces.Owa; +using WebsitePanel.WebDav.Core.Interfaces.Security; +using WebsitePanel.WebDav.Core.Security.Cryptography; +using WebsitePanel.WebDav.Core.Wsp.Framework; + +namespace WebsitePanel.WebDavPortal.Controllers +{ + [AllowAnonymous] + public class OwaController : Controller + { + private readonly IWopiServer _wopiServer; + private readonly IWebDavManager _webDavManager; + private readonly IAuthenticationService _authenticationService; + private readonly IAccessTokenManager _tokenManager; + private readonly ICryptography _cryptography; + private WebDavAccessToken _token; + + + public OwaController(IWopiServer wopiServer, IWebDavManager webDavManager, IAuthenticationService authenticationService, IAccessTokenManager tokenManager, ICryptography cryptography) + { + _wopiServer = wopiServer; + _webDavManager = webDavManager; + _authenticationService = authenticationService; + _tokenManager = tokenManager; + _cryptography = cryptography; + } + + public ActionResult CheckFileInfo(int accessTokenId) + { + if (!CheckAccess(accessTokenId)) + { + return new HttpStatusCodeResult(HttpStatusCode.NoContent); + } + + var fileInfo = _wopiServer.GetCheckFileInfo(_token.FilePath); + + return Json(fileInfo, JsonRequestBehavior.AllowGet); + } + + public ActionResult GetFile(int accessTokenId) + { + if (!CheckAccess(accessTokenId)) + { + return new HttpStatusCodeResult(HttpStatusCode.NoContent); + } + + return _wopiServer.GetFile((_token.FilePath)); + } + + protected override void OnActionExecuting(ActionExecutingContext filterContext) + { + base.OnActionExecuting(filterContext); + + if (!string.IsNullOrEmpty(Request["access_token"])) + { + var guid = Guid.Parse((Request["access_token"])); + + _tokenManager.ClearExpiredTokens(); + + _token = _tokenManager.GetToken(guid); + + var user = WSP.Services.ExchangeServer.GetAccount(_token.ItemId, _token.AccountId); + + _authenticationService.LogIn(user.UserPrincipalName, _cryptography.Decrypt(_token.AuthData)); + } + } + + private bool CheckAccess(int accessTokenId) + { + if (_token == null || accessTokenId != _token.Id) + { + return false; + } + + return true; + } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/CustomAttributes/FormValueRequiredAttribute.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/CustomAttributes/FormValueRequiredAttribute.cs new file mode 100644 index 00000000..be9fd6e1 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/CustomAttributes/FormValueRequiredAttribute.cs @@ -0,0 +1,21 @@ +using System.Reflection; +using System.Web.Mvc; + +namespace WebsitePanel.WebDavPortal.CustomAttributes +{ + public class FormValueRequiredAttribute : ActionMethodSelectorAttribute + { + private readonly string _submitButtonName; + + public FormValueRequiredAttribute(string submitButtonName) + { + _submitButtonName = submitButtonName; + } + + public override bool IsValidForRequest(ControllerContext controllerContext, MethodInfo methodInfo) + { + var value = controllerContext.HttpContext.Request.Form[_submitButtonName]; + return !string.IsNullOrEmpty(value); + } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/DependencyInjection/PortalDependencies.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/DependencyInjection/PortalDependencies.cs index f13ae411..5589c751 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/DependencyInjection/PortalDependencies.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/DependencyInjection/PortalDependencies.cs @@ -1,15 +1,14 @@ using Ninject; -using System; -using System.Collections.Generic; -using System.Linq; -using System.Web; using System.Web.SessionState; +using WebsitePanel.WebDav.Core.Interfaces.Managers; +using WebsitePanel.WebDav.Core.Interfaces.Owa; using WebsitePanel.WebDav.Core.Interfaces.Security; -using WebsitePanel.WebDav.Core.Security; +using WebsitePanel.WebDav.Core.Managers; +using WebsitePanel.WebDav.Core.Owa; using WebsitePanel.WebDav.Core.Security.Authentication; +using WebsitePanel.WebDav.Core.Security.Authorization; using WebsitePanel.WebDav.Core.Security.Cryptography; using WebsitePanel.WebDavPortal.DependencyInjection.Providers; -using WebsitePanel.WebDavPortal.Models; namespace WebsitePanel.WebDavPortal.DependencyInjection { @@ -20,7 +19,10 @@ namespace WebsitePanel.WebDavPortal.DependencyInjection kernel.Bind().ToProvider(); kernel.Bind().To(); kernel.Bind().To(); - kernel.Bind().ToProvider(); + kernel.Bind().To(); + kernel.Bind().To(); + kernel.Bind().To(); + kernel.Bind().To(); } } } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/DependencyInjection/Providers/WebDavManagerProvider.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/DependencyInjection/Providers/WebDavManagerProvider.cs index c06a2a89..e731d5fc 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/DependencyInjection/Providers/WebDavManagerProvider.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/DependencyInjection/Providers/WebDavManagerProvider.cs @@ -4,8 +4,8 @@ using Ninject; using Ninject.Activation; using WebsitePanel.WebDav.Core; using WebsitePanel.WebDav.Core.Config; +using WebsitePanel.WebDav.Core.Managers; using WebsitePanel.WebDav.Core.Security.Cryptography; -using WebsitePanel.WebDavPortal.Exceptions; using WebsitePanel.WebDavPortal.Models; namespace WebsitePanel.WebDavPortal.DependencyInjection.Providers diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/FileOperations/FileOpenerManager.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/FileOperations/FileOpenerManager.cs index b4305109..1310e0ba 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/FileOperations/FileOpenerManager.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/FileOperations/FileOpenerManager.cs @@ -12,7 +12,7 @@ namespace WebsitePanel.WebDavPortal.FileOperations public FileOpenerManager() { if (WebDavAppConfigManager.Instance.OfficeOnline.IsEnabled) - _operationTypes.AddRange(WebDavAppConfigManager.Instance.OfficeOnline.ToDictionary(x => x, y => FileOpenerType.OfficeOnline)); + _operationTypes.AddRange(WebDavAppConfigManager.Instance.OfficeOnline.ToDictionary(x => x.Extension, y => FileOpenerType.OfficeOnline)); } public FileOpenerType this[string fileExtension] diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Global.asax.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Global.asax.cs index 8cf744a3..14649e45 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Global.asax.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Global.asax.cs @@ -1,4 +1,5 @@ using System; +using System.Threading; using System.Web; using System.Web.Mvc; using System.Web.Optimization; @@ -6,9 +7,12 @@ using System.Web.Routing; using System.Web.Script.Serialization; using System.Web.Security; using WebsitePanel.WebDav.Core.Config; +using WebsitePanel.WebDav.Core.Interfaces.Security; using WebsitePanel.WebDav.Core.Security.Authentication.Principals; +using WebsitePanel.WebDav.Core.Security.Cryptography; using WebsitePanel.WebDavPortal.Controllers; using WebsitePanel.WebDavPortal.DependencyInjection; +using WebsitePanel.WebDavPortal.HttpHandlers; namespace WebsitePanel.WebDavPortal { @@ -55,8 +59,11 @@ namespace WebsitePanel.WebDavPortal protected void Application_PostAuthenticateRequest(Object sender, EventArgs e) { - HttpCookie authCookie = Request.Cookies[FormsAuthentication.FormsCookieName]; var contextWrapper = new HttpContextWrapper(Context); + HttpCookie authCookie = Request.Cookies[FormsAuthentication.FormsCookieName]; + + var authService = DependencyResolver.Current.GetService(); + var cryptography = DependencyResolver.Current.GetService(); if (authCookie != null) { @@ -66,15 +73,7 @@ namespace WebsitePanel.WebDavPortal var principalSerialized = serializer.Deserialize(authTicket.UserData); - var principal = new WspPrincipal(principalSerialized.Login); - - principal.AccountId = principalSerialized.AccountId; - principal.ItemId = principalSerialized.ItemId; - principal.OrganizationId = principalSerialized.OrganizationId; - principal.DisplayName = principalSerialized.DisplayName; - principal.EncryptedPassword = principalSerialized.EncryptedPassword; - - HttpContext.Current.User = principal; + authService.LogIn(principalSerialized.Login, cryptography.Decrypt(principalSerialized.EncryptedPassword)); if (!contextWrapper.Request.IsAjaxRequest()) { diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/AccountModel.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/AccountModel.cs index e11f8956..ecf7ed80 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/AccountModel.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/AccountModel.cs @@ -1,10 +1,11 @@ using System.Collections.Generic; using System.ComponentModel.DataAnnotations; using WebsitePanel.Providers.HostedSolution; +using WebsitePanel.WebDavPortal.Models.Common; namespace WebsitePanel.WebDavPortal.Models { - public class AccountModel + public class AccountModel : BaseModel { [Required] [Display(Name = @"Login")] diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/Common/BaseModel.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/Common/BaseModel.cs new file mode 100644 index 00000000..7622e201 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/Common/BaseModel.cs @@ -0,0 +1,25 @@ +using System.Collections.Generic; +using System.Web.Mvc; +using WebsitePanel.WebDavPortal.Models.Common.Enums; + +namespace WebsitePanel.WebDavPortal.Models.Common +{ + public class BaseModel + { + public BaseModel() + { + Messages = new List(); + } + + public List Messages { get; private set; } + + public void AddMessage(MessageType type, string value) + { + Messages.Add(new Message + { + Type =type, + Value = value + }); + } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/Common/Enums/MessageType.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/Common/Enums/MessageType.cs new file mode 100644 index 00000000..bc0a2eda --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/Common/Enums/MessageType.cs @@ -0,0 +1,10 @@ +namespace WebsitePanel.WebDavPortal.Models.Common.Enums +{ + public enum MessageType + { + Success, + Info, + Warning, + Error + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/Common/Message.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/Common/Message.cs new file mode 100644 index 00000000..54bdc68d --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/Common/Message.cs @@ -0,0 +1,10 @@ +using WebsitePanel.WebDavPortal.Models.Common.Enums; + +namespace WebsitePanel.WebDavPortal.Models.Common +{ + public class Message + { + public MessageType Type {get;set;} + public string Value { get; set; } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/ErrorModel.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/ErrorModel.cs index 84ca7b1c..bd62b88e 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/ErrorModel.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/ErrorModel.cs @@ -1,8 +1,9 @@ using System; +using WebsitePanel.WebDavPortal.Models.Common; namespace WebsitePanel.WebDavPortal.Models { - public class ErrorModel + public class ErrorModel : BaseModel { public int HttpStatusCode { get; set; } public string Message { get; set; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/FileSystem/DeleteFilesModel.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/FileSystem/DeleteFilesModel.cs new file mode 100644 index 00000000..892f88cb --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/FileSystem/DeleteFilesModel.cs @@ -0,0 +1,15 @@ +using System.Collections.Generic; +using WebsitePanel.WebDavPortal.Models.Common; + +namespace WebsitePanel.WebDavPortal.Models.FileSystem +{ + public class DeleteFilesModel : BaseModel + { + public DeleteFilesModel() + { + DeletedFiles = new List(); + } + + public List DeletedFiles { get; set; } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/IWebDavManager.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/IWebDavManager.cs deleted file mode 100644 index f50fc984..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/IWebDavManager.cs +++ /dev/null @@ -1,15 +0,0 @@ -using System.Collections.Generic; -using WebsitePanel.WebDav.Core.Client; - -namespace WebsitePanel.WebDavPortal.Models -{ - public interface IWebDavManager - { - string RootPath { get; } - void OpenFolder(string pathPart); - IEnumerable GetChildren(); - bool IsFile(string fileName); - byte[] GetFileBytes(string fileName); - string GetFileUrl(string fileName); - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/ModelForWebDav.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/ModelForWebDav.cs index c334134e..bb6f722b 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/ModelForWebDav.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/ModelForWebDav.cs @@ -1,12 +1,15 @@ using System.Collections.Generic; using WebsitePanel.WebDav.Core.Client; +using WebsitePanel.WebDav.Core.Security.Authorization.Enums; +using WebsitePanel.WebDavPortal.Models.Common; namespace WebsitePanel.WebDavPortal.Models { - public class ModelForWebDav + public class ModelForWebDav : BaseModel { public IEnumerable Items { get; set; } public string UrlSuffix { get; set; } public string Error { get; set; } + public WebDavPermissions Permissions { get; set; } } } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/OfficeOnlineModel.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/OfficeOnlineModel.cs index 2805d17b..1fe27ec1 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/OfficeOnlineModel.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/OfficeOnlineModel.cs @@ -1,6 +1,8 @@ -namespace WebsitePanel.WebDavPortal.Models +using WebsitePanel.WebDavPortal.Models.Common; + +namespace WebsitePanel.WebDavPortal.Models { - public class OfficeOnlineModel + public class OfficeOnlineModel : BaseModel { public string Url { get; set; } public string FileName { get; set; } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/WebDavManager.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/WebDavManager.cs deleted file mode 100644 index 0ab50f03..00000000 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Models/WebDavManager.cs +++ /dev/null @@ -1,172 +0,0 @@ -using System; -using System.Collections.Generic; -using System.IO; -using System.Linq; -using System.Net; -using System.Text.RegularExpressions; -using WebsitePanel.WebDav.Core; -using WebsitePanel.WebDav.Core.Client; -using WebsitePanel.WebDav.Core.Config; -using WebsitePanel.WebDav.Core.Security.Cryptography; -using WebsitePanel.WebDav.Core.Wsp.Framework; -using WebsitePanel.WebDavPortal.Exceptions; -using WebsitePanel.Providers.OS; -using Ninject; -using WebsitePanel.WebDavPortal.DependencyInjection; -using System.Web.Mvc; -using log4net; - -namespace WebsitePanel.WebDavPortal.Models -{ - public class WebDavManager : IWebDavManager - { - private readonly ICryptography _cryptography; - private readonly WebDavSession _webDavSession; - - private readonly ILog Log; - - private IList _rootFolders; - private int _itemId; - private IFolder _currentFolder; - private string _webDavRootPath; - private bool _isRoot = true; - - public string RootPath - { - get { return _webDavRootPath; } - } - - public WebDavManager(ICryptography cryptography) - { - _cryptography = cryptography; - Log = LogManager.GetLogger(this.GetType()); - - var credential = new NetworkCredential(WspContext.User.Login, _cryptography.Decrypt(WspContext.User.EncryptedPassword), WebDavAppConfigManager.Instance.UserDomain); - - _webDavSession = new WebDavSession(); - - _webDavSession.Credentials = credential; - _itemId = WspContext.User.ItemId; - _rootFolders = ConnectToWebDavServer(); - - if (_rootFolders.Any()) - { - var folder = _rootFolders.First(); - var uri = new Uri(folder.Url); - _webDavRootPath = uri.Scheme + "://" + uri.Host + uri.Segments[0] + uri.Segments[1]; - } - } - - public void OpenFolder(string pathPart) - { - if (string.IsNullOrWhiteSpace(pathPart)) - { - _isRoot = true; - return; - } - _isRoot = false; - _currentFolder = _webDavSession.OpenFolder(_webDavRootPath + pathPart); - } - - public IEnumerable GetChildren() - { - IHierarchyItem[] children; - - if (_isRoot) - { - children = _rootFolders.Select(x => new WebDavHierarchyItem {Href = new Uri(x.Url), ItemType = ItemType.Folder}).ToArray(); - } - else - { - children = _currentFolder.GetChildren(); - } - - List sortedChildren = children.Where(x => x.ItemType == ItemType.Folder).OrderBy(x => x.DisplayName).ToList(); - sortedChildren.AddRange(children.Where(x => x.ItemType != ItemType.Folder).OrderBy(x => x.DisplayName)); - - return sortedChildren; - } - - public bool IsFile(string fileName) - { - if (string.IsNullOrWhiteSpace(fileName) | _currentFolder == null) - return false; - - try - { - IResource resource = _currentFolder.GetResource(fileName); - //Stream stream = resource.GetReadStream(); - return true; - } - catch (InvalidOperationException) - { - } - return false; - } - - public byte[] GetFileBytes(string fileName) - { - try - { - IResource resource = _currentFolder.GetResource(fileName); - Stream stream = resource.GetReadStream(); - byte[] fileBytes = ReadFully(stream); - return fileBytes; - } - catch (InvalidOperationException exception) - { - throw new ResourceNotFoundException("Resource not found", exception); - } - } - - public string GetFileUrl(string fileName) - { - try - { - IResource resource = _currentFolder.GetResource(fileName); - return resource.Href.ToString(); - } - catch (InvalidOperationException exception) - { - throw new ResourceNotFoundException("Resource not found", exception); - } - } - - private IList ConnectToWebDavServer() - { - var rootFolders = new List(); - var user = WspContext.User; - - var userGroups = WSP.Services.Organizations.GetSecurityGroupsByMember(user.ItemId, user.AccountId); - - foreach (var folder in WSP.Services.EnterpriseStorage.GetEnterpriseFolders(_itemId)) - { - var permissions = WSP.Services.EnterpriseStorage.GetEnterpriseFolderPermissions(_itemId, folder.Name); - - foreach (var permission in permissions) - { - if ((!permission.IsGroup - && (permission.DisplayName == user.UserName || permission.DisplayName == user.DisplayName)) - || (permission.IsGroup && userGroups.Any(x => x.DisplayName == permission.DisplayName))) - { - rootFolders.Add(folder); - break; - } - } - } - return rootFolders; - } - - private byte[] ReadFully(Stream input) - { - var buffer = new byte[16*1024]; - using (var ms = new MemoryStream()) - { - int read; - while ((read = input.Read(buffer, 0, buffer.Length)) > 0) - ms.Write(buffer, 0, read); - return ms.ToArray(); - } - } - } -} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/_references.js b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/_references.js index 2af639a9..4a9fa5dd 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/_references.js +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/_references.js @@ -1,5 +1,13 @@ -/// -/// -/// +/// /// +/// +/// +/// +/// +/// +/// /// +/// +/// +/// +/// diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/dialogs.js b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/dialogs.js new file mode 100644 index 00000000..488dd411 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/dialogs.js @@ -0,0 +1,79 @@ +function WspDialogs() { + this.settings = { dialogId: "#confirm-dialog", processDialogId: "#processDialog" }; +} + +WspDialogs.prototype = +{ + showConfirmDialog: function(title, content, positiveButton, positiveClickFunction, dialogId) { + dialogId = dialogId || this.settings.dialogId; + + //title replace + if (title) { + $(dialogId).find('.modal-title').empty(); + $(dialogId).find('.modal-title').text(title); + } + + //body replace + $(dialogId).find('.modal-body').empty(); + $(dialogId).find('.modal-body').html(content); + + //title replace + if (positiveButton) { + $(dialogId).find('.modal-footer .positive-button').empty(); + $(dialogId).find('.modal-footer .positive-button').text(positiveButton); + } + + //binding click event + $(dialogId).find('.modal-footer .positive-button').unbind('click'); + $(dialogId).find('.modal-footer .positive-button').click(positiveClickFunction); + + $(dialogId).modal(); + }, + + showProcessDialog: function() { + $(this.settings.processDialogId).modal(); + }, + + hideProcessDialog: function() { + $(this.settings.processDialogId).modal('hide'); +} +}; + +/* +wsp.dialogs = wsp.dialogs || (function () { + var settings = { dialogId: "#confirm-dialog" }; + + return { + settings: settings, + + showConfirmDialog : function (title, content, positiveButton, positiveClickFunction, dialogId) { + dialogId = dialogId || this.settings.dialogId; + + //title replace + if (title) { + $(dialogId).find('.modal-title').empty(); + $(dialogId).find('.modal-title').text(title); + } + + //body replace + $(dialogId).find('.modal-body').empty(); + $(dialogId).find('.modal-body').html(content); + + //title replace + if (positiveButton) { + $(dialogId).find('.modal-footer .positive-button').empty(); + $(dialogId).find('.modal-footer .positive-button').text(positiveButton); + } + + //binding click event + $(dialogId).find('.modal-footer .positive-button').unbind('click'); + $(dialogId).find('.modal-footer .positive-button').click(positiveClickFunction); + + $(dialogId).modal(); + }, + + showProcessDialog: function () { + $('#processDialog').modal(); + } + }; +})();*/ \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/fileBrowsing.js b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/fileBrowsing.js new file mode 100644 index 00000000..0c688721 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/fileBrowsing.js @@ -0,0 +1,89 @@ +function WspFileBrowser() { + this.settings = { deletionBlockSelector: ".file-actions-menu .file-deletion", deletionUrl: "files-group-action/delete1" }; +} + +WspFileBrowser.prototype = { + setSettings: function(options) { + this.settings = $.extend(this.settings, options); + }, + + clearAllSelectedItems: function() { + $('.element-container').removeClass("selected-file"); + }, + + selectItem: function(item) { + $(item).addClass("selected-file"); + }, + + openItem: function(item) { + var links = $(item).find('.file-link'); + + if (links.length != 0) { + links[0].click(); + } + }, + + getSelectedItemsCount: function() { + return $('.element-container.selected-file').length; + }, + + getSelectedItemsPaths: function() { + return $('.element-container.selected-file a').map(function() { + return $(this).attr('href'); + }).get(); + }, + + deleteSelectedItems: function(e) { + $.ajax({ + type: 'POST', + url: wsp.fileBrowser.settings.deletionUrl, + data: { filePathes: wsp.fileBrowser.getSelectedItemsPaths() }, + dataType: "json", + success: function(model) { + wsp.messages.showMessages(model.Messages); + + wsp.fileBrowser.clearDeletedItems(model.DeletedFiles); + + wsp.fileBrowser.refreshDeletionBlock(); + + wsp.dialogs.hideProcessDialog(); + }, + error: function(jqXHR, textStatus, errorThrown) { + wsp.messages.addErrorMessage(errorThrown); + wsp.fileBrowser.refreshDeletionBlock(); + wsp.dialogs.hideProcessDialog(); + } + }); + + wsp.dialogs.showProcessDialog(); + }, + + clearDeletedItems: function(items) { + $.each(items, function(i, item) { + $('.element-container').has('a[href="' + item + '"]').remove(); + }); + }, + refreshDeletionBlock: function() { + if (this.getSelectedItemsCount() > 0) { + + $(this.settings.deletionBlockSelector).css('display', 'inline-block'); + + } else { + $(this.settings.deletionBlockSelector).hide(); + } + } +}; + + + + + + + + + + + + + + diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/messages.js b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/messages.js new file mode 100644 index 00000000..d2d4e691 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/messages.js @@ -0,0 +1,55 @@ +function WspMessager(messageDivId) { + this.settings = { + messageDivId: messageDivId, + successClass: "alert-success", + infoClass: "alert-info", + warningClass: "alert-warning", + dangerClass: "alert-danger", + messageDivtemplate: '' + }; +} + +WspMessager.prototype = { + addMessage: function(cssClass, message) { + var messageDiv = jQuery.validator.format(this.settings.messageDivtemplate, cssClass, message); + + $(messageDiv).appendTo(this.settings.messageDivId); + }, + + addSuccessMessage: function(message) { + this.addMessage(this.settings.successClass, message); + }, + + addInfoMessage: function(message) { + this.addMessage(this.settings.infoClass, message); + }, + + addWarningMessage : function (message) { + this.addMessage(this.settings.warningClass, message); + }, + + addErrorMessage: function (message) { + this.addMessage(this.settings.dangerClass, message); + }, + + showMessages: function (messages) { + var objthis = this; + + $.each(messages, function(i, message) { + + if ((message.Type == 0)) { + objthis.addSuccessMessage(message.Value); + } + else if (message.Type == 1) { + objthis.addInfoMessage(message.Value); + } + else if (message.Type == 2) { + objthis.addWarningMessage(message.Value); + } + else if (message.Type == 3) { + objthis.addErrorMessage(message.Value); + } + } + ); + } +}; diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/recalculateResourseHeight.js b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/recalculateResourseHeight.js index 907b7c83..3dada550 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/recalculateResourseHeight.js +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/recalculateResourseHeight.js @@ -6,6 +6,10 @@ maxHeight = Math.max.apply(null, heights); + if (maxHeight < 135) { + maxHeight = 135; + } + $(".element-container").height(maxHeight); }); } diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/uploadingData2.js b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/uploadingData2.js index 7988b483..f9c7ef4f 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/uploadingData2.js +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/uploadingData2.js @@ -14,8 +14,8 @@ var oldResourcesDivHeight = $('#resourcesDiv').height(); function GetResources() { $.ajax({ type: 'POST', - url: '/FileSystem/ShowAdditionalContent', - data: '', + url: '/show-additional-content', + data: { path: window.location.pathname, resourseRenderCount: $(".element-container").length }, dataType: "html", success: function (result) { var domElement = $(result); diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/wsp.js b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/wsp.js new file mode 100644 index 00000000..e8ecfdf9 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Scripts/appScripts/wsp.js @@ -0,0 +1,54 @@ +var wsp = { + messages: new WspMessager('#message-area'), + fileBrowser: new WspFileBrowser(), + dialogs: new WspDialogs() +}; + + +$(document).ready(function () { + $('.processing-dialog').click(function () { + wsp.dialogs.showProcessDialog(); + }); +}); + +//Toggle file select + Ctrl multiselect +$(document).on('click', '.element-container', function (e) { + if (e.ctrlKey) { + + $(this).toggleClass("selected-file"); + + } else { + + wsp.fileBrowser.clearAllSelectedItems(); + + wsp.fileBrowser.selectItem(this); + } + + wsp.fileBrowser.refreshDeletionBlock(); +}); + +//Double click file open +$(document).on('dblclick', '.element-container', function (e) { + wsp.fileBrowser.openItem(this); +}); + + +//Delete button click +$(document).on('click', '.file-deletion #delete-button', function (e) { + var dialogId = $(this).data('target'); + var buttonText = $(this).data('target-positive-button-text'); + var content = $(this).data('target-content'); + var title = $(this).data('target-title-text'); + + content = jQuery.validator.format(content, wsp.fileBrowser.getSelectedItemsCount()); + + wsp.dialogs.showConfirmDialog(title, content, buttonText, wsp.fileBrowser.deleteSelectedItems, dialogId); +}); + + +$(document).click(function (event) { + if (!$(event.target).closest('.element-container, .prevent-deselect').length) { + wsp.fileBrowser.clearAllSelectedItems(); + wsp.fileBrowser.refreshDeletionBlock(); + } +}) \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Resources.Designer.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Resources.Designer.cs new file mode 100644 index 00000000..8b375ced --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Resources.Designer.cs @@ -0,0 +1,198 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// Runtime Version:4.0.30319.33440 +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WebsitePanel.WebDavPortal.UI { + using System; + + + /// + /// A strongly-typed resource class, for looking up localized strings, etc. + /// + // This class was auto-generated by the StronglyTypedResourceBuilder + // class via a tool like ResGen or Visual Studio. + // To add or remove a member, edit your .ResX file then rerun ResGen + // with the /str option, or rebuild your VS project. + [global::System.CodeDom.Compiler.GeneratedCodeAttribute("System.Resources.Tools.StronglyTypedResourceBuilder", "4.0.0.0")] + [global::System.Diagnostics.DebuggerNonUserCodeAttribute()] + [global::System.Runtime.CompilerServices.CompilerGeneratedAttribute()] + public class Resources { + + private static global::System.Resources.ResourceManager resourceMan; + + private static global::System.Globalization.CultureInfo resourceCulture; + + [global::System.Diagnostics.CodeAnalysis.SuppressMessageAttribute("Microsoft.Performance", "CA1811:AvoidUncalledPrivateCode")] + internal Resources() { + } + + /// + /// Returns the cached ResourceManager instance used by this class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Resources.ResourceManager ResourceManager { + get { + if (object.ReferenceEquals(resourceMan, null)) { + global::System.Resources.ResourceManager temp = new global::System.Resources.ResourceManager("WebsitePanel.WebDavPortal.UI.Resources", typeof(Resources).Assembly); + resourceMan = temp; + } + return resourceMan; + } + } + + /// + /// Overrides the current thread's CurrentUICulture property for all + /// resource lookups using this strongly typed resource class. + /// + [global::System.ComponentModel.EditorBrowsableAttribute(global::System.ComponentModel.EditorBrowsableState.Advanced)] + public static global::System.Globalization.CultureInfo Culture { + get { + return resourceCulture; + } + set { + resourceCulture = value; + } + } + + /// + /// Looks up a localized string similar to Actions. + /// + public static string Actions { + get { + return ResourceManager.GetString("Actions", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Cancel. + /// + public static string Cancel { + get { + return ResourceManager.GetString("Cancel", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Close. + /// + public static string Close { + get { + return ResourceManager.GetString("Close", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Confirm. + /// + public static string Confirm { + get { + return ResourceManager.GetString("Confirm", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete. + /// + public static string Delete { + get { + return ResourceManager.GetString("Delete", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Delete File?. + /// + public static string DeleteFileQuestion { + get { + return ResourceManager.GetString("DeleteFileQuestion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Are you sure you want to delete {0} item(s)?. + /// + public static string DialogsContentConfrimFileDeletion { + get { + return ResourceManager.GetString("DialogsContentConfrimFileDeletion", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to File Upload. + /// + public static string FileUpload { + get { + return ResourceManager.GetString("FileUpload", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Gb. + /// + public static string GigabyteShort { + get { + return ResourceManager.GetString("GigabyteShort", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to {0} items was removed.. + /// + public static string ItemsWasRemovedFormat { + get { + return ResourceManager.GetString("ItemsWasRemovedFormat", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to No files are selected.. + /// + public static string NoFilesAreSelected { + get { + return ResourceManager.GetString("NoFilesAreSelected", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Processing. + /// + public static string Processing { + get { + return ResourceManager.GetString("Processing", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Processing.... + /// + public static string ProcessingWithDots { + get { + return ResourceManager.GetString("ProcessingWithDots", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Upload. + /// + public static string Upload { + get { + return ResourceManager.GetString("Upload", resourceCulture); + } + } + + /// + /// Looks up a localized string similar to Yes. + /// + public static string Yes { + get { + return ResourceManager.GetString("Yes", resourceCulture); + } + } + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Resources.resx b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Resources.resx new file mode 100644 index 00000000..00e0624f --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Resources.resx @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Actions + + + Cancel + + + Close + + + Confirm + + + Delete + + + Delete File? + + + Are you sure you want to delete {0} item(s)? + + + File Upload + + + Gb + + + {0} items was removed. + + + No files are selected. + + + Processing + + + Processing... + + + Upload + + + Yes + + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Routes/FileSystemRouteNames.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Routes/FileSystemRouteNames.cs index 80d0d67d..9732a57e 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Routes/FileSystemRouteNames.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Routes/FileSystemRouteNames.cs @@ -7,6 +7,12 @@ namespace WebsitePanel.WebDavPortal.UI.Routes { public class FileSystemRouteNames { - public const string FilePath = "FilePathRoute"; + public const string ShowContentPath = "ShowContentRoute"; + public const string ShowOfficeOnlinePath = "ShowOfficeOnlineRoute"; + public const string ShowAdditionalContent = "ShowAdditionalContentRoute"; + + public const string UploadFile = "UplaodFIleRoute"; + + public const string DeleteFiles = "DeleteFilesRoute"; } } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Routes/OwaRouteNames.cs b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Routes/OwaRouteNames.cs new file mode 100644 index 00000000..4a263e53 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/UI/Routes/OwaRouteNames.cs @@ -0,0 +1,8 @@ +namespace WebsitePanel.WebDavPortal.UI.Routes +{ + public class OwaRouteNames + { + public const string CheckFileInfo = "OwaCheckFileInfoPath"; + public const string GetFile = "OwaGetFilePath"; + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/ShowContent.cshtml b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/ShowContent.cshtml index 939f3bba..b59e08c1 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/ShowContent.cshtml +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/ShowContent.cshtml @@ -2,18 +2,17 @@ @using WebsitePanel.WebDav.Core.Client @using Ninject @using WebsitePanel.WebDav.Core.Config +@using WebsitePanel.WebDav.Core.Interfaces.Managers +@using WebsitePanel.WebDav.Core.Security.Authorization.Enums +@using WebsitePanel.WebDavPortal.UI +@using WebsitePanel.WebDavPortal.UI.Routes @model WebsitePanel.WebDavPortal.Models.ModelForWebDav @{ - var webDavManager = DependencyResolver.Current.GetService(); + var webDavManager = DependencyResolver.Current.GetService(); ViewBag.Title = WebDavAppConfigManager.Instance.ApplicationName; } -@Scripts.Render("~/bundles/jquery") -@Scripts.Render("~/bundles/appScripts") -
@if (Model != null && !string.IsNullOrEmpty(Model.Error)) @@ -22,12 +21,12 @@ } else { -
+
@if (Model != null) { string header = WspContext.User.OrganizationId; @header - string[] elements = Model.UrlSuffix.Split(new[] {"/"}, StringSplitOptions.RemoveEmptyEntries); + string[] elements = Model.UrlSuffix.Split(new[] { "/" }, StringSplitOptions.RemoveEmptyEntries); for (int i = 0; i < elements.Length; i++) { @@ -35,8 +34,22 @@ else } }
+
+ @if (Model.Permissions.HasFlag(WebDavPermissions.Write)) + { + + @Resources.FileUpload + } +

+
@if (Model != null) { @@ -47,4 +60,39 @@ else }
+} + +@section scripts{ + +} + +@section popups +{ + + + @Html.Partial("_ProcessDialog", null) + @Html.Partial("_ConfirmDialog") } \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/_ResoursePartial.cshtml b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/_ResoursePartial.cshtml index 2565898b..d4085c01 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/_ResoursePartial.cshtml +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/FileSystem/_ResoursePartial.cshtml @@ -1,7 +1,10 @@ -@using WebsitePanel.WebDav.Core.Client +@using WebsitePanel.WebDav.Core +@using WebsitePanel.WebDav.Core.Client @using WebsitePanel.WebDav.Core.Config @using WebsitePanel.WebDavPortal.FileOperations @using Ninject; +@using WebsitePanel.WebDavPortal.UI +@using WebsitePanel.WebDavPortal.UI.Routes @model IHierarchyItem @{ @@ -14,17 +17,46 @@ { case FileOpenerType.OfficeOnline: isTargetBlank = true; - href = string.Concat(Url.Action("ShowOfficeDocument", "FileSystem"), Model.DisplayName); + var pathPart = Model.Href.AbsolutePath.Replace("/" + WspContext.User.OrganizationId, "").TrimStart('/'); + href = string.Concat(Url.RouteUrl(FileSystemRouteNames.ShowOfficeOnlinePath, new { org = WspContext.User.OrganizationId, pathPart = "" }), pathPart); break; default: isTargetBlank = false; - href = Model.Href.AbsolutePath; + href = Model.Href.LocalPath; break; } + + var resource = Model as IResource; + + bool showStatistic = Model.ItemType == ItemType.Folder && Model.IsRootItem && resource != null; + + int percent = 0; + + if (showStatistic) + { + percent = (int)(resource.AllocatedSpace != 0 ? 100 * resource.ContentLength / resource.AllocatedSpace : 0); + } } +
- +
-

@name

-
+ + +

@name

+
+ + @if (showStatistic) + { +
+
+

@percent%

+
+
+

@Math.Round(Convert.ToDecimal(resource.ContentLength) / 1024, 2) / @Math.Round(Convert.ToDecimal(resource.AllocatedSpace) / 1024, 2) @Resources.GigabyteShort

+ } + +
+
+
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_ConfirmDialog.cshtml b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_ConfirmDialog.cshtml new file mode 100644 index 00000000..1711a807 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_ConfirmDialog.cshtml @@ -0,0 +1,20 @@ +@using WebsitePanel.WebDavPortal.UI + diff --git a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml index 20c4112c..e93d4c78 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml +++ b/WebsitePanel/Sources/WebsitePanel.WebDavPortal/Views/Shared/_Layout.cshtml @@ -1,9 +1,11 @@ -@using Ninject +@using System.Web.Script.Serialization +@using Ninject @using WebsitePanel.WebDav.Core @using WebsitePanel.WebDav.Core.Config @using WebsitePanel.WebDavPortal.DependencyInjection @using WebsitePanel.WebDavPortal.Models @using WebsitePanel.WebDavPortal.UI.Routes; +@model WebsitePanel.WebDavPortal.Models.Common.BaseModel @@ -15,15 +17,15 @@ @Scripts.Render("~/bundles/modernizr") - - - - - - - - - + + + + + + + + + + - - - - - - <%# Eval("DisplayName") %> - - - - - - - - - <%# GetServiceLevel((int)Eval("LevelId")).LevelName%> - - - - - - - - /> - /> - /> - - - - - - - - - - - - - - - - - + + + + + + <%# Eval("DisplayName") %> + + + + + + + + + <%# GetServiceLevel((int)Eval("LevelId")).LevelName%> + + + + + + + + /> + /> + /> + + + + + + + + + + + + + + + + + + +
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.cs index cca54139..a4380cb9 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.cs @@ -130,28 +130,30 @@ namespace WebsitePanel.Portal.HostedSolution { if (e.CommandName == "DeleteItem") { - // delete user - int accountId = Utils.ParseInt(e.CommandArgument.ToString(), 0); + int rowIndex = Utils.ParseInt(e.CommandArgument.ToString(), 0); - try + var accountId = Utils.ParseInt(gvUsers.DataKeys[rowIndex][0], 0); + + var accountType = (ExchangeAccountType)gvUsers.DataKeys[rowIndex][1]; + + if (cntx.Quotas.ContainsKey(Quotas.ORGANIZATION_DELETED_USERS) && accountType != ExchangeAccountType.User) { - int result = ES.Services.Organizations.DeleteUser(PanelRequest.ItemID, accountId); - if (result < 0) - { - messageBox.ShowResultMessage(result); - return; - } + chkEnableForceArchiveMailbox.Visible = true; - // rebind grid - gvUsers.DataBind(); + var account = ES.Services.ExchangeServer.GetAccount(PanelRequest.ItemID, accountId); + var mailboxPlan = ES.Services.ExchangeServer.GetExchangeMailboxPlan(PanelRequest.ItemID, account.MailboxPlanId); - // bind stats - BindStats(); + chkEnableForceArchiveMailbox.Checked = mailboxPlan.EnableForceArchiveDeletion; + chkEnableForceArchiveMailbox.Enabled = !mailboxPlan.EnableForceArchiveDeletion; } - catch (Exception ex) + else { - messageBox.ShowErrorMessage("ORGANIZATIONS_DELETE_USERS", ex); + chkEnableForceArchiveMailbox.Visible = false; } + + hdAccountId.Value = accountId.ToString(); + + DeleteUserModal.Show(); } if (e.CommandName == "OpenMailProperties") @@ -195,13 +197,9 @@ namespace WebsitePanel.Portal.HostedSolution Response.Redirect(EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "edit_lync_user", "AccountID=" + accountId, "ItemID=" + PanelRequest.ItemID)); - - - } } - public string GetAccountImage(int accountTypeId, bool vip) { string imgName = string.Empty; @@ -354,5 +352,41 @@ namespace WebsitePanel.Portal.HostedSolution return serviceLevel; } + + protected void btnDelete_Click(object sender, EventArgs e) + { + DeleteUserModal.Hide(); + + // delete user + try + { + int result = 0; + + if (cntx.Quotas.ContainsKey(Quotas.ORGANIZATION_DELETED_USERS)) + { + result = ES.Services.Organizations.SetDeletedUser(PanelRequest.ItemID, int.Parse(hdAccountId.Value), chkEnableForceArchiveMailbox.Checked); + } + else + { + result = ES.Services.Organizations.DeleteUser(PanelRequest.ItemID, int.Parse(hdAccountId.Value)); + } + + if (result < 0) + { + messageBox.ShowResultMessage(result); + return; + } + + // rebind grid + gvUsers.DataBind(); + + // bind stats + BindStats(); + } + catch (Exception ex) + { + messageBox.ShowErrorMessage("ORGANIZATIONS_DELETE_USERS", ex); + } + } } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.designer.cs index 1f8a65f0..22dab4cf 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/OrganizationUsers.ascx.designer.cs @@ -130,6 +130,24 @@ namespace WebsitePanel.Portal.HostedSolution { ///
protected global::System.Web.UI.WebControls.ImageButton cmdSearch; + /// + /// UsersPanel control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel UsersPanel; + + /// + /// UsersUpdatePanel control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.UpdatePanel UsersUpdatePanel; + /// /// gvUsers control. /// @@ -148,6 +166,96 @@ namespace WebsitePanel.Portal.HostedSolution { ///
protected global::System.Web.UI.WebControls.ObjectDataSource odsAccountsPaged; + /// + /// DeleteUserPanel control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Panel DeleteUserPanel; + + /// + /// headerDeleteUser control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Localize headerDeleteUser; + + /// + /// DeleteUserUpdatePanel control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.UpdatePanel DeleteUserUpdatePanel; + + /// + /// hdAccountId control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.HiddenField hdAccountId; + + /// + /// litDeleteUser control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal litDeleteUser; + + /// + /// chkEnableForceArchiveMailbox control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.CheckBox chkEnableForceArchiveMailbox; + + /// + /// btnDeleteUser control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnDeleteUser; + + /// + /// btnCancelDelete control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnCancelDelete; + + /// + /// btnDeleteUserFake control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Button btnDeleteUserFake; + + /// + /// DeleteUserModal control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::AjaxControlToolkit.ModalPopupExtender DeleteUserModal; + /// /// locQuota control. /// diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/AccountsList.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/AccountsList.ascx.cs index 28eff1a1..6f5c5d8a 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/AccountsList.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/AccountsList.ascx.cs @@ -44,6 +44,12 @@ namespace WebsitePanel.Portal.ExchangeServer.UserControls Unselected } + public bool Disabled + { + get { return ViewState["Disabled"] != null ? (bool)ViewState["Disabled"] : false; } + set { ViewState["Disabled"] = value; } + } + public bool EnableMailboxOnly { get {return ViewState["EnableMailboxOnly"] != null ? (bool)ViewState["EnableMailboxOnly"]: false; } @@ -116,6 +122,11 @@ namespace WebsitePanel.Portal.ExchangeServer.UserControls // toggle controls if (!IsPostBack) { + if (Disabled) + { + btnAdd.Visible = btnDelete.Visible = gvAccounts.Columns[0].Visible = false; + } + chkIncludeMailboxes.Visible = chkIncludeRooms.Visible = chkIncludeEquipment.Visible = MailboxesEnabled; chkIncludeMailboxes.Checked = chkIncludeRooms.Checked = chkIncludeEquipment.Checked = MailboxesEnabled; diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/DeletedUserTabs.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/DeletedUserTabs.ascx.resx new file mode 100644 index 00000000..0b1734cb --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/DeletedUserTabs.ascx.resx @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Advanced + + + General + + + Settings + + + Member Of + + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/Menu.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/Menu.ascx.resx index c66a3c75..afbd303a 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/Menu.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/App_LocalResources/Menu.ascx.resx @@ -225,4 +225,7 @@ Retention Policy Tag + + Deleted Users + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/DeletedUserTabs.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/DeletedUserTabs.ascx new file mode 100644 index 00000000..5d23f33e --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/DeletedUserTabs.ascx @@ -0,0 +1,27 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="DeletedUserTabs.ascx.cs" Inherits="WebsitePanel.Portal.ExchangeServer.UserControls.DeletedUserTabs" %> + + + + +
+ + + + + + <%# Eval("Name") %> + + + + + + <%# Eval("Name") %> + + + +   + + +
+
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/DeletedUserTabs.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/DeletedUserTabs.ascx.cs new file mode 100644 index 00000000..3c7af70b --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/DeletedUserTabs.ascx.cs @@ -0,0 +1,100 @@ +// Copyright (c) 2014, 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. + +using System; +using System.Collections.Generic; +using WebsitePanel.Portal.Code.UserControls; +using WebsitePanel.WebPortal; +using WebsitePanel.EnterpriseServer; +using WebsitePanel.Providers.HostedSolution; + +namespace WebsitePanel.Portal.ExchangeServer.UserControls +{ + public partial class DeletedUserTabs : WebsitePanelControlBase + { + private string selectedTab; + public string SelectedTab + { + get { return selectedTab; } + set { selectedTab = value; } + } + + protected void Page_Load(object sender, EventArgs e) + { + BindTabs(); + } + + private void BindTabs() + { + List tabsList = new List(); + tabsList.Add(CreateTab("view_deleted_user", "Tab.General")); + + PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId); + + bool bSuccess = Utils.CheckQouta(Quotas.ORGANIZATION_SECURITYGROUPS, cntx); + + if (!bSuccess) + { + // get user settings + OrganizationUser user = ES.Services.Organizations.GetUserGeneralSettings(PanelRequest.ItemID, PanelRequest.AccountID); + + bSuccess = (Utils.CheckQouta(Quotas.EXCHANGE2007_DISTRIBUTIONLISTS, cntx) + && (user.AccountType == ExchangeAccountType.Mailbox + || user.AccountType == ExchangeAccountType.Room + || user.AccountType == ExchangeAccountType.Equipment)); + } + + if (bSuccess) + { + tabsList.Add(CreateTab("deleted_user_memberof", "Tab.MemberOf")); + } + + // find selected menu item + int idx = 0; + foreach (Tab tab in tabsList) + { + if (String.Compare(tab.Id, SelectedTab, true) == 0) + break; + idx++; + } + dlTabs.SelectedIndex = idx; + + dlTabs.DataSource = tabsList; + dlTabs.DataBind(); + } + + private Tab CreateTab(string id, string text) + { + return new Tab(id, GetLocalizedString(text), + HostModule.EditUrl("AccountID", PanelRequest.AccountID.ToString(), id, + "SpaceID=" + PanelSecurity.PackageId.ToString(), + "ItemID=" + PanelRequest.ItemID.ToString(), + "Context=User")); + } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/DeletedUserTabs.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/DeletedUserTabs.ascx.designer.cs new file mode 100644 index 00000000..2b4c2187 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/DeletedUserTabs.ascx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WebsitePanel.Portal.ExchangeServer.UserControls { + + + public partial class DeletedUserTabs { + + /// + /// dlTabs control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DataList dlTabs; + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/Menu.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/Menu.ascx.cs index c4fcf21a..386f3984 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/Menu.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ExchangeServer/UserControls/Menu.ascx.cs @@ -186,9 +186,13 @@ namespace WebsitePanel.Portal.ExchangeServer.UserControls if (Utils.CheckQouta(Quotas.ORGANIZATION_DOMAINS, cntx)) organizationGroup.MenuItems.Add(CreateMenuItem("DomainNames", "org_domains")); } + if (Utils.CheckQouta(Quotas.ORGANIZATION_USERS, cntx)) organizationGroup.MenuItems.Add(CreateMenuItem("Users", "users")); + if (Utils.CheckQouta(Quotas.ORGANIZATION_DELETED_USERS, cntx)) + organizationGroup.MenuItems.Add(CreateMenuItem("DeletedUsers", "deleted_users")); + if (Utils.CheckQouta(Quotas.ORGANIZATION_SECURITYGROUPS, cntx)) organizationGroup.MenuItems.Add(CreateMenuItem("SecurityGroups", "secur_groups")); diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx index 11119fd1..62389f09 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx @@ -51,7 +51,7 @@ - + <%# Eval("ExternalIP") %> diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx.cs index b3ed2b40..950cd86d 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddresses.ascx.cs @@ -45,6 +45,8 @@ namespace WebsitePanel.Portal gvIPAddresses.PageSize = UsersHelper.GetDisplayItemsPerPage(); ddlItemsPerPage.SelectedValue = gvIPAddresses.PageSize.ToString(); + gvIPAddresses.PageIndex = PageIndex; + // pool if (!String.IsNullOrEmpty(PanelRequest.PoolId)) ddlPools.SelectedValue = PanelRequest.PoolId; @@ -69,6 +71,7 @@ namespace WebsitePanel.Portal bool vps = ddlPools.SelectedIndex > 1; gvIPAddresses.Columns[3].Visible = vps; } + protected void odsIPAddresses_Selected(object sender, ObjectDataSourceStatusEventArgs e) { if (e.Exception != null) @@ -84,10 +87,23 @@ namespace WebsitePanel.Portal return PortalUtils.GetSpaceHomePageUrl(spaceId); } + public string GetReturnUrl() + { + var returnUrl = Request.Url.AddParameter("Page", gvIPAddresses.PageIndex.ToString()); + return Uri.EscapeDataString("~" + returnUrl.PathAndQuery); + } + + public int PageIndex + { + get + { + return PanelRequest.GetInt("Page", 0); + } + } protected void btnAddItem_Click(object sender, EventArgs e) { - Response.Redirect(EditUrl("PoolID", ddlPools.SelectedValue, "add_ip"), true); + Response.Redirect(EditUrl("PoolID", ddlPools.SelectedValue, "add_ip", "ReturnUrl=" + GetReturnUrl()), true); } protected void ddlItemsPerPage_SelectedIndexChanged(object sender, EventArgs e) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddressesAddIPAddress.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddressesAddIPAddress.ascx.cs index d4df6d54..46fff296 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddressesAddIPAddress.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddressesAddIPAddress.ascx.cs @@ -149,7 +149,14 @@ namespace WebsitePanel.Portal private void RedirectBack() { - Response.Redirect(NavigateURL("PoolID", ddlPools.SelectedValue)); + var returnUrl = Request["ReturnUrl"]; + + if (string.IsNullOrEmpty(returnUrl)) + { + returnUrl = NavigateURL("PoolID", ddlPools.SelectedValue); + } + + Response.Redirect(returnUrl); } protected void ddlPools_SelectedIndexChanged(object sender, EventArgs e) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddressesEditIPAddress.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddressesEditIPAddress.ascx.cs index 7ac5711a..c3cea0fd 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddressesEditIPAddress.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/IPAddressesEditIPAddress.ascx.cs @@ -107,7 +107,14 @@ namespace WebsitePanel.Portal private void RedirectBack() { - Response.Redirect(NavigateURL("PoolID", ddlPools.SelectedValue)); + var returnUrl = Request["ReturnUrl"]; + + if (string.IsNullOrEmpty(returnUrl)) + { + returnUrl = NavigateURL("PoolID", ddlPools.SelectedValue); + } + + Response.Redirect(returnUrl); } protected void btnUpdate_Click(object sender, EventArgs e) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/Organizations_Settings.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/Organizations_Settings.ascx.resx index 340ae559..7fb6e904 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/Organizations_Settings.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/App_LocalResources/Organizations_Settings.ascx.resx @@ -112,10 +112,10 @@ 2.0 - System.Resources.ResXResourceReader, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 - System.Resources.ResXResourceWriter, System.Windows.Forms, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 Preferred Domain Controller: @@ -135,4 +135,7 @@ Append OrgID + + Archive Storage Path: + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx index 3905c282..d34e1194 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx @@ -32,4 +32,8 @@ + + + + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx.cs index 801b6885..0b824a3f 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx.cs @@ -36,6 +36,7 @@ namespace WebsitePanel.Portal.ProviderControls public const string PrimaryDomainController = "PrimaryDomainController"; public const string TemporyDomainName = "TempDomain"; public const string UserNameFormat = "UserNameFormat"; + public const string ArchiveStoragePath = "ArchiveStoragePath"; protected void Page_Load(object sender, EventArgs e) { @@ -53,6 +54,8 @@ namespace WebsitePanel.Portal.ProviderControls UserNameFormatDropDown.SelectedValue = UserNameFormatDropDown.Items.FindByText(settings[UserNameFormat]).Value; } + + txtArchiveStorageSpace.Text = settings[ArchiveStoragePath]; } public void SaveSettings(System.Collections.Specialized.StringDictionary settings) @@ -61,6 +64,7 @@ namespace WebsitePanel.Portal.ProviderControls settings[PrimaryDomainController] = txtPrimaryDomainController.Text.Trim(); settings[TemporyDomainName] = txtTemporyDomainName.Text.Trim(); settings[UserNameFormat] = UserNameFormatDropDown.SelectedItem.Text; + settings[ArchiveStoragePath] = txtArchiveStorageSpace.Text.Trim(); } } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx.designer.cs index d437f2bd..35e1f7fb 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ProviderControls/Organizations_Settings.ascx.designer.cs @@ -120,5 +120,23 @@ namespace WebsitePanel.Portal.ProviderControls { /// To modify move field declaration from designer file to code-behind file. ///
protected global::System.Web.UI.WebControls.DropDownList UserNameFormatDropDown; + + /// + /// Label2 control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label Label2; + + /// + /// txtArchiveStorageSpace control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.TextBox txtArchiveStorageSpace; } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSCreateCollection.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSCreateCollection.ascx.resx index 4646b3b2..5d4c19af 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSCreateCollection.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSCreateCollection.ascx.resx @@ -121,7 +121,7 @@ ShowProgressDialog('Adding RDS Server ...'); - Save + Create diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditApplicationUsers.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditApplicationUsers.ascx.resx index a1ffcecb..7e96a0d6 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditApplicationUsers.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditApplicationUsers.ascx.resx @@ -1,64 +1,64 @@  - + @@ -133,7 +133,7 @@ Edit RDS Application - Application Name: + Collection Name: Server Name @@ -141,4 +141,7 @@ No RDS Servers have been added yet. To add a new RDS Servers click "Add RDS Server" button. + + Application Name: + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollection.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollection.ascx.resx index a4a9dd20..b89fe2d0 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollection.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollection.ascx.resx @@ -121,7 +121,7 @@ ShowProgressDialog('Adding RDS Server ...'); - Save + Save Changes @@ -141,4 +141,10 @@ No RDS Servers have been added yet. To add a new RDS Servers click "Add RDS Server" button. + + Save Changes and Exit + + + RDS Servers + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollectionApps.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollectionApps.ascx.resx index d5574a20..776463c4 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollectionApps.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollectionApps.ascx.resx @@ -127,7 +127,7 @@ - Edit RDS Collection + RDS Apps Edit RDS Collection @@ -141,4 +141,7 @@ No RDS Servers have been added yet. To add a new RDS Servers click "Add RDS Server" button. + + Remote Applications + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollectionUsers.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollectionUsers.ascx.resx index d5574a20..b7086125 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollectionUsers.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/App_LocalResources/RDSEditCollectionUsers.ascx.resx @@ -141,4 +141,7 @@ No RDS Servers have been added yet. To add a new RDS Servers click "Add RDS Server" button. + + RDS Users + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx index 30835282..52e148f2 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx @@ -58,11 +58,7 @@ - - Applications - | - Users - | + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx.cs index 097e62f7..f7a57731 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx.cs @@ -45,6 +45,12 @@ namespace WebsitePanel.Portal.RDS if (!IsPostBack) { } + + PackageContext cntx = PackagesHelper.GetCachedPackageContext(PanelSecurity.PackageId); + if (cntx.Quotas.ContainsKey(Quotas.RDS_COLLECTIONS)) + { + btnAddCollection.Enabled = (!(cntx.Quotas[Quotas.RDS_COLLECTIONS].QuotaAllocatedValue <= gvRDSCollections.Rows.Count) || (cntx.Quotas[Quotas.RDS_COLLECTIONS].QuotaAllocatedValue == -1)); + } } public string GetServerName(string collectionId) @@ -98,20 +104,6 @@ namespace WebsitePanel.Portal.RDS gvRDSCollections.DataBind(); } - public string GetCollectionAppsEditUrl(string collectionId) - { - return EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "rds_collection_edit_apps", - "CollectionId=" + collectionId, - "ItemID=" + PanelRequest.ItemID); - } - - public string GetCollectionUsersEditUrl(string collectionId) - { - return EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "rds_collection_edit_users", - "CollectionId=" + collectionId, - "ItemID=" + PanelRequest.ItemID); - } - public string GetCollectionEditUrl(string collectionId) { return EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "rds_edit_collection", "CollectionId=" + collectionId, "ItemID=" + PanelRequest.ItemID); diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx.designer.cs index 14132b14..7b951606 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCollections.ascx.designer.cs @@ -1,31 +1,3 @@ -// Copyright (c) 2015, 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. - //------------------------------------------------------------------------------ // // This code was generated by a tool. diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx index 0afe155d..68a18696 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx @@ -23,7 +23,7 @@ - + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx.cs index 51f9d140..71db4b8c 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx.cs @@ -63,8 +63,8 @@ namespace WebsitePanel.Portal.RDS } RdsCollection collection = new RdsCollection{ Name = txtCollectionName.Text, DisplayName = txtCollectionName.Text, Servers = servers.GetServers(), Description = "" }; - ES.Services.RDS.AddRdsCollection(PanelRequest.ItemID, collection); - Response.Redirect(EditUrl("ItemID", PanelRequest.ItemID.ToString(), "rds_collections", "SpaceID=" + PanelSecurity.PackageId)); + int collectionId = ES.Services.RDS.AddRdsCollection(PanelRequest.ItemID, collection); + Response.Redirect(EditUrl("SpaceID", PanelSecurity.PackageId.ToString(), "rds_edit_collection", "CollectionId=" + collectionId, "ItemID=" + PanelRequest.ItemID)); } catch (Exception ex) { diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx.designer.cs index f3be70c0..b1666d95 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSCreateCollection.ascx.designer.cs @@ -1,31 +1,3 @@ -// Copyright (c) 2015, 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. - //------------------------------------------------------------------------------ // // This code was generated by a tool. diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx index 2dc96cb7..9169f231 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx @@ -21,12 +21,18 @@ - - + -
+
+ + + + + + +
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx.cs index 391a070d..72317ca2 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx.cs @@ -49,6 +49,7 @@ namespace WebsitePanel.Portal.RDS var applicationUsers = ES.Services.RDS.GetApplicationUsers(PanelRequest.ItemID, PanelRequest.CollectionID, remoteApp); locCName.Text = collection.Name; + locAppName.Text = remoteApp.DisplayName; users.SetUsers(collectionUsers.Where(x => applicationUsers.Contains(x.SamAccountName)).ToArray()); } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx.designer.cs index 62086994..edb35ca6 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditApplicationUsers.ascx.designer.cs @@ -1,31 +1,3 @@ -// Copyright (c) 2015, 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. - //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -77,13 +49,13 @@ namespace WebsitePanel.Portal.RDS { protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; /// - /// locApplicationName control. + /// locCollectionName control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Localize locApplicationName; + protected global::System.Web.UI.WebControls.Localize locCollectionName; /// /// locCName control. @@ -94,6 +66,24 @@ namespace WebsitePanel.Portal.RDS { /// protected global::System.Web.UI.WebControls.Localize locCName; + /// + /// locApplicationName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Localize locApplicationName; + + /// + /// locAppName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Localize locAppName; + /// /// UsersPanel control. /// diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx index f140dbe4..7441d376 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx @@ -2,6 +2,9 @@ <%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> <%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> <%@ Register Src="UserControls/RDSCollectionServers.ascx" TagName="CollectionServers" TagPrefix="wsp"%> +<%@ Register Src="UserControls/RDSCollectionTabs.ascx" TagName="CollectionTabs" TagPrefix="wsp" %> +<%@ Register TagPrefix="wsp" TagName="CollapsiblePanel" Src="../UserControls/CollapsiblePanel.ascx" %> +<%@ Register Src="../UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %> @@ -15,20 +18,26 @@
+ - +
-
- - -
- +
+ + + + + + +
-
-
- -
- -
+
+ +
+ +
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx.cs index 5b47cc54..12cbba33 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx.cs @@ -40,7 +40,36 @@ namespace WebsitePanel.Portal.RDS { protected void Page_Load(object sender, EventArgs e) { + if (!Page.IsPostBack) + { + var collection = ES.Services.RDS.GetRdsCollection(PanelRequest.CollectionID); + litCollectionName.Text = collection.DisplayName; + } + } + private bool SaveRdsServers() + { + try + { + if (servers.GetServers().Count < 1) + { + messageBox.ShowErrorMessage("RDS_CREATE_COLLECTION_RDSSERVER_REQUAIRED"); + return false; + } + + RdsCollection collection = ES.Services.RDS.GetRdsCollection(PanelRequest.CollectionID); + collection.Servers = servers.GetServers(); + + ES.Services.RDS.EditRdsCollection(PanelRequest.ItemID, collection); + + } + catch(Exception ex) + { + messageBox.ShowErrorMessage(ex.Message); + return false; + } + + return true; } protected void btnSave_Click(object sender, EventArgs e) @@ -48,23 +77,18 @@ namespace WebsitePanel.Portal.RDS if (!Page.IsValid) return; - try + SaveRdsServers(); + } + + protected void btnSaveExit_Click(object sender, EventArgs e) + { + if (!Page.IsValid) + return; + + if (SaveRdsServers()) { - if (servers.GetServers().Count < 1) - { - messageBox.ShowErrorMessage("RDS_CREATE_COLLECTION_RDSSERVER_REQUAIRED"); - return; - } - - RdsCollection collection = ES.Services.RDS.GetRdsCollection(PanelRequest.CollectionID); - collection.Servers = servers.GetServers(); - - ES.Services.RDS.EditRdsCollection(PanelRequest.ItemID, collection); - - Response.Redirect(EditUrl("ItemID", PanelRequest.ItemID.ToString(), "rds_collections", - "SpaceID=" + PanelSecurity.PackageId)); + Response.Redirect(EditUrl("ItemID", PanelRequest.ItemID.ToString(), "rds_collections", "SpaceID=" + PanelSecurity.PackageId)); } - catch { } } } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx.designer.cs index 30e46afa..1e871725 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollection.ascx.designer.cs @@ -1,31 +1,3 @@ -// Copyright (c) 2015, 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. - //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -67,6 +39,24 @@ namespace WebsitePanel.Portal.RDS { /// protected global::System.Web.UI.WebControls.Localize locTitle; + /// + /// litCollectionName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal litCollectionName; + + /// + /// tabs control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebsitePanel.Portal.RDS.UserControls.RdsServerTabs tabs; + /// /// messageBox control. /// @@ -77,22 +67,22 @@ namespace WebsitePanel.Portal.RDS { protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; /// - /// RDSServersPanel control. + /// secRdsServers control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl RDSServersPanel; + protected global::WebsitePanel.Portal.CollapsiblePanel secRdsServers; /// - /// locRDSServersSection control. + /// panelRdsServers control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Localize locRDSServersSection; + protected global::System.Web.UI.WebControls.Panel panelRdsServers; /// /// servers control. @@ -104,12 +94,12 @@ namespace WebsitePanel.Portal.RDS { protected global::WebsitePanel.Portal.RDS.UserControls.RDSCollectionServers servers; /// - /// btnSave control. + /// buttonPanel control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Button btnSave; + protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel; } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx index e9ab9fc9..a4b34499 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx @@ -2,6 +2,9 @@ <%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> <%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> <%@ Register Src="UserControls/RDSCollectionApps.ascx" TagName="CollectionApps" TagPrefix="wsp"%> +<%@ Register Src="UserControls/RDSCollectionTabs.ascx" TagName="CollectionTabs" TagPrefix="wsp" %> +<%@ Register TagPrefix="wsp" TagName="CollapsiblePanel" Src="../UserControls/CollapsiblePanel.ascx" %> +<%@ Register Src="../UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %> @@ -15,30 +18,26 @@
+ - +
-
- +
+ + - - - - - -
- -
- -
- + + + +
-
-
- -
- - -
+
+ +
+ +
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx.cs index 726b1b5f..da547518 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx.cs @@ -47,25 +47,48 @@ namespace WebsitePanel.Portal.RDS { RdsCollection collection = ES.Services.RDS.GetRdsCollection(PanelRequest.CollectionID); var collectionApps = ES.Services.RDS.GetCollectionRemoteApplications(PanelRequest.ItemID, collection.Name); - - locCName.Text = collection.Name; - + + litCollectionName.Text = collection.DisplayName; remoreApps.SetApps(collectionApps); } } + private bool SaveRemoteApplications() + { + try + { + ES.Services.RDS.SetRemoteApplicationsToRdsCollection(PanelRequest.ItemID, PanelRequest.CollectionID, remoreApps.GetApps()); + } + catch (Exception ex) + { + messageBox.ShowErrorMessage(ex.Message); + return false; + } + + return true; + } + protected void btnSave_Click(object sender, EventArgs e) { if (!Page.IsValid) - return; - try { - ES.Services.RDS.SetRemoteApplicationsToRdsCollection(PanelRequest.ItemID, PanelRequest.CollectionID, remoreApps.GetApps()); - - Response.Redirect(EditUrl("ItemID", PanelRequest.ItemID.ToString(), "rds_collections", - "SpaceID=" + PanelSecurity.PackageId)); + return; + } + + SaveRemoteApplications(); + } + + protected void btnSaveExit_Click(object sender, EventArgs e) + { + if (!Page.IsValid) + { + return; + } + + if (SaveRemoteApplications()) + { + Response.Redirect(EditUrl("ItemID", PanelRequest.ItemID.ToString(), "rds_collections", "SpaceID=" + PanelSecurity.PackageId)); } - catch (Exception ex) { } } } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx.designer.cs index cd51178c..dd630ac7 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionApps.ascx.designer.cs @@ -1,31 +1,3 @@ -// Copyright (c) 2015, 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. - //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -67,6 +39,24 @@ namespace WebsitePanel.Portal.RDS { /// protected global::System.Web.UI.WebControls.Localize locTitle; + /// + /// litCollectionName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal litCollectionName; + + /// + /// tabs control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebsitePanel.Portal.RDS.UserControls.RdsServerTabs tabs; + /// /// messageBox control. /// @@ -77,40 +67,22 @@ namespace WebsitePanel.Portal.RDS { protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; /// - /// locCollectionName control. + /// secRdsApplications control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Localize locCollectionName; + protected global::WebsitePanel.Portal.CollapsiblePanel secRdsApplications; /// - /// locCName control. + /// panelRdsApplications control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Localize locCName; - - /// - /// RemoteAppsPanel control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl RemoteAppsPanel; - - /// - /// locRemoteAppsSection control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locRemoteAppsSection; + protected global::System.Web.UI.WebControls.Panel panelRdsApplications; /// /// remoreApps control. @@ -122,21 +94,12 @@ namespace WebsitePanel.Portal.RDS { protected global::WebsitePanel.Portal.RDS.UserControls.RDSCollectionApps remoreApps; /// - /// btnSave control. + /// buttonPanel control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Button btnSave; - - /// - /// valSummary control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.ValidationSummary valSummary; + protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel; } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx index 59be0b41..7f71695d 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx @@ -2,6 +2,9 @@ <%@ Register Src="../UserControls/SimpleMessageBox.ascx" TagName="SimpleMessageBox" TagPrefix="wsp" %> <%@ Register Src="../UserControls/EnableAsyncTasksSupport.ascx" TagName="EnableAsyncTasksSupport" TagPrefix="wsp" %> <%@ Register Src="UserControls/RDSCollectionUsers.ascx" TagName="CollectionUsers" TagPrefix="wsp"%> +<%@ Register Src="UserControls/RDSCollectionTabs.ascx" TagName="CollectionTabs" TagPrefix="wsp" %> +<%@ Register TagPrefix="wsp" TagName="CollapsiblePanel" Src="../UserControls/CollapsiblePanel.ascx" %> +<%@ Register Src="../UserControls/ItemButtonPanel.ascx" TagName="ItemButtonPanel" TagPrefix="wsp" %> @@ -15,30 +18,26 @@
+ - +
- - - - - - -
- -
- -
- + + + + + +
-
-
- -
- - -
+
+ +
+ +
diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx.cs index 7c2a6c9d..beaeed58 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx.cs @@ -44,25 +44,48 @@ namespace WebsitePanel.Portal.RDS { var collectionUsers = ES.Services.RDS.GetRdsCollectionUsers(PanelRequest.CollectionID); var collection = ES.Services.RDS.GetRdsCollection(PanelRequest.CollectionID); - - locCName.Text = collection.Name; - + + litCollectionName.Text = collection.DisplayName; users.SetUsers(collectionUsers); } } + private bool SaveRdsUsers() + { + try + { + ES.Services.RDS.SetUsersToRdsCollection(PanelRequest.ItemID, PanelRequest.CollectionID, users.GetUsers()); + } + catch (Exception ex) + { + messageBox.ShowErrorMessage(ex.Message); + return false; + } + + return true; + } + protected void btnSave_Click(object sender, EventArgs e) { if (!Page.IsValid) - return; - try { - ES.Services.RDS.SetUsersToRdsCollection(PanelRequest.ItemID, PanelRequest.CollectionID, users.GetUsers()); - - Response.Redirect(EditUrl("ItemID", PanelRequest.ItemID.ToString(), "rds_collections", - "SpaceID=" + PanelSecurity.PackageId)); + return; + } + + SaveRdsUsers(); + } + + protected void btnSaveExit_Click(object sender, EventArgs e) + { + if (!Page.IsValid) + { + return; + } + + if (SaveRdsUsers()) + { + Response.Redirect(EditUrl("ItemID", PanelRequest.ItemID.ToString(), "rds_collections", "SpaceID=" + PanelSecurity.PackageId)); } - catch(Exception ex) { } } } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx.designer.cs index a0525634..b4cdce32 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/RDSEditCollectionUsers.ascx.designer.cs @@ -1,31 +1,3 @@ -// Copyright (c) 2015, 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. - //------------------------------------------------------------------------------ // // This code was generated by a tool. @@ -67,6 +39,15 @@ namespace WebsitePanel.Portal.RDS { /// protected global::System.Web.UI.WebControls.Localize locTitle; + /// + /// litCollectionName control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Literal litCollectionName; + /// /// messageBox control. /// @@ -77,40 +58,31 @@ namespace WebsitePanel.Portal.RDS { protected global::WebsitePanel.Portal.UserControls.SimpleMessageBox messageBox; /// - /// locCollectionName control. + /// tabs control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Localize locCollectionName; + protected global::WebsitePanel.Portal.RDS.UserControls.RdsServerTabs tabs; /// - /// locCName control. + /// secRdsUsers control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Localize locCName; + protected global::WebsitePanel.Portal.CollapsiblePanel secRdsUsers; /// - /// UsersPanel control. + /// panelRdsUsers control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.HtmlControls.HtmlGenericControl UsersPanel; - - /// - /// locUsersSection control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.Localize locUsersSection; + protected global::System.Web.UI.WebControls.Panel panelRdsUsers; /// /// users control. @@ -122,21 +94,12 @@ namespace WebsitePanel.Portal.RDS { protected global::WebsitePanel.Portal.RDS.UserControls.RDSCollectionUsers users; /// - /// btnSave control. + /// buttonPanel control. /// /// /// Auto-generated field. /// To modify move field declaration from designer file to code-behind file. /// - protected global::System.Web.UI.WebControls.Button btnSave; - - /// - /// valSummary control. - /// - /// - /// Auto-generated field. - /// To modify move field declaration from designer file to code-behind file. - /// - protected global::System.Web.UI.WebControls.ValidationSummary valSummary; + protected global::WebsitePanel.Portal.ItemButtonPanel buttonPanel; } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/App_LocalResources/RDSCollectionTabs.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/App_LocalResources/RDSCollectionTabs.ascx.resx new file mode 100644 index 00000000..288b1145 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/App_LocalResources/RDSCollectionTabs.ascx.resx @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + Remote Applications + + + RDS Servers + + + RDS Users + + + Settings + + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionApps.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionApps.ascx index 147cee05..ecae4947 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionApps.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionApps.ascx @@ -4,8 +4,8 @@
- - + +
// This code was generated by a tool. diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionServers.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionServers.ascx index 84ee87c1..7a32c13f 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionServers.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionServers.ascx @@ -4,8 +4,8 @@
- - + +
// This code was generated by a tool. diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionTabs.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionTabs.ascx new file mode 100644 index 00000000..5ad4020a --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionTabs.ascx @@ -0,0 +1,22 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="RDSCollectionTabs.ascx.cs" Inherits="WebsitePanel.Portal.RDS.UserControls.RdsServerTabs" %> + + + + +
+ + + + + <%# Eval("Name") %> + + + + + + <%# Eval("Name") %> + + + +
+
\ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionTabs.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionTabs.ascx.cs new file mode 100644 index 00000000..340559f7 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionTabs.ascx.cs @@ -0,0 +1,52 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; +using WebsitePanel.Portal.Code.UserControls; + +namespace WebsitePanel.Portal.RDS.UserControls +{ + public partial class RdsServerTabs : WebsitePanelControlBase + { + public string SelectedTab { get; set; } + + protected void Page_Load(object sender, EventArgs e) + { + BindTabs(); + } + + private void BindTabs() + { + List tabsList = new List(); + tabsList.Add(CreateTab("rds_edit_collection", "Tab.RdsServers")); + tabsList.Add(CreateTab("rds_collection_edit_apps", "Tab.RdsApplications")); + tabsList.Add(CreateTab("rds_collection_edit_users", "Tab.RdsUsers")); + + int idx = 0; + + foreach (Tab tab in tabsList) + { + if (String.Compare(tab.Id, SelectedTab, true) == 0) + { + break; + } + + idx++; + } + + rdsTabs.SelectedIndex = idx; + rdsTabs.DataSource = tabsList; + rdsTabs.DataBind(); + } + + private Tab CreateTab(string id, string text) + { + return new Tab(id, GetLocalizedString(text), + HostModule.EditUrl("AccountID", PanelRequest.AccountID.ToString(), id, + "SpaceID=" + PanelSecurity.PackageId.ToString(), + "ItemID=" + PanelRequest.ItemID.ToString(), "CollectionID=" + PanelRequest.CollectionID)); + } + } +} \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionTabs.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionTabs.ascx.designer.cs new file mode 100644 index 00000000..4a7d128d --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionTabs.ascx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace WebsitePanel.Portal.RDS.UserControls { + + + public partial class RdsServerTabs { + + /// + /// rdsTabs control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.DataList rdsTabs; + } +} diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionUsers.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionUsers.ascx index db0a67d5..b2dc9efc 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionUsers.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/RDS/UserControls/RDSCollectionUsers.ascx @@ -4,8 +4,8 @@
- - + +
// This code was generated by a tool. diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx index 4c63c10d..8df5d222 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx @@ -11,7 +11,7 @@ - + <%# Eval("ExternalIP") %> diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx.cs index 44c7de99..fc805eee 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServerIPAddressesControl.ascx.cs @@ -43,6 +43,18 @@ namespace WebsitePanel.Portal { protected void Page_Load(object sender, EventArgs e) { + if (!IsPostBack) + { + gvIPAddresses.PageIndex = PageIndex; + } + } + + public int PageIndex + { + get + { + return PanelRequest.GetInt("IpAddressesPage", 0); + } } public string EditModuleUrl(string key, string keyVal, string ctrlKey) @@ -55,9 +67,18 @@ namespace WebsitePanel.Portal return HostModule.EditUrl(key, keyVal, ctrlKey, key2 + "=" + keyVal2); } + public string GetReturnUrl() + { + var returnUrl = Request.Url + .AddParameter("IpAddressesCollapsed", "False") + .AddParameter("IpAddressesPage", gvIPAddresses.PageIndex.ToString()); + + return Uri.EscapeDataString("~" + returnUrl.PathAndQuery); + } + protected void btnAdd_Click(object sender, EventArgs e) { - Response.Redirect(HostModule.EditUrl("ServerID", PanelRequest.ServerId.ToString(), "add_ip"), true); + Response.Redirect(EditModuleUrl("ServerID", PanelRequest.ServerId.ToString(), "add_ip", "ReturnUrl", GetReturnUrl()), true); } } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditServer.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditServer.ascx.cs index e9d268e6..3bee6d7d 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditServer.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/ServersEditServer.ascx.cs @@ -58,6 +58,8 @@ namespace WebsitePanel.Portal ShowErrorMessage("SERVER_GET_SERVER", ex); return; } + + IPAddressesHeader.IsCollapsed = IsIpAddressesCollapsed; } } @@ -232,5 +234,13 @@ namespace WebsitePanel.Portal return; } } + + protected bool IsIpAddressesCollapsed + { + get + { + return PanelRequest.GetBool("IpAddressesCollapsed", true); + } + } } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx index dc5567f1..b52a64b4 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx @@ -37,6 +37,10 @@ + + + + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.cs index b63bafea..0f4cd791 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.cs @@ -60,6 +60,7 @@ namespace WebsitePanel.Portal //{ "quotaDomainPointers", "pnlDomainPointers" }, { "quotaOrganizations", "pnlOrganizations" }, { "quotaUserAccounts", "pnlUserAccounts" }, + { "quotaDeletedUsers", "pnlDeletedUsers" }, { "quotaMailAccounts", "pnlMailAccounts" }, { "quotaExchangeAccounts", "pnlExchangeAccounts" }, { "quotaOCSUsers", "pnlOCSUsers" }, diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.designer.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.designer.cs index 7b5e3556..fbb13a74 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.designer.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SpaceQuotas.ascx.designer.cs @@ -211,6 +211,33 @@ namespace WebsitePanel.Portal { /// protected global::WebsitePanel.Portal.Quota quotaUserAccounts; + /// + /// pnlDeletedUsers control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.HtmlControls.HtmlTableRow pnlDeletedUsers; + + /// + /// lblDeletedUsers control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label lblDeletedUsers; + + /// + /// quotaDeletedUsers control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::WebsitePanel.Portal.Quota quotaDeletedUsers; + /// /// pnlExchangeAccounts control. /// diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/DomainControl.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/DomainControl.ascx.cs index ce31b664..9786c25d 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/DomainControl.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/DomainControl.ascx.cs @@ -77,11 +77,15 @@ namespace WebsitePanel.Portal.UserControls get { var domainName = txtDomainName.Text.Trim(); - if (IsSubDomain) + if (!IsSubDomain) return domainName; + + if (string.IsNullOrEmpty(domainName)) { - domainName += "." + DomainsList.SelectedValue; + // Only return selected domain from DomainsList when no subdomain is entered yet + return DomainsList.SelectedValue; } - return domainName; + + return domainName + "." + DomainsList.SelectedValue; } set { txtDomainName.Text = value; } } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/OrganizationMenuControl.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/OrganizationMenuControl.cs index a7aabb92..195efc74 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/OrganizationMenuControl.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/OrganizationMenuControl.cs @@ -169,9 +169,13 @@ namespace WebsitePanel.Portal.UserControls if (Utils.CheckQouta(Quotas.ORGANIZATION_DOMAINS, Cntx)) items.Add(CreateMenuItem("DomainNames", "org_domains")); } + if (Utils.CheckQouta(Quotas.ORGANIZATION_USERS, Cntx)) items.Add(CreateMenuItem("Users", "users", @"Icons/user_48.png")); + if (Utils.CheckQouta(Quotas.ORGANIZATION_DELETED_USERS, Cntx)) + items.Add(CreateMenuItem("DeletedUsers", "deleted_users", @"Icons/deleted_user_48.png")); + if (Utils.CheckQouta(Quotas.ORGANIZATION_SECURITYGROUPS, Cntx)) items.Add(CreateMenuItem("SecurityGroups", "secur_groups", @"Icons/group_48.png")); } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PasswordControl.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PasswordControl.ascx.cs index ccd7e451..15473082 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PasswordControl.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/UserControls/PasswordControl.ascx.cs @@ -220,7 +220,7 @@ namespace WebsitePanel.Portal function wspValidatePasswordSymbols(source, args) { if(args.Value == source.getAttribute('dpsw')) return true; - args.IsValid = wspValidatePattern(/(\W)/g, args.Value, + args.IsValid = wspValidatePattern(/([\W_])/g, args.Value, parseInt(source.getAttribute('minimumNumber'))); } @@ -357,7 +357,7 @@ namespace WebsitePanel.Portal protected void valRequireSymbols_ServerValidate(object source, ServerValidateEventArgs args) { - args.IsValid = ((args.Value == EMPTY_PASSWORD) || ValidatePattern("(\\W)", args.Value, MinimumSymbols)); + args.IsValid = ((args.Value == EMPTY_PASSWORD) || ValidatePattern("([\\W_])", args.Value, MinimumSymbols)); } private bool ValidatePattern(string regexp, string val, int minimumNumber) diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesEditSite.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesEditSite.ascx.cs index 125c354c..be04563f 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesEditSite.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebSitesEditSite.ascx.cs @@ -546,7 +546,7 @@ namespace WebsitePanel.Portal WDeployPublishingConfirmPasswordTextBox, WDeployPublishingAccountRequiredFieldValidator); - WDeployPublishingAccountTextBox.Text = AutoSuggestWmSvcAccontName(item, "_dploy"); + WDeployPublishingAccountTextBox.Text = AutoSuggestWmSvcAccontName(item, "_deploy"); // WDeployPublishingAccountRequiredFieldValidator.Enabled = true; // diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj index f6b4fbd2..e077bc36 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/WebsitePanel.Portal.Modules.csproj @@ -211,19 +211,47 @@ - - ExchangeCheckDomainName.ascx + + OrganizationDeletedUsers.ascx ASPXCodeBehind - - + + + ExchangeCheckDomainName.ascx + ASPXCodeBehind + + + OrganizationDeletedUsers.ascx + + ExchangeCheckDomainName.ascx - - + + + OrganizationDeletedUserGeneralSettings.ascx + ASPXCodeBehind + + Windows2012_Settings.ascx ASPXCodeBehind - - + + + OrganizationDeletedUserGeneralSettings.ascx + + Windows2012_Settings.ascx + + + OrganizationDeletedUserMemberOf.ascx + ASPXCodeBehind + + + OrganizationDeletedUserMemberOf.ascx + + + DeletedUserTabs.ascx + ASPXCodeBehind + + + DeletedUserTabs.ascx RDSServersAddserver.ascx @@ -316,6 +344,13 @@ RDSCollectionUsers.ascx + + RDSCollectionTabs.ascx + ASPXCodeBehind + + + RDSCollectionTabs.ascx + True True @@ -4300,6 +4335,10 @@ + + + + @@ -4313,6 +4352,7 @@ + @@ -4326,6 +4366,7 @@ Designer + ResXFileCodeGenerator DomainLookupView.ascx.Designer.cs @@ -5645,7 +5686,23 @@ - + + Designer + + + Designer + + + Designer + + + + Designer + + + + Designer + Designer diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/Web.config b/WebsitePanel/Sources/WebsitePanel.WebPortal/Web.config index 3941653c..7620956e 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/Web.config +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/Web.config @@ -1,55 +1,55 @@ - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/WebsitePanel.WebPortal.csproj b/WebsitePanel/Sources/WebsitePanel.WebPortal/WebsitePanel.WebPortal.csproj index 3c33cdbb..1c35c25c 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/WebsitePanel.WebPortal.csproj +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/WebsitePanel.WebPortal.csproj @@ -114,6 +114,7 @@ + diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/packages.config b/WebsitePanel/Sources/WebsitePanel.WebPortal/packages.config new file mode 100644 index 00000000..9bda2c64 --- /dev/null +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/packages.config @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/WebsitePanel/Sources/generate_es_proxies.bat b/WebsitePanel/Sources/generate_es_proxies.bat index f0903fe1..4f45afb7 100644 --- a/WebsitePanel/Sources/generate_es_proxies.bat +++ b/WebsitePanel/Sources/generate_es_proxies.bat @@ -35,8 +35,8 @@ REM %WSE_CLEAN% .\WebsitePanel.EnterpriseServer.Client\ecStorefrontProxy.cs REM %WSDL% %SERVER_URL%/ecStorehouse.asmx /out:.\WebsitePanel.EnterpriseServer.Client\ecStorehouseProxy.cs /namespace:WebsitePanel.Ecommerce.EnterpriseServer /type:webClient REM %WSE_CLEAN% .\WebsitePanel.EnterpriseServer.Client\ecStorehouseProxy.cs -REM %WSDL% %SERVER_URL%/esExchangeServer.asmx /out:.\WebsitePanel.EnterpriseServer.Client\ExchangeServerProxy.cs /namespace:WebsitePanel.EnterpriseServer /type:webClient -REM %WSE_CLEAN% .\WebsitePanel.EnterpriseServer.Client\ExchangeServerProxy.cs +%WSDL% %SERVER_URL%/esExchangeServer.asmx /out:.\WebsitePanel.EnterpriseServer.Client\ExchangeServerProxy.cs /namespace:WebsitePanel.EnterpriseServer /type:webClient +%WSE_CLEAN% .\WebsitePanel.EnterpriseServer.Client\ExchangeServerProxy.cs REM %WSDL% %SERVER_URL%/esExchangeHostedEdition.asmx /out:.\WebsitePanel.EnterpriseServer.Client\ExchangeHostedEditionProxy.cs /namespace:WebsitePanel.EnterpriseServer /type:webClient REM %WSE_CLEAN% .\WebsitePanel.EnterpriseServer.Client\ExchangeHostedEditionProxy.cs @@ -56,8 +56,8 @@ REM %WSE_CLEAN% .\WebsitePanel.EnterpriseServer.Client\OCSProxy.cs REM %WSDL% %SERVER_URL%/esOperatingSystems.asmx /out:.\WebsitePanel.EnterpriseServer.Client\OperatingSystemsProxy.cs /namespace:WebsitePanel.EnterpriseServer /type:webClient REM %WSE_CLEAN% .\WebsitePanel.EnterpriseServer.Client\OperatingSystemsProxy.cs -REM %WSDL% %SERVER_URL%/esOrganizations.asmx /out:.\WebsitePanel.EnterpriseServer.Client\OrganizationProxy.cs /namespace:WebsitePanel.EnterpriseServer.HostedSolution /type:webClient -REM %WSE_CLEAN% .\WebsitePanel.EnterpriseServer.Client\OrganizationProxy.cs +%WSDL% %SERVER_URL%/esOrganizations.asmx /out:.\WebsitePanel.EnterpriseServer.Client\OrganizationProxy.cs /namespace:WebsitePanel.EnterpriseServer.HostedSolution /type:webClient +%WSE_CLEAN% .\WebsitePanel.EnterpriseServer.Client\OrganizationProxy.cs REM %WSDL% %SERVER_URL%/esPackages.asmx /out:.\WebsitePanel.EnterpriseServer.Client\PackagesProxy.cs /namespace:WebsitePanel.EnterpriseServer /type:webClient REM %WSE_CLEAN% .\WebsitePanel.EnterpriseServer.Client\PackagesProxy.cs diff --git a/WebsitePanel/Sources/generate_server_proxies.bat b/WebsitePanel/Sources/generate_server_proxies.bat index e2ec3ca4..1ed0de0e 100644 --- a/WebsitePanel/Sources/generate_server_proxies.bat +++ b/WebsitePanel/Sources/generate_server_proxies.bat @@ -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 %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 -REM %WSE_CLEAN% .\WebsitePanel.Server.Client\ExchangeServerProxy.cs +%WSDL% %SERVER_URL%/ExchangeServer.asmx /out:.\WebsitePanel.Server.Client\ExchangeServerProxy.cs /namespace:WebsitePanel.Providers.Exchange /type:webClient /fields +%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 %WSE_CLEAN% .\WebsitePanel.Server.Client\ExchangeServerHostedEditionProxy.cs @@ -32,11 +32,11 @@ REM %WSE_CLEAN% .\WebsitePanel.Server.Client\OCSEdgeServerProxy.cs REM %WSDL% %SERVER_URL%/OCSServer.asmx /out:.\WebsitePanel.Server.Client\OCSServerProxy.cs /namespace:WebsitePanel.Providers.OCS /type:webClient /fields REM %WSE_CLEAN% .\WebsitePanel.Server.Client\OCSServerProxy.cs -%WSDL% %SERVER_URL%/OperatingSystem.asmx /out:.\WebsitePanel.Server.Client\OperatingSystemProxy.cs /namespace:WebsitePanel.Providers.OS /type:webClient /fields -%WSE_CLEAN% .\WebsitePanel.Server.Client\OperatingSystemProxy.cs +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 %WSDL% %SERVER_URL%/Organizations.asmx /out:.\WebsitePanel.Server.Client\OrganizationProxy.cs /namespace:WebsitePanel.Providers.HostedSolution /type:webClient /fields -REM %WSE_CLEAN% .\WebsitePanel.Server.Client\OrganizationProxy.cs +%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 %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