Data class containing all search criteria data (i.e. values of selected SearchFilters) which is to be used in the SearchDefinition it belongs to.
More...
Data class containing all search criteria data (i.e. values of selected SearchFilters) which is to be used in the SearchDefinition it belongs to.
◆ SearchCriteria()
VideoOS.Platform.Search.SearchCriteria.SearchCriteria |
( |
SearchScope | searchScope | ) |
|
|
inline |
Constructor taking the search scope as parameter.
- Parameters
-
searchScope | The search scope associated with the search criteria. |
◆ AddFilterValue() [1/2]
void VideoOS.Platform.Search.SearchCriteria.AddFilterValue |
( |
SearchFilter | searchFilter | ) |
|
|
inline |
Adds a filter value for the given search filter by invoking SearchFilter.CreateValue.
- Parameters
-
searchFilter | The search filter for which to add a search filter value. |
◆ AddFilterValue() [2/2]
Adds a filter value for the given search filter./>.
- Parameters
-
searchFilter | The search filter for which to add a search filter value. |
filterValue | The filter value to add. |
◆ ClearFilterValues()
void VideoOS.Platform.Search.SearchCriteria.ClearFilterValues |
( |
SearchFilter | searchFilter | ) |
|
|
inline |
Clears all search filter values for the provided search filter.
- Parameters
-
searchFilter | The search filter for which to clear all values. |
◆ GetFilterValues() [1/2]
Gets the value(s) of the given filter. Use this when invoking your search to obtain the filter values setup by the user.
- Parameters
-
searchFilter | The filter to get the value(s) for. |
- Returns
- The value(s) of the given search filter.
◆ GetFilterValues() [2/2]
ReadOnlyCollection< FilterValueBase > VideoOS.Platform.Search.SearchCriteria.GetFilterValues |
( |
SearchFilter | searchFilter, |
|
|
bool | removeEmptyValues ) |
|
inline |
Gets the value(s) of the given filter. This overload provides an option to keep/remove empty values. This is needed by the UI to be able to show a filter value even though it is "empty".
NOTE: You should not call this method from your search agent, this is a method intended for a UI application.
- Parameters
-
searchFilter | The filter to get the value(s) for. |
removeEmptyValues | Specifies whether to include/exclude empty values in the result. |
- Returns
- The value(s) of the given search filter.
◆ GetFilterValues< T >()
Gets the value(s) of the given filter as the provided generic type. Use this when invoking your search to obtain the filter values setup by the user.
- Template Parameters
-
T | The type of filter values to return a collection of. |
- Parameters
-
searchFilter | The filter to get the value for. |
- Returns
- The value(s) of the given search filter as the provided generic type.
◆ RemoveFilterValue()
Removes the provided search filter value from the search criteria.
- Parameters
-
searchFilter | The search filter which the filterValue was previously added to. |
filterValue | The search filter value to remove. |
◆ Changed
Indication that the search criteria has changed.