Manages permissions for content access.
Namespace: Umbraco.Cms.Core.Services Assembly: Umbraco.Core.dll Syntaxpublic interface IContentPermissionService
Methods View Source
Authorize that a user has access to a content item.
Declarationvirtual Task<ContentAuthorizationStatus> AuthorizeAccessAsync(IUser user, Guid contentKey, string permissionToCheck)
Parameters Type Name Description IUser user
IUser to authorize.
Guid contentKeyThe identifier of the content item to check for access.
System.String permissionToCheckThe permission to authorize.
Returns View Source AuthorizeAccessAsync(IUser, IEnumerable<Guid>, ISet<String>)Authorize that a user has access to content items.
DeclarationTask<ContentAuthorizationStatus> AuthorizeAccessAsync(IUser user, IEnumerable<Guid> contentKeys, ISet<string> permissionsToCheck)
Parameters Type Name Description IUser user
IUser to authorize.
IEnumerable<Guid> contentKeysThe identifiers of the content items to check for access.
ISet<System.String> permissionsToCheckThe collection of permissions to authorize.
Returns View Source AuthorizeBinAccessAsync(IUser, ISet<String>)Authorize that a user is allowed to perform actions on the content bin item.
DeclarationTask<ContentAuthorizationStatus> AuthorizeBinAccessAsync(IUser user, ISet<string> permissionsToCheck)
Parameters Type Name Description IUser user
IUser to authorize.
ISet<System.String> permissionsToCheckThe collection of permissions to authorize.
Returns View Source AuthorizeBinAccessAsync(IUser, String)Authorize that a user is allowed to perform action on the content bin item.
Declarationvirtual Task<ContentAuthorizationStatus> AuthorizeBinAccessAsync(IUser user, string permissionToCheck)
Parameters Type Name Description IUser user
IUser to authorize.
System.String permissionToCheckThe permission to authorize.
Returns View Source AuthorizeCultureAccessAsync(IUser, ISet<String>)Authorize that a user has access to specific cultures
DeclarationTask<ContentAuthorizationStatus> AuthorizeCultureAccessAsync(IUser user, ISet<string> culturesToCheck)
Parameters Type Name Description IUser user
IUser to authorize.
ISet<System.String> culturesToCheckThe collection of cultures to authorize.
Returns View Source AuthorizeDescendantsAccessAsync(IUser, Guid, ISet<String>)Authorize that a user has access to the descendant items of a content item.
DeclarationTask<ContentAuthorizationStatus> AuthorizeDescendantsAccessAsync(IUser user, Guid parentKey, ISet<string> permissionsToCheck)
Parameters Type Name Description IUser user
IUser to authorize.
Guid parentKeyThe identifier of the parent content item to check its descendants for access.
ISet<System.String> permissionsToCheckThe collection of permissions to authorize.
Returns View Source AuthorizeDescendantsAccessAsync(IUser, Guid, String)Authorize that a user has access to the descendant items of a content item.
Declarationvirtual Task<ContentAuthorizationStatus> AuthorizeDescendantsAccessAsync(IUser user, Guid parentKey, string permissionToCheck)
Parameters Type Name Description IUser user
IUser to authorize.
Guid parentKeyThe identifier of the parent content item to check its descendants for access.
System.String permissionToCheckThe permission to authorize.
Returns View Source AuthorizeRootAccessAsync(IUser, ISet<String>)Authorize that a user is allowed to perform actions on the content root item.
DeclarationTask<ContentAuthorizationStatus> AuthorizeRootAccessAsync(IUser user, ISet<string> permissionsToCheck)
Parameters Type Name Description IUser user
IUser to authorize.
ISet<System.String> permissionsToCheckThe collection of permissions to authorize.
Returns View Source AuthorizeRootAccessAsync(IUser, String)Authorize that a user is allowed to perform action on the content root item.
Declarationvirtual Task<ContentAuthorizationStatus> AuthorizeRootAccessAsync(IUser user, string permissionToCheck)
Parameters Type Name Description IUser user
IUser to authorize.
System.String permissionToCheckThe permission to authorize.
ReturnsRetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4