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

Class VisitorGroupSecurityDescriptor

Virtual role security descriptor, which determains if a principal is member of any of the supplied roles

Inheritance
System.Object
VisitorGroupSecurityDescriptor
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.Security
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public class VisitorGroupSecurityDescriptor : IRoleSecurityDescriptor, ISecurityDescriptor

Constructors

VisitorGroupSecurityDescriptor(IVisitorGroupRoleRepository, IVisitorGroupRepository)

Initializes a new instance of the VisitorGroupSecurityDescriptor class.

Declaration
public VisitorGroupSecurityDescriptor(IVisitorGroupRoleRepository virtualRoleRepository, IVisitorGroupRepository visitorGroupRepository)
Parameters
Type Name Description
EPiServer.Personalization.VisitorGroups.IVisitorGroupRoleRepository virtualRoleRepository

The virtual role repository.

EPiServer.Personalization.VisitorGroups.IVisitorGroupRepository visitorGroupRepository

The visitor group repository.

VisitorGroupSecurityDescriptor(VisitorGroupRoleRepository, IVisitorGroupRepository)

Initializes a new instance of the VisitorGroupSecurityDescriptor class.

Declaration
[Obsolete("Use alternative constructor")]
public VisitorGroupSecurityDescriptor(VisitorGroupRoleRepository virtualRoleRepository, IVisitorGroupRepository visitorGroupRepository)
Parameters
Type Name Description
EPiServer.Personalization.VisitorGroups.VisitorGroupRoleRepository virtualRoleRepository

The virtual role repository.

EPiServer.Personalization.VisitorGroups.IVisitorGroupRepository visitorGroupRepository

The visitor group repository.

Properties

RoleIdentities

Gets or sets the identities.

Declaration
public IEnumerable<string> RoleIdentities { get; set; }
Property Value
Type Description
System.Collections.Generic.IEnumerable<System.String>

The identities.

Methods

GetAccessLevel(IPrincipal)

Returns the access level for the specified principal.

Declaration
public AccessLevel GetAccessLevel(IPrincipal principal)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal

The principal to check access against.

Returns
Type Description
AccessLevel

The access level.

Remarks

This method will always return AccessLevel.Undefined

HasAccess(IPrincipal, AccessLevel)

Determines whether the specified principal is member of any of the supplied roles

Declaration
public bool HasAccess(IPrincipal principal, AccessLevel access)
Parameters
Type Name Description
System.Security.Principal.IPrincipal principal

The principal to authorize.

AccessLevel access

The requested access level.

Returns
Type Description
System.Boolean

true if the specified principal has access; otherwise, false.

Implements

Extension Methods