Released windows auth, connect to ES.Services.
This commit is contained in:
parent
2569e55609
commit
d29c347ff4
294 changed files with 329583 additions and 2315 deletions
|
@ -0,0 +1,27 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
public class AppConnectionStringsElement : ConfigurationElement
|
||||
{
|
||||
private const string ConnectionStringKey = "key";
|
||||
private const string ConnectionStringValue = "connectionString";
|
||||
|
||||
public const string WebdavConnectionStringKey = "WebDavServerConnectionString";
|
||||
public const string LdapConnectionStringKey = "LdapServerConnectionString";
|
||||
|
||||
[ConfigurationProperty(ConnectionStringKey, IsKey = true, IsRequired = true)]
|
||||
public string Key
|
||||
{
|
||||
get { return (string) this[ConnectionStringKey]; }
|
||||
set { this[ConnectionStringKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(ConnectionStringValue, IsKey = true, IsRequired = true)]
|
||||
public string ConnectionString
|
||||
{
|
||||
get { return (string) this[ConnectionStringValue]; }
|
||||
set { this[ConnectionStringValue] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
[ConfigurationCollection(typeof (AppConnectionStringsElement))]
|
||||
public class AppConnectionStringsElementCollection : ConfigurationElementCollection
|
||||
{
|
||||
protected override ConfigurationElement CreateNewElement()
|
||||
{
|
||||
return new AppConnectionStringsElement();
|
||||
}
|
||||
|
||||
protected override object GetElementKey(ConfigurationElement element)
|
||||
{
|
||||
return ((AppConnectionStringsElement) element).Key;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
public class ApplicationNameElement : ConfigurationElement
|
||||
{
|
||||
private const string ValueKey = "value";
|
||||
|
||||
[ConfigurationProperty(ValueKey, IsKey = true, IsRequired = true)]
|
||||
public string Value
|
||||
{
|
||||
get { return (string)this[ValueKey]; }
|
||||
set { this[ValueKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
public class ElementsRenderingElement : ConfigurationElement
|
||||
{
|
||||
private const string DefaultCountKey = "defaultCount";
|
||||
private const string AddElementsCountKey = "addElementsCount";
|
||||
|
||||
[ConfigurationProperty(DefaultCountKey, IsKey = true, IsRequired = true, DefaultValue = 30)]
|
||||
public int DefaultCount
|
||||
{
|
||||
get { return (int)this[DefaultCountKey]; }
|
||||
set { this[DefaultCountKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(AddElementsCountKey, IsKey = true, IsRequired = true, DefaultValue = 20)]
|
||||
public int AddElementsCount
|
||||
{
|
||||
get { return (int)this[AddElementsCountKey]; }
|
||||
set { this[AddElementsCountKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
public class FileIconsElement : ConfigurationElement
|
||||
{
|
||||
private const string ExtensionKey = "extension";
|
||||
private const string PathKey = "path";
|
||||
|
||||
[ConfigurationProperty(ExtensionKey, IsKey = true, IsRequired = true)]
|
||||
public string Extension
|
||||
{
|
||||
get { return (string) this[ExtensionKey]; }
|
||||
set { this[ExtensionKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(PathKey, IsKey = true, IsRequired = true)]
|
||||
public string Path
|
||||
{
|
||||
get { return (string) this[PathKey]; }
|
||||
set { this[PathKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,27 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
[ConfigurationCollection(typeof (FileIconsElement))]
|
||||
public class FileIconsElementCollection : ConfigurationElementCollection
|
||||
{
|
||||
private const string DefaultPathKey = "defaultPath";
|
||||
|
||||
[ConfigurationProperty(DefaultPathKey, IsRequired = false, DefaultValue = "/")]
|
||||
public string DefaultPath
|
||||
{
|
||||
get { return (string) this[DefaultPathKey]; }
|
||||
set { this[DefaultPathKey] = value; }
|
||||
}
|
||||
|
||||
protected override ConfigurationElement CreateNewElement()
|
||||
{
|
||||
return new FileIconsElement();
|
||||
}
|
||||
|
||||
protected override object GetElementKey(ConfigurationElement element)
|
||||
{
|
||||
return ((FileIconsElement) element).Extension;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
public class OfficeOnlineElement : ConfigurationElement
|
||||
{
|
||||
private const string ExtensionKey = "extension";
|
||||
|
||||
[ConfigurationProperty(ExtensionKey, IsKey = true, IsRequired = true)]
|
||||
public string Extension
|
||||
{
|
||||
get { return this[ExtensionKey].ToString(); }
|
||||
set { this[ExtensionKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,36 @@
|
|||
using System;
|
||||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
[ConfigurationCollection(typeof(OfficeOnlineElement))]
|
||||
public class OfficeOnlineElementCollection : ConfigurationElementCollection
|
||||
{
|
||||
private const string UrlKey = "url";
|
||||
private const string IsEnabledKey = "isEnabled";
|
||||
|
||||
[ConfigurationProperty(UrlKey, IsKey = true, IsRequired = true)]
|
||||
public string Url
|
||||
{
|
||||
get { return this[UrlKey].ToString(); }
|
||||
set { this[UrlKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(IsEnabledKey, IsKey = true, IsRequired = true, DefaultValue = false)]
|
||||
public bool IsEnabled
|
||||
{
|
||||
get { return Boolean.Parse(this[IsEnabledKey].ToString()); }
|
||||
set { this[IsEnabledKey] = value; }
|
||||
}
|
||||
|
||||
protected override ConfigurationElement CreateNewElement()
|
||||
{
|
||||
return new OfficeOnlineElement();
|
||||
}
|
||||
|
||||
protected override object GetElementKey(ConfigurationElement element)
|
||||
{
|
||||
return ((OfficeOnlineElement)element).Extension;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,32 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
public class Rfc2898CryptographyElement : ConfigurationElement
|
||||
{
|
||||
private const string PasswordHashKey = "passwordHash";
|
||||
private const string SaltKeyKey = "saltKey";
|
||||
private const string ViKeyKey = "VIKey";
|
||||
|
||||
[ConfigurationProperty(PasswordHashKey, IsKey = true, IsRequired = true, DefaultValue = "66640c02dcdec47fb220539c1d47d80da5a98cd9c9fcebc317512db29a947e5c54667a85fdfdecfbde17ab76375bb9309e47025f7bb19a2c5df0c1be039d1c3d")]
|
||||
public string PasswordHash
|
||||
{
|
||||
get { return this[PasswordHashKey].ToString(); }
|
||||
set { this[PasswordHashKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(SaltKeyKey, IsKey = true, IsRequired = true, DefaultValue = "f4f3397d550320975770be09e8f1510b1971b4876658ebb960a4b2df5b0d95059e8ac2c64eb8c0e0614df93bfbc31ece0f33121fc9c7bc9219db583eab3fee06")]
|
||||
public string SaltKey
|
||||
{
|
||||
get { return this[SaltKeyKey].ToString(); }
|
||||
set { this[SaltKeyKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(ViKeyKey, IsKey = true, IsRequired = true, DefaultValue = "@1B2c3D4e5F6g7H8")]
|
||||
public string VIKey
|
||||
{
|
||||
get { return this[ViKeyKey].ToString(); }
|
||||
set { this[ViKeyKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,29 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
public class SessionKeysElement : ConfigurationElement
|
||||
{
|
||||
private const string KeyKey = "key";
|
||||
private const string ValueKey = "value";
|
||||
|
||||
public const string AccountInfoKey = "AccountInfoSessionKey";
|
||||
public const string WebDavManagerKey = "WebDavManagerSessionKey";
|
||||
public const string ResourseRenderCountKey = "ResourseRenderCountSessionKey";
|
||||
public const string ItemIdSessionKey = "ItemId";
|
||||
|
||||
[ConfigurationProperty(KeyKey, IsKey = true, IsRequired = true)]
|
||||
public string Key
|
||||
{
|
||||
get { return (string) this[KeyKey]; }
|
||||
set { this[KeyKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(ValueKey, IsKey = true, IsRequired = true)]
|
||||
public string Value
|
||||
{
|
||||
get { return (string) this[ValueKey]; }
|
||||
set { this[ValueKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
[ConfigurationCollection(typeof (SessionKeysElement))]
|
||||
public class SessionKeysElementCollection : ConfigurationElementCollection
|
||||
{
|
||||
protected override ConfigurationElement CreateNewElement()
|
||||
{
|
||||
return new SessionKeysElement();
|
||||
}
|
||||
|
||||
protected override object GetElementKey(ConfigurationElement element)
|
||||
{
|
||||
return ((SessionKeysElement) element).Key;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,16 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
public class UserDomainElement : ConfigurationElement
|
||||
{
|
||||
private const string ValueKey = "value";
|
||||
|
||||
[ConfigurationProperty(ValueKey, IsKey = true, IsRequired = true)]
|
||||
public string Value
|
||||
{
|
||||
get { return (string) this[ValueKey]; }
|
||||
set { this[ValueKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,82 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
public class WebDavExplorerConfigurationSettingsSection : ConfigurationSection
|
||||
{
|
||||
private const string UserDomainKey = "userDomain";
|
||||
private const string AppName = "applicationName";
|
||||
private const string WebsitePanelConstantUserKey = "websitePanelConstantUser";
|
||||
private const string ElementsRenderingKey = "elementsRendering";
|
||||
private const string Rfc2898CryptographyKey = "rfc2898Cryptography";
|
||||
private const string ConnectionStringsKey = "appConnectionStrings";
|
||||
private const string SessionKeysKey = "sessionKeys";
|
||||
private const string FileIconsKey = "fileIcons";
|
||||
private const string OfficeOnlineKey = "officeOnline";
|
||||
|
||||
public const string SectionName = "webDavExplorerConfigurationSettings";
|
||||
|
||||
[ConfigurationProperty(UserDomainKey, IsRequired = true)]
|
||||
public UserDomainElement UserDomain
|
||||
{
|
||||
get { return (UserDomainElement) this[UserDomainKey]; }
|
||||
set { this[UserDomainKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(AppName, IsRequired = true)]
|
||||
public ApplicationNameElement ApplicationName
|
||||
{
|
||||
get { return (ApplicationNameElement)this[AppName]; }
|
||||
set { this[AppName] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(WebsitePanelConstantUserKey, IsRequired = true)]
|
||||
public WebsitePanelConstantUserElement WebsitePanelConstantUser
|
||||
{
|
||||
get { return (WebsitePanelConstantUserElement)this[WebsitePanelConstantUserKey]; }
|
||||
set { this[WebsitePanelConstantUserKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(ElementsRenderingKey, IsRequired = true)]
|
||||
public ElementsRenderingElement ElementsRendering
|
||||
{
|
||||
get { return (ElementsRenderingElement)this[ElementsRenderingKey]; }
|
||||
set { this[ElementsRenderingKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(Rfc2898CryptographyKey, IsRequired = true)]
|
||||
public Rfc2898CryptographyElement Rfc2898Cryptography
|
||||
{
|
||||
get { return (Rfc2898CryptographyElement)this[Rfc2898CryptographyKey]; }
|
||||
set { this[Rfc2898CryptographyKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(ConnectionStringsKey, IsDefaultCollection = false)]
|
||||
public AppConnectionStringsElementCollection ConnectionStrings
|
||||
{
|
||||
get { return (AppConnectionStringsElementCollection) this[ConnectionStringsKey]; }
|
||||
set { this[ConnectionStringsKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(SessionKeysKey, IsDefaultCollection = false)]
|
||||
public SessionKeysElementCollection SessionKeys
|
||||
{
|
||||
get { return (SessionKeysElementCollection) this[SessionKeysKey]; }
|
||||
set { this[SessionKeysKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(FileIconsKey, IsDefaultCollection = false)]
|
||||
public FileIconsElementCollection FileIcons
|
||||
{
|
||||
get { return (FileIconsElementCollection) this[FileIconsKey]; }
|
||||
set { this[FileIconsKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(OfficeOnlineKey, IsDefaultCollection = false)]
|
||||
public OfficeOnlineElementCollection OfficeOnline
|
||||
{
|
||||
get { return (OfficeOnlineElementCollection)this[OfficeOnlineKey]; }
|
||||
set { this[OfficeOnlineKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,24 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDavPortal.WebConfigSections
|
||||
{
|
||||
public class WebsitePanelConstantUserElement : ConfigurationElement
|
||||
{
|
||||
private const string LoginKey = "login";
|
||||
private const string PasswordKey = "password";
|
||||
|
||||
[ConfigurationProperty(LoginKey, IsKey = true, IsRequired = true)]
|
||||
public string Login
|
||||
{
|
||||
get { return this[LoginKey].ToString(); }
|
||||
set { this[LoginKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(PasswordKey, IsKey = true, IsRequired = true)]
|
||||
public string Password
|
||||
{
|
||||
get { return this[PasswordKey].ToString(); }
|
||||
set { this[PasswordKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue