November Happy Hour will be moved to Thursday December 5th.

Class SimpleAddressValidator

Validates that a simple address for a page is unique within its siblings.

Inheritance
System.Object
SimpleAddressValidator
Inherited Members
System.Object.ToString()
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Validation
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
[ServiceConfiguration]
public class SimpleAddressValidator : IValidate<PageData>, IValidate

Constructors

SimpleAddressValidator(IContentRepository, LocalizationService, UrlSegment, SiteDefinitionResolver)

Initializes a new instance of the SimpleAddressValidator class.

Declaration
public SimpleAddressValidator(IContentRepository contentRepository, LocalizationService localizationService, UrlSegment urlSegment, SiteDefinitionResolver siteDefinitionResolver)
Parameters
Type Name Description
IContentRepository contentRepository

The content repository.

LocalizationService localizationService

The localization service.

UrlSegment urlSegment

The URL segment.

SiteDefinitionResolver siteDefinitionResolver

The SiteDefinition Resolver

Properties

BaseDirectory

Gets or sets the base directory.

Declaration
public string BaseDirectory { get; set; }
Property Value
Type Description
System.String

The base directory.

Remarks

The implemenation uses BaseDirectory, the reason the dicitonary is exposed to make it possible to replace during tests.

HostLanguageMappings

The HostLangaugeMappings that is used.

Declaration
[Obsolete("Property is no longer being used")]
public StringDictionary HostLanguageMappings { get; set; }
Property Value
Type Description
System.Collections.Specialized.StringDictionary

The host language mappings.

Remarks

The implemenation uses HostLanguageMappings, the reason the dicitonary is exposed to make it possible to replace during tests.

VirtualPathMappings

Declaration
[Obsolete("Virtual Path Providers is no longed being used")]
public IDictionary<string, string> VirtualPathMappings { get; set; }
Property Value
Type Description
System.Collections.Generic.IDictionary<System.String, System.String>

Methods

Validate(PageData)

Validates the specified instance.

Declaration
public IEnumerable<ValidationError> Validate(PageData page)
Parameters
Type Name Description
PageData page

The instance.

Returns
Type Description
System.Collections.Generic.IEnumerable<ValidationError>

Implements

Extension Methods