World is now on Opti ID! Learn more

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: 10.10.4
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 principalInfo, object context)
Parameters
Type Name Description
EPiServer.Search.Queries.Lucene.AccessControlListQuery query

The query to extend.

PrincipalInfo principalInfo

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
[Obsolete("Use IAccessControlListQueryBuilder")]
public static void AddAclForUser(this AccessControlListQuery query, VirtualRoleRepository<VirtualRoleProviderBase> virtualRoleRepository, PrincipalInfo principalInfo, 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 principalInfo

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>, IPrincipal, Object)

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

Declaration
[Obsolete("Use IAccessControlListQueryBuilder")]
public static void AddAclForUser(this AccessControlListQuery query, VirtualRoleRepository<VirtualRoleProviderBase> virtualRoleRepository, IPrincipal 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.

System.Security.Principal.IPrincipal 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, IPrincipal, Object)

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

Declaration
[Obsolete("Use IAccessControlListQueryBuilder")]
public static void AddAclForUser(this AccessControlListQuery query, IPrincipal principal, object context)
Parameters
Type Name Description
EPiServer.Search.Queries.Lucene.AccessControlListQuery query

The query to extend.

System.Security.Principal.IPrincipal principal

The principal.

System.Object context

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