Class VisitorGroupValidator
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates visitor groups in MVC
Inheritance
Namespace: EPiServer.Web.Mvc.VisitorGroups.Validation.Internal
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
public class VisitorGroupValidator : ModelValidator
Constructors
VisitorGroupValidator(ModelMetadata, ControllerContext)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Constructor that sends parameters to base class and sets the IVisitorGroupRepository to a instance of the default type
Declaration
public VisitorGroupValidator(ModelMetadata metadata, ControllerContext context)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ModelMetadata | metadata | Provides a container for common metadata |
System.Web.Mvc.ControllerContext | context | Encapsulates information about an HTTP request |
VisitorGroupValidator(ModelMetadata, ControllerContext, IVisitorGroupRepository)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Constructor that sends parameters to base class and sets the IVisitorGroupRepository
Declaration
public VisitorGroupValidator(ModelMetadata metadata, ControllerContext context, IVisitorGroupRepository visitorGroupRepository)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ModelMetadata | metadata | Provides a container for common metadata |
System.Web.Mvc.ControllerContext | context | Encapsulates information about an HTTP request |
IVisitorGroupRepository | visitorGroupRepository | Repository instance for the visitor group |
VisitorGroupValidator(ModelMetadata, ControllerContext, IVisitorGroupRepository, LocalizationService)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Constructor that sends parameters to base class and sets the IVisitorGroupRepository
Declaration
public VisitorGroupValidator(ModelMetadata metadata, ControllerContext context, IVisitorGroupRepository visitorGroupRepository, LocalizationService localizationService)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ModelMetadata | metadata | Provides a container for common metadata |
System.Web.Mvc.ControllerContext | context | Encapsulates information about an HTTP request |
IVisitorGroupRepository | visitorGroupRepository | Repository instance for the visitor group |
LocalizationService | localizationService | The resource locator that should be used by the instance to get localized strings. |
VisitorGroupValidator(ModelMetadata, ControllerContext, IVisitorGroupRepository, IVirtualRoleRepository, LocalizationService, IEnumerable<IVisitorGroupValidator>)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Initializes a new instance of the VisitorGroupValidator class.
Declaration
public VisitorGroupValidator(ModelMetadata metadata, ControllerContext context, IVisitorGroupRepository visitorGroupRepository, IVirtualRoleRepository virtualRoleRepository, LocalizationService localizationService, IEnumerable<IVisitorGroupValidator> visitorGroupValidators)
Parameters
Type | Name | Description |
---|---|---|
System.Web.Mvc.ModelMetadata | metadata | |
System.Web.Mvc.ControllerContext | context | |
IVisitorGroupRepository | visitorGroupRepository | |
IVirtualRoleRepository | virtualRoleRepository | |
LocalizationService | localizationService | |
System.Collections.Generic.IEnumerable<IVisitorGroupValidator> | visitorGroupValidators |
Methods
Validate(Object)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Validates a visitor group in MVC
Declaration
public override IEnumerable<ModelValidationResult> Validate(object container)
Parameters
Type | Name | Description |
---|---|---|
System.Object | container | The data to validate |
Returns
Type | Description |
---|---|
System.Collections.Generic.IEnumerable<System.Web.Mvc.ModelValidationResult> | Validation errors |