webdav portal fixes
This commit is contained in:
parent
682e4ac18a
commit
c78570eb11
15 changed files with 177 additions and 14 deletions
|
@ -0,0 +1,33 @@
|
|||
using System;
|
||||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
|
||||
{
|
||||
public class OpenerElement : ConfigurationElement
|
||||
{
|
||||
private const string ExtensionKey = "extension";
|
||||
private const string MemeTypeKey = "mimeType";
|
||||
private const string TargetBlankKey = "isTargetBlank";
|
||||
|
||||
[ConfigurationProperty(ExtensionKey, IsKey = true, IsRequired = true)]
|
||||
public string Extension
|
||||
{
|
||||
get { return this[ExtensionKey].ToString(); }
|
||||
set { this[ExtensionKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(MemeTypeKey, IsKey = true, IsRequired = true)]
|
||||
public string MimeType
|
||||
{
|
||||
get { return this[MemeTypeKey].ToString(); }
|
||||
set { this[MemeTypeKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(TargetBlankKey, IsKey = true, IsRequired = true)]
|
||||
public bool IstargetBlank
|
||||
{
|
||||
get { return Convert.ToBoolean(this[TargetBlankKey]); }
|
||||
set { this[TargetBlankKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,19 @@
|
|||
using System;
|
||||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
|
||||
{
|
||||
[ConfigurationCollection(typeof(OpenerElement))]
|
||||
public class OpenerElementCollection : ConfigurationElementCollection
|
||||
{
|
||||
protected override ConfigurationElement CreateNewElement()
|
||||
{
|
||||
return new OpenerElement();
|
||||
}
|
||||
|
||||
protected override object GetElementKey(ConfigurationElement element)
|
||||
{
|
||||
return ((OpenerElement)element).Extension;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -19,6 +19,7 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections
|
|||
private const string OwaSupportedBrowsersKey = "owaSupportedBrowsers";
|
||||
private const string OfficeOnlineKey = "officeOnline";
|
||||
private const string FilesToIgnoreKey = "filesToIgnore";
|
||||
private const string TypeOpenerKey = "typeOpener";
|
||||
|
||||
public const string SectionName = "webDavExplorerConfigurationSettings";
|
||||
|
||||
|
@ -99,6 +100,13 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections
|
|||
set { this[OfficeOnlineKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(TypeOpenerKey, IsDefaultCollection = false)]
|
||||
public OpenerElementCollection TypeOpener
|
||||
{
|
||||
get { return (OpenerElementCollection)this[TypeOpenerKey]; }
|
||||
set { this[TypeOpenerKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(FilesToIgnoreKey, IsDefaultCollection = false)]
|
||||
public FilesToIgnoreElementCollection FilesToIgnore
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue