Class VisitorGroupMembershipCriterion
Criterion which checks if visitor is member or not member of another visitor group
Inheritance
System.Object
EPiServer.Personalization.VisitorGroups.CriterionBase<VisitorGroupMembershipModel>
VisitorGroupMembershipCriterion
Implements
EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface
Inherited Members
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.VisitorGroupMembershipModel>.Initialize(EPiServer.Personalization.VisitorGroups.VisitorGroupCriterion)
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.VisitorGroupMembershipModel>.Model
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.VisitorGroupMembershipModel>.EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface.ModelType
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.dll
Version: 8.11.0Syntax
[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(VisitorGroupStore)
Initializes an instance of VisitorGroupMembershipCriterion.
Declaration
public VisitorGroupMembershipCriterion(VisitorGroupStore visitorGroupRepository)
Parameters
Type | Name | Description |
---|---|---|
EPiServer.Personalization.VisitorGroups.VisitorGroupStore | visitorGroupRepository |
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 |
---|---|---|
EPiServer.Personalization.VisitorGroups.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 |
---|---|---|
EPiServer.Personalization.VisitorGroups.ICriterionEvents | criterionEvents | The criterion events. |
Overrides
EPiServer.Personalization.VisitorGroups.CriterionBase<EPiServer.Personalization.VisitorGroups.Criteria.VisitorGroupMembershipModel>.Unsubscribe(EPiServer.Personalization.VisitorGroups.ICriterionEvents)
Implements
EPiServer.Personalization.VisitorGroups.ICriterion
EPiServer.Personalization.VisitorGroups.IGeneratesAdministrativeInterface