Class PermissionsQueryStringHandler<T>
Abstract base class providing common functionality for authorization checks based on querystrings.
Inheritance
Namespace: Umbraco.Cms.Web.BackOffice.Authorization
Assembly: Umbraco.Web.BackOffice.dll
Syntax
public abstract class PermissionsQueryStringHandler<T> : MustSatisfyRequirementAuthorizationHandler<T>, IAuthorizationHandler where T : IAuthorizationRequirement
Type Parameters
Name | Description |
---|---|
T | Authorization requirement |
Constructors
View SourcePermissionsQueryStringHandler(IBackOfficeSecurityAccessor, IHttpContextAccessor, IEntityService)
Initializes a new instance of the PermissionsQueryStringHandler<T> class.
Declaration
public PermissionsQueryStringHandler(IBackOfficeSecurityAccessor backOfficeSecurityAccessor, IHttpContextAccessor httpContextAccessor, IEntityService entityService)
Parameters
Type | Name | Description |
---|---|---|
IBack |
backOfficeSecurityAccessor | Accessor for back-office security. |
Microsoft. |
httpContextAccessor | Accessor for the HTTP context of the current request. |
IEntity |
entityService | Service for entity operations. |
Properties
View SourceBackOfficeSecurityAccessor
Gets or sets the
Declaration
protected IBackOfficeSecurityAccessor BackOfficeSecurityAccessor { get; set; }
Property Value
Type | Description |
---|---|
IBack |
EntityService
Gets or sets the
Declaration
protected IEntityService EntityService { get; set; }
Property Value
Type | Description |
---|---|
IEntity |
HttpContextAccessor
Gets or sets the Microsoft.
Declaration
protected IHttpContextAccessor HttpContextAccessor { get; set; }
Property Value
Type | Description |
---|---|
Microsoft. |
KeyParsingFilterType
Defaults to Unknown so all types are allowed, since Keys are unique across all node types this works, but it if you are certain you are looking for a specific type this should be overwritten for DB query performance.
Declaration
protected virtual UmbracoObjectTypes KeyParsingFilterType { get; }
Property Value
Type | Description |
---|---|
Umbraco |
Methods
View SourceTryParseNodeId(String, out Int32)
Attempts to parse a node ID from a string representation found in a querystring value.
Declaration
protected bool TryParseNodeId(string argument, out int nodeId)
Parameters
Type | Name | Description |
---|---|---|
System. |
argument | Querystring value. |
System. |
nodeId | Output parsed Id. |
Returns
Type | Description |
---|---|
System. |
True of node ID could be parsed, false it not. |