webdav portal owa support check added
This commit is contained in:
parent
5795ffb0bc
commit
010c258502
16 changed files with 246 additions and 20 deletions
|
@ -0,0 +1,24 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
|
||||
{
|
||||
public class OwaSupportedBrowsersElement : ConfigurationElement
|
||||
{
|
||||
private const string BrowserKey = "browser";
|
||||
private const string VersionKey = "version";
|
||||
|
||||
[ConfigurationProperty(BrowserKey, IsKey = true, IsRequired = true)]
|
||||
public string Browser
|
||||
{
|
||||
get { return (string)this[BrowserKey]; }
|
||||
set { this[BrowserKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(VersionKey, IsKey = true, IsRequired = true)]
|
||||
public int Version
|
||||
{
|
||||
get { return (int)this[VersionKey]; }
|
||||
set { this[VersionKey] = value; }
|
||||
}
|
||||
}
|
||||
}
|
|
@ -0,0 +1,18 @@
|
|||
using System.Configuration;
|
||||
|
||||
namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
|
||||
{
|
||||
[ConfigurationCollection(typeof(OwaSupportedBrowsersElement))]
|
||||
public class OwaSupportedBrowsersElementCollection : ConfigurationElementCollection
|
||||
{
|
||||
protected override ConfigurationElement CreateNewElement()
|
||||
{
|
||||
return new OwaSupportedBrowsersElement();
|
||||
}
|
||||
|
||||
protected override object GetElementKey(ConfigurationElement element)
|
||||
{
|
||||
return ((OwaSupportedBrowsersElement)element).Browser;
|
||||
}
|
||||
}
|
||||
}
|
|
@ -15,6 +15,7 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections
|
|||
private const string ConnectionStringsKey = "appConnectionStrings";
|
||||
private const string SessionKeysKey = "sessionKeys";
|
||||
private const string FileIconsKey = "fileIcons";
|
||||
private const string OwaSupportedBrowsersKey = "owaSupportedBrowsers";
|
||||
private const string OfficeOnlineKey = "officeOnline";
|
||||
|
||||
public const string SectionName = "webDavExplorerConfigurationSettings";
|
||||
|
@ -75,6 +76,13 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections
|
|||
set { this[FileIconsKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(OwaSupportedBrowsersKey, IsDefaultCollection = false)]
|
||||
public OwaSupportedBrowsersElementCollection OwaSupportedBrowsers
|
||||
{
|
||||
get { return (OwaSupportedBrowsersElementCollection)this[OwaSupportedBrowsersKey]; }
|
||||
set { this[OwaSupportedBrowsersKey] = value; }
|
||||
}
|
||||
|
||||
[ConfigurationProperty(OfficeOnlineKey, IsDefaultCollection = false)]
|
||||
public OfficeOnlineElementCollection OfficeOnline
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue