deleted users archiving

This commit is contained in:
vfedosevich 2015-01-16 04:01:35 -08:00
parent 45462971d2
commit 26a050a3e5
78 changed files with 13755 additions and 9774 deletions

View file

@ -40,6 +40,7 @@ namespace WebsitePanel.Providers.HostedSolution
User = 7,
SecurityGroup = 8,
DefaultSecurityGroup = 9,
SharedMailbox = 10
SharedMailbox = 10,
DeletedUser = 11
}
}

View file

@ -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

View file

@ -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

View file

@ -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);

View file

@ -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; }
}
}

View file

@ -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; }
}
}
}

View file

@ -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,29 @@ 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; }
}
}
}