Interface IContentValueSetValidator
An extended Examine.IValueSetValidator for content indexes
Namespace: Umbraco.Cms.Infrastructure.Examine
Assembly: Umbraco.Infrastructure.dll
Syntax
public interface IContentValueSetValidator : IValueSetValidator
Properties
View SourceParentId
Gets the identifier of the parent content item, if available.
Declaration
int? ParentId { get; }
Property Value
| Type | Description |
|---|---|
| int? |
PublishedValuesOnly
When set to true the index will only retain published values
Declaration
bool PublishedValuesOnly { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Remarks
Any non-published values will not be put or kept in the index:
- Deleted, Trashed, non-published Content items
- non-published Variants
SupportProtectedContent
If true, protected content will be indexed otherwise it will not be put or kept in the index
Declaration
bool SupportProtectedContent { get; }
Property Value
| Type | Description |
|---|---|
| bool |
Methods
View SourceValidatePath(string, string)
Determines whether the specified path is valid for the given category.
Declaration
bool ValidatePath(string path, string category)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path to validate. |
| string | category | The category to validate the path against. |
Returns
| Type | Description |
|---|---|
| bool |
|
ValidateProtectedContent(string, string)
Determines whether the content at the specified path and category should be considered protected.
Declaration
bool ValidateProtectedContent(string path, string category)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The path of the content to check. |
| string | category | The category of the content to check. |
Returns
| Type | Description |
|---|---|
| bool |
|
ValidateRecycleBin(string, string)
Determines whether the specified path and category refer to a recycle bin.
Declaration
bool ValidateRecycleBin(string path, string category)
Parameters
| Type | Name | Description |
|---|---|---|
| string | path | The content path to check. |
| string | category | The content category to check. |
Returns
| Type | Description |
|---|---|
| bool |
|