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,66 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ADAttributes
|
||||
{
|
||||
public const string Initials = "initials";
|
||||
public const string JobTitle = "title";
|
||||
public const string Company = "company";
|
||||
public const string Department = "department";
|
||||
public const string Office = "physicalDeliveryOfficeName";
|
||||
public const string BusinessPhone = "telephoneNumber";
|
||||
public const string Fax = "facsimileTelephoneNumber";
|
||||
public const string HomePhone = "homePhone";
|
||||
public const string MobilePhone = "mobile";
|
||||
public const string Pager = "pager";
|
||||
public const string WebPage = "wWWHomePage";
|
||||
public const string Address = "streetAddress";
|
||||
public const string City = "l";
|
||||
public const string State = "st";
|
||||
public const string Zip = "postalCode";
|
||||
public const string Country = "c";
|
||||
public const string Notes = "info";
|
||||
public const string FirstName = "givenName";
|
||||
public const string LastName = "sn";
|
||||
public const string DisplayName = "displayName";
|
||||
public const string AccountDisabled = "AccountDisabled";
|
||||
public const string AccountLocked = "IsAccountLocked";
|
||||
public const string Manager = "manager";
|
||||
public const string SetPassword = "SetPassword";
|
||||
public const string SAMAccountName = "sAMAccountName";
|
||||
public const string UserPrincipalName = "UserPrincipalName";
|
||||
public const string GroupType = "GroupType";
|
||||
public const string Name = "Name";
|
||||
public const string ExternalEmail = "mail";
|
||||
public const string CustomAttribute2 = "extensionAttribute2";
|
||||
public const string DistinguishedName = "distinguishedName";
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,394 @@
|
|||
// 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.DirectoryServices;
|
||||
using System.DirectoryServices.ActiveDirectory;
|
||||
using System.Globalization;
|
||||
using System.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public class ActiveDirectoryUtils
|
||||
{
|
||||
public static DirectoryEntry GetADObject(string path)
|
||||
{
|
||||
DirectoryEntry de = new DirectoryEntry(path);
|
||||
de.RefreshCache();
|
||||
return de;
|
||||
}
|
||||
|
||||
public static bool IsUserInGroup(string samAccountName, string group)
|
||||
{
|
||||
bool res = false;
|
||||
DirectorySearcher deSearch = new DirectorySearcher
|
||||
{
|
||||
Filter =
|
||||
("(&(objectClass=user)(samaccountname=" + samAccountName + "))")
|
||||
};
|
||||
|
||||
//get the group result
|
||||
SearchResult results = deSearch.FindOne();
|
||||
DirectoryEntry de = results.GetDirectoryEntry();
|
||||
PropertyValueCollection props = de.Properties["memberOf"];
|
||||
|
||||
foreach (string str in props)
|
||||
{
|
||||
if (str.IndexOf(group) != -1)
|
||||
{
|
||||
res = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
public static string CreateOrganizationalUnit(string name, string parentPath)
|
||||
{
|
||||
string ret;
|
||||
DirectoryEntry ou = null;
|
||||
DirectoryEntry parent = null;
|
||||
|
||||
try
|
||||
{
|
||||
parent = GetADObject(parentPath);
|
||||
|
||||
ou = parent.Children.Add(
|
||||
string.Format("OU={0}", name),
|
||||
parent.SchemaClassName);
|
||||
|
||||
ret = ou.Path;
|
||||
ou.CommitChanges();
|
||||
}
|
||||
finally
|
||||
{
|
||||
if (ou != null)
|
||||
ou.Close();
|
||||
if (parent != null)
|
||||
parent.Close();
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static void DeleteADObject(string path, bool removeChild)
|
||||
{
|
||||
DirectoryEntry entry = GetADObject(path);
|
||||
|
||||
if (removeChild && entry.Children != null)
|
||||
foreach (DirectoryEntry child in entry.Children)
|
||||
{
|
||||
entry.Children.Remove(child);
|
||||
}
|
||||
|
||||
DirectoryEntry parent = entry.Parent;
|
||||
if (parent != null)
|
||||
{
|
||||
parent.Children.Remove(entry);
|
||||
parent.CommitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static void DeleteADObject(string path)
|
||||
{
|
||||
DirectoryEntry entry = GetADObject(path);
|
||||
DirectoryEntry parent = entry.Parent;
|
||||
if (parent != null)
|
||||
{
|
||||
parent.Children.Remove(entry);
|
||||
parent.CommitChanges();
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetADObjectProperty(DirectoryEntry oDE, string name, string value)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(value))
|
||||
{
|
||||
if (oDE.Properties.Contains(name))
|
||||
{
|
||||
oDE.Properties[name][0] = value;
|
||||
}
|
||||
else
|
||||
{
|
||||
oDE.Properties[name].Add(value);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
if (oDE.Properties.Contains(name))
|
||||
{
|
||||
oDE.Properties[name].Remove(oDE.Properties[name][0]);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static void SetADObjectPropertyValue(DirectoryEntry oDE, string name, object value)
|
||||
{
|
||||
PropertyValueCollection collection = oDE.Properties[name];
|
||||
collection.Value = value;
|
||||
}
|
||||
|
||||
public static object GetADObjectProperty(DirectoryEntry entry, string name)
|
||||
{
|
||||
return entry.Properties.Contains(name) ? entry.Properties[name][0] : null;
|
||||
}
|
||||
|
||||
public static string GetADObjectStringProperty(DirectoryEntry entry, string name)
|
||||
{
|
||||
object ret = GetADObjectProperty(entry, name);
|
||||
return ret != null ? ret.ToString() : string.Empty;
|
||||
}
|
||||
|
||||
public static string ConvertADPathToCanonicalName(string name)
|
||||
{
|
||||
|
||||
if (string.IsNullOrEmpty(name))
|
||||
return null;
|
||||
|
||||
StringBuilder ret = new StringBuilder();
|
||||
List<string> cn = new List<string>();
|
||||
List<string> dc = new List<string>();
|
||||
|
||||
name = RemoveADPrefix(name);
|
||||
|
||||
string[] parts = name.Split(',');
|
||||
for (int i = 0; i < parts.Length; i++)
|
||||
{
|
||||
if (parts[i].StartsWith("DC="))
|
||||
{
|
||||
dc.Add(parts[i].Substring(3));
|
||||
}
|
||||
else if (parts[i].StartsWith("OU=") || parts[i].StartsWith("CN="))
|
||||
{
|
||||
cn.Add(parts[i].Substring(3));
|
||||
}
|
||||
}
|
||||
|
||||
for (int i = 0; i < dc.Count; i++)
|
||||
{
|
||||
ret.Append(dc[i]);
|
||||
if (i < dc.Count - 1)
|
||||
ret.Append(".");
|
||||
}
|
||||
for (int i = cn.Count - 1; i != -1; i--)
|
||||
{
|
||||
ret.Append("/");
|
||||
ret.Append(cn[i]);
|
||||
}
|
||||
return ret.ToString();
|
||||
}
|
||||
|
||||
public static string ConvertDomainName(string name)
|
||||
{
|
||||
|
||||
if (string.IsNullOrEmpty(name))
|
||||
return null;
|
||||
|
||||
StringBuilder ret = new StringBuilder("LDAP://");
|
||||
|
||||
string[] parts = name.Split('.');
|
||||
for (int i = 0; i < parts.Length; i++)
|
||||
{
|
||||
ret.Append("DC=");
|
||||
ret.Append(parts[i]);
|
||||
if (i < parts.Length - 1)
|
||||
ret.Append(",");
|
||||
}
|
||||
return ret.ToString();
|
||||
}
|
||||
|
||||
public static string GetNETBIOSDomainName(string rootDomain)
|
||||
{
|
||||
string ret = string.Empty;
|
||||
|
||||
string path = string.Format("LDAP://{0}/RootDSE", rootDomain);
|
||||
DirectoryEntry rootDSE = GetADObject(path);
|
||||
string contextPath = GetADObjectProperty(rootDSE, "ConfigurationNamingContext").ToString();
|
||||
string defaultContext = GetADObjectProperty(rootDSE, "defaultNamingContext").ToString();
|
||||
DirectoryEntry partitions = GetADObject("LDAP://cn=Partitions," + contextPath);
|
||||
|
||||
DirectorySearcher searcher = new DirectorySearcher();
|
||||
searcher.SearchRoot = partitions;
|
||||
searcher.Filter = string.Format("(&(objectCategory=crossRef)(nCName={0}))", defaultContext);
|
||||
searcher.SearchScope = SearchScope.OneLevel;
|
||||
|
||||
//find the first instance
|
||||
SearchResult result = searcher.FindOne();
|
||||
if (result != null)
|
||||
{
|
||||
DirectoryEntry partition = GetADObject(result.Path);
|
||||
ret = GetADObjectProperty(partition, "nETBIOSName").ToString();
|
||||
partition.Close();
|
||||
}
|
||||
partitions.Close();
|
||||
rootDSE.Close();
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
public static string CreateUser(string path, string user, string displayName, string password, bool enabled)
|
||||
{
|
||||
DirectoryEntry currentADObject = new DirectoryEntry(path);
|
||||
|
||||
DirectoryEntry newUserObject = currentADObject.Children.Add("CN=" + user, "User");
|
||||
|
||||
newUserObject.Properties[ADAttributes.SAMAccountName].Add(user);
|
||||
SetADObjectProperty(newUserObject, ADAttributes.DisplayName, displayName);
|
||||
newUserObject.CommitChanges();
|
||||
newUserObject.Invoke(ADAttributes.SetPassword, password);
|
||||
newUserObject.InvokeSet(ADAttributes.AccountDisabled, !enabled);
|
||||
|
||||
newUserObject.CommitChanges();
|
||||
|
||||
return newUserObject.Path;
|
||||
}
|
||||
|
||||
public static void CreateGroup(string path, string group)
|
||||
{
|
||||
DirectoryEntry currentADObject = new DirectoryEntry(path);
|
||||
|
||||
DirectoryEntry newGroupObject = currentADObject.Children.Add("CN=" + group, "Group");
|
||||
|
||||
newGroupObject.Properties[ADAttributes.SAMAccountName].Add(group);
|
||||
|
||||
newGroupObject.Properties[ADAttributes.GroupType].Add(-2147483640);
|
||||
newGroupObject.CommitChanges();
|
||||
}
|
||||
|
||||
public static void AddUserToGroup(string userPath, string groupPath)
|
||||
{
|
||||
DirectoryEntry user = new DirectoryEntry(userPath);
|
||||
DirectoryEntry group = new DirectoryEntry(groupPath);
|
||||
|
||||
group.Invoke("Add", user.Path);
|
||||
}
|
||||
|
||||
public static bool AdObjectExists(string path)
|
||||
{
|
||||
return DirectoryEntry.Exists(path);
|
||||
}
|
||||
|
||||
public static string RemoveADPrefix(string path)
|
||||
{
|
||||
string dn = path;
|
||||
if (dn.ToUpper().StartsWith("LDAP://"))
|
||||
{
|
||||
dn = dn.Substring(7);
|
||||
}
|
||||
int index = dn.IndexOf("/");
|
||||
|
||||
if (index != -1)
|
||||
{
|
||||
dn = dn.Substring(index + 1);
|
||||
}
|
||||
return dn;
|
||||
}
|
||||
|
||||
public static string AddADPrefix(string path, string primaryDomainController)
|
||||
{
|
||||
string dn = path;
|
||||
if (!dn.ToUpper().StartsWith("LDAP://"))
|
||||
{
|
||||
if (string.IsNullOrEmpty(primaryDomainController))
|
||||
{
|
||||
dn = string.Format("LDAP://{0}", dn);
|
||||
|
||||
}
|
||||
else
|
||||
dn = string.Format("LDAP://{0}/{1}", primaryDomainController, dn);
|
||||
}
|
||||
return dn;
|
||||
}
|
||||
|
||||
public static string AddADPrefix(string path)
|
||||
{
|
||||
return AddADPrefix(path, null);
|
||||
}
|
||||
|
||||
private static void AddADObjectProperty(DirectoryEntry oDE, string name, string value)
|
||||
{
|
||||
if (!string.IsNullOrEmpty(value))
|
||||
{
|
||||
oDE.Properties[name].Add(value);
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
public static void AddUPNSuffix(string ouPath, string suffix)
|
||||
{
|
||||
//Add UPN Suffix to the OU
|
||||
DirectoryEntry ou = GetADObject(ouPath);
|
||||
AddADObjectProperty(ou, "uPNSuffixes", suffix);
|
||||
ou.CommitChanges();
|
||||
ou.Close();
|
||||
}
|
||||
|
||||
public static void RemoveUPNSuffix(string ouPath, string suffix)
|
||||
{
|
||||
if (DirectoryEntry.Exists(ouPath))
|
||||
{
|
||||
DirectoryEntry ou = GetADObject(ouPath);
|
||||
PropertyValueCollection prop = null;
|
||||
|
||||
prop = ou.Properties["uPNSuffixes"];
|
||||
|
||||
if (prop != null)
|
||||
{
|
||||
if (ou.Properties["uPNSuffixes"].Contains(suffix))
|
||||
{
|
||||
ou.Properties["uPNSuffixes"].Remove(suffix);
|
||||
ou.CommitChanges();
|
||||
}
|
||||
ou.Close();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
public static string GetDomainName(string userName)
|
||||
{
|
||||
string str4;
|
||||
string filter = string.Format(CultureInfo.InvariantCulture, "(&(objectClass=user)(Name={0}))", new object[] { userName });
|
||||
using (DirectoryEntry entry = Domain.GetComputerDomain().GetDirectoryEntry())
|
||||
{
|
||||
using (DirectorySearcher searcher = new DirectorySearcher(entry, filter))
|
||||
{
|
||||
searcher.PropertiesToLoad.Add("sAMAccountName");
|
||||
string str2 = searcher.FindOne().Properties["sAMAccountName"][0] as string;
|
||||
str4 = string.Format(CultureInfo.InvariantCulture, @"{0}\{1}", new object[] { entry.Properties["Name"].Value as string, str2 });
|
||||
}
|
||||
}
|
||||
return str4;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,202 @@
|
|||
// 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;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public abstract class BaseReport<T> where T : BaseStatistics
|
||||
{
|
||||
private List<T> items = new List<T>();
|
||||
|
||||
public List<T> Items
|
||||
{
|
||||
get { return items; }
|
||||
}
|
||||
|
||||
public abstract string ToCSV();
|
||||
|
||||
/// <summary>
|
||||
/// Converts source string into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="source">Source string.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string ToCsvString(string source)
|
||||
{
|
||||
string ret = source;
|
||||
if (!string.IsNullOrEmpty(source))
|
||||
{
|
||||
if (source.IndexOf(',') >= 0 || source.IndexOf('"') >= 0)
|
||||
ret = "\"" + source.Replace("\"", "\"\"") + "\"";
|
||||
}
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts DateTime string into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="date">Value.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string ToCsvString(DateTime date)
|
||||
{
|
||||
string ret = string.Empty;
|
||||
if (date != DateTime.MinValue)
|
||||
{
|
||||
ret = date.ToString("G");
|
||||
}
|
||||
return ToCsvString(ret);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts long value into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="val">Value.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string ToCsvString(long val)
|
||||
{
|
||||
return ToCsvString(val.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts int value into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="val">Value.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string ToCsvString(int val)
|
||||
{
|
||||
return ToCsvString(val.ToString());
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts unlimited int value into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="val">Value.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string UnlimitedToCsvString(int val)
|
||||
{
|
||||
string ret = string.Empty;
|
||||
ret = (val == -1) ? "Unlimited" : val.ToString();
|
||||
return ToCsvString(ret);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts unlimited long value into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="val">Value.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string UnlimitedToCsvString(long val)
|
||||
{
|
||||
string ret = string.Empty;
|
||||
ret = (val == -1) ? "Unlimited" : val.ToString();
|
||||
return ToCsvString(ret);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts unlimited long value into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="val">Value.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string UnlimitedToCsvString(double val)
|
||||
{
|
||||
string ret = string.Empty;
|
||||
ret = (val == -1d) ? ToCsvString("Unlimited") : ToCsvString(val);
|
||||
return ret;
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts double value into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="val">Value.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string ToCsvString(double val)
|
||||
{
|
||||
return ToCsvString(val.ToString("F"));
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts boolean value into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="val">Value.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string ToCsvString(bool val, string trueValue, string falseValue)
|
||||
{
|
||||
return ToCsvString(val ? trueValue : falseValue);
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts boolean value into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="val">Value.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string ToCsvString(bool val)
|
||||
{
|
||||
return ToCsvString(val, "Enabled", "Disabled");
|
||||
}
|
||||
|
||||
/// <summary>
|
||||
/// Converts value into CSV string.
|
||||
/// </summary>
|
||||
/// <param name="val">Value.</param>
|
||||
/// <returns>CSV string.</returns>
|
||||
protected static string ToCsvString(ExchangeAccountType val)
|
||||
{
|
||||
string ret = string.Empty;
|
||||
switch (val)
|
||||
{
|
||||
case ExchangeAccountType.Contact:
|
||||
ret = "Contact";
|
||||
break;
|
||||
case ExchangeAccountType.DistributionList:
|
||||
ret = "Distribution List";
|
||||
break;
|
||||
case ExchangeAccountType.Equipment:
|
||||
ret = "Equipment Mailbox";
|
||||
break;
|
||||
case ExchangeAccountType.Mailbox:
|
||||
ret = "User Mailbox";
|
||||
break;
|
||||
case ExchangeAccountType.PublicFolder:
|
||||
ret = "Public Folder";
|
||||
break;
|
||||
case ExchangeAccountType.Room:
|
||||
ret = "Room Mailbox";
|
||||
break;
|
||||
case ExchangeAccountType.User:
|
||||
ret = "User";
|
||||
break;
|
||||
default:
|
||||
ret = "Undefined";
|
||||
break;
|
||||
|
||||
}
|
||||
return ToCsvString(ret);
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class BaseStatistics
|
||||
{
|
||||
public string TopResellerName { get; set; }
|
||||
public string ResellerName { get; set; }
|
||||
public string CustomerName { get; set; }
|
||||
public DateTime CustomerCreated { get; set; }
|
||||
public string HostingSpace { get; set; }
|
||||
public string OrganizationName { get; set; }
|
||||
public DateTime OrganizationCreated { get; set; }
|
||||
public string OrganizationID { get; set; }
|
||||
public DateTime HostingSpaceCreated
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,85 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class BlackBerryErrorsCodes
|
||||
{
|
||||
public const string ACCOUNT_TYPE_IS_NOT_MAILBOX = "ACCOUNT_TYPE_IS_NOT_MAILBOX";
|
||||
|
||||
public const string CANNOT_ADD_BLACKBERRY_USER_TO_DATABASE = "CANNOT_ADD_BLACKBERRY_USER_TO_DATABASE";
|
||||
|
||||
public const string USER_IS_ALREADY_BLAKBERRY_USER = "USER_IS_ALREADY_BLAKBERRY_USER";
|
||||
|
||||
public const string CANNOT_CHECK_IF_BLACKBERRY_USER_EXISTS = "CANNOT_CHECK_IF_BLACKBERRY_USER_EXISTS";
|
||||
|
||||
public const string FILE_PATH_IS_INVALID = "FILE_PATH_IS_INVALID";
|
||||
|
||||
public const string CANNOT_EXECUTE_COMMAND = "CANNOT_EXECUTE_COMMAND";
|
||||
|
||||
public const string CANNOT_GET_BLACKBERRY_PROXY = "CANNOT_GET_BLACKBERRY_PROXY";
|
||||
|
||||
public const string CANNOT_ADD_BLACKBERRY_USER = "CANNOT_ADD_BLACKBERRY_USER";
|
||||
|
||||
public const string CANNOT_DELETE_BLACKBERRY_USER = "CANNOT_DELETE_BLACKBERRY_USER";
|
||||
|
||||
public const string CANNOT_DELETE_BLACKBERRY_USER_FROM_METADATA = "CANNOT_DELETE_BLACKBERRY_USER_FROM_METADATA";
|
||||
|
||||
public const string USER_LAST_NAME_IS_NOT_SPECIFIED = "USER_LAST_NAME_IS_NOT_SPECIFIED";
|
||||
|
||||
public const string USER_FIRST_NAME_IS_NOT_SPECIFIED = "USER_FIRST_NAME_IS_NOT_SPECIFIED";
|
||||
|
||||
public const string CANNOT_CHECK_QUOTA = "CANNOT_CHECK_QUOTA";
|
||||
|
||||
public const string USER_QUOTA_HAS_BEEN_REACHED = "USER_QUOTA_HAS_BEEN_REACHED";
|
||||
|
||||
public const string CANNOT_POPULATE_STATS = "CANNOT_POPULATE_STATS";
|
||||
|
||||
public const string CANNOT_GET_USER_STATS = "CANNOT_GET_USER_STATS";
|
||||
|
||||
public const string CANNOT_DELETE_DATA_FROM_BLACKBERRY_DEVICE = "CANNOT_DELETE_DATA_FROM_BLACKBERRY_DEVICE";
|
||||
|
||||
public const string CANNOT_SET_EMAIL_ACTIVATION_PASSWORD = "CANNOT_SET_EMAIL_ACTIVATION_PASSWORD";
|
||||
|
||||
public const string CANNOT_SET_ACTIVATION_PASSWORD = "CANNOT_SET_ACTIVATION_PASSWORD";
|
||||
|
||||
public const string BLACKBERRY_LICENSE_NOT_FOUND = "BLACKBERRY_LICENSE_NOT_FOUND";
|
||||
|
||||
public const string BLACKBERRY_LICENSE_BLOCKED = "BLACKBERRY_LICENSE_BLOCKED";
|
||||
|
||||
public const string CANNOT_CHECK_BLACKBERRY_LICENSE = "CANNOT_CHECK_BLACKBERRY_LICENSE";
|
||||
|
||||
public const string CANNOT_GET_USER_GENERAL_SETTINGS = "CANNOT_GET_USER_GENERAL_SETTINGS";
|
||||
|
||||
public const string CANNOT_SPLIT_STATS = "CANNOT_SPLIT_STATS";
|
||||
|
||||
public const string ADMINISTRATION_TOOL_SERVICE_IS_INVALID = "ADMINISTRATION_TOOL_SERVICE_IS_INVALID";
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,38 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class BlackBerryStatsItem
|
||||
{
|
||||
public string Name { get; set; }
|
||||
|
||||
public string Value { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public enum BlackBerryUserDeleteState
|
||||
{
|
||||
Pending,
|
||||
None
|
||||
}
|
||||
}
|
|
@ -0,0 +1,51 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class CRMBusinessUnit
|
||||
{
|
||||
private Guid businessUnitId;
|
||||
private string businessUnitName;
|
||||
|
||||
|
||||
public Guid BusinessUnitId
|
||||
{
|
||||
get { return businessUnitId; }
|
||||
set { businessUnitId = value; }
|
||||
}
|
||||
|
||||
public string BusinessUnitName
|
||||
{
|
||||
get { return businessUnitName; }
|
||||
set { businessUnitName = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public class CRMOrganizationStatistics : BaseStatistics
|
||||
{
|
||||
public Guid CRMOrganizationId { get; set; }
|
||||
public string CRMUserName { get; set; }
|
||||
public CRMUserAccessMode ClientAccessMode { get; set; }
|
||||
public bool CRMDisabled { get; set; }
|
||||
}
|
||||
}
|
|
@ -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.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public class CRMStatisticsReport : BaseReport<CRMOrganizationStatistics>
|
||||
{
|
||||
public override string ToCSV()
|
||||
{
|
||||
StringBuilder mainBuilder = new StringBuilder();
|
||||
AddCSVHeader(mainBuilder);
|
||||
foreach (CRMOrganizationStatistics item in Items)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("\n");
|
||||
sb.AppendFormat("{0},", ToCsvString(item.TopResellerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.ResellerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.CustomerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.CustomerCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.HostingSpace));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.HostingSpaceCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationID));
|
||||
|
||||
sb.AppendFormat("{0},", ToCsvString(item.CRMOrganizationId.ToString()));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.CRMUserName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.ClientAccessMode.ToString()));
|
||||
sb.AppendFormat("{0}", ToCsvString(!item.CRMDisabled));
|
||||
mainBuilder.Append(sb.ToString());
|
||||
}
|
||||
return mainBuilder.ToString();
|
||||
}
|
||||
|
||||
private static void AddCSVHeader(StringBuilder sb)
|
||||
{
|
||||
sb.Append("Top Reseller,Reseller,Customer,Customer Created,Hosting Space,Hosting Space Created,Ogranization Name,Ogranization Created,Organization ID, CRM Organization ID, User Name, CAL, User State" );
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,37 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public enum CRMUserAccessMode
|
||||
{
|
||||
Full,
|
||||
Administrative,
|
||||
ReadOnly
|
||||
}
|
||||
}
|
|
@ -0,0 +1,175 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class CrmErrorCodes
|
||||
{
|
||||
public const string CRM_SQL_SERVER_ERROR = "CRM_SQL_SERVER_ERROR";
|
||||
|
||||
public const string CRM_ORGANIZATION_ALREADY_EXISTS = "CRM_ORGANIZATION_ALREADY_EXISTS";
|
||||
|
||||
public const string CRM_REPORT_SERVER_ERROR = "CRM_REPORT_SERVER_ERROR";
|
||||
|
||||
public const string CRM_PERMISSIONS_ERROR = "CRM_PERMISSIONS_ERROR";
|
||||
|
||||
public const string CANNOT_CREATE_CRM_ORGANIZATION = "CANNOT_CREATE_CRM_ORGANIZATION";
|
||||
|
||||
public const string DNS_SERVER_IS_NOT_SELECTED_IN_HOSTIN_PLAN = "DNS_SERVER_IS_NOT_SELECTED_IN_HOSTIN_PLAN";
|
||||
|
||||
public const string CANNOT_CREATE_CRM_ORGANIZATION_DOMAIN = "CANNOT_CREATE_CRM_ORGANIZATION_DOMAIN";
|
||||
|
||||
public const string CANNOT_CREATE_DNS_ZONE = "CANNOT_CREATE_DNS_ZONE";
|
||||
|
||||
public const string CREATE_CRM_ORGANIZATION_DOMAIN_GENERAL_ERROR = "CREATE_CRM_ORGANIZATION_DOMAIN_GENERAL_ERROR";
|
||||
|
||||
public const string CREATE_CRM_ORGANIZATION_GENERAL_ERROR = "CREATE_CRM_ORGANIZATION_GENERAL_ERROR";
|
||||
|
||||
public const string CANNOT_CHANGE_CRM_ORGANIZATION_STATE = "CANNOT_CHANGE_CRM_ORGANIZATION_STATE";
|
||||
|
||||
public const string CANNOT_DELETE_CRM_ORGANIZATION = "CANNOT_DELETE_CRM_ORGANIZATION";
|
||||
|
||||
public const string DELETE_CRM_ORGANIZATION_GENERAL_ERROR = "DELETE_CRM_ORGANIZATION_GENERAL_ERROR";
|
||||
|
||||
public const string CRM_LICENSE_NOT_FOUND = "CRM_LICENSE_NOT_FOUND";
|
||||
|
||||
public const string CRM_LICENSE_BLOCKED = "CRM_LICENSE_BLOCKED";
|
||||
|
||||
public const string DELETE_DNS_RECORD_ERROR = "DELETE_DNS_RECORD_ERROR";
|
||||
|
||||
public const string CANNOT_DELETE_DNS_RECORD = "CANNOT_DELETE_DNS_RECORD";
|
||||
|
||||
public const string CANNOT_DELETE_CRM_ORGANIZATIO_DOMAIN = "CANNOT_DELETE_CRM_ORGANIZATIO_DOMAIN";
|
||||
|
||||
public const string DELETE_CRM_ORGANIZATION_DOMAIN_GENERAL_ERROR = "DELETE_CRM_ORGANIZATION_DOMAIN_GENERAL_ERROR";
|
||||
|
||||
public const string CANNOT_GET_CRM_ORGANIZATION_DOMAIN = "CANNOT_GET_CRM_ORGANIZATION_DOMAIN";
|
||||
|
||||
public const string QUOTA_HAS_BEEN_REACHED = "QUOTA_HAS_BEEN_REACHED";
|
||||
|
||||
public const string CANNOT_SET_DATABASE_COLLATION = "CANNOT_SET_DATABASE_COLLATION";
|
||||
|
||||
public const string CANNOT_DELETE_CRM_ORGANIZATION_DATABASE = "CANNOT_DELETE_CRM_ORGANIZATION_DATABASE";
|
||||
|
||||
public const string CANNOT_CONFIGURE_CRM_ORGANIZATION = "CANNOT_CONFIGURE_CRM_ORGANIZATION";
|
||||
|
||||
public const string CANNOT_SET_ORGANIZATION_CURRENCY = "CANNOT_SET_ORGANIZATION_CURRENCY";
|
||||
|
||||
public const string CANNOT_CREATE_CRM_REPORT = "CANNOT_CREATE_CRM_REPORT";
|
||||
|
||||
public const string CANNOT_APPLY_CRM_UPDATES = "CANNOT_APPLY_CRM_UPDATES";
|
||||
|
||||
public const string CANNOT_ENABLE_CRM_ORGANIZATION = "CANNOT_ENABLE_CRM_ORGANIZATION";
|
||||
|
||||
public const string CANNOT_CREATE_CRM_ORGANIZATION_DATABASE = "CANNOT_CREATE_CRM_ORGANIZATION_DATABASE";
|
||||
|
||||
public const string CANNOT_CHECK_QUOTAS = "CANNOT_CHECK_QUOTAS";
|
||||
|
||||
public const string CRM_IS_NOT_SELECTED_IN_HOSTING_PLAN = "CRM_IS_NOT_SELECTED_IN_HOSTING_PLAN";
|
||||
|
||||
public const string CANNOT_GET_COLLATION_NAMES = "CANNOT_GET_COLLATION_NAMES";
|
||||
|
||||
public const string CANNOT_GET_CURRENCY_LIST = "CANNOT_GET_CURRENCY_LIST";
|
||||
|
||||
public const string GET_CRM_USERS = "GET_CRM_USERS";
|
||||
|
||||
public const string GET_CRM_USER_COUNT = "GET_CRM_USER_COUNT";
|
||||
|
||||
public const string CANNOT_CREATE_CRM_USER = "CANNOT_CREATE_CRM_USER";
|
||||
|
||||
public const string CANNOT_CREATE_CRM_USER_GENERAL_ERROR = "CANNOT_CREATE_CRM_USER_GENERAL_ERROR";
|
||||
|
||||
public const string CANNOT_CREATE_CRM_USER_IN_DATABASE = "CANNOT_CREATE_CRM_USER_IN_DATABASE";
|
||||
|
||||
public const string CANNOT_GET_CRM_SERVICE = "CANNOT_GET_CRM_SERVICE";
|
||||
|
||||
public const string CANNOT_GET_CRM_BUSINESS_UNITS = "CANNOT_GET_CRM_BUSINESS_UNITS";
|
||||
|
||||
public const string CANNOT_FILL_BASE_UNITS_COLLECTION = "CANNOT_FILL_BASE_UNITS_COLLECTION";
|
||||
|
||||
public const string CANNOT_GET_BUSINESS_UNITS_GENERAL_ERROR = "CANNOT_GET_BUSINESS_UNITS_GENERAL_ERROR";
|
||||
|
||||
public const string CANNOT_GET_CRM_ORGANIZATION = "CANNOT_GET_CRM_ORGANIZATION";
|
||||
|
||||
public const string CANNOT_GET_ALL_CRM_ROLES = "CANNOT_GET_ALL_CRM_ROLES";
|
||||
|
||||
public const string CANNOT_FILL_ROLES_COLLECTION = "CANNOT_FILL_ROLES_COLLECTION";
|
||||
|
||||
public const string CANNOT_GET_CRM_USER_ROLES = "CANNOT_GET_CRM_USER_ROLES";
|
||||
|
||||
public const string GET_ORGANIZATION_BUSINESS_UNITS_GENERAL_ERROR = "GET_ORGANIZATION_BUSINESS_UNITS_GENERAL_ERROR";
|
||||
|
||||
public const string GET_ALL_CRM_ROLES_GENERAL_ERROR = "GET_ALL_CRM_ROLES_GENERAL_ERROR";
|
||||
|
||||
public const string GET_CRM_USER_ROLE_GENERAL_ERROR = "GET_CRM_USER_ROLE_GENERAL_ERROR";
|
||||
|
||||
public const string CANNOT_REMOVE_CRM_USER_ROLES = "CANNOT_REMOVE_CRM_USER_ROLES";
|
||||
|
||||
public const string CANNOT_ASSIGN_CRM_USER_ROLES = "CANNOT_ASSIGN_CRM_USER_ROLES";
|
||||
|
||||
public const string CANNOT_SET_CRM_USER_ROLES_GENERAL_ERROR = "CANNOT_SET_CRM_USER_ROLES_GENERAL_ERROR";
|
||||
|
||||
public const string CREATE_CRM_USER_GENERAL_ERROR = "CREATE_CRM_USER_GENERAL_ERROR";
|
||||
|
||||
public const string FIRST_NAME_IS_NOT_SPECIFIED = "FIRST_NAME_IS_NOT_SPECIFIED";
|
||||
|
||||
public const string LAST_NAME_IS_NOT_SPECIFIED = "LAST_NAME_IS_NOT_SPECIFIED";
|
||||
|
||||
public const string CRM_USER_ALREADY_EXISTS = "CRM_USER_ALREADY_EXISTS";
|
||||
|
||||
public const string CANNOT_GET_CRM_ROLES_GENERAL_ERROR = "CANNOT_GET_CRM_ROLES_GENERAL_ERROR";
|
||||
|
||||
public const string CHECK_QUOTA = "CHECK_QUOTA";
|
||||
|
||||
public const string USER_QUOTA_HAS_BEEN_REACHED = "USER_QUOTA_HAS_BEEN_REACHED";
|
||||
|
||||
public const string CANNOT_ADD_ORGANIZATION_OWNER_TO_ORGANIZATIO_USER =
|
||||
"CANNOT_ADD_ORGANIZATION_OWNER_TO_ORGANIZATIO_USER";
|
||||
|
||||
public const string CANONT_GET_CRM_USER_BY_DOMAIN_NAME = "CANONT_GET_CRM_USER_BY_DOMAIN_NAME";
|
||||
|
||||
public const string CANNOT_DISABLE_USER_FEATURES = "CANNOT_DISABLE_USER_FEATURES";
|
||||
|
||||
public const string CANNOT_DELETE_CRM_ORGANIZATION_METADATA = "CANNOT_DELETE_CRM_ORGANIZATION_METADATA";
|
||||
|
||||
public const string CANONT_GET_CRM_USER_BY_ID = "CANONT_GET_CRM_USER_BY_ID";
|
||||
|
||||
public const string CRM_WEB_SERVICE_ERROR = "CRM_WEB_SERVICE_ERROR";
|
||||
|
||||
public const string CANNOT_CHANGE_USER_STATE = "CANNOT_CHANGE_USER_STATE";
|
||||
|
||||
public const string CANNOT_CHANGE_USER_STATE_GENERAL_ERROR = "CANNOT_CHANGE_USER_STATE_GENERAL_ERROR";
|
||||
|
||||
public const string CANONT_GET_CRM_USER_FROM_METADATA = "CANONT_GET_CRM_USER_FROM_METADATA";
|
||||
|
||||
public const string CANONT_GET_CRM_USER_GENERAL_ERROR = "CANONT_GET_CRM_USER_GENERAL_ERROR";
|
||||
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class CrmRole
|
||||
{
|
||||
private string roleName;
|
||||
private Guid roleId;
|
||||
private bool isCurrentUserRole;
|
||||
|
||||
|
||||
public bool IsCurrentUserRole
|
||||
{
|
||||
get { return isCurrentUserRole; }
|
||||
set { isCurrentUserRole = value; }
|
||||
}
|
||||
|
||||
public string RoleName
|
||||
{
|
||||
get
|
||||
{
|
||||
return roleName;
|
||||
}
|
||||
set
|
||||
{
|
||||
roleName = value;
|
||||
}
|
||||
}
|
||||
|
||||
public Guid RoleId
|
||||
{
|
||||
get
|
||||
{
|
||||
return roleId;
|
||||
}
|
||||
set
|
||||
{
|
||||
roleId = value;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public enum CrmOrganizationState
|
||||
{
|
||||
Disabled,
|
||||
Enabled,
|
||||
Pending,
|
||||
Failed,
|
||||
Maintenance
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class CrmUser
|
||||
{
|
||||
public Guid CRMUserId { get; set; }
|
||||
public Guid BusinessUnitId { get; set; }
|
||||
public CRMUserAccessMode ClientAccessMode { get; set; }
|
||||
public bool IsDisabled { get; set; }
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,63 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class Currency
|
||||
{
|
||||
private string currencyName;
|
||||
private string regionName;
|
||||
private string currencyCode;
|
||||
private string currencySymbol;
|
||||
|
||||
|
||||
public string CurrencyName
|
||||
{
|
||||
get { return currencyName; }
|
||||
set { currencyName = value; }
|
||||
}
|
||||
|
||||
public string RegionName
|
||||
{
|
||||
get { return regionName; }
|
||||
set { regionName = value; }
|
||||
}
|
||||
|
||||
public string CurrencyCode
|
||||
{
|
||||
get { return currencyCode; }
|
||||
set { currencyCode = value; }
|
||||
}
|
||||
|
||||
public string CurrencySymbol
|
||||
{
|
||||
get { return currencySymbol; }
|
||||
set { currencySymbol = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class EnterpriseSolutionStatisticsReport
|
||||
{
|
||||
public ExchangeStatisticsReport ExchangeReport { get; set; }
|
||||
public SharePointStatisticsReport SharePointReport { get; set; }
|
||||
public CRMStatisticsReport CRMReport { get; set; }
|
||||
public OrganizationStatisticsReport OrganizationReport { get; set; }
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class Errors
|
||||
{
|
||||
public const int OK = 0;
|
||||
public const int AD_OBJECT_ALREADY_EXISTS = -1;
|
||||
}
|
||||
}
|
|
@ -0,0 +1,115 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeAccount
|
||||
{
|
||||
int accountId;
|
||||
int itemId;
|
||||
int packageId;
|
||||
ExchangeAccountType accountType;
|
||||
string accountName;
|
||||
string displayName;
|
||||
string primaryEmailAddress;
|
||||
bool mailEnabledPublicFolder;
|
||||
MailboxManagerActions mailboxManagerActions;
|
||||
string accountPassword;
|
||||
string samAccountName;
|
||||
|
||||
public int AccountId
|
||||
{
|
||||
get { return this.accountId; }
|
||||
set { this.accountId = value; }
|
||||
}
|
||||
|
||||
public int ItemId
|
||||
{
|
||||
get { return this.itemId; }
|
||||
set { this.itemId = value; }
|
||||
}
|
||||
|
||||
public int PackageId
|
||||
{
|
||||
get { return this.packageId; }
|
||||
set { this.packageId = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccountType AccountType
|
||||
{
|
||||
get { return this.accountType; }
|
||||
set { this.accountType = value; }
|
||||
}
|
||||
|
||||
public string AccountName
|
||||
{
|
||||
get { return this.accountName; }
|
||||
set { this.accountName = value; }
|
||||
}
|
||||
|
||||
public string SamAccountName
|
||||
{
|
||||
get { return this.samAccountName; }
|
||||
set { this.samAccountName = value; }
|
||||
}
|
||||
|
||||
public string DisplayName
|
||||
{
|
||||
get { return this.displayName; }
|
||||
set { this.displayName = value; }
|
||||
}
|
||||
|
||||
public string PrimaryEmailAddress
|
||||
{
|
||||
get { return this.primaryEmailAddress; }
|
||||
set { this.primaryEmailAddress = value; }
|
||||
}
|
||||
|
||||
public bool MailEnabledPublicFolder
|
||||
{
|
||||
get { return this.mailEnabledPublicFolder; }
|
||||
set { this.mailEnabledPublicFolder = value; }
|
||||
}
|
||||
|
||||
public string AccountPassword
|
||||
{
|
||||
get { return this.accountPassword; }
|
||||
set { this.accountPassword = value; }
|
||||
}
|
||||
|
||||
public MailboxManagerActions MailboxManagerActions
|
||||
{
|
||||
get { return this.mailboxManagerActions; }
|
||||
set { this.mailboxManagerActions = 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.
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public enum ExchangeAccountType
|
||||
{
|
||||
Undefined = 0,
|
||||
Mailbox = 1,
|
||||
Contact = 2,
|
||||
DistributionList = 3,
|
||||
PublicFolder = 4,
|
||||
Room = 5,
|
||||
Equipment = 6,
|
||||
User = 7
|
||||
|
||||
}
|
||||
}
|
|
@ -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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeAccountsPaged
|
||||
{
|
||||
int recordsCount;
|
||||
ExchangeAccount[] pageItems;
|
||||
|
||||
public int RecordsCount
|
||||
{
|
||||
get { return this.recordsCount; }
|
||||
set { this.recordsCount = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount[] PageItems
|
||||
{
|
||||
get { return this.pageItems; }
|
||||
set { this.pageItems = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,162 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeActiveSyncPolicy
|
||||
{
|
||||
//general
|
||||
private bool allowNonProvisionableDevices;
|
||||
private bool attachmentsEnabled;
|
||||
private int maxAttachmentSizeKB;
|
||||
private bool uncAccessEnabled;
|
||||
private bool wssAccessEnabled;
|
||||
//password
|
||||
private bool devicePasswordEnabled;
|
||||
private bool alphanumericPasswordRequired;
|
||||
private bool passwordRecoveryEnabled;
|
||||
private bool deviceEncryptionEnabled;
|
||||
private bool allowSimplePassword;
|
||||
private int maxPasswordFailedAttempts;
|
||||
private int minPasswordLength;
|
||||
private int inactivityLockMin;
|
||||
private int passwordExpirationDays;
|
||||
private int passwordHistory;
|
||||
private int refreshInterval;
|
||||
|
||||
|
||||
public int RefreshInterval
|
||||
{
|
||||
get
|
||||
{
|
||||
return refreshInterval;
|
||||
}
|
||||
set
|
||||
{
|
||||
refreshInterval = value;
|
||||
}
|
||||
}
|
||||
|
||||
public bool AllowNonProvisionableDevices
|
||||
{
|
||||
get { return allowNonProvisionableDevices; }
|
||||
set { allowNonProvisionableDevices = value; }
|
||||
}
|
||||
|
||||
public bool AttachmentsEnabled
|
||||
{
|
||||
get { return attachmentsEnabled; }
|
||||
set { attachmentsEnabled = value; }
|
||||
}
|
||||
|
||||
|
||||
public int MaxAttachmentSizeKB
|
||||
{
|
||||
get { return maxAttachmentSizeKB; }
|
||||
set { maxAttachmentSizeKB = value; }
|
||||
}
|
||||
|
||||
|
||||
public bool UNCAccessEnabled
|
||||
{
|
||||
get { return uncAccessEnabled; }
|
||||
set { uncAccessEnabled = value; }
|
||||
}
|
||||
|
||||
|
||||
public bool WSSAccessEnabled
|
||||
{
|
||||
get { return wssAccessEnabled; }
|
||||
set { wssAccessEnabled = value; }
|
||||
}
|
||||
|
||||
public bool DevicePasswordEnabled
|
||||
{
|
||||
get { return devicePasswordEnabled; }
|
||||
set { devicePasswordEnabled = value; }
|
||||
}
|
||||
|
||||
public bool AlphanumericPasswordRequired
|
||||
{
|
||||
get { return alphanumericPasswordRequired; }
|
||||
set { alphanumericPasswordRequired = value; }
|
||||
}
|
||||
|
||||
public bool PasswordRecoveryEnabled
|
||||
{
|
||||
get { return passwordRecoveryEnabled; }
|
||||
set { passwordRecoveryEnabled = value; }
|
||||
}
|
||||
|
||||
public bool DeviceEncryptionEnabled
|
||||
{
|
||||
get { return deviceEncryptionEnabled; }
|
||||
set { deviceEncryptionEnabled = value; }
|
||||
}
|
||||
|
||||
public bool AllowSimplePassword
|
||||
{
|
||||
get { return allowSimplePassword; }
|
||||
set { allowSimplePassword = value; }
|
||||
}
|
||||
|
||||
public int MaxPasswordFailedAttempts
|
||||
{
|
||||
get { return maxPasswordFailedAttempts; }
|
||||
set { maxPasswordFailedAttempts = value; }
|
||||
}
|
||||
|
||||
public int MinPasswordLength
|
||||
{
|
||||
get { return minPasswordLength; }
|
||||
set { minPasswordLength = value; }
|
||||
}
|
||||
|
||||
public int InactivityLockMin
|
||||
{
|
||||
get { return inactivityLockMin; }
|
||||
set { inactivityLockMin = value; }
|
||||
}
|
||||
|
||||
public int PasswordExpirationDays
|
||||
{
|
||||
get { return passwordExpirationDays; }
|
||||
set { passwordExpirationDays = value; }
|
||||
}
|
||||
|
||||
public int PasswordHistory
|
||||
{
|
||||
get { return passwordHistory; }
|
||||
set { passwordHistory = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,240 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeContact
|
||||
{
|
||||
string displayName;
|
||||
string accountName;
|
||||
string emailAddress;
|
||||
bool hideFromAddressBook;
|
||||
|
||||
string firstName;
|
||||
string initials;
|
||||
string lastName;
|
||||
|
||||
string jobTitle;
|
||||
string company;
|
||||
string department;
|
||||
string office;
|
||||
ExchangeAccount managerAccount;
|
||||
|
||||
string businessPhone;
|
||||
string fax;
|
||||
string homePhone;
|
||||
string mobilePhone;
|
||||
string pager;
|
||||
string webPage;
|
||||
|
||||
string address;
|
||||
string city;
|
||||
string state;
|
||||
string zip;
|
||||
string country;
|
||||
|
||||
string notes;
|
||||
private int useMapiRichTextFormat;
|
||||
|
||||
ExchangeAccount[] acceptAccounts;
|
||||
ExchangeAccount[] rejectAccounts;
|
||||
bool requireSenderAuthentication;
|
||||
|
||||
public string DisplayName
|
||||
{
|
||||
get { return this.displayName; }
|
||||
set { this.displayName = value; }
|
||||
}
|
||||
|
||||
public string AccountName
|
||||
{
|
||||
get { return this.accountName; }
|
||||
set { this.accountName = value; }
|
||||
}
|
||||
|
||||
public string EmailAddress
|
||||
{
|
||||
get { return this.emailAddress; }
|
||||
set { this.emailAddress = value; }
|
||||
}
|
||||
|
||||
public bool HideFromAddressBook
|
||||
{
|
||||
get { return this.hideFromAddressBook; }
|
||||
set { this.hideFromAddressBook = value; }
|
||||
}
|
||||
|
||||
public string FirstName
|
||||
{
|
||||
get { return this.firstName; }
|
||||
set { this.firstName = value; }
|
||||
}
|
||||
|
||||
public string Initials
|
||||
{
|
||||
get { return this.initials; }
|
||||
set { this.initials = value; }
|
||||
}
|
||||
|
||||
public string LastName
|
||||
{
|
||||
get { return this.lastName; }
|
||||
set { this.lastName = value; }
|
||||
}
|
||||
|
||||
public string JobTitle
|
||||
{
|
||||
get { return this.jobTitle; }
|
||||
set { this.jobTitle = value; }
|
||||
}
|
||||
|
||||
public string Company
|
||||
{
|
||||
get { return this.company; }
|
||||
set { this.company = value; }
|
||||
}
|
||||
|
||||
public string Department
|
||||
{
|
||||
get { return this.department; }
|
||||
set { this.department = value; }
|
||||
}
|
||||
|
||||
public string Office
|
||||
{
|
||||
get { return this.office; }
|
||||
set { this.office = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount ManagerAccount
|
||||
{
|
||||
get { return this.managerAccount; }
|
||||
set { this.managerAccount = value; }
|
||||
}
|
||||
|
||||
public string BusinessPhone
|
||||
{
|
||||
get { return this.businessPhone; }
|
||||
set { this.businessPhone = value; }
|
||||
}
|
||||
|
||||
public string Fax
|
||||
{
|
||||
get { return this.fax; }
|
||||
set { this.fax = value; }
|
||||
}
|
||||
|
||||
public string HomePhone
|
||||
{
|
||||
get { return this.homePhone; }
|
||||
set { this.homePhone = value; }
|
||||
}
|
||||
|
||||
public string MobilePhone
|
||||
{
|
||||
get { return this.mobilePhone; }
|
||||
set { this.mobilePhone = value; }
|
||||
}
|
||||
|
||||
public string Pager
|
||||
{
|
||||
get { return this.pager; }
|
||||
set { this.pager = value; }
|
||||
}
|
||||
|
||||
public string WebPage
|
||||
{
|
||||
get { return this.webPage; }
|
||||
set { this.webPage = value; }
|
||||
}
|
||||
|
||||
public string Address
|
||||
{
|
||||
get { return this.address; }
|
||||
set { this.address = value; }
|
||||
}
|
||||
|
||||
public string City
|
||||
{
|
||||
get { return this.city; }
|
||||
set { this.city = value; }
|
||||
}
|
||||
|
||||
public string State
|
||||
{
|
||||
get { return this.state; }
|
||||
set { this.state = value; }
|
||||
}
|
||||
|
||||
public string Zip
|
||||
{
|
||||
get { return this.zip; }
|
||||
set { this.zip = value; }
|
||||
}
|
||||
|
||||
public string Country
|
||||
{
|
||||
get { return this.country; }
|
||||
set { this.country = value; }
|
||||
}
|
||||
|
||||
public string Notes
|
||||
{
|
||||
get { return this.notes; }
|
||||
set { this.notes = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount[] AcceptAccounts
|
||||
{
|
||||
get { return this.acceptAccounts; }
|
||||
set { this.acceptAccounts = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount[] RejectAccounts
|
||||
{
|
||||
get { return this.rejectAccounts; }
|
||||
set { this.rejectAccounts = value; }
|
||||
}
|
||||
|
||||
public bool RequireSenderAuthentication
|
||||
{
|
||||
get { return requireSenderAuthentication; }
|
||||
set { requireSenderAuthentication = value; }
|
||||
}
|
||||
|
||||
public int UseMapiRichTextFormat
|
||||
{
|
||||
get { return useMapiRichTextFormat; }
|
||||
set { useMapiRichTextFormat = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,103 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeDistributionList
|
||||
{
|
||||
public string DisplayName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string AccountName
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public bool HideFromAddressBook
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public ExchangeAccount[] MembersAccounts
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public ExchangeAccount ManagerAccount
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string Notes
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public ExchangeAccount[] AcceptAccounts
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public ExchangeAccount[] RejectAccounts
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public bool RequireSenderAuthentication
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public ExchangeAccount[] SendAsAccounts
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public ExchangeAccount[] SendOnBehalfAccounts
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
||||
using WebsitePanel.Providers;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeDomain : ServiceProviderItem
|
||||
{
|
||||
}
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeDomainName
|
||||
{
|
||||
int organizationDomainId;
|
||||
int itemId;
|
||||
int domainId;
|
||||
string domainName;
|
||||
bool isHost;
|
||||
bool isDefault;
|
||||
|
||||
public bool IsHost
|
||||
{
|
||||
get { return this.isHost; }
|
||||
set { this.isHost = value; }
|
||||
}
|
||||
|
||||
public bool IsDefault
|
||||
{
|
||||
get { return this.isDefault; }
|
||||
set { this.isDefault = value; }
|
||||
}
|
||||
|
||||
public int DomainId
|
||||
{
|
||||
get { return this.domainId; }
|
||||
set { this.domainId = value; }
|
||||
}
|
||||
|
||||
public int OrganizationDomainId
|
||||
{
|
||||
get { return this.organizationDomainId; }
|
||||
set { this.organizationDomainId = value; }
|
||||
}
|
||||
|
||||
public int ItemId
|
||||
{
|
||||
get { return this.itemId; }
|
||||
set { this.itemId = value; }
|
||||
}
|
||||
|
||||
public string DomainName
|
||||
{
|
||||
get { return this.domainName; }
|
||||
set { this.domainName = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeEmailAddress
|
||||
{
|
||||
public ExchangeEmailAddress()
|
||||
{
|
||||
}
|
||||
|
||||
public ExchangeEmailAddress(string email, bool primary)
|
||||
{
|
||||
this.Email = email;
|
||||
this.Primary = primary;
|
||||
}
|
||||
|
||||
private string email;
|
||||
private bool primary;
|
||||
|
||||
public string Email
|
||||
{
|
||||
get { return email; }
|
||||
set { email = value; }
|
||||
}
|
||||
|
||||
public bool Primary
|
||||
{
|
||||
get { return primary; }
|
||||
set { primary = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,87 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeItemStatistics
|
||||
{
|
||||
private string itemName;
|
||||
private int totalItems;
|
||||
private int totalSizeMB;
|
||||
private DateTime lastLogon;
|
||||
private DateTime lastLogoff;
|
||||
private DateTime lastAccessTime;
|
||||
private DateTime lastModificationTime;
|
||||
|
||||
public string ItemName
|
||||
{
|
||||
get { return this.itemName; }
|
||||
set { this.itemName = value; }
|
||||
}
|
||||
|
||||
public int TotalItems
|
||||
{
|
||||
get { return this.totalItems; }
|
||||
set { this.totalItems = value; }
|
||||
}
|
||||
|
||||
public int TotalSizeMB
|
||||
{
|
||||
get { return this.totalSizeMB; }
|
||||
set { this.totalSizeMB = value; }
|
||||
}
|
||||
|
||||
public DateTime LastLogon
|
||||
{
|
||||
get { return this.lastLogon; }
|
||||
set { this.lastLogon = value; }
|
||||
}
|
||||
|
||||
public DateTime LastLogoff
|
||||
{
|
||||
get { return this.lastLogoff; }
|
||||
set { this.lastLogoff = value; }
|
||||
}
|
||||
|
||||
public DateTime LastAccessTime
|
||||
{
|
||||
get { return lastAccessTime; }
|
||||
set { lastAccessTime = value; }
|
||||
}
|
||||
|
||||
public DateTime LastModificationTime
|
||||
{
|
||||
get { return lastModificationTime; }
|
||||
set { lastModificationTime = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,403 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeMailbox
|
||||
{
|
||||
string displayName;
|
||||
string accountName;
|
||||
bool hideFromAddressBook;
|
||||
bool disabled;
|
||||
|
||||
string firstName;
|
||||
string initials;
|
||||
string lastName;
|
||||
|
||||
string jobTitle;
|
||||
string company;
|
||||
string department;
|
||||
string office;
|
||||
ExchangeAccount managerAccount;
|
||||
|
||||
string businessPhone;
|
||||
string fax;
|
||||
string homePhone;
|
||||
string mobilePhone;
|
||||
string pager;
|
||||
string webPage;
|
||||
|
||||
string address;
|
||||
string city;
|
||||
string state;
|
||||
string zip;
|
||||
string country;
|
||||
|
||||
string notes;
|
||||
|
||||
bool enableForwarding;
|
||||
ExchangeAccount forwardingAccount;
|
||||
bool doNotDeleteOnForward;
|
||||
|
||||
ExchangeAccount[] sendOnBehalfAccounts;
|
||||
ExchangeAccount[] acceptAccounts;
|
||||
ExchangeAccount[] rejectAccounts;
|
||||
|
||||
ExchangeAccount[] fullAccessAccounts;
|
||||
ExchangeAccount[] sendAsAccounts;
|
||||
|
||||
bool requireSenderAuthentication;
|
||||
int maxRecipients;
|
||||
int maxSendMessageSizeKB;
|
||||
int maxReceiveMessageSizeKB;
|
||||
|
||||
bool enablePOP;
|
||||
bool enableIMAP;
|
||||
bool enableOWA;
|
||||
bool enableMAPI;
|
||||
bool enableActiveSync;
|
||||
|
||||
int issueWarningKB;
|
||||
int prohibitSendKB;
|
||||
int prohibitSendReceiveKB;
|
||||
int keepDeletedItemsDays;
|
||||
|
||||
private string domain;
|
||||
|
||||
int totalItems;
|
||||
int totalSizeMB;
|
||||
DateTime lastLogon;
|
||||
DateTime lastLogoff;
|
||||
|
||||
|
||||
|
||||
public string DisplayName
|
||||
{
|
||||
get { return this.displayName; }
|
||||
set { this.displayName = value; }
|
||||
}
|
||||
|
||||
public string AccountName
|
||||
{
|
||||
get { return this.accountName; }
|
||||
set { this.accountName = value; }
|
||||
}
|
||||
|
||||
public bool HideFromAddressBook
|
||||
{
|
||||
get { return this.hideFromAddressBook; }
|
||||
set { this.hideFromAddressBook = value; }
|
||||
}
|
||||
|
||||
public bool Disabled
|
||||
{
|
||||
get { return this.disabled; }
|
||||
set { this.disabled = value; }
|
||||
}
|
||||
|
||||
public string FirstName
|
||||
{
|
||||
get { return this.firstName; }
|
||||
set { this.firstName = value; }
|
||||
}
|
||||
|
||||
public string Initials
|
||||
{
|
||||
get { return this.initials; }
|
||||
set { this.initials = value; }
|
||||
}
|
||||
|
||||
public string LastName
|
||||
{
|
||||
get { return this.lastName; }
|
||||
set { this.lastName = value; }
|
||||
}
|
||||
|
||||
public string JobTitle
|
||||
{
|
||||
get { return this.jobTitle; }
|
||||
set { this.jobTitle = value; }
|
||||
}
|
||||
|
||||
public string Company
|
||||
{
|
||||
get { return this.company; }
|
||||
set { this.company = value; }
|
||||
}
|
||||
|
||||
public string Department
|
||||
{
|
||||
get { return this.department; }
|
||||
set { this.department = value; }
|
||||
}
|
||||
|
||||
public string Office
|
||||
{
|
||||
get { return this.office; }
|
||||
set { this.office = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount ManagerAccount
|
||||
{
|
||||
get { return this.managerAccount; }
|
||||
set { this.managerAccount = value; }
|
||||
}
|
||||
|
||||
public string BusinessPhone
|
||||
{
|
||||
get { return this.businessPhone; }
|
||||
set { this.businessPhone = value; }
|
||||
}
|
||||
|
||||
public string Fax
|
||||
{
|
||||
get { return this.fax; }
|
||||
set { this.fax = value; }
|
||||
}
|
||||
|
||||
public string HomePhone
|
||||
{
|
||||
get { return this.homePhone; }
|
||||
set { this.homePhone = value; }
|
||||
}
|
||||
|
||||
public string MobilePhone
|
||||
{
|
||||
get { return this.mobilePhone; }
|
||||
set { this.mobilePhone = value; }
|
||||
}
|
||||
|
||||
public string Pager
|
||||
{
|
||||
get { return this.pager; }
|
||||
set { this.pager = value; }
|
||||
}
|
||||
|
||||
public string WebPage
|
||||
{
|
||||
get { return this.webPage; }
|
||||
set { this.webPage = value; }
|
||||
}
|
||||
|
||||
public string Address
|
||||
{
|
||||
get { return this.address; }
|
||||
set { this.address = value; }
|
||||
}
|
||||
|
||||
public string City
|
||||
{
|
||||
get { return this.city; }
|
||||
set { this.city = value; }
|
||||
}
|
||||
|
||||
public string State
|
||||
{
|
||||
get { return this.state; }
|
||||
set { this.state = value; }
|
||||
}
|
||||
|
||||
public string Zip
|
||||
{
|
||||
get { return this.zip; }
|
||||
set { this.zip = value; }
|
||||
}
|
||||
|
||||
public string Country
|
||||
{
|
||||
get { return this.country; }
|
||||
set { this.country = value; }
|
||||
}
|
||||
|
||||
public string Notes
|
||||
{
|
||||
get { return this.notes; }
|
||||
set { this.notes = value; }
|
||||
}
|
||||
|
||||
public bool EnableForwarding
|
||||
{
|
||||
get { return this.enableForwarding; }
|
||||
set { this.enableForwarding = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount ForwardingAccount
|
||||
{
|
||||
get { return this.forwardingAccount; }
|
||||
set { this.forwardingAccount = value; }
|
||||
}
|
||||
|
||||
public bool DoNotDeleteOnForward
|
||||
{
|
||||
get { return this.doNotDeleteOnForward; }
|
||||
set { this.doNotDeleteOnForward = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount[] SendOnBehalfAccounts
|
||||
{
|
||||
get { return this.sendOnBehalfAccounts; }
|
||||
set { this.sendOnBehalfAccounts = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount[] AcceptAccounts
|
||||
{
|
||||
get { return this.acceptAccounts; }
|
||||
set { this.acceptAccounts = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount[] RejectAccounts
|
||||
{
|
||||
get { return this.rejectAccounts; }
|
||||
set { this.rejectAccounts = value; }
|
||||
}
|
||||
|
||||
public int MaxRecipients
|
||||
{
|
||||
get { return this.maxRecipients; }
|
||||
set { this.maxRecipients = value; }
|
||||
}
|
||||
|
||||
public int MaxSendMessageSizeKB
|
||||
{
|
||||
get { return this.maxSendMessageSizeKB; }
|
||||
set { this.maxSendMessageSizeKB = value; }
|
||||
}
|
||||
|
||||
public int MaxReceiveMessageSizeKB
|
||||
{
|
||||
get { return this.maxReceiveMessageSizeKB; }
|
||||
set { this.maxReceiveMessageSizeKB = value; }
|
||||
}
|
||||
|
||||
public bool EnablePOP
|
||||
{
|
||||
get { return this.enablePOP; }
|
||||
set { this.enablePOP = value; }
|
||||
}
|
||||
|
||||
public bool EnableIMAP
|
||||
{
|
||||
get { return this.enableIMAP; }
|
||||
set { this.enableIMAP = value; }
|
||||
}
|
||||
|
||||
public bool EnableOWA
|
||||
{
|
||||
get { return this.enableOWA; }
|
||||
set { this.enableOWA = value; }
|
||||
}
|
||||
|
||||
public bool EnableMAPI
|
||||
{
|
||||
get { return this.enableMAPI; }
|
||||
set { this.enableMAPI = value; }
|
||||
}
|
||||
|
||||
public bool EnableActiveSync
|
||||
{
|
||||
get { return this.enableActiveSync; }
|
||||
set { this.enableActiveSync = value; }
|
||||
}
|
||||
|
||||
public int IssueWarningKB
|
||||
{
|
||||
get { return this.issueWarningKB; }
|
||||
set { this.issueWarningKB = value; }
|
||||
}
|
||||
|
||||
public int ProhibitSendKB
|
||||
{
|
||||
get { return this.prohibitSendKB; }
|
||||
set { this.prohibitSendKB = value; }
|
||||
}
|
||||
|
||||
public int ProhibitSendReceiveKB
|
||||
{
|
||||
get { return this.prohibitSendReceiveKB; }
|
||||
set { this.prohibitSendReceiveKB = value; }
|
||||
}
|
||||
|
||||
public int KeepDeletedItemsDays
|
||||
{
|
||||
get { return this.keepDeletedItemsDays; }
|
||||
set { this.keepDeletedItemsDays = value; }
|
||||
}
|
||||
|
||||
public string Domain
|
||||
{
|
||||
get { return domain; }
|
||||
set { domain = value; }
|
||||
}
|
||||
|
||||
public int TotalItems
|
||||
{
|
||||
get { return this.totalItems; }
|
||||
set { this.totalItems = value; }
|
||||
}
|
||||
|
||||
public int TotalSizeMB
|
||||
{
|
||||
get { return this.totalSizeMB; }
|
||||
set { this.totalSizeMB = value; }
|
||||
}
|
||||
|
||||
public DateTime LastLogon
|
||||
{
|
||||
get { return this.lastLogon; }
|
||||
set { this.lastLogon = value; }
|
||||
}
|
||||
|
||||
public DateTime LastLogoff
|
||||
{
|
||||
get { return this.lastLogoff; }
|
||||
set { this.lastLogoff = value; }
|
||||
}
|
||||
|
||||
public bool RequireSenderAuthentication
|
||||
{
|
||||
get { return requireSenderAuthentication; }
|
||||
set { requireSenderAuthentication = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount[] SendAsAccounts
|
||||
{
|
||||
get { return sendAsAccounts; }
|
||||
set { sendAsAccounts = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccount[] FullAccessAccounts
|
||||
{
|
||||
get { return fullAccessAccounts; }
|
||||
set { fullAccessAccounts = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,54 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeMailboxStatistics : BaseStatistics
|
||||
{
|
||||
public string DisplayName{ get; set; }
|
||||
public DateTime AccountCreated { get; set; }
|
||||
public string PrimaryEmailAddress { get; set; }
|
||||
public bool POPEnabled { get; set; }
|
||||
public bool IMAPEnabled { get; set; }
|
||||
public bool OWAEnabled { get; set; }
|
||||
public bool MAPIEnabled { get; set; }
|
||||
public bool ActiveSyncEnabled { get; set; }
|
||||
public int TotalItems { get; set; }
|
||||
public long TotalSize { get; set; }
|
||||
public long MaxSize { get; set; }
|
||||
public DateTime LastLogon { get; set; }
|
||||
public DateTime LastLogoff { get; set; }
|
||||
public bool Enabled { get; set; }
|
||||
public ExchangeAccountType MailboxType { get; set; }
|
||||
public bool BlackberryEnabled { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,58 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeMobileDevice
|
||||
{
|
||||
public MobileDeviceStatus Status { get; set; }
|
||||
public DateTime FirstSyncTime { get; set; }
|
||||
public DateTime LastPolicyUpdateTime { get; set; }
|
||||
public DateTime LastSyncAttemptTime { get; set; }
|
||||
public DateTime LastSuccessSync { get; set; }
|
||||
public string DeviceType { get; set; }
|
||||
public string DeviceID { get; set; }
|
||||
public string DeviceUserAgent { get; set; }
|
||||
public DateTime DeviceWipeSentTime { get; set; }
|
||||
public DateTime DeviceWipeRequestTime { get; set; }
|
||||
public DateTime DeviceWipeAckTime { get; set; }
|
||||
public int LastPingHeartbeat { get; set; }
|
||||
public string RecoveryPassword { get; set; }
|
||||
public string DeviceModel { get; set; }
|
||||
public string DeviceIMEI { get; set; }
|
||||
public string DeviceFriendlyName { get; set; }
|
||||
public string DeviceOS { get; set; }
|
||||
public string DeviceOSLanguage { get; set; }
|
||||
public string DevicePhoneNumber { get; set; }
|
||||
public string Id { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,127 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeOrganizationStatistics
|
||||
{
|
||||
private int allocatedMailboxes;
|
||||
private int createdMailboxes;
|
||||
|
||||
private int allocatedContacts;
|
||||
private int createdContacts;
|
||||
|
||||
private int allocatedDistributionLists;
|
||||
private int createdDistributionLists;
|
||||
|
||||
private int allocatedPublicFolders;
|
||||
private int createdPublicFolders;
|
||||
|
||||
private int allocatedDomains;
|
||||
private int createdDomains;
|
||||
|
||||
private int allocatedDiskSpace;
|
||||
private int usedDiskSpace;
|
||||
|
||||
public int AllocatedMailboxes
|
||||
{
|
||||
get { return this.allocatedMailboxes; }
|
||||
set { this.allocatedMailboxes = value; }
|
||||
}
|
||||
|
||||
public int CreatedMailboxes
|
||||
{
|
||||
get { return this.createdMailboxes; }
|
||||
set { this.createdMailboxes = value; }
|
||||
}
|
||||
|
||||
public int AllocatedContacts
|
||||
{
|
||||
get { return this.allocatedContacts; }
|
||||
set { this.allocatedContacts = value; }
|
||||
}
|
||||
|
||||
public int CreatedContacts
|
||||
{
|
||||
get { return this.createdContacts; }
|
||||
set { this.createdContacts = value; }
|
||||
}
|
||||
|
||||
public int AllocatedDistributionLists
|
||||
{
|
||||
get { return this.allocatedDistributionLists; }
|
||||
set { this.allocatedDistributionLists = value; }
|
||||
}
|
||||
|
||||
public int CreatedDistributionLists
|
||||
{
|
||||
get { return this.createdDistributionLists; }
|
||||
set { this.createdDistributionLists = value; }
|
||||
}
|
||||
|
||||
public int AllocatedPublicFolders
|
||||
{
|
||||
get { return this.allocatedPublicFolders; }
|
||||
set { this.allocatedPublicFolders = value; }
|
||||
}
|
||||
|
||||
public int CreatedPublicFolders
|
||||
{
|
||||
get { return this.createdPublicFolders; }
|
||||
set { this.createdPublicFolders = value; }
|
||||
}
|
||||
|
||||
public int AllocatedDomains
|
||||
{
|
||||
get { return this.allocatedDomains; }
|
||||
set { this.allocatedDomains = value; }
|
||||
}
|
||||
|
||||
public int CreatedDomains
|
||||
{
|
||||
get { return this.createdDomains; }
|
||||
set { this.createdDomains = value; }
|
||||
}
|
||||
|
||||
public int AllocatedDiskSpace
|
||||
{
|
||||
get { return this.allocatedDiskSpace; }
|
||||
set { this.allocatedDiskSpace = value; }
|
||||
}
|
||||
|
||||
public int UsedDiskSpace
|
||||
{
|
||||
get { return this.usedDiskSpace; }
|
||||
set { this.usedDiskSpace = 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.Providers.Exchange
|
||||
{
|
||||
/*public class ExchangeOrganizationsPaged
|
||||
{
|
||||
int recordsCount;
|
||||
ExchangeOrganization[] pageItems;
|
||||
|
||||
public int RecordsCount
|
||||
{
|
||||
get { return this.recordsCount; }
|
||||
set { this.recordsCount = value; }
|
||||
}
|
||||
|
||||
public ExchangeOrganization[] PageItems
|
||||
{
|
||||
get { return this.pageItems; }
|
||||
set { this.pageItems = 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.
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangePublicFolder
|
||||
{
|
||||
string name;
|
||||
string displayName;
|
||||
bool hideFromAddressBook;
|
||||
bool mailEnabled;
|
||||
|
||||
ExchangeAccount[] authorsAccounts;
|
||||
|
||||
ExchangeAccount[] acceptAccounts;
|
||||
ExchangeAccount[] rejectAccounts;
|
||||
bool requireSenderAuthentication;
|
||||
|
||||
public string Name
|
||||
{
|
||||
get { return this.name; }
|
||||
set { this.name = value; }
|
||||
}
|
||||
|
||||
public bool HideFromAddressBook
|
||||
{
|
||||
get { return this.hideFromAddressBook; }
|
||||
set { this.hideFromAddressBook = value; }
|
||||
}
|
||||
|
||||
public bool MailEnabled
|
||||
{
|
||||
get { return this.mailEnabled; }
|
||||
set { this.mailEnabled = value; }
|
||||
}
|
||||
|
||||
public WebsitePanel.Providers.HostedSolution.ExchangeAccount[] AuthorsAccounts
|
||||
{
|
||||
get { return this.authorsAccounts; }
|
||||
set { this.authorsAccounts = value; }
|
||||
}
|
||||
|
||||
public WebsitePanel.Providers.HostedSolution.ExchangeAccount[] AcceptAccounts
|
||||
{
|
||||
get { return this.acceptAccounts; }
|
||||
set { this.acceptAccounts = value; }
|
||||
}
|
||||
|
||||
public WebsitePanel.Providers.HostedSolution.ExchangeAccount[] RejectAccounts
|
||||
{
|
||||
get { return this.rejectAccounts; }
|
||||
set { this.rejectAccounts = value; }
|
||||
}
|
||||
|
||||
public string DisplayName
|
||||
{
|
||||
get { return this.displayName; }
|
||||
set { this.displayName = value; }
|
||||
}
|
||||
|
||||
public bool RequireSenderAuthentication
|
||||
{
|
||||
get { return requireSenderAuthentication; }
|
||||
set { requireSenderAuthentication = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,80 @@
|
|||
// 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.Collections.Generic;
|
||||
using System.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public class ExchangeStatisticsReport : BaseReport<ExchangeMailboxStatistics>
|
||||
{
|
||||
|
||||
public override string ToCSV()
|
||||
{
|
||||
StringBuilder mainBuilder = new StringBuilder();
|
||||
StringBuilder sb = null;
|
||||
AddCSVHeader(mainBuilder);
|
||||
foreach(ExchangeMailboxStatistics item in Items)
|
||||
{
|
||||
sb = new StringBuilder();
|
||||
sb.Append("\n");
|
||||
sb.AppendFormat("{0},", ToCsvString(item.TopResellerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.ResellerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.CustomerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.CustomerCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.HostingSpace));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.HostingSpaceCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationID));
|
||||
|
||||
sb.AppendFormat("{0},", ToCsvString(item.DisplayName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.AccountCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.PrimaryEmailAddress));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.MAPIEnabled));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OWAEnabled));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.ActiveSyncEnabled));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.POPEnabled));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.IMAPEnabled));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.TotalSize / 1024.0 / 1024.0));
|
||||
sb.AppendFormat("{0},", UnlimitedToCsvString(item.MaxSize == -1 ? (double)item.MaxSize : item.MaxSize / 1024.0 / 1024.0));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.LastLogon));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.Enabled, "Enabled", "Disabled"));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.MailboxType));
|
||||
sb.AppendFormat("{0}", ToCsvString(item.BlackberryEnabled));
|
||||
mainBuilder.Append(sb.ToString());
|
||||
}
|
||||
return mainBuilder.ToString();
|
||||
}
|
||||
|
||||
private void AddCSVHeader(StringBuilder sb)
|
||||
{
|
||||
sb.Append("Top Reseller,Reseller,Customer,Customer Created,Hosting Space,Hosting Space Created,Ogranization Name,Ogranization Created,Organization ID,Mailbox Display Name,Account Created,Primary E-mail Address,MAPI,OWA,ActiveSync,POP 3,IMAP,Mailbox Size (Mb),Max Mailbox Size (Mb),Last Logon,Enabled,Mailbox Type, BlackBerry");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,49 @@
|
|||
// 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 WebsitePanel.Providers.Common;
|
||||
using WebsitePanel.Providers.ResultObjects;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public interface IBlackBerry
|
||||
{
|
||||
ResultObject CreateBlackBerryUser(string primaryEmailAddress);
|
||||
|
||||
ResultObject DeleteBlackBerryUser(string primaryEmailAddress);
|
||||
|
||||
BlackBerryUserStatsResult GetBlackBerryUserStats(string primaryEmailAddress);
|
||||
|
||||
ResultObject SetActivationPasswordWithExpirationTime(string primaryEmailAddress, string password, int time);
|
||||
|
||||
ResultObject SetEmailActivationPassword(string primaryEmailAddress);
|
||||
|
||||
ResultObject DeleteDataFromBlackBerryDevice(string primaryEmailAddress);
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
// 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 WebsitePanel.Providers.Common;
|
||||
using WebsitePanel.Providers.ResultObjects;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public interface ICRM
|
||||
{
|
||||
OrganizationResult CreateOrganization(Guid organizationId, string organizationUniqueName, string organizationFriendlyName,
|
||||
string baseCurrencyCode, string baseCurrencyName, string baseCurrencySymbol,
|
||||
string initialUserDomainName, string initialUserFirstName, string initialUserLastName, string initialUserPrimaryEmail,
|
||||
string organizationCollation);
|
||||
|
||||
string[] GetSupportedCollationNames();
|
||||
|
||||
Currency[] GetCurrencyList();
|
||||
|
||||
ResultObject DeleteOrganization(Guid orgId);
|
||||
|
||||
UserResult CreateCRMUser(OrganizationUser user, string orgName, Guid organizationId, Guid baseUnitId);
|
||||
|
||||
CRMBusinessUnitsResult GetOrganizationBusinessUnits(Guid organizationId, string orgName);
|
||||
|
||||
CrmRolesResult GetAllCrmRoles(string orgName, Guid businessUnitId);
|
||||
|
||||
CrmRolesResult GetCrmUserRoles(string orgName, Guid userId);
|
||||
|
||||
ResultObject SetUserRoles(string orgName, Guid userId, Guid[] roles);
|
||||
|
||||
CrmUserResult GetCrmUserByDomainName(string domainName, string orgName);
|
||||
|
||||
CrmUserResult GetCrmUserById(Guid crmUserId, string orgName);
|
||||
|
||||
ResultObject ChangeUserState(bool disable, string orgName, Guid crmUserId);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,130 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public interface IExchangeServer
|
||||
{
|
||||
|
||||
bool CheckAccountCredentials(string username, string password);
|
||||
// Organizations
|
||||
|
||||
string CreateMailEnableUser(string upn, string organizationId, string organizationDistinguishedName, ExchangeAccountType accountType,
|
||||
string mailboxDatabase, string offlineAddressBook,
|
||||
string accountName, bool enablePOP, bool enableIMAP,
|
||||
bool enableOWA, bool enableMAPI, bool enableActiveSync,
|
||||
int issueWarningKB, int prohibitSendKB, int prohibitSendReceiveKB,
|
||||
int keepDeletedItemsDays);
|
||||
|
||||
Organization ExtendToExchangeOrganization(string organizationId, string securityGroup);
|
||||
string GetOABVirtualDirectory();
|
||||
Organization CreateOrganizationOfflineAddressBook(string organizationId, string securityGroup, string oabVirtualDir);
|
||||
void UpdateOrganizationOfflineAddressBook(string id);
|
||||
bool DeleteOrganization(string organizationId, string distinguishedName, string globalAddressList, string addressList, string offlineAddressBook, string securityGroup);
|
||||
void SetOrganizationStorageLimits(string organizationDistinguishedName, int issueWarningKB, int prohibitSendKB, int prohibitSendReceiveKB, int keepDeletedItemsDays);
|
||||
ExchangeItemStatistics[] GetMailboxesStatistics(string organizationDistinguishedName);
|
||||
|
||||
// Domains
|
||||
void AddAuthoritativeDomain(string domain);
|
||||
void DeleteAuthoritativeDomain(string domain);
|
||||
string[] GetAuthoritativeDomains();
|
||||
|
||||
// Mailboxes
|
||||
string CreateMailbox(string organizationId, string organizationDistinguishedName, string mailboxDatabase, string securityGroup, string offlineAddressBook, ExchangeAccountType accountType, string displayName, string accountName, string name, string domain, string password, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync,
|
||||
int issueWarningKB, int prohibitSendKB, int prohibitSendReceiveKB, int keepDeletedItemsDays);
|
||||
void DeleteMailbox(string accountName);
|
||||
void DisableMailbox(string id);
|
||||
ExchangeMailbox GetMailboxGeneralSettings(string accountName);
|
||||
void SetMailboxGeneralSettings(string accountName, string displayName, string password, bool hideFromAddressBook, bool disabled, string firstName, string initials, string lastName, string address, string city, string state, string zip, string country, string jobTitle, string company, string department, string office, string managerAccountName, string businessPhone, string fax, string homePhone, string mobilePhone, string pager, string webPage, string notes);
|
||||
ExchangeMailbox GetMailboxMailFlowSettings(string accountName);
|
||||
void SetMailboxMailFlowSettings(string accountName, bool enableForwarding, string forwardingAccountName, bool forwardToBoth, string[] sendOnBehalfAccounts, string[] acceptAccounts, string[] rejectAccounts, int maxRecipients, int maxSendMessageSizeKB, int maxReceiveMessageSizeKB, bool requireSenderAuthentication);
|
||||
ExchangeMailbox GetMailboxAdvancedSettings(string accountName);
|
||||
void SetMailboxAdvancedSettings(string organizationId, string accountName, bool enablePOP, bool enableIMAP, bool enableOWA, bool enableMAPI, bool enableActiveSync, int issueWarningKB, int prohibitSendKB, int prohibitSendReceiveKB, int keepDeletedItemsDays);
|
||||
ExchangeEmailAddress[] GetMailboxEmailAddresses(string accountName);
|
||||
void SetMailboxEmailAddresses(string accountName, string[] emailAddresses);
|
||||
void SetMailboxPrimaryEmailAddress(string accountName, string emailAddress);
|
||||
void SetMailboxPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] fullAccessAccounts);
|
||||
ExchangeMailbox GetMailboxPermissions(string organizationId, string accountName);
|
||||
ExchangeMailboxStatistics GetMailboxStatistics(string accountName);
|
||||
|
||||
// Contacts
|
||||
void CreateContact(string organizationId, string organizationDistinguishedName, string contactDisplayName, string contactAccountName, string contactEmail, string defaultOrganizationDomain);
|
||||
void DeleteContact(string accountName);
|
||||
ExchangeContact GetContactGeneralSettings(string accountName);
|
||||
void SetContactGeneralSettings(string accountName, string displayName, string email, bool hideFromAddressBook, string firstName, string initials, string lastName, string address, string city, string state, string zip, string country, string jobTitle, string company, string department, string office, string managerAccountName, string businessPhone, string fax, string homePhone, string mobilePhone, string pager, string webPage, string notes, int useMapiRichTextFormat, string defaultDomain);
|
||||
ExchangeContact GetContactMailFlowSettings(string accountName);
|
||||
void SetContactMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication);
|
||||
|
||||
// Distribution Lists
|
||||
void CreateDistributionList(string organizationId, string organizationDistinguishedName, string displayName, string accountName, string name, string domain, string managedBy);
|
||||
void DeleteDistributionList(string accountName);
|
||||
ExchangeDistributionList GetDistributionListGeneralSettings(string accountName);
|
||||
void SetDistributionListGeneralSettings(string accountName, string displayName, bool hideFromAddressBook, string managedBy, string[] memebers, string notes);
|
||||
void AddDistributionListMembers(string accountName, string[] memberAccounts);
|
||||
void RemoveDistributionListMembers(string accountName, string[] memberAccounts);
|
||||
ExchangeDistributionList GetDistributionListMailFlowSettings(string accountName);
|
||||
void SetDistributionListMailFlowSettings(string accountName, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication);
|
||||
ExchangeEmailAddress[] GetDistributionListEmailAddresses(string accountName);
|
||||
void SetDistributionListEmailAddresses(string accountName, string[] emailAddresses);
|
||||
void SetDistributionListPrimaryEmailAddress(string accountName, string emailAddress);
|
||||
ExchangeDistributionList GetDistributionListPermissions(string organizationId, string accountName);
|
||||
void SetDistributionListPermissions(string organizationId, string accountName, string[] sendAsAccounts, string[] sendOnBehalfAccounts);
|
||||
|
||||
// Public Folders
|
||||
void CreatePublicFolder(string organizationId, string securityGroup, string parentFolder, string folderName, bool mailEnabled, string accountName, string name, string domain);
|
||||
void DeletePublicFolder(string folder);
|
||||
void EnableMailPublicFolder(string organizationId, string folder, string accountName, string name, string domain);
|
||||
void DisableMailPublicFolder(string folder);
|
||||
ExchangePublicFolder GetPublicFolderGeneralSettings(string folder);
|
||||
void SetPublicFolderGeneralSettings(string folder, string newFolderName, string[] authorAccounts, bool hideFromAddressBook);
|
||||
ExchangePublicFolder GetPublicFolderMailFlowSettings(string folder);
|
||||
void SetPublicFolderMailFlowSettings(string folder, string[] acceptAccounts, string[] rejectAccounts, bool requireSenderAuthentication);
|
||||
ExchangeEmailAddress[] GetPublicFolderEmailAddresses(string folder);
|
||||
void SetPublicFolderEmailAddresses(string folder, string[] emailAddresses);
|
||||
void SetPublicFolderPrimaryEmailAddress(string folder, string emailAddress);
|
||||
ExchangeItemStatistics[] GetPublicFoldersStatistics(string[] folders);
|
||||
string[] GetPublicFoldersRecursive(string parent);
|
||||
long GetPublicFolderSize(string folder);
|
||||
|
||||
//ActiveSync
|
||||
void CreateOrganizationActiveSyncPolicy(string organizationId);
|
||||
ExchangeActiveSyncPolicy GetActiveSyncPolicy(string organizationId);
|
||||
void SetActiveSyncPolicy(string organizationId, bool allowNonProvisionableDevices, bool attachmentsEnabled,
|
||||
int maxAttachmentSizeKB, bool uncAccessEnabled, bool wssAccessEnabled, bool devicePasswordEnabled,
|
||||
bool alphanumericPasswordRequired, bool passwordRecoveryEnabled, bool deviceEncryptionEnabled,
|
||||
bool allowSimplePassword, int maxPasswordFailedAttempts, int minPasswordLength, int inactivityLockMin,
|
||||
int passwordExpirationDays, int passwordHistory, int refreshInterval);
|
||||
|
||||
//Mobile Devices
|
||||
ExchangeMobileDevice[] GetMobileDevices(string accountName);
|
||||
ExchangeMobileDevice GetMobileDevice(string id);
|
||||
void WipeDataFromDevice(string id);
|
||||
void CancelRemoteWipeRequest(string id);
|
||||
void RemoveDevice(string id);
|
||||
}
|
||||
}
|
|
@ -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.Providers.HostedSolution
|
||||
{
|
||||
public interface IOCSEdgeServer
|
||||
{
|
||||
void AddDomain(string domainName);
|
||||
void DeleteDomain(string domainName);
|
||||
}
|
||||
}
|
|
@ -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.Providers.HostedSolution
|
||||
{
|
||||
public interface IOCSServer
|
||||
{
|
||||
string CreateUser(string userUpn, string userDistinguishedName);
|
||||
OCSUser GetUserGeneralSettings(string instanceId);
|
||||
void SetUserGeneralSettings(string instanceId, bool enabledForFederation, bool enabledForPublicIMConectivity, bool archiveInternalCommunications, bool archiveFederatedCommunications, bool enabledForEnhancedPresence);
|
||||
void DeleteUser(string instanceId);
|
||||
void SetUserPrimaryUri(string instanceId, string userUpn);
|
||||
}
|
||||
}
|
|
@ -0,0 +1,62 @@
|
|||
// 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 WebsitePanel.Providers.ResultObjects;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public interface IOrganization
|
||||
{
|
||||
Organization CreateOrganization(string organizationId);
|
||||
|
||||
void DeleteOrganization(string organizationId);
|
||||
|
||||
void CreateUser(string organizationId, string loginName, string displayName, string upn, string password, bool enabled);
|
||||
|
||||
void DeleteUser(string loginName, string organizationId);
|
||||
|
||||
OrganizationUser GetUserGeneralSettings(string loginName, string organizationId);
|
||||
|
||||
void SetUserGeneralSettings(string organizationId, string accountName, string displayName, string password,
|
||||
bool hideFromAddressBook, bool disabled, bool locked, string firstName, string initials,
|
||||
string lastName,
|
||||
string address, string city, string state, string zip, string country,
|
||||
string jobTitle,
|
||||
string company, string department, string office, string managerAccountName,
|
||||
string businessPhone, string fax, string homePhone, string mobilePhone, string pager,
|
||||
string webPage, string notes, string externalEmail);
|
||||
|
||||
bool OrganizationExists(string organizationId);
|
||||
|
||||
void DeleteOrganizationDomain(string organizationDistinguishedName, string domain);
|
||||
|
||||
void CreateOrganizationDomain(string organizationDistinguishedName, string domain);
|
||||
|
||||
PasswordPolicyResult GetPasswordPolicy();
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
[Flags]
|
||||
public enum MailboxManagerActions
|
||||
{
|
||||
GeneralSettings = 0x01,
|
||||
MailFlowSettings = 0x02,
|
||||
AdvancedSettings = 0x04,
|
||||
EmailAddresses = 0x08
|
||||
}
|
||||
}
|
|
@ -0,0 +1,41 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public enum MobileDeviceStatus
|
||||
{
|
||||
OK,
|
||||
PendingWipe,
|
||||
WipeSuccessful
|
||||
}
|
||||
}
|
|
@ -0,0 +1,39 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class OCSConstants
|
||||
{
|
||||
public const string ProviderName = "OCSEdge";
|
||||
|
||||
public const string EDGEServicesData = "EDGEServicesData";
|
||||
|
||||
public const string PoolFQDN = "PoolFQDN";
|
||||
}
|
||||
}
|
|
@ -0,0 +1,64 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class OCSErrorCodes
|
||||
{
|
||||
public const string CANNOT_CHECK_IF_OCS_USER_EXISTS = "CANNOT_CHECK_IF_OCS_USER_EXISTS";
|
||||
|
||||
public const string USER_IS_ALREADY_OCS_USER = "USER_IS_ALREADY_OCS_USER";
|
||||
|
||||
public const string USER_FIRST_NAME_IS_NOT_SPECIFIED = "USER_FIRST_NAME_IS_NOT_SPECIFIED";
|
||||
|
||||
public const string USER_LAST_NAME_IS_NOT_SPECIFIED = "USER_LAST_NAME_IS_NOT_SPECIFIED";
|
||||
|
||||
public const string CANNOT_GET_USER_GENERAL_SETTINGS = "CANNOT_GET_USER_GENERAL_SETTINGS";
|
||||
|
||||
public const string CANNOT_ADD_OCS_USER_TO_DATABASE = "CANNOT_ADD_OCS_USER_TO_DATABASE";
|
||||
|
||||
public const string GET_OCS_USER_COUNT = "GET_OCS_USER_COUNT";
|
||||
|
||||
public const string GET_OCS_USERS = "GET_OCS_USERS";
|
||||
|
||||
public const string CANNOT_DELETE_OCS_USER_FROM_METADATA = "CANNOT_DELETE_OCS_USER_FROM_METADATA";
|
||||
|
||||
public const string CANNOT_DELETE_OCS_USER = "CANNOT_DELETE_OCS_USER";
|
||||
|
||||
public const string CANNOT_GET_OCS_PROXY = "CANNOT_GET_OCS_PROXY";
|
||||
|
||||
public const string USER_QUOTA_HAS_BEEN_REACHED = "USER_QUOTA_HAS_BEEN_REACHED";
|
||||
|
||||
public const string CANNOT_CHECK_QUOTA = "CANNOT_CHECK_QUOTA";
|
||||
|
||||
public const string CANNOT_SET_DEFAULT_SETTINGS = "CANNOT_SET_DEFAULT_SETTINGS";
|
||||
|
||||
public const string CANNOT_ADD_OCS_USER = "CANNOT_ADD_OCS_USER";
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class OCSUser
|
||||
{
|
||||
public string InstanceId { get; set; }
|
||||
public string PrimaryUri { get; set; }
|
||||
public string DisplayName { get; set; }
|
||||
public string PrimaryEmailAddress { get; set; }
|
||||
public int AccountID { get; set; }
|
||||
public bool EnabledForFederation { get; set; }
|
||||
public bool EnabledForPublicIMConectivity { get; set; }
|
||||
public bool ArchiveFederatedCommunications { get; set; }
|
||||
public bool ArchiveInternalCommunications { get; set; }
|
||||
public bool EnabledForEnhancedPresence { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,50 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class OCSUsersPaged
|
||||
{
|
||||
int recordsCount;
|
||||
OCSUser[] pageUsers;
|
||||
|
||||
public int RecordsCount
|
||||
{
|
||||
get { return recordsCount; }
|
||||
set { recordsCount = value; }
|
||||
}
|
||||
|
||||
public OCSUser[] PageUsers
|
||||
{
|
||||
get { return pageUsers; }
|
||||
set { pageUsers = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,229 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class Organization : ServiceProviderItem
|
||||
{
|
||||
#region Fields
|
||||
|
||||
private string distinguishedName;
|
||||
private string organizationId;
|
||||
private string defaultDomain;
|
||||
private string offlineAddressBook;
|
||||
private string addressList;
|
||||
private string globalAddressList;
|
||||
private string database;
|
||||
private string securityGroup;
|
||||
private int diskSpace;
|
||||
private int issueWarningKB;
|
||||
private int prohibitSendKB;
|
||||
private int prohibitSendReceiveKB;
|
||||
private int keepDeletedItemsDays;
|
||||
|
||||
|
||||
private Guid crmOrganizationId;
|
||||
private int crmOrgState;
|
||||
private int crmAdministratorId;
|
||||
private string crmLanguadgeCode;
|
||||
private string crmCollation;
|
||||
private string crmCurrency;
|
||||
private string crmUrl;
|
||||
|
||||
private int maxSharePointStorage;
|
||||
private int warningSharePointStorage;
|
||||
|
||||
#endregion
|
||||
|
||||
[Persistent]
|
||||
public int MaxSharePointStorage
|
||||
{
|
||||
get { return maxSharePointStorage; }
|
||||
set { maxSharePointStorage = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public int WarningSharePointStorage
|
||||
{
|
||||
get { return warningSharePointStorage; }
|
||||
set { warningSharePointStorage = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string CrmUrl
|
||||
{
|
||||
get { return crmUrl; }
|
||||
set { crmUrl = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public Guid CrmOrganizationId
|
||||
{
|
||||
get { return crmOrganizationId; }
|
||||
set { crmOrganizationId = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public int CrmOrgState
|
||||
{
|
||||
get { return crmOrgState; }
|
||||
set { crmOrgState = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public int CrmAdministratorId
|
||||
{
|
||||
get { return crmAdministratorId; }
|
||||
set { crmAdministratorId = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string CrmLanguadgeCode
|
||||
{
|
||||
get { return crmLanguadgeCode; }
|
||||
set { crmLanguadgeCode = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string CrmCollation
|
||||
{
|
||||
get { return crmCollation; }
|
||||
set { crmCollation = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string CrmCurrency
|
||||
{
|
||||
get { return crmCurrency; }
|
||||
set { crmCurrency = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string DistinguishedName
|
||||
{
|
||||
get { return distinguishedName; }
|
||||
set { distinguishedName = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string OrganizationId
|
||||
{
|
||||
get { return organizationId; }
|
||||
set { organizationId = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string DefaultDomain
|
||||
{
|
||||
set
|
||||
{
|
||||
defaultDomain = value;
|
||||
}
|
||||
get
|
||||
{
|
||||
return defaultDomain;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
[Persistent]
|
||||
public string OfflineAddressBook
|
||||
{
|
||||
get { return offlineAddressBook; }
|
||||
set { offlineAddressBook = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string AddressList
|
||||
{
|
||||
get { return addressList; }
|
||||
set { addressList = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string GlobalAddressList
|
||||
{
|
||||
get { return globalAddressList; }
|
||||
set { globalAddressList = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string Database
|
||||
{
|
||||
get { return database; }
|
||||
set { database = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public string SecurityGroup
|
||||
{
|
||||
get { return securityGroup; }
|
||||
set { securityGroup = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public int DiskSpace
|
||||
{
|
||||
get { return diskSpace; }
|
||||
set { diskSpace = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public int IssueWarningKB
|
||||
{
|
||||
get { return issueWarningKB; }
|
||||
set { issueWarningKB = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public int ProhibitSendKB
|
||||
{
|
||||
get { return prohibitSendKB; }
|
||||
set { prohibitSendKB = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public int ProhibitSendReceiveKB
|
||||
{
|
||||
get { return prohibitSendReceiveKB; }
|
||||
set { prohibitSendReceiveKB = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public int KeepDeletedItemsDays
|
||||
{
|
||||
get { return keepDeletedItemsDays; }
|
||||
set { keepDeletedItemsDays = value; }
|
||||
}
|
||||
|
||||
[Persistent]
|
||||
public bool IsOCSOrganization { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,34 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class OrganizationDomain : ServiceProviderItem
|
||||
{
|
||||
}
|
||||
}
|
|
@ -0,0 +1,76 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class OrganizationDomainName
|
||||
{
|
||||
int organizationDomainId;
|
||||
int itemId;
|
||||
int domainId;
|
||||
string domainName;
|
||||
bool isHost;
|
||||
bool isDefault;
|
||||
|
||||
public bool IsHost
|
||||
{
|
||||
get { return isHost; }
|
||||
set { isHost = value; }
|
||||
}
|
||||
|
||||
public bool IsDefault
|
||||
{
|
||||
get { return isDefault; }
|
||||
set { isDefault = value; }
|
||||
}
|
||||
|
||||
public int DomainId
|
||||
{
|
||||
get { return domainId; }
|
||||
set { domainId = value; }
|
||||
}
|
||||
|
||||
public int OrganizationDomainId
|
||||
{
|
||||
get { return organizationDomainId; }
|
||||
set { organizationDomainId = value; }
|
||||
}
|
||||
|
||||
public int ItemId
|
||||
{
|
||||
get { return itemId; }
|
||||
set { itemId = value; }
|
||||
}
|
||||
|
||||
public string DomainName
|
||||
{
|
||||
get { return domainName; }
|
||||
set { domainName = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class OrganizationsPaged
|
||||
{
|
||||
int recordsCount;
|
||||
Organization[] pageItems;
|
||||
|
||||
public int RecordsCount
|
||||
{
|
||||
get { return this.recordsCount; }
|
||||
set { this.recordsCount = value; }
|
||||
}
|
||||
|
||||
public Organization[] PageItems
|
||||
{
|
||||
get { return this.pageItems; }
|
||||
set { this.pageItems = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,178 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class OrganizationStatistics
|
||||
{
|
||||
private int allocatedUsers;
|
||||
private int createdUsers;
|
||||
|
||||
private int allocatedDomains;
|
||||
private int createdDomains;
|
||||
|
||||
private int allocatedMailboxes;
|
||||
private int createdMailboxes;
|
||||
|
||||
private int allocatedContacts;
|
||||
private int createdContacts;
|
||||
|
||||
private int allocatedDistributionLists;
|
||||
private int createdDistributionLists;
|
||||
|
||||
private int allocatedPublicFolders;
|
||||
private int createdPublicFolders;
|
||||
|
||||
private int allocatedDiskSpace;
|
||||
private int usedDiskSpace;
|
||||
|
||||
private int allocatedSharePointSiteCollections;
|
||||
private int createdSharePointSiteCollections;
|
||||
|
||||
private int createdCRMUsers;
|
||||
private int allocatedCRMUsers;
|
||||
|
||||
|
||||
public int CreatedCRMUsers
|
||||
{
|
||||
get { return createdCRMUsers; }
|
||||
set { createdCRMUsers = value; }
|
||||
}
|
||||
|
||||
public int AllocatedCRMUsers
|
||||
{
|
||||
get { return allocatedCRMUsers; }
|
||||
set { allocatedCRMUsers = value; }
|
||||
}
|
||||
|
||||
public int AllocatedUsers
|
||||
{
|
||||
get { return allocatedUsers; }
|
||||
set { allocatedUsers = value; }
|
||||
}
|
||||
|
||||
public int CreatedUsers
|
||||
{
|
||||
get { return createdUsers; }
|
||||
set { createdUsers = value; }
|
||||
}
|
||||
|
||||
public int AllocatedMailboxes
|
||||
{
|
||||
get { return allocatedMailboxes; }
|
||||
set { allocatedMailboxes = value; }
|
||||
}
|
||||
|
||||
public int CreatedMailboxes
|
||||
{
|
||||
get { return createdMailboxes; }
|
||||
set { createdMailboxes = value; }
|
||||
}
|
||||
|
||||
public int AllocatedContacts
|
||||
{
|
||||
get { return allocatedContacts; }
|
||||
set { allocatedContacts = value; }
|
||||
}
|
||||
|
||||
public int CreatedContacts
|
||||
{
|
||||
get { return createdContacts; }
|
||||
set { createdContacts = value; }
|
||||
}
|
||||
|
||||
public int AllocatedDistributionLists
|
||||
{
|
||||
get { return allocatedDistributionLists; }
|
||||
set { allocatedDistributionLists = value; }
|
||||
}
|
||||
|
||||
public int CreatedDistributionLists
|
||||
{
|
||||
get { return createdDistributionLists; }
|
||||
set { createdDistributionLists = value; }
|
||||
}
|
||||
|
||||
public int AllocatedPublicFolders
|
||||
{
|
||||
get { return allocatedPublicFolders; }
|
||||
set { allocatedPublicFolders = value; }
|
||||
}
|
||||
|
||||
public int CreatedPublicFolders
|
||||
{
|
||||
get { return createdPublicFolders; }
|
||||
set { createdPublicFolders = value; }
|
||||
}
|
||||
|
||||
public int AllocatedDomains
|
||||
{
|
||||
get { return allocatedDomains; }
|
||||
set { allocatedDomains = value; }
|
||||
}
|
||||
|
||||
public int CreatedDomains
|
||||
{
|
||||
get { return createdDomains; }
|
||||
set { createdDomains = value; }
|
||||
}
|
||||
|
||||
public int AllocatedDiskSpace
|
||||
{
|
||||
get { return allocatedDiskSpace; }
|
||||
set { allocatedDiskSpace = value; }
|
||||
}
|
||||
|
||||
public int UsedDiskSpace
|
||||
{
|
||||
get { return usedDiskSpace; }
|
||||
set { usedDiskSpace = value; }
|
||||
}
|
||||
|
||||
public int AllocatedSharePointSiteCollections
|
||||
{
|
||||
get { return allocatedSharePointSiteCollections; }
|
||||
set { allocatedSharePointSiteCollections = value; }
|
||||
}
|
||||
|
||||
public int CreatedSharePointSiteCollections
|
||||
{
|
||||
get { return createdSharePointSiteCollections; }
|
||||
set { createdSharePointSiteCollections = value; }
|
||||
}
|
||||
|
||||
public int CreatedBlackBerryUsers { get; set; }
|
||||
public int AllocatedBlackBerryUsers { get; set; }
|
||||
|
||||
|
||||
public int CreatedOCSUsers { get; set; }
|
||||
public int AllocatedOCSUsers { get; set; }
|
||||
|
||||
}
|
||||
}
|
||||
|
|
@ -0,0 +1,71 @@
|
|||
// 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.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public class OrganizationStatisticsReport : BaseReport<OrganizationStatisticsRepotItem>
|
||||
{
|
||||
public override string ToCSV()
|
||||
{
|
||||
StringBuilder mainBuilder = new StringBuilder();
|
||||
|
||||
AddCSVHeader(mainBuilder);
|
||||
foreach (OrganizationStatisticsRepotItem item in Items)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("\n");
|
||||
sb.AppendFormat("{0},", ToCsvString(item.TopResellerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.ResellerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.CustomerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.CustomerCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.HostingSpace));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.HostingSpaceCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationID));
|
||||
|
||||
sb.AppendFormat("{0},", ToCsvString(item.TotalMailboxes));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.TotalMailboxesSize / 1024.0 / 1024.0));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.TotalPublicFoldersSize / 1024.0 / 1024.0));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.TotalSharePointSiteCollections));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.TotalSharePointSiteCollectionsSize / 1024.0 / 1024.0));
|
||||
sb.AppendFormat("{0}", ToCsvString(item.TotalCRMUsers));
|
||||
|
||||
mainBuilder.Append(sb.ToString());
|
||||
}
|
||||
return mainBuilder.ToString();
|
||||
}
|
||||
|
||||
private static void AddCSVHeader(StringBuilder sb)
|
||||
{
|
||||
sb.Append("Top Reseller,Reseller,Customer,Customer Created,Hosting Space,Hosting Space Created,Ogranization Name,Ogranization Created,Organization ID,Total mailboxes,Total mailboxes size(Mb),Total Public Folders size(Mb),Total SharePoint site collections,Total SharePoint site collections size(Mb),Total CRM users");
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,70 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class OrganizationStatisticsRepotItem : BaseStatistics
|
||||
{
|
||||
public int TotalMailboxes
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public long TotalMailboxesSize
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public long TotalPublicFoldersSize
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public int TotalSharePointSiteCollections
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public long TotalSharePointSiteCollectionsSize
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public int TotalCRMUsers
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,274 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
|
||||
|
||||
public class OrganizationUser
|
||||
{
|
||||
private int accountId;
|
||||
private int itemId;
|
||||
private int packageId;
|
||||
|
||||
private string primaryEmailAddress;
|
||||
private string accountPassword;
|
||||
private string samAccountName;
|
||||
private string displayName;
|
||||
private string accountName;
|
||||
private string firstName;
|
||||
private string initials;
|
||||
private string lastName;
|
||||
private string jobTitle;
|
||||
private string company;
|
||||
private string department;
|
||||
private string office;
|
||||
private string businessPhone;
|
||||
private string fax;
|
||||
private string homePhone;
|
||||
private string mobilePhone;
|
||||
private string pager;
|
||||
private string webPage;
|
||||
private string address;
|
||||
private string city;
|
||||
private string state;
|
||||
private string zip;
|
||||
private string country;
|
||||
private string notes;
|
||||
private string domainUserName;
|
||||
|
||||
private bool disabled;
|
||||
ExchangeAccountType accountType;
|
||||
|
||||
private OrganizationUser manager;
|
||||
private Guid crmUserId;
|
||||
|
||||
|
||||
public Guid CrmUserId
|
||||
{
|
||||
get { return crmUserId; }
|
||||
set { crmUserId = value; }
|
||||
}
|
||||
|
||||
|
||||
public string DomainUserName
|
||||
{
|
||||
get { return domainUserName; }
|
||||
set { domainUserName = value; }
|
||||
}
|
||||
|
||||
public ExchangeAccountType AccountType
|
||||
{
|
||||
get { return accountType; }
|
||||
set { accountType = value; }
|
||||
}
|
||||
|
||||
public OrganizationUser Manager
|
||||
{
|
||||
get { return manager; }
|
||||
set { manager = value; }
|
||||
}
|
||||
|
||||
public bool Disabled
|
||||
{
|
||||
get { return disabled;}
|
||||
set { disabled = value;}
|
||||
}
|
||||
|
||||
public string FirstName
|
||||
{
|
||||
get { return firstName; }
|
||||
set { firstName = value; }
|
||||
}
|
||||
|
||||
public string Initials
|
||||
{
|
||||
get { return initials; }
|
||||
set { initials = value; }
|
||||
}
|
||||
|
||||
public string LastName
|
||||
{
|
||||
get { return lastName; }
|
||||
set { lastName = value; }
|
||||
}
|
||||
|
||||
public string JobTitle
|
||||
{
|
||||
get { return jobTitle; }
|
||||
set { jobTitle = value; }
|
||||
}
|
||||
|
||||
public string Company
|
||||
{
|
||||
get { return company; }
|
||||
set { company = value; }
|
||||
}
|
||||
|
||||
public string Department
|
||||
{
|
||||
get { return department; }
|
||||
set { department = value; }
|
||||
}
|
||||
|
||||
public string Office
|
||||
{
|
||||
get { return office; }
|
||||
set { office = value; }
|
||||
}
|
||||
|
||||
public string BusinessPhone
|
||||
{
|
||||
get { return businessPhone; }
|
||||
set { businessPhone = value; }
|
||||
}
|
||||
|
||||
public string Fax
|
||||
{
|
||||
get { return fax; }
|
||||
set { fax = value; }
|
||||
}
|
||||
|
||||
public string HomePhone
|
||||
{
|
||||
get { return homePhone; }
|
||||
set { homePhone = value; }
|
||||
}
|
||||
|
||||
public string MobilePhone
|
||||
{
|
||||
get { return mobilePhone; }
|
||||
set { mobilePhone = value; }
|
||||
}
|
||||
|
||||
public string Pager
|
||||
{
|
||||
get { return pager; }
|
||||
set { pager = value; }
|
||||
}
|
||||
|
||||
public string WebPage
|
||||
{
|
||||
get { return webPage; }
|
||||
set { webPage = value; }
|
||||
}
|
||||
|
||||
public string Address
|
||||
{
|
||||
get { return address; }
|
||||
set { address = value; }
|
||||
}
|
||||
|
||||
public string City
|
||||
{
|
||||
get { return city; }
|
||||
set { city = value; }
|
||||
}
|
||||
|
||||
public string State
|
||||
{
|
||||
get { return state; }
|
||||
set { state = value; }
|
||||
}
|
||||
|
||||
public string Zip
|
||||
{
|
||||
get { return zip; }
|
||||
set { zip = value; }
|
||||
}
|
||||
|
||||
public string Country
|
||||
{
|
||||
get { return country; }
|
||||
set { country = value; }
|
||||
}
|
||||
|
||||
public string Notes
|
||||
{
|
||||
get { return notes; }
|
||||
set { notes = value; }
|
||||
}
|
||||
|
||||
public int AccountId
|
||||
{
|
||||
get { return accountId; }
|
||||
set { accountId = value; }
|
||||
}
|
||||
|
||||
public int ItemId
|
||||
{
|
||||
get { return itemId; }
|
||||
set { itemId = value; }
|
||||
}
|
||||
|
||||
public int PackageId
|
||||
{
|
||||
get { return packageId; }
|
||||
set { packageId = value; }
|
||||
}
|
||||
|
||||
public string AccountName
|
||||
{
|
||||
get { return accountName; }
|
||||
set { accountName = value; }
|
||||
}
|
||||
|
||||
public string SamAccountName
|
||||
{
|
||||
get { return samAccountName; }
|
||||
set { samAccountName = value; }
|
||||
}
|
||||
|
||||
public string DisplayName
|
||||
{
|
||||
get { return displayName; }
|
||||
set { displayName = value; }
|
||||
}
|
||||
|
||||
public string PrimaryEmailAddress
|
||||
{
|
||||
get { return primaryEmailAddress; }
|
||||
set { primaryEmailAddress = value; }
|
||||
}
|
||||
|
||||
|
||||
public string AccountPassword
|
||||
{
|
||||
get { return accountPassword; }
|
||||
set { accountPassword = value; }
|
||||
}
|
||||
|
||||
public string ExternalEmail { get; set; }
|
||||
|
||||
public string DistinguishedName { get; set; }
|
||||
|
||||
public bool Locked { get; set; }
|
||||
}
|
||||
}
|
|
@ -0,0 +1,48 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class OrganizationUsersPaged
|
||||
{
|
||||
int recordsCount;
|
||||
OrganizationUser[] pageUsers;
|
||||
|
||||
public int RecordsCount
|
||||
{
|
||||
get { return recordsCount; }
|
||||
set { recordsCount = value; }
|
||||
}
|
||||
|
||||
public OrganizationUser[] PageUsers
|
||||
{
|
||||
get { return pageUsers; }
|
||||
set { pageUsers = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
// 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.Providers.HostedSolution
|
||||
{
|
||||
public class PasswordPolicy
|
||||
{
|
||||
public int MinLength { get; set; }
|
||||
public bool IsComplexityEnable { get; set; }
|
||||
}
|
||||
}
|
|
@ -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;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public class SharePointStatistics : BaseStatistics
|
||||
{
|
||||
public string SiteCollectionUrl
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public string SiteCollectionOwner
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public DateTime SiteCollectionCreated
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public long SiteCollectionQuota
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
public long SiteCollectionSize
|
||||
{
|
||||
get;
|
||||
set;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
}
|
|
@ -0,0 +1,71 @@
|
|||
// 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.Text;
|
||||
|
||||
namespace WebsitePanel.Providers.HostedSolution
|
||||
{
|
||||
public class SharePointStatisticsReport : BaseReport<SharePointStatistics>
|
||||
{
|
||||
public override string ToCSV()
|
||||
{
|
||||
StringBuilder mainBuilder = new StringBuilder();
|
||||
|
||||
AddCSVHeader(mainBuilder);
|
||||
foreach (SharePointStatistics item in Items)
|
||||
{
|
||||
StringBuilder sb = new StringBuilder();
|
||||
sb.Append("\n");
|
||||
sb.AppendFormat("{0},", ToCsvString(item.TopResellerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.ResellerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.CustomerName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.CustomerCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.HostingSpace));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.HostingSpaceCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationName));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationCreated));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.OrganizationID));
|
||||
|
||||
sb.AppendFormat("{0},", ToCsvString(item.SiteCollectionUrl));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.SiteCollectionOwner));
|
||||
sb.AppendFormat("{0},", ToCsvString(item.SiteCollectionCreated));
|
||||
sb.AppendFormat("{0},", item.SiteCollectionQuota != 0 && item.SiteCollectionQuota != -1 ? ToCsvString(item.SiteCollectionQuota): "Unlimited");
|
||||
sb.AppendFormat("{0}", ToCsvString(item.SiteCollectionSize / 1024.0 / 1024.0));
|
||||
mainBuilder.Append(sb.ToString());
|
||||
|
||||
}
|
||||
return mainBuilder.ToString();
|
||||
|
||||
}
|
||||
|
||||
private static void AddCSVHeader(StringBuilder sb)
|
||||
{
|
||||
sb.Append("Top Reseller,Reseller,Customer,Customer Created,Hosting Space,Hosting Space Created,Ogranization Name,Ogranization Created,Organization ID,Site Collection URL,Site collection owner,Site collection created,Site collection quota(Mb),Site collection size(Mb)");
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue