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

Interface IContentAccessEvaluator

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Component responsible for evaluating what access a user has to a specific content item.

Namespace: EPiServer.Security.Internal
Assembly: EPiServer.dll
Version: 9.12.2
Syntax
public interface IContentAccessEvaluator

Methods

GetAccessLevel(IContent, IPrincipal)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Calculates the access level of the provided System.Security.Principal.IPrincipal to the IContent instance in the current context.

Declaration
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)

Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice. Evaluates if the provided System.Security.Principal.IPrincipal has the requested access rights to the provided IContent instance in the current context.

Declaration
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

true if the user has the requested access; otherwise false

Extension Methods