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,57 @@
|
|||
// 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 ClusterInfo
|
||||
{
|
||||
private int clusterId;
|
||||
|
||||
public int ClusterId
|
||||
{
|
||||
get { return clusterId; }
|
||||
set { clusterId = value; }
|
||||
}
|
||||
private string clusterName;
|
||||
|
||||
public string ClusterName
|
||||
{
|
||||
get { return clusterName; }
|
||||
set { clusterName = value; }
|
||||
}
|
||||
|
||||
public ClusterInfo()
|
||||
{
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,143 @@
|
|||
// 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
|
||||
{
|
||||
[Serializable]
|
||||
public class DomainInfo
|
||||
{
|
||||
private int domainId;
|
||||
private int packageId;
|
||||
private int zoneItemId;
|
||||
private string domainName;
|
||||
private bool hostingAllowed;
|
||||
private int webSiteId;
|
||||
private int mailDomainId;
|
||||
private string webSiteName;
|
||||
private string mailDomainName;
|
||||
private string zoneName;
|
||||
private bool isSubDomain;
|
||||
private bool isInstantAlias;
|
||||
private bool isDomainPointer;
|
||||
private int instantAliasId;
|
||||
private string instantAliasName;
|
||||
|
||||
|
||||
public int DomainId
|
||||
{
|
||||
get { return domainId; }
|
||||
set { domainId = value; }
|
||||
}
|
||||
|
||||
public int PackageId
|
||||
{
|
||||
get { return packageId; }
|
||||
set { packageId = value; }
|
||||
}
|
||||
|
||||
public int ZoneItemId
|
||||
{
|
||||
get { return zoneItemId; }
|
||||
set { zoneItemId = value; }
|
||||
}
|
||||
|
||||
public string DomainName
|
||||
{
|
||||
get { return domainName; }
|
||||
set { domainName = value; }
|
||||
}
|
||||
|
||||
public bool HostingAllowed
|
||||
{
|
||||
get { return hostingAllowed; }
|
||||
set { hostingAllowed = value; }
|
||||
}
|
||||
|
||||
public int WebSiteId
|
||||
{
|
||||
get { return webSiteId; }
|
||||
set { webSiteId = value; }
|
||||
}
|
||||
|
||||
public int MailDomainId
|
||||
{
|
||||
get { return mailDomainId; }
|
||||
set { mailDomainId = value; }
|
||||
}
|
||||
|
||||
public string WebSiteName
|
||||
{
|
||||
get { return this.webSiteName; }
|
||||
set { this.webSiteName = value; }
|
||||
}
|
||||
|
||||
public string MailDomainName
|
||||
{
|
||||
get { return this.mailDomainName; }
|
||||
set { this.mailDomainName = value; }
|
||||
}
|
||||
|
||||
public string ZoneName
|
||||
{
|
||||
get { return this.zoneName; }
|
||||
set { this.zoneName = value; }
|
||||
}
|
||||
|
||||
public bool IsSubDomain
|
||||
{
|
||||
get { return this.isSubDomain; }
|
||||
set { this.isSubDomain = value; }
|
||||
}
|
||||
|
||||
public bool IsInstantAlias
|
||||
{
|
||||
get { return this.isInstantAlias; }
|
||||
set { this.isInstantAlias = value; }
|
||||
}
|
||||
|
||||
public bool IsDomainPointer
|
||||
{
|
||||
get { return this.isDomainPointer; }
|
||||
set { this.isDomainPointer = value; }
|
||||
}
|
||||
|
||||
public int InstantAliasId
|
||||
{
|
||||
get { return this.instantAliasId; }
|
||||
set { this.instantAliasId = value; }
|
||||
}
|
||||
|
||||
public string InstantAliasName
|
||||
{
|
||||
get { return this.instantAliasName; }
|
||||
set { this.instantAliasName = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,42 @@
|
|||
// 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 enum DomainType
|
||||
{
|
||||
Domain,
|
||||
SubDomain,
|
||||
ProviderSubDomain,
|
||||
DomainPointer
|
||||
}
|
||||
}
|
|
@ -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 GlobalDnsRecord
|
||||
{
|
||||
private int recordId;
|
||||
|
||||
public int RecordId
|
||||
{
|
||||
get { return recordId; }
|
||||
set { recordId = value; }
|
||||
}
|
||||
|
||||
private int recordOrder;
|
||||
|
||||
public int RecordOrder
|
||||
{
|
||||
get { return recordOrder; }
|
||||
set { recordOrder = value; }
|
||||
}
|
||||
private int groupId;
|
||||
|
||||
public int GroupId
|
||||
{
|
||||
get { return groupId; }
|
||||
set { groupId = value; }
|
||||
}
|
||||
private int serviceId;
|
||||
|
||||
public int ServiceId
|
||||
{
|
||||
get { return serviceId; }
|
||||
set { serviceId = value; }
|
||||
}
|
||||
private int serverId;
|
||||
|
||||
public int ServerId
|
||||
{
|
||||
get { return serverId; }
|
||||
set { serverId = value; }
|
||||
}
|
||||
private int packageId;
|
||||
|
||||
public int PackageId
|
||||
{
|
||||
get { return packageId; }
|
||||
set { packageId = value; }
|
||||
}
|
||||
private string recordType;
|
||||
|
||||
public string RecordType
|
||||
{
|
||||
get { return recordType; }
|
||||
set { recordType = value; }
|
||||
}
|
||||
private string recordName;
|
||||
|
||||
public string RecordName
|
||||
{
|
||||
get { return recordName; }
|
||||
set { recordName = value; }
|
||||
}
|
||||
private string recordData;
|
||||
|
||||
public string RecordData
|
||||
{
|
||||
get { return recordData; }
|
||||
set { recordData = value; }
|
||||
}
|
||||
private int mxPriority;
|
||||
|
||||
public int MxPriority
|
||||
{
|
||||
get { return mxPriority; }
|
||||
set { mxPriority = value; }
|
||||
}
|
||||
|
||||
private int ipAddressId;
|
||||
|
||||
public int IpAddressId
|
||||
{
|
||||
get { return ipAddressId; }
|
||||
set { ipAddressId = value; }
|
||||
}
|
||||
|
||||
private string internalIP;
|
||||
private string externalIP;
|
||||
|
||||
public GlobalDnsRecord()
|
||||
{
|
||||
}
|
||||
|
||||
public string InternalIP
|
||||
{
|
||||
get { return this.internalIP; }
|
||||
set { this.internalIP = value; }
|
||||
}
|
||||
|
||||
public string ExternalIP
|
||||
{
|
||||
get { return this.externalIP; }
|
||||
set { this.externalIP = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,67 @@
|
|||
// 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.Net;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
/// <summary>
|
||||
/// Summary description for IpAddressInfo.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class IPAddressInfo
|
||||
{
|
||||
public int AddressId { get; set; }
|
||||
public string ExternalIP { get; set; }
|
||||
public string InternalIP { get; set; }
|
||||
public int PoolId { get; set; }
|
||||
|
||||
public int ServerId { get; set; }
|
||||
public string ServerName { get; set; }
|
||||
|
||||
public int ItemId { get; set; }
|
||||
public string ItemName { get; set; }
|
||||
|
||||
public int UserId { get; set; }
|
||||
public string Username { get; set; }
|
||||
|
||||
public int PackageId { get; set; }
|
||||
public string PackageName { get; set; }
|
||||
|
||||
public string SubnetMask { get; set; }
|
||||
public string DefaultGateway { get; set; }
|
||||
public string Comments { get; set; }
|
||||
|
||||
public IPAddressPool Pool
|
||||
{
|
||||
get { return (IPAddressPool)PoolId; }
|
||||
set { PoolId = (int)value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WebsitePanel.EnterpriseServer
|
||||
{
|
||||
public enum IPAddressPool
|
||||
{
|
||||
None = 0,
|
||||
General = 1,
|
||||
WebSites = 2,
|
||||
VpsExternalNetwork = 3,
|
||||
VpsManagementNetwork = 4
|
||||
}
|
||||
}
|
|
@ -0,0 +1,40 @@
|
|||
// 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 IPAddressesPaged
|
||||
{
|
||||
public IPAddressInfo[] Items { get; set; }
|
||||
public int Count { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,97 @@
|
|||
// 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
|
||||
{
|
||||
[Serializable]
|
||||
public class ProviderInfo
|
||||
{
|
||||
private int providerId;
|
||||
private int groupId;
|
||||
private string providerName;
|
||||
private string editorControl;
|
||||
private string displayName;
|
||||
private string providerType;
|
||||
private bool installed;
|
||||
|
||||
|
||||
public ProviderInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public string DisplayName
|
||||
{
|
||||
get { return this.displayName; }
|
||||
set { this.displayName = value; }
|
||||
}
|
||||
|
||||
public int ProviderId
|
||||
{
|
||||
get { return this.providerId; }
|
||||
set { this.providerId = value; }
|
||||
}
|
||||
|
||||
public int GroupId
|
||||
{
|
||||
get { return this.groupId; }
|
||||
set { this.groupId = value; }
|
||||
}
|
||||
|
||||
public string ProviderName
|
||||
{
|
||||
get { return this.providerName; }
|
||||
set { this.providerName = value; }
|
||||
}
|
||||
|
||||
public string EditorControl
|
||||
{
|
||||
get { return this.editorControl; }
|
||||
set { this.editorControl = value; }
|
||||
}
|
||||
|
||||
public string ProviderType
|
||||
{
|
||||
get { return this.providerType; }
|
||||
set { this.providerType = value; }
|
||||
}
|
||||
|
||||
public bool Installed
|
||||
{
|
||||
get { return this.installed; }
|
||||
set { this.installed = value; }
|
||||
}
|
||||
|
||||
public bool DisableAutoDiscovery
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,72 @@
|
|||
// 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 ResourceGroup.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class ResourceGroupInfo
|
||||
{
|
||||
private int groupId;
|
||||
private string groupName;
|
||||
private int groupOrder;
|
||||
private string groupController;
|
||||
|
||||
public ResourceGroupInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public int GroupOrder
|
||||
{
|
||||
get { return this.groupOrder; }
|
||||
set { this.groupOrder = value; }
|
||||
}
|
||||
|
||||
public string GroupName
|
||||
{
|
||||
get { return this.groupName; }
|
||||
set { this.groupName = value; }
|
||||
}
|
||||
|
||||
public int GroupId
|
||||
{
|
||||
get { return this.groupId; }
|
||||
set { this.groupId = value; }
|
||||
}
|
||||
|
||||
public string GroupController
|
||||
{
|
||||
get { return this.groupController; }
|
||||
set { this.groupController = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,55 @@
|
|||
// 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 ResourceGroups
|
||||
{
|
||||
public const string Os = "OS";
|
||||
public const string Web = "Web";
|
||||
public const string Ftp = "FTP";
|
||||
public const string Mail = "Mail";
|
||||
public const string MsSql2000 = "MsSQL2000";
|
||||
public const string MySql4 = "MySQL4";
|
||||
public const string MsSql2005 = "MsSQL2005";
|
||||
public const string MsSql2008 = "MsSQL2008";
|
||||
public const string MySql5 = "MySQL5";
|
||||
public const string Dns = "DNS";
|
||||
public const string Statistics = "Statistics";
|
||||
public const string SharePoint = "SharePoint";
|
||||
public const string HostedSharePoint = "Hosted SharePoint";
|
||||
public const string Exchange = "Exchange";
|
||||
public const string ExchangeHostedEdition = "ExchangeHostedEdition";
|
||||
public const string HostedOrganizations = "Hosted Organizations";
|
||||
public const string HostedCRM = "Hosted CRM";
|
||||
public const string VPS = "VPS";
|
||||
public const string BlackBerry = "BlackBerry";
|
||||
public const string OCS = "OCS";
|
||||
public const string VPSForPC = "VPSForPC";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,135 @@
|
|||
// 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 ServerInfo.
|
||||
/// </summary>
|
||||
[Serializable]
|
||||
public class ServerInfo
|
||||
{
|
||||
private int serverId;
|
||||
private string serverName;
|
||||
private string serverUrl;
|
||||
private String password;
|
||||
private string comments;
|
||||
private bool virtualServer;
|
||||
private string instantDomainAlias;
|
||||
private bool adEnabled;
|
||||
private string adRootDomain;
|
||||
private string adAuthenticationType;
|
||||
private string adUsername;
|
||||
private string adPassword;
|
||||
private int primaryGroupId;
|
||||
|
||||
public ServerInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public int PrimaryGroupId
|
||||
{
|
||||
get { return primaryGroupId; }
|
||||
set { primaryGroupId = value; }
|
||||
}
|
||||
|
||||
public string ADRootDomain
|
||||
{
|
||||
get { return adRootDomain; }
|
||||
set { adRootDomain = value; }
|
||||
}
|
||||
|
||||
public string ADAuthenticationType
|
||||
{
|
||||
get { return this.adAuthenticationType; }
|
||||
set { this.adAuthenticationType = value; }
|
||||
}
|
||||
|
||||
public string ADUsername
|
||||
{
|
||||
get { return adUsername; }
|
||||
set { adUsername = value; }
|
||||
}
|
||||
|
||||
public string ADPassword
|
||||
{
|
||||
get { return adPassword; }
|
||||
set { adPassword = value; }
|
||||
}
|
||||
|
||||
public int ServerId
|
||||
{
|
||||
get { return serverId; }
|
||||
set { serverId = value; }
|
||||
}
|
||||
|
||||
public string ServerName
|
||||
{
|
||||
get { return serverName; }
|
||||
set { serverName = value; }
|
||||
}
|
||||
|
||||
public string ServerUrl
|
||||
{
|
||||
get { return serverUrl; }
|
||||
set { serverUrl = value; }
|
||||
}
|
||||
|
||||
public string Comments
|
||||
{
|
||||
get { return comments; }
|
||||
set { comments = value; }
|
||||
}
|
||||
|
||||
public String Password
|
||||
{
|
||||
get{ return password; }
|
||||
set{ password = value; }
|
||||
}
|
||||
|
||||
public bool VirtualServer
|
||||
{
|
||||
get { return virtualServer; }
|
||||
set { virtualServer = value; }
|
||||
}
|
||||
|
||||
public string InstantDomainAlias
|
||||
{
|
||||
get { return instantDomainAlias; }
|
||||
set { instantDomainAlias = value; }
|
||||
}
|
||||
|
||||
public bool ADEnabled
|
||||
{
|
||||
get { return this.adEnabled; }
|
||||
set { this.adEnabled = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,92 @@
|
|||
// 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
|
||||
{
|
||||
[Serializable]
|
||||
public class ServiceInfo
|
||||
{
|
||||
private int serviceId;
|
||||
private int serverId;
|
||||
private int providerId;
|
||||
private string serviceName;
|
||||
private string comments;
|
||||
private int serviceQuotaValue;
|
||||
private int clusterId;
|
||||
|
||||
public ServiceInfo()
|
||||
{
|
||||
}
|
||||
|
||||
public int ServiceId
|
||||
{
|
||||
get { return serviceId; }
|
||||
set { serviceId = value; }
|
||||
}
|
||||
|
||||
public int ServerId
|
||||
{
|
||||
get { return serverId; }
|
||||
set { serverId = value; }
|
||||
}
|
||||
|
||||
public int ProviderId
|
||||
{
|
||||
get { return providerId; }
|
||||
set { providerId = value; }
|
||||
}
|
||||
|
||||
public string ServiceName
|
||||
{
|
||||
get { return serviceName; }
|
||||
set { serviceName = value; }
|
||||
}
|
||||
|
||||
public string Comments
|
||||
{
|
||||
get { return comments; }
|
||||
set { comments = value; }
|
||||
}
|
||||
|
||||
public int ServiceQuotaValue
|
||||
{
|
||||
get { return serviceQuotaValue; }
|
||||
set { serviceQuotaValue = value; }
|
||||
}
|
||||
|
||||
public int ClusterId
|
||||
{
|
||||
get { return clusterId; }
|
||||
set { clusterId = value; }
|
||||
}
|
||||
|
||||
public string ServerName { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,81 @@
|
|||
// 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 VirtualGroupInfo
|
||||
{
|
||||
private int virtualGroupId;
|
||||
|
||||
public int VirtualGroupId
|
||||
{
|
||||
get { return virtualGroupId; }
|
||||
set { virtualGroupId = value; }
|
||||
}
|
||||
private int serverId;
|
||||
|
||||
public int ServerId
|
||||
{
|
||||
get { return serverId; }
|
||||
set { serverId = value; }
|
||||
}
|
||||
private int groupId;
|
||||
|
||||
public int GroupId
|
||||
{
|
||||
get { return groupId; }
|
||||
set { groupId = value; }
|
||||
}
|
||||
private bool primaryDistribution;
|
||||
|
||||
public bool PrimaryDistribution
|
||||
{
|
||||
get { return primaryDistribution; }
|
||||
set { primaryDistribution = value; }
|
||||
}
|
||||
private int distributionType;
|
||||
|
||||
public int DistributionType
|
||||
{
|
||||
get { return distributionType; }
|
||||
set { distributionType = value; }
|
||||
}
|
||||
private bool bindDistributionToPrimary;
|
||||
|
||||
public bool BindDistributionToPrimary
|
||||
{
|
||||
get { return bindDistributionToPrimary; }
|
||||
set { bindDistributionToPrimary = value; }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue