webdav portal filter + detail view added

This commit is contained in:
vfedosevich 2015-02-18 02:35:32 -08:00
parent 280628e362
commit 51d432fd2e
156 changed files with 32494 additions and 260 deletions

View file

@ -6,7 +6,6 @@ namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
{
private const string DefaultCountKey = "defaultCount";
private const string AddElementsCountKey = "addElementsCount";
private const string ElementsToIgnoreKey = "elementsToIgnoreKey";
[ConfigurationProperty(DefaultCountKey, IsKey = true, IsRequired = true, DefaultValue = 30)]
public int DefaultCount
@ -21,12 +20,5 @@ namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
get { return (int)this[AddElementsCountKey]; }
set { this[AddElementsCountKey] = value; }
}
[ConfigurationProperty(ElementsToIgnoreKey, IsKey = true, IsRequired = true, DefaultValue = "")]
public string ElementsToIgnore
{
get { return (string)this[ElementsToIgnoreKey]; }
set { this[ElementsToIgnoreKey] = value; }
}
}
}

View file

@ -6,6 +6,7 @@ namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
public class FileIconsElementCollection : ConfigurationElementCollection
{
private const string DefaultPathKey = "defaultPath";
private const string FolderPathKey = "folderPath";
[ConfigurationProperty(DefaultPathKey, IsRequired = false, DefaultValue = "/")]
public string DefaultPath
@ -14,6 +15,13 @@ namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
set { this[DefaultPathKey] = value; }
}
[ConfigurationProperty(FolderPathKey, IsRequired = false)]
public string FolderPath
{
get { return (string)this[FolderPathKey]; }
set { this[FolderPathKey] = value; }
}
protected override ConfigurationElement CreateNewElement()
{
return new FileIconsElement();

View file

@ -0,0 +1,24 @@
using System.Configuration;
namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
{
public class FilesToIgnoreElement : ConfigurationElement
{
private const string NameKey = "name";
private const string RegexKey = "regex";
[ConfigurationProperty(NameKey, IsKey = true, IsRequired = true)]
public string Name
{
get { return this[NameKey].ToString(); }
set { this[NameKey] = value; }
}
[ConfigurationProperty(RegexKey, IsKey = true, IsRequired = true)]
public string Regex
{
get { return this[RegexKey].ToString(); }
set { this[RegexKey] = value; }
}
}
}

View file

@ -0,0 +1,19 @@
using System;
using System.Configuration;
namespace WebsitePanel.WebDav.Core.Config.WebConfigSections
{
[ConfigurationCollection(typeof(FilesToIgnoreElement))]
public class FilesToIgnoreElementCollection : ConfigurationElementCollection
{
protected override ConfigurationElement CreateNewElement()
{
return new FilesToIgnoreElement();
}
protected override object GetElementKey(ConfigurationElement element)
{
return ((FilesToIgnoreElement)element).Name;
}
}
}

View file

@ -17,6 +17,7 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections
private const string FileIconsKey = "fileIcons";
private const string OwaSupportedBrowsersKey = "owaSupportedBrowsers";
private const string OfficeOnlineKey = "officeOnline";
private const string FilesToIgnoreKey = "filesToIgnore";
public const string SectionName = "webDavExplorerConfigurationSettings";
@ -89,5 +90,12 @@ namespace WebsitePanel.WebDavPortal.WebConfigSections
get { return (OfficeOnlineElementCollection)this[OfficeOnlineKey]; }
set { this[OfficeOnlineKey] = value; }
}
[ConfigurationProperty(FilesToIgnoreKey, IsDefaultCollection = false)]
public FilesToIgnoreElementCollection FilesToIgnore
{
get { return (FilesToIgnoreElementCollection)this[FilesToIgnoreKey]; }
set { this[FilesToIgnoreKey] = value; }
}
}
}