Class DefaultContentAccessEvaluator
Unsupported INTERNAL API! Not covered by semantic versioning; might change without notice.
Inheritance
System.Object
DefaultContentAccessEvaluator
Implements
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.Security.Internal
Assembly: EPiServer.dll
Version: 11.20.7Syntax
[ServiceConfiguration(ServiceType = typeof(IContentAccessEvaluator), Lifecycle = ServiceInstanceScope.Singleton)]
[ServiceConfiguration(IncludeServiceAccessor = false)]
public class DefaultContentAccessEvaluator : 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 |