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: 7.19.2Syntax
public class VisitorGroupSecurityDescriptor : IRoleSecurityDescriptor, ISecurityDescriptorConstructors
VisitorGroupSecurityDescriptor(VisitorGroupRoleRepository, IVisitorGroupRepository)
Initializes a new instance of the VisitorGroupSecurityDescriptor class.
Declaration
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 | 
 | 
