November Happy Hour will be moved to Thursday December 5th.

Class DefaultContentAccessEvaluator

Inheritance
System.Object
DefaultContentAccessEvaluator
Namespace: EPiServer.Security.Internal
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
Type Name Description
IPublishedStateAssessor publishedStateAssessor
IPrincipalAccessor principalAccessor

Methods

GetAccessLevel(IContent, IPrincipal)

Declaration
public AccessLevel GetAccessLevel(IContent content, IPrincipal principal)
Parameters
Type Name Description
IContent content
System.Security.Principal.IPrincipal principal
Returns
Type Description
AccessLevel

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