Class VisitorGroupMembershipCriterion
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Criterion which checks if visitor is member or not member of another visitor group
Inheritance
System.Object
VisitorGroupMembershipCriterion
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.Personalization.VisitorGroups.Criteria
Assembly: EPiServer.Cms.AspNet.dll
Version: 11.20.7Syntax
[VisitorGroupCriterion(Category = "Visitor Groups", Description = "Match an existing visitor group", DisplayName = "Visitor Group Membership", LanguagePath = "/shell/cms/visitorgroups/criteria/visitorgroup", ScriptUrl = "ClientResources/Criteria/VisitorGroupMembership.js")]
public class VisitorGroupMembershipCriterion : CriterionBase<VisitorGroupMembershipModel>, ICriterion, IGeneratesAdministrativeInterface
Constructors
VisitorGroupMembershipCriterion()
Initializes an instance of VisitorGroupMembershipCriterion.
Declaration
public VisitorGroupMembershipCriterion()
VisitorGroupMembershipCriterion(IVisitorGroupRepository, IVisitorGroupRoleRepository)
Initializes an instance of VisitorGroupMembershipCriterion.
Declaration
public VisitorGroupMembershipCriterion(IVisitorGroupRepository visitorGroupRepository, IVisitorGroupRoleRepository visitorGroupRoleRepository)
Parameters
Type | Name | Description |
---|---|---|
IVisitorGroupRepository | visitorGroupRepository | |
IVisitorGroupRoleRepository | visitorGroupRoleRepository |
Methods
IsMatch(IPrincipal, HttpContextBase)
Determines whether the specified principal is match.
Declaration
public override bool IsMatch(IPrincipal principal, HttpContextBase httpContext)
Parameters
Type | Name | Description |
---|---|---|
System.Security.Principal.IPrincipal | principal | The principal. |
System.Web.HttpContextBase | httpContext | The HTTP context. |
Returns
Type | Description |
---|---|
System.Boolean |
|
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.VisitorGroupMembershipModel>.IsMatch(System.Security.Principal.IPrincipal, System.Web.HttpContextBase)
Subscribe(ICriterionEvents)
Subscribes the DeletingVisitorGroup event to prevent deleting of group that is used in this criterion.
Declaration
public override void Subscribe(ICriterionEvents criterionEvents)
Parameters
Type | Name | Description |
---|---|---|
ICriterionEvents | criterionEvents | The criterion events. |
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.VisitorGroupMembershipModel>.Subscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
Unsubscribe(ICriterionEvents)
Subscribes the DeletingVisitorGroup event
Declaration
public override void Unsubscribe(ICriterionEvents criterionEvents)
Parameters
Type | Name | Description |
---|---|---|
ICriterionEvents | criterionEvents | The criterion events. |
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.VisitorGroupMembershipModel>.Unsubscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)