Class AccessControlListQueryExtensions

Inheritance
System.Object
AccessControlListQueryExtensions
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.Search.Queries.Lucene
Assembly: EPiServer.dll
Version: 8.11.0
Syntax
public static class AccessControlListQueryExtensions

Methods

AddAclForUser(AccessControlListQuery, PrincipalInfo, Object)

Adds the roles and username of the provided user to the query.

Declaration
public static void AddAclForUser(this AccessControlListQuery query, PrincipalInfo principal, object context)
Parameters
Type Name Description
EPiServer.Search.Queries.Lucene.AccessControlListQuery query

The query to extend.

PrincipalInfo principal

The principal.

System.Object context

The context used for virtual roles to establish if the user is a part of a role.

AddAclForUser(AccessControlListQuery, VirtualRoleRepository<VirtualRoleProviderBase>, PrincipalInfo, Object)

Adds the roles and username of the provided user to the query.

Declaration
public static void AddAclForUser(this AccessControlListQuery query, VirtualRoleRepository<VirtualRoleProviderBase> virtualRoleRepository, PrincipalInfo principal, object context)
Parameters
Type Name Description
EPiServer.Search.Queries.Lucene.AccessControlListQuery query

The query to extend.

VirtualRoleRepository<VirtualRoleProviderBase> virtualRoleRepository

The virtual role repository used to retrieve virtual roles.

PrincipalInfo principal

The principal.

System.Object context

The context used for virtual roles to establish if the user is a part of a role.