Class VisitorGroupSecurityDescriptor
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Virtual role security descriptor, which determains if a principal is member of any of the supplied roles
Inheritance
Inherited Members
Namespace: EPiServer.Security.Internal
Assembly: EPiServer.dll
Version: 10.10.4Syntax
public class VisitorGroupSecurityDescriptor : IRoleSecurityDescriptor, ISecurityDescriptor
Constructors
VisitorGroupSecurityDescriptor(IVisitorGroupRoleRepository, IVisitorGroupRepository)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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. |
Properties
RoleIdentities
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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)
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. 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 |
|