Class TourFilterCollectionBuilder
Builds a collection of BackOfficeTourFilter items.
Inheritance
System.Object
Namespace: Umbraco.Web.Tour
Assembly: Umbraco.Web.dll
Syntax
public class TourFilterCollectionBuilder : CollectionBuilderBase<TourFilterCollectionBuilder, TourFilterCollection, BackOfficeTourFilter>, ICollectionBuilder<TourFilterCollection, BackOfficeTourFilter>, ICollectionBuilder
Methods
View SourceAddFilter(BackOfficeTourFilter)
Adds a filter instance.
Declaration
public void AddFilter(BackOfficeTourFilter filter)
Parameters
Type | Name | Description |
---|---|---|
BackOfficeTourFilter | filter |
AddFilterByFile(String)
Creates and adds a filter instance filtering by tour filename.
Declaration
public void AddFilterByFile(string filename)
Parameters
Type | Name | Description |
---|---|---|
System.String | filename |
AddFilterByPlugin(String)
Creates and adds a filter instance filtering by plugin name.
Declaration
public void AddFilterByPlugin(string pluginName)
Parameters
Type | Name | Description |
---|---|---|
System.String | pluginName |
CreateItems(IFactory)
Creates the collection items.
Declaration
protected override IEnumerable<BackOfficeTourFilter> CreateItems(IFactory factory)
Parameters
Type | Name | Description |
---|---|---|
IFactory | factory |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<BackOfficeTourFilter> | The collection items. |
RemoveAllFilters()
Removes all filter instances.
Declaration
public void RemoveAllFilters()
RemoveFilter(Func<BackOfficeTourFilter, Boolean>)
Removes filters matching a condition.
Declaration
public void RemoveFilter(Func<BackOfficeTourFilter, bool> predicate)
Parameters
Type | Name | Description |
---|---|---|
System.Func<BackOfficeTourFilter, System.Boolean> | predicate |
RemoveFilter(BackOfficeTourFilter)
Removes a filter instance.
Declaration
public void RemoveFilter(BackOfficeTourFilter filter)
Parameters
Type | Name | Description |
---|---|---|
BackOfficeTourFilter | filter |