Initial project's source code check-in.
This commit is contained in:
commit
b03b0b373f
4573 changed files with 981205 additions and 0 deletions
|
@ -0,0 +1,74 @@
|
|||
// Copyright (c) 2011, 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 System.Text;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
public class HostingPlanContext
|
||||
{
|
||||
private HostingPlanInfo hostingPlan;
|
||||
private HostingPlanGroupInfo[] groupsArray;
|
||||
private QuotaValueInfo[] quotasArray;
|
||||
private Dictionary<string, HostingPlanGroupInfo> groups = new Dictionary<string, HostingPlanGroupInfo>();
|
||||
private Dictionary<string, QuotaValueInfo> quotas = new Dictionary<string, QuotaValueInfo>();
|
||||
|
||||
public HostingPlanInfo HostingPlan
|
||||
{
|
||||
get { return this.hostingPlan; }
|
||||
set { this.hostingPlan = value; }
|
||||
}
|
||||
|
||||
public HostingPlanGroupInfo[] GroupsArray
|
||||
{
|
||||
get { return this.groupsArray; }
|
||||
set { this.groupsArray = value; }
|
||||
}
|
||||
|
||||
public QuotaValueInfo[] QuotasArray
|
||||
{
|
||||
get { return this.quotasArray; }
|
||||
set { this.quotasArray = value; }
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public Dictionary<string, HostingPlanGroupInfo> Groups
|
||||
{
|
||||
get { return groups; }
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public Dictionary<string, QuotaValueInfo> Quotas
|
||||
{
|
||||
get { return quotas; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,74 @@
|
|||
// Copyright (c) 2011, 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 System.Text;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
[Serializable]
|
||||
public class HostingPlanGroupInfo
|
||||
{
|
||||
int groupId;
|
||||
string groupName;
|
||||
bool enabled;
|
||||
bool calculateDiskSpace;
|
||||
bool calculateBandwidth;
|
||||
|
||||
public int GroupId
|
||||
{
|
||||
get { return groupId; }
|
||||
set { groupId = value; }
|
||||
}
|
||||
|
||||
public bool Enabled
|
||||
{
|
||||
get { return enabled; }
|
||||
set { enabled = value; }
|
||||
}
|
||||
|
||||
public bool CalculateDiskSpace
|
||||
{
|
||||
get { return calculateDiskSpace; }
|
||||
set { calculateDiskSpace = value; }
|
||||
}
|
||||
|
||||
public bool CalculateBandwidth
|
||||
{
|
||||
get { return calculateBandwidth; }
|
||||
set { calculateBandwidth = value; }
|
||||
}
|
||||
|
||||
public string GroupName
|
||||
{
|
||||
get { return this.groupName; }
|
||||
set { this.groupName = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,137 @@
|
|||
// Copyright (c) 2011, 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 System.Text;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
[Serializable]
|
||||
public class HostingPlanInfo
|
||||
{
|
||||
int planId;
|
||||
int userId;
|
||||
int packageId;
|
||||
int serverId;
|
||||
string planName;
|
||||
string planDescription;
|
||||
bool available;
|
||||
bool isAddon;
|
||||
decimal setupPrice;
|
||||
decimal recurringPrice;
|
||||
int recurrenceUnit;
|
||||
int recurrenceLength;
|
||||
HostingPlanGroupInfo[] groups;
|
||||
HostingPlanQuotaInfo[] quotas;
|
||||
|
||||
public int PlanId
|
||||
{
|
||||
get { return planId; }
|
||||
set { planId = value; }
|
||||
}
|
||||
|
||||
public int PackageId
|
||||
{
|
||||
get { return packageId; }
|
||||
set { packageId = value; }
|
||||
}
|
||||
|
||||
public string PlanName
|
||||
{
|
||||
get { return planName; }
|
||||
set { planName = value; }
|
||||
}
|
||||
|
||||
public string PlanDescription
|
||||
{
|
||||
get { return planDescription; }
|
||||
set { planDescription = value; }
|
||||
}
|
||||
|
||||
public bool Available
|
||||
{
|
||||
get { return available; }
|
||||
set { available = value; }
|
||||
}
|
||||
|
||||
public int ServerId
|
||||
{
|
||||
get { return serverId; }
|
||||
set { serverId = value; }
|
||||
}
|
||||
|
||||
public bool IsAddon
|
||||
{
|
||||
get { return isAddon; }
|
||||
set { isAddon = value; }
|
||||
}
|
||||
|
||||
public decimal SetupPrice
|
||||
{
|
||||
get { return this.setupPrice; }
|
||||
set { this.setupPrice = value; }
|
||||
}
|
||||
|
||||
public decimal RecurringPrice
|
||||
{
|
||||
get { return this.recurringPrice; }
|
||||
set { this.recurringPrice = value; }
|
||||
}
|
||||
|
||||
public int RecurrenceUnit
|
||||
{
|
||||
get { return this.recurrenceUnit; }
|
||||
set { this.recurrenceUnit = value; }
|
||||
}
|
||||
|
||||
public int RecurrenceLength
|
||||
{
|
||||
get { return this.recurrenceLength; }
|
||||
set { this.recurrenceLength = value; }
|
||||
}
|
||||
|
||||
public HostingPlanGroupInfo[] Groups
|
||||
{
|
||||
get { return this.groups; }
|
||||
set { this.groups = value; }
|
||||
}
|
||||
|
||||
public HostingPlanQuotaInfo[] Quotas
|
||||
{
|
||||
get { return this.quotas; }
|
||||
set { this.quotas = value; }
|
||||
}
|
||||
|
||||
public int UserId
|
||||
{
|
||||
get { return this.userId; }
|
||||
set { this.userId = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,52 @@
|
|||
// Copyright (c) 2011, 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 System.Text;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
public class HostingPlanQuotaInfo
|
||||
{
|
||||
int quotaId;
|
||||
|
||||
public int QuotaId
|
||||
{
|
||||
get { return quotaId; }
|
||||
set { quotaId = value; }
|
||||
}
|
||||
int quotaValue;
|
||||
|
||||
public int QuotaValue
|
||||
{
|
||||
get { return quotaValue; }
|
||||
set { quotaValue = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,94 @@
|
|||
// Copyright (c) 2011, 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.EnterpriseServer
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for PackageAddonInfo.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class PackageAddonInfo
|
||||
{
|
||||
int packageAddonId;
|
||||
int packageId;
|
||||
int planId;
|
||||
int quantity;
|
||||
int statusId;
|
||||
DateTime purchaseDate;
|
||||
string comments;
|
||||
|
||||
|
||||
public PackageAddonInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public int PackageAddonId
|
||||
{
|
||||
get { return packageAddonId; }
|
||||
set { packageAddonId = value; }
|
||||
}
|
||||
|
||||
public int PackageId
|
||||
{
|
||||
get { return packageId; }
|
||||
set { packageId = value; }
|
||||
}
|
||||
|
||||
public int PlanId
|
||||
{
|
||||
get { return planId; }
|
||||
set { planId = value; }
|
||||
}
|
||||
|
||||
public int Quantity
|
||||
{
|
||||
get { return quantity; }
|
||||
set { quantity = value; }
|
||||
}
|
||||
|
||||
public DateTime PurchaseDate
|
||||
{
|
||||
get { return purchaseDate; }
|
||||
set { purchaseDate = value; }
|
||||
}
|
||||
|
||||
public string Comments
|
||||
{
|
||||
get { return comments; }
|
||||
set { comments = value; }
|
||||
}
|
||||
|
||||
public int StatusId
|
||||
{
|
||||
get { return this.statusId; }
|
||||
set { this.statusId = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,74 @@
|
|||
// Copyright (c) 2011, 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 System.Text;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
public class PackageContext
|
||||
{
|
||||
private PackageInfo package;
|
||||
private HostingPlanGroupInfo[] groupsArray;
|
||||
private QuotaValueInfo[] quotasArray;
|
||||
private Dictionary<string, HostingPlanGroupInfo> groups = new Dictionary<string, HostingPlanGroupInfo>();
|
||||
private Dictionary<string, QuotaValueInfo> quotas = new Dictionary<string, QuotaValueInfo>();
|
||||
|
||||
public PackageInfo Package
|
||||
{
|
||||
get { return this.package; }
|
||||
set { this.package = value; }
|
||||
}
|
||||
|
||||
public HostingPlanGroupInfo[] GroupsArray
|
||||
{
|
||||
get { return this.groupsArray; }
|
||||
set { this.groupsArray = value; }
|
||||
}
|
||||
|
||||
public QuotaValueInfo[] QuotasArray
|
||||
{
|
||||
get { return this.quotasArray; }
|
||||
set { this.quotasArray = value; }
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public Dictionary<string, HostingPlanGroupInfo> Groups
|
||||
{
|
||||
get { return groups; }
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public Dictionary<string, QuotaValueInfo> Quotas
|
||||
{
|
||||
get { return quotas; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,170 @@
|
|||
// Copyright (c) 2011, 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.EnterpriseServer
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for PackageInfo.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class PackageInfo
|
||||
{
|
||||
int packageId;
|
||||
int userId;
|
||||
int parentPackageId;
|
||||
int statusId;
|
||||
int planId;
|
||||
int serverId;
|
||||
DateTime purchaseDate;
|
||||
string packageName;
|
||||
string packageComments;
|
||||
int domains;
|
||||
int diskSpace;
|
||||
int bandWidth;
|
||||
int domainsQuota;
|
||||
int diskSpaceQuota;
|
||||
int bandWidthQuota;
|
||||
bool overrideQuotas;
|
||||
HostingPlanGroupInfo[] groups;
|
||||
HostingPlanQuotaInfo[] quotas;
|
||||
|
||||
public PackageInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public int PackageId
|
||||
{
|
||||
get { return packageId; }
|
||||
set { packageId = value; }
|
||||
}
|
||||
|
||||
public int UserId
|
||||
{
|
||||
get { return userId; }
|
||||
set { userId = value; }
|
||||
}
|
||||
|
||||
public int ParentPackageId
|
||||
{
|
||||
get { return parentPackageId; }
|
||||
set { parentPackageId = value; }
|
||||
}
|
||||
|
||||
public int StatusId
|
||||
{
|
||||
get { return statusId; }
|
||||
set { statusId = value; }
|
||||
}
|
||||
|
||||
public int PlanId
|
||||
{
|
||||
get { return planId; }
|
||||
set { planId = value; }
|
||||
}
|
||||
|
||||
public DateTime PurchaseDate
|
||||
{
|
||||
get { return purchaseDate; }
|
||||
set { purchaseDate = value; }
|
||||
}
|
||||
|
||||
public string PackageName
|
||||
{
|
||||
get { return packageName; }
|
||||
set { packageName = value; }
|
||||
}
|
||||
|
||||
public string PackageComments
|
||||
{
|
||||
get { return packageComments; }
|
||||
set { packageComments = value; }
|
||||
}
|
||||
|
||||
public int ServerId
|
||||
{
|
||||
get { return serverId; }
|
||||
set { serverId = value; }
|
||||
}
|
||||
|
||||
public int DiskSpace
|
||||
{
|
||||
get { return diskSpace; }
|
||||
set { diskSpace = value; }
|
||||
}
|
||||
|
||||
public int BandWidth
|
||||
{
|
||||
get { return bandWidth; }
|
||||
set { bandWidth = value; }
|
||||
}
|
||||
|
||||
public int DiskSpaceQuota
|
||||
{
|
||||
get { return this.diskSpaceQuota; }
|
||||
set { this.diskSpaceQuota = value; }
|
||||
}
|
||||
|
||||
public int BandWidthQuota
|
||||
{
|
||||
get { return this.bandWidthQuota; }
|
||||
set { this.bandWidthQuota = value; }
|
||||
}
|
||||
|
||||
public int Domains
|
||||
{
|
||||
get { return this.domains; }
|
||||
set { this.domains = value; }
|
||||
}
|
||||
|
||||
public int DomainsQuota
|
||||
{
|
||||
get { return this.domainsQuota; }
|
||||
set { this.domainsQuota = value; }
|
||||
}
|
||||
|
||||
public bool OverrideQuotas
|
||||
{
|
||||
get { return this.overrideQuotas; }
|
||||
set { this.overrideQuotas = value; }
|
||||
}
|
||||
|
||||
public HostingPlanGroupInfo[] Groups
|
||||
{
|
||||
get { return this.groups; }
|
||||
set { this.groups = value; }
|
||||
}
|
||||
|
||||
public HostingPlanQuotaInfo[] Quotas
|
||||
{
|
||||
get { return this.quotas; }
|
||||
set { this.quotas = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,53 @@
|
|||
// Copyright (c) 2011, 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.Data;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
public class PackageResult
|
||||
{
|
||||
private int result;
|
||||
private DataSet exceedingQuotas;
|
||||
|
||||
public int Result
|
||||
{
|
||||
get { return this.result; }
|
||||
set { this.result = value; }
|
||||
}
|
||||
|
||||
public DataSet ExceedingQuotas
|
||||
{
|
||||
get { return this.exceedingQuotas; }
|
||||
set { this.exceedingQuotas = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,113 @@
|
|||
// Copyright (c) 2011, 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.Specialized;
|
||||
using System.Xml.Serialization;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for PackageSettings.
|
||||
/// </summary>
|
||||
public class PackageSettings
|
||||
{
|
||||
public const string INSTANT_ALIAS = "InstantAlias";
|
||||
public const string SPACES_FOLDER = "ChildSpacesFolder";
|
||||
public const string NAME_SERVERS = "NameServers";
|
||||
public const string SHARED_SSL_SITES = "SharedSslSites";
|
||||
public const string EXCHANGE_SERVER = "ExchangeServer";
|
||||
public const string EXCHANGE_HOSTED_EDITION = "ExchangeHostedEdition";
|
||||
public const string HOSTED_SOLLUTION = "HostedSollution";
|
||||
public const string VIRTUAL_PRIVATE_SERVERS = "VirtualPrivateServers";
|
||||
|
||||
public const string VIRTUAL_PRIVATE_SERVERS_FOR_PRIVATE_CLOUD = "VirtualPrivateServersForPrivateCloud";
|
||||
public int PackageId;
|
||||
public string SettingsName;
|
||||
|
||||
private NameValueCollection settingsHash = null;
|
||||
public string[][] SettingsArray;
|
||||
|
||||
[XmlIgnore]
|
||||
NameValueCollection Settings
|
||||
{
|
||||
get
|
||||
{
|
||||
if (settingsHash == null)
|
||||
{
|
||||
// create new dictionary
|
||||
settingsHash = new NameValueCollection();
|
||||
|
||||
// fill dictionary
|
||||
if (SettingsArray != null)
|
||||
{
|
||||
foreach (string[] pair in SettingsArray)
|
||||
settingsHash.Add(pair[0], pair[1]);
|
||||
}
|
||||
}
|
||||
return settingsHash;
|
||||
}
|
||||
}
|
||||
|
||||
[XmlIgnore]
|
||||
public string this[string settingName]
|
||||
{
|
||||
get
|
||||
{
|
||||
return Settings[settingName];
|
||||
}
|
||||
set
|
||||
{
|
||||
// set setting
|
||||
Settings[settingName] = value;
|
||||
|
||||
// rebuild array
|
||||
SettingsArray = new string[Settings.Count][];
|
||||
for (int i = 0; i < Settings.Count; i++)
|
||||
{
|
||||
SettingsArray[i] = new string[] { Settings.Keys[i], Settings[Settings.Keys[i]] };
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
public int GetInt(string settingName)
|
||||
{
|
||||
return Int32.Parse(Settings[settingName]);
|
||||
}
|
||||
|
||||
public long GetLong(string settingName)
|
||||
{
|
||||
return Int64.Parse(Settings[settingName]);
|
||||
}
|
||||
|
||||
public bool GetBool(string settingName)
|
||||
{
|
||||
return Boolean.Parse(Settings[settingName]);
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,43 @@
|
|||
// Copyright (c) 2011, 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.EnterpriseServer
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for PackageStatus.
|
||||
/// </summary>
|
||||
public enum PackageStatus
|
||||
{
|
||||
Active = 1,
|
||||
Suspended = 2,
|
||||
Cancelled = 3,
|
||||
New = 4
|
||||
}
|
||||
}
|
|
@ -0,0 +1,89 @@
|
|||
// Copyright (c) 2011, 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 System.Text;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
[Serializable]
|
||||
public class QuotaInfo
|
||||
{
|
||||
#region Quotas types constants
|
||||
|
||||
public const int BooleanQuota = 1;
|
||||
public const int NumericQuota = 2;
|
||||
public const int MaximumValueQuota = 3;
|
||||
|
||||
#endregion
|
||||
|
||||
int quotaId;
|
||||
|
||||
public int QuotaId
|
||||
{
|
||||
get { return quotaId; }
|
||||
set { quotaId = value; }
|
||||
}
|
||||
int groupId;
|
||||
|
||||
public int GroupId
|
||||
{
|
||||
get { return groupId; }
|
||||
set { groupId = value; }
|
||||
}
|
||||
string quotaName;
|
||||
|
||||
public string QuotaName
|
||||
{
|
||||
get { return quotaName; }
|
||||
set { quotaName = value; }
|
||||
}
|
||||
string quotaDescription;
|
||||
|
||||
public string QuotaDescription
|
||||
{
|
||||
get { return quotaDescription; }
|
||||
set { quotaDescription = value; }
|
||||
}
|
||||
int quotaTypeId;
|
||||
|
||||
public int QuotaTypeId
|
||||
{
|
||||
get { return quotaTypeId; }
|
||||
set { quotaTypeId = value; }
|
||||
}
|
||||
int serviceQuota;
|
||||
|
||||
public int ServiceQuota
|
||||
{
|
||||
get { return serviceQuota; }
|
||||
set { serviceQuota = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,98 @@
|
|||
// Copyright (c) 2011, 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 System.Text;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
public class QuotaValueInfo
|
||||
{
|
||||
private int quotaId;
|
||||
private int groupId;
|
||||
private string quotaName;
|
||||
private string quotaDescription;
|
||||
private int quotaAllocatedValue;
|
||||
private int quotaTypeId;
|
||||
private int quotaUsedValue;
|
||||
private bool quotaExhausted;
|
||||
|
||||
public QuotaValueInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public int QuotaAllocatedValue
|
||||
{
|
||||
get { return this.quotaAllocatedValue; }
|
||||
set { this.quotaAllocatedValue = value; }
|
||||
}
|
||||
|
||||
public int QuotaUsedValue
|
||||
{
|
||||
get { return this.quotaUsedValue; }
|
||||
set { this.quotaUsedValue = value; }
|
||||
}
|
||||
|
||||
public bool QuotaExhausted
|
||||
{
|
||||
get { return this.quotaExhausted; }
|
||||
set { this.quotaExhausted = value; }
|
||||
}
|
||||
|
||||
public string QuotaName
|
||||
{
|
||||
get { return this.quotaName; }
|
||||
set { this.quotaName = value; }
|
||||
}
|
||||
|
||||
public string QuotaDescription
|
||||
{
|
||||
get { return this.quotaDescription; }
|
||||
set { this.quotaDescription = value; }
|
||||
}
|
||||
|
||||
public int QuotaId
|
||||
{
|
||||
get { return this.quotaId; }
|
||||
set { this.quotaId = value; }
|
||||
}
|
||||
|
||||
public int QuotaTypeId
|
||||
{
|
||||
get { return this.quotaTypeId; }
|
||||
set { this.quotaTypeId = value; }
|
||||
}
|
||||
|
||||
public int GroupId
|
||||
{
|
||||
get { return this.groupId; }
|
||||
set { this.groupId = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,211 @@
|
|||
// Copyright (c) 2011, 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.EnterpriseServer
|
||||
{
|
||||
public class Quotas
|
||||
{
|
||||
/*
|
||||
select 'public const string ' + UPPER(REPLACE(q.QuotaName, '.', '_')) + ' = "' +
|
||||
q.QuotaName + '"; // ' + q.QuotaDescription
|
||||
from quotas as q
|
||||
inner join ResourceGroups as rg on q.groupid = rg.groupid
|
||||
order by rg.groupOrder
|
||||
* */
|
||||
|
||||
public const string OS_ODBC = "OS.ODBC"; // ODBC DSNs
|
||||
public const string OS_BANDWIDTH = "OS.Bandwidth"; // Bandwidth, MB
|
||||
public const string OS_DISKSPACE = "OS.Diskspace"; // Disk space, MB
|
||||
public const string OS_DOMAINS = "OS.Domains"; // Domains
|
||||
public const string OS_SUBDOMAINS = "OS.SubDomains"; // Sub-Domains
|
||||
public const string OS_DOMAINPOINTERS = "OS.DomainPointers"; // Domain Pointers
|
||||
public const string OS_FILEMANAGER = "OS.FileManager"; // File Manager
|
||||
public const string OS_SCHEDULEDTASKS = "OS.ScheduledTasks"; // Scheduled Tasks
|
||||
public const string OS_SCHEDULEDINTERVALTASKS = "OS.ScheduledIntervalTasks"; // Interval Tasks Allowed
|
||||
public const string OS_MINIMUMTASKINTERVAL = "OS.MinimumTaskInterval"; // Minimum Tasks Interval, minutes
|
||||
public const string OS_APPINSTALLER = "OS.AppInstaller"; // Applications Installer
|
||||
public const string OS_EXTRAAPPLICATIONS = "OS.ExtraApplications"; // Extra Application Packs
|
||||
public const string WEB_SITES = "Web.Sites"; // Web Sites
|
||||
public const string WEB_ASPNET11 = "Web.AspNet11"; // ASP.NET 1.1
|
||||
public const string WEB_ASPNET20 = "Web.AspNet20"; // ASP.NET 2.0
|
||||
public const string WEB_ASPNET40 = "Web.AspNet40"; // ASP.NET 4.0
|
||||
public const string WEB_ASP = "Web.Asp"; // ASP
|
||||
public const string WEB_PHP4 = "Web.Php4"; // PHP 4.x
|
||||
public const string WEB_PHP5 = "Web.Php5"; // PHP 5.x
|
||||
public const string WEB_PERL = "Web.Perl"; // Perl
|
||||
public const string WEB_PYTHON = "Web.Python"; // Python
|
||||
public const string WEB_VIRTUALDIRS = "Web.VirtualDirs"; // Virtual Directories
|
||||
public const string WEB_FRONTPAGE = "Web.FrontPage"; // FrontPage
|
||||
public const string WEB_SECURITY = "Web.Security"; // Custom Security Settings
|
||||
public const string WEB_DEFAULTDOCS = "Web.DefaultDocs"; // Custom Default Documents
|
||||
public const string WEB_APPPOOLS = "Web.AppPools"; // Dedicated Application Pools
|
||||
public const string WEB_HEADERS = "Web.Headers"; // Custom Headers
|
||||
public const string WEB_ERRORS = "Web.Errors"; // Custom Errors
|
||||
public const string WEB_MIME = "Web.Mime"; // Custom MIME Types
|
||||
public const string WEB_CGIBIN = "Web.CgiBin"; // CGI-BIN Folder
|
||||
public const string WEB_SECUREDFOLDERS = "Web.SecuredFolders"; // Secured Folders
|
||||
public const string WEB_HTACCESS = "Web.Htaccess"; // Htaccess
|
||||
public const string WEB_SHAREDSSL = "Web.SharedSSL"; // Shared SSL Folders
|
||||
public const string WEB_REDIRECTIONS = "Web.Redirections"; // Web Sites Redirection
|
||||
public const string WEB_HOMEFOLDERS = "Web.HomeFolders"; // Changing Sites Root Folders
|
||||
public const string WEB_IP_ADDRESSES = "Web.IPAddresses"; // Dedicated IP Addresses
|
||||
public const string WEB_COLDFUSION = "Web.ColdFusion"; // ColdFusion
|
||||
public const string WEB_CFVIRTUALDIRS = "Web.CFVirtualDirectories"; //ColdFusion Virtual Directories
|
||||
public const string WEB_REMOTEMANAGEMENT = "Web.RemoteManagement"; //IIS 7 Remote Management
|
||||
public const string WEB_SSL = "Web.SSL"; //SSL
|
||||
public const string FTP_ACCOUNTS = "FTP.Accounts"; // FTP Accounts
|
||||
public const string MAIL_ACCOUNTS = "Mail.Accounts"; // Mail Accounts
|
||||
public const string MAIL_FORWARDINGS = "Mail.Forwardings"; // Mail Forwardings
|
||||
public const string MAIL_LISTS = "Mail.Lists"; // Mail Lists
|
||||
public const string MAIL_GROUPS = "Mail.Groups"; // Mail Groups
|
||||
public const string MAIL_MAXBOXSIZE = "Mail.MaxBoxSize"; // Max Mailbox Size
|
||||
public const string MAIL_MAXGROUPMEMBERS = "Mail.MaxGroupMembers"; // Max Group Recipients
|
||||
public const string MAIL_MAXLISTMEMBERS = "Mail.MaxListMembers"; // Max List Recipients
|
||||
public const string MAIL_DISABLESIZEEDIT = "Mail.DisableSizeEdit"; // Disable Mailbox Size Edit
|
||||
public const string EXCHANGE2007_ORGANIZATIONS = "Exchange2007.Organizations"; // Exchange 2007 Organizations
|
||||
public const string EXCHANGE2007_DISKSPACE = "Exchange2007.DiskSpace"; // Organization Disk Space, MB
|
||||
public const string EXCHANGE2007_MAILBOXES = "Exchange2007.Mailboxes"; // Mailboxes per Organization
|
||||
public const string EXCHANGE2007_CONTACTS = "Exchange2007.Contacts"; // Contacts per Organization
|
||||
public const string EXCHANGE2007_DISTRIBUTIONLISTS = "Exchange2007.DistributionLists"; // Distribution Lists per Organization
|
||||
public const string EXCHANGE2007_PUBLICFOLDERS = "Exchange2007.PublicFolders"; // Public Folders per Organization
|
||||
public const string EXCHANGE2007_DOMAINS = "Exchange2007.Domains"; // Domains per Organization
|
||||
public const string EXCHANGE2007_POP3ALLOWED = "Exchange2007.POP3Allowed"; // POP3 Access
|
||||
public const string EXCHANGE2007_IMAPALLOWED = "Exchange2007.IMAPAllowed"; // IMAP Access
|
||||
public const string EXCHANGE2007_OWAALLOWED = "Exchange2007.OWAAllowed"; // OWA/HTTP Access
|
||||
public const string EXCHANGE2007_MAPIALLOWED = "Exchange2007.MAPIAllowed"; // MAPI Access
|
||||
public const string EXCHANGE2007_ACTIVESYNCALLOWED = "Exchange2007.ActiveSyncAllowed"; // ActiveSync Access
|
||||
public const string EXCHANGE2007_MAILENABLEDPUBLICFOLDERS = "Exchange2007.MailEnabledPublicFolders"; // Mail Enabled Public Folders Allowed
|
||||
public const string EXCHANGE2007_POP3ENABLED = "Exchange2007.POP3Enabled"; // POP3 Enabled by default
|
||||
public const string EXCHANGE2007_IMAPENABLED = "Exchange2007.IMAPEnabled"; // IMAP Enabled by default
|
||||
public const string EXCHANGE2007_OWAENABLED = "Exchange2007.OWAEnabled"; // OWA Enabled by default
|
||||
public const string EXCHANGE2007_MAPIENABLED = "Exchange2007.MAPIEnabled"; // MAPI Enabled by default
|
||||
public const string EXCHANGE2007_ACTIVESYNCENABLED = "Exchange2007.ActiveSyncEnabled"; // ActiveSync Enabled by default
|
||||
public const string EXCHANGEHOSTEDEDITION_DOMAINS = "ExchangeHostedEdition.Domains";
|
||||
public const string EXCHANGEHOSTEDEDITION_MAILBOXES = "ExchangeHostedEdition.Mailboxes";
|
||||
public const string EXCHANGEHOSTEDEDITION_CONTACTS = "ExchangeHostedEdition.Contacts";
|
||||
public const string EXCHANGEHOSTEDEDITION_DISTRIBUTIONLISTS = "ExchangeHostedEdition.DistributionLists";
|
||||
public const string MSSQL2000_DATABASES = "MsSQL2000.Databases"; // Databases
|
||||
public const string MSSQL2000_USERS = "MsSQL2000.Users"; // Users
|
||||
public const string MSSQL2000_MAXDATABASESIZE = "MsSQL2000.MaxDatabaseSize"; // Max Database Size
|
||||
public const string MSSQL2000_BACKUP = "MsSQL2000.Backup"; // Database Backups
|
||||
public const string MSSQL2000_RESTORE = "MsSQL2000.Restore"; // Database Restores
|
||||
public const string MSSQL2000_TRUNCATE = "MsSQL2000.Truncate"; // Database Truncate
|
||||
public const string MSSQL2005_DATABASES = "MsSQL2005.Databases"; // Databases
|
||||
public const string MSSQL2005_USERS = "MsSQL2005.Users"; // Users
|
||||
public const string MSSQL2005_MAXDATABASESIZE = "MsSQL2005.MaxDatabaseSize"; // Max Database Size
|
||||
public const string MSSQL2005_BACKUP = "MsSQL2005.Backup"; // Database Backups
|
||||
public const string MSSQL2005_RESTORE = "MsSQL2005.Restore"; // Database Restores
|
||||
public const string MSSQL2005_TRUNCATE = "MsSQL2005.Truncate"; // Database Truncate
|
||||
public const string MYSQL4_DATABASES = "MySQL4.Databases"; // Databases
|
||||
public const string MYSQL4_USERS = "MySQL4.Users"; // Users
|
||||
public const string MYSQL4_BACKUP = "MySQL4.Backup"; // Database Backups
|
||||
public const string MYSQL4_RESTORE = "MySQL4.Restore"; // Database Restores
|
||||
public const string MYSQL4_MAXDATABASESIZE = "MySQL4.MaxDatabaseSize"; // Max Database Size
|
||||
public const string MYSQL5_DATABASES = "MySQL5.Databases"; // Databases
|
||||
public const string MYSQL5_USERS = "MySQL5.Users"; // Users
|
||||
public const string MYSQL5_BACKUP = "MySQL5.Backup"; // Database Backups
|
||||
public const string MYSQL5_RESTORE = "MySQL5.Restore"; // Database Restores
|
||||
public const string MYSQL5_MAXDATABASESIZE = "MySQL5.MaxDatabaseSize"; // Max Database Size
|
||||
public const string SHAREPOINT_USERS = "SharePoint.Users"; // SharePoint Users
|
||||
public const string SHAREPOINT_GROUPS = "SharePoint.Groups"; // SharePoint Groups
|
||||
public const string SHAREPOINT_SITES = "SharePoint.Sites"; // SharePoint Sites
|
||||
public const string HOSTED_SHAREPOINT_SITES = "HostedSharePoint.Sites"; // Hosted SharePoint Sites
|
||||
public const string HOSTED_SHAREPOINT_STORAGE_SIZE = "HostedSharePoint.MaxStorage"; // Hosted SharePoint storage size;
|
||||
public const string DNS_EDITOR = "DNS.Editor"; // DNS Editor
|
||||
public const string DNS_ZONES = "DNS.Zones"; // DNS Editor
|
||||
public const string DNS_PRIMARY_ZONES = "DNS.PrimaryZones"; // DNS Editor
|
||||
public const string DNS_SECONDARY_ZONES = "DNS.SecondaryZones"; // DNS Editor
|
||||
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_DOMAINS = "HostedSolution.Domains";
|
||||
public const string CRM_USERS = "HostedCRM.Users";
|
||||
public const string CRM_ORGANIZATION = "HostedCRM.Organization";
|
||||
|
||||
public const string VPS_SERVERS_NUMBER = "VPS.ServersNumber"; // Number of VPS
|
||||
public const string VPS_MANAGING_ALLOWED = "VPS.ManagingAllowed"; // Allow user to create VPS
|
||||
public const string VPS_CPU_NUMBER = "VPS.CpuNumber"; // Number of CPU cores
|
||||
public const string VPS_BOOT_CD_ALLOWED = "VPS.BootCdAllowed"; // Boot from CD allowed
|
||||
public const string VPS_BOOT_CD_ENABLED = "VPS.BootCdEnabled"; // Boot from CD
|
||||
public const string VPS_RAM = "VPS.Ram"; // RAM size, MB
|
||||
public const string VPS_HDD = "VPS.Hdd"; // Hard Drive size, GB
|
||||
public const string VPS_DVD_ENABLED = "VPS.DvdEnabled"; // DVD drive
|
||||
public const string VPS_EXTERNAL_NETWORK_ENABLED = "VPS.ExternalNetworkEnabled"; // External Network
|
||||
public const string VPS_EXTERNAL_IP_ADDRESSES_NUMBER = "VPS.ExternalIPAddressesNumber"; // Number of External IP addresses
|
||||
public const string VPS_PRIVATE_NETWORK_ENABLED = "VPS.PrivateNetworkEnabled"; // Private Network
|
||||
public const string VPS_PRIVATE_IP_ADDRESSES_NUMBER = "VPS.PrivateIPAddressesNumber"; // Number of Private IP addresses per VPS
|
||||
public const string VPS_SNAPSHOTS_NUMBER = "VPS.SnapshotsNumber"; // Number of Snaphots
|
||||
public const string VPS_START_SHUTDOWN_ALLOWED = "VPS.StartShutdownAllowed"; // Allow user to Start, Turn off and Shutdown VPS
|
||||
public const string VPS_PAUSE_RESUME_ALLOWED = "VPS.PauseResumeAllowed"; // Allow user to Pause, Resume VPS
|
||||
public const string VPS_REBOOT_ALLOWED = "VPS.RebootAllowed"; // Allow user to Reboot VPS
|
||||
public const string VPS_RESET_ALOWED = "VPS.ResetAlowed"; // Allow user to Reset VPS
|
||||
public const string VPS_REINSTALL_ALLOWED = "VPS.ReinstallAllowed"; // Allow user to Re-install VPS
|
||||
public const string VPS_BANDWIDTH = "VPS.Bandwidth"; // Monthly bandwidth, GB
|
||||
|
||||
public const string VPSForPC_SERVERS_NUMBER = "VPSForPC.ServersNumber"; // Number of VPS
|
||||
public const string VPSForPC_MANAGING_ALLOWED = "VPSForPC.ManagingAllowed"; // Allow user to create VPS
|
||||
public const string VPSForPC_CPU_NUMBER = "VPSForPC.CpuNumber"; // Number of CPU cores
|
||||
public const string VPSForPC_BOOT_CD_ALLOWED = "VPSForPC.BootCdAllowed"; // Boot from CD allowed
|
||||
public const string VPSForPC_BOOT_CD_ENABLED = "VPSForPC.BootCdEnabled"; // Boot from CD
|
||||
public const string VPSForPC_RAM = "VPSForPC.Ram"; // RAM size, MB
|
||||
public const string VPSForPC_HDD = "VPSForPC.Hdd"; // Hard Drive size, GB
|
||||
public const string VPSForPC_DVD_ENABLED = "VPSForPC.DvdEnabled"; // DVD drive
|
||||
public const string VPSForPC_EXTERNAL_NETWORK_ENABLED = "VPSForPC.ExternalNetworkEnabled"; // External Network
|
||||
public const string VPSForPC_EXTERNAL_IP_ADDRESSES_NUMBER = "VPSForPC.ExternalIPAddressesNumber"; // Number of External IP addresses
|
||||
public const string VPSForPC_PRIVATE_NETWORK_ENABLED = "VPSForPC.PrivateNetworkEnabled"; // Private Network
|
||||
public const string VPSForPC_PRIVATE_IP_ADDRESSES_NUMBER = "VPSForPC.PrivateIPAddressesNumber"; // Number of Private IP addresses per VPS
|
||||
public const string VPSForPC_SNAPSHOTS_NUMBER = "VPSForPC.SnapshotsNumber"; // Number of Snaphots
|
||||
public const string VPSForPC_START_SHUTDOWN_ALLOWED = "VPSForPC.StartShutdownAllowed"; // Allow user to Start, Turn off and Shutdown VPS
|
||||
public const string VPSForPC_PAUSE_RESUME_ALLOWED = "VPSForPC.PauseResumeAllowed"; // Allow user to Pause, Resume VPS
|
||||
public const string VPSForPC_REBOOT_ALLOWED = "VPSForPC.RebootAllowed"; // Allow user to Reboot VPS
|
||||
public const string VPSForPC_RESET_ALOWED = "VPSForPC.ResetAlowed"; // Allow user to Reset VPS
|
||||
public const string VPSForPC_REINSTALL_ALLOWED = "VPSForPC.ReinstallAllowed"; // Allow user to Re-install VPS
|
||||
public const string VPSForPC_BANDWIDTH = "VPSForPC.Bandwidth"; // Monthly bandwidth, GB
|
||||
|
||||
public const string BLACKBERRY_USERS = "BlackBerry.Users";
|
||||
|
||||
public const string OCS_USERS = "OCS.Users";
|
||||
|
||||
public const string OCS_Federation = "OCS.Federation";
|
||||
public const string OCS_FederationByDefault = "OCS.FederationByDefault";
|
||||
|
||||
public const string OCS_PublicIMConnectivity = "OCS.PublicIMConnectivity";
|
||||
public const string OCS_PublicIMConnectivityByDefault = "OCS.PublicIMConnectivityByDefault";
|
||||
|
||||
public const string OCS_ArchiveIMConversation = "OCS.ArchiveIMConversation";
|
||||
public const string OCS_ArchiveIMConversationByDefault = "OCS.ArchiveIMConvervationByDefault";
|
||||
|
||||
public const string OCS_ArchiveFederatedIMConversationByDefault = "OCS.ArchiveFederatedIMConversationByDefault";
|
||||
public const string OCS_ArchiveFederatedIMConversation = "OCS.ArchiveFederatedIMConversation";
|
||||
|
||||
public const string OCS_PresenceAllowed = "OCS.PresenceAllowed";
|
||||
public const string OCS_PresenceAllowedByDefault = "OCS.PresenceAllowedByDefault";
|
||||
|
||||
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue