Class DefaultContentAccessEvaluator
Inheritance
System.Object
DefaultContentAccessEvaluator
Assembly: EPiServer.dll
Version: 12.0.3
Syntax
[ServiceConfiguration]
[ServiceConfiguration(IncludeServiceAccessor = false)]
public class DefaultContentAccessEvaluator : Object, IContentAccessEvaluator
Constructors
DefaultContentAccessEvaluator(IPublishedStateAssessor, IPrincipalAccessor)
Declaration
public DefaultContentAccessEvaluator(IPublishedStateAssessor publishedStateAssessor, IPrincipalAccessor principalAccessor)
Parameters
Methods
GetAccessLevel(IContent, IPrincipal)
Declaration
public AccessLevel GetAccessLevel(IContent content, IPrincipal principal)
Parameters
Type |
Name |
Description |
IContent |
content |
|
System.Security.Principal.IPrincipal |
principal |
|
Returns
HasAccess(IContent, IPrincipal, AccessLevel)
Declaration
public bool HasAccess(IContent content, IPrincipal principal, AccessLevel access)
Parameters
Type |
Name |
Description |
IContent |
content |
|
System.Security.Principal.IPrincipal |
principal |
|
AccessLevel |
access |
|
Returns
Type |
Description |
System.Boolean |
|
HasAccess(IContent, IPrincipal, AccessLevel, Boolean)
Declaration
public bool HasAccess(IContent content, IPrincipal principal, AccessLevel access, bool assessPublishedState)
Parameters
Type |
Name |
Description |
IContent |
content |
|
System.Security.Principal.IPrincipal |
principal |
|
AccessLevel |
access |
|
System.Boolean |
assessPublishedState |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
Extension Methods