View Source
  Class ContentValueSetValidator
  
  Used to validate a ValueSet for content/media - based on permissions, parent id, etc....
 
  
  
    Inheritance
      System.Object
      
      
   
  
  Assembly: Umbraco.Infrastructure.dll
  Syntax
  
    public class ContentValueSetValidator : ValueSetValidator, IContentValueSetValidator
   
  Constructors
  
  
    View Source
  
  ContentValueSetValidator(Boolean, Boolean, IPublicAccessService, IScopeProvider, Nullable<Int32>, Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>)
  
  
  Declaration
  
    public ContentValueSetValidator(bool publishedValuesOnly, bool supportProtectedContent, IPublicAccessService publicAccessService, IScopeProvider scopeProvider, int? parentId, IEnumerable<string>? includeItemTypes, IEnumerable<string>? excludeItemTypes)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Boolean | 
        publishedValuesOnly | 
         | 
      
      
        | System.Boolean | 
        supportProtectedContent | 
         | 
      
      
        | IPublicAccessService | 
        publicAccessService | 
         | 
      
      
        | IScopeProvider | 
        scopeProvider | 
         | 
      
      
        | System.Nullable<System.Int32> | 
        parentId | 
         | 
      
      
        | System.Nullable<IEnumerable<System.String>> | 
        includeItemTypes | 
         | 
      
      
        | System.Nullable<IEnumerable<System.String>> | 
        excludeItemTypes | 
         | 
      
    
  
  
    View Source
  
  ContentValueSetValidator(Boolean, Boolean, IPublicAccessService, IScopeProvider, Nullable<Int32>, Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>)
  
  
  Declaration
  
    public ContentValueSetValidator(bool publishedValuesOnly, bool supportProtectedContent, IPublicAccessService publicAccessService, IScopeProvider scopeProvider, int? parentId = null, IEnumerable<string>? includeItemTypes = null, IEnumerable<string>? excludeItemTypes = null, IEnumerable<string>? includeFields = null, IEnumerable<string>? excludeFields = null)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Boolean | 
        publishedValuesOnly | 
         | 
      
      
        | System.Boolean | 
        supportProtectedContent | 
         | 
      
      
        | IPublicAccessService | 
        publicAccessService | 
         | 
      
      
        | IScopeProvider | 
        scopeProvider | 
         | 
      
      
        | System.Nullable<System.Int32> | 
        parentId | 
         | 
      
      
        | System.Nullable<IEnumerable<System.String>> | 
        includeItemTypes | 
         | 
      
      
        | System.Nullable<IEnumerable<System.String>> | 
        excludeItemTypes | 
         | 
      
      
        | System.Nullable<IEnumerable<System.String>> | 
        includeFields | 
         | 
      
      
        | System.Nullable<IEnumerable<System.String>> | 
        excludeFields | 
         | 
      
    
  
  
    View Source
  
  ContentValueSetValidator(Boolean, Nullable<Int32>, Nullable<IEnumerable<String>>, Nullable<IEnumerable<String>>)
  
  
  Declaration
  
    public ContentValueSetValidator(bool publishedValuesOnly, int? parentId = null, IEnumerable<string>? includeItemTypes = null, IEnumerable<string>? excludeItemTypes = null)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.Boolean | 
        publishedValuesOnly | 
         | 
      
      
        | System.Nullable<System.Int32> | 
        parentId | 
         | 
      
      
        | System.Nullable<IEnumerable<System.String>> | 
        includeItemTypes | 
         | 
      
      
        | System.Nullable<IEnumerable<System.String>> | 
        excludeItemTypes | 
         | 
      
    
  
  Properties
  
  
    View Source
  
  ParentId
  
  
  Declaration
  
    public int? ParentId { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Nullable<System.Int32> | 
         | 
      
    
  
  
    View Source
  
  PublishedValuesOnly
  
  
  Declaration
  
    public bool PublishedValuesOnly { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    View Source
  
  SupportProtectedContent
  
  
  Declaration
  
    public bool SupportProtectedContent { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    View Source
  
  ValidIndexCategories
  
  
  Declaration
  
    protected override IEnumerable<string> ValidIndexCategories { get; }
   
  Property Value
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | IEnumerable<System.String> | 
         | 
      
    
  
  Methods
  
  
    View Source
  
  Validate(ValueSet)
  
  
  Declaration
  
    public override ValueSetValidationResult Validate(ValueSet valueSet)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | ValueSet | 
        valueSet | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | ValueSetValidationResult | 
         | 
      
    
  
  
    View Source
  
  ValidatePath(String, String)
  
  
  Declaration
  
    public bool ValidatePath(string path, string category)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        path | 
         | 
      
      
        | System.String | 
        category | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    View Source
  
  ValidateProtectedContent(String, String)
  
  
  Declaration
  
    public bool ValidateProtectedContent(string path, string category)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        path | 
         | 
      
      
        | System.String | 
        category | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         | 
      
    
  
  
    View Source
  
  ValidateRecycleBin(String, String)
  
  
  Declaration
  
    public bool ValidateRecycleBin(string path, string category)
   
  Parameters
  
    
      
        | Type | 
        Name | 
        Description | 
      
    
    
      
        | System.String | 
        path | 
         | 
      
      
        | System.String | 
        category | 
         | 
      
    
  
  Returns
  
    
      
        | Type | 
        Description | 
      
    
    
      
        | System.Boolean | 
         |