View Source
Class ContentApiItemControllerBase
Inheritance
System.Object
Assembly: Umbraco.Cms.Api.Delivery.dll
Syntax
public abstract class ContentApiItemControllerBase : ContentApiControllerBase
Constructors
View Source
ContentApiItemControllerBase(IApiPublishedContentCache, IApiContentResponseBuilder)
Declaration
protected ContentApiItemControllerBase(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilder)
Parameters
Type |
Name |
Description |
IApiPublishedContentCache |
apiPublishedContentCache |
|
IApiContentResponseBuilder |
apiContentResponseBuilder |
|
View Source
ContentApiItemControllerBase(IApiPublishedContentCache, IApiContentResponseBuilder, IPublicAccessService)
Declaration
protected ContentApiItemControllerBase(IApiPublishedContentCache apiPublishedContentCache, IApiContentResponseBuilder apiContentResponseBuilder, IPublicAccessService publicAccessService)
Parameters
Type |
Name |
Description |
IApiPublishedContentCache |
apiPublishedContentCache |
|
IApiContentResponseBuilder |
apiContentResponseBuilder |
|
IPublicAccessService |
publicAccessService |
|
Methods
View Source
HandleMemberAccessAsync(IEnumerable<IPublishedContent>, IRequestMemberAccessService)
Declaration
protected async Task<IActionResult?> HandleMemberAccessAsync(IEnumerable<IPublishedContent> contentItems, IRequestMemberAccessService requestMemberAccessService)
Parameters
Type |
Name |
Description |
IEnumerable<IPublishedContent> |
contentItems |
|
IRequestMemberAccessService |
requestMemberAccessService |
|
Returns
Type |
Description |
Task<System.Nullable<IActionResult>> |
|
View Source
HandleMemberAccessAsync(IPublishedContent, IRequestMemberAccessService)
Declaration
protected async Task<IActionResult?> HandleMemberAccessAsync(IPublishedContent contentItem, IRequestMemberAccessService requestMemberAccessService)
Parameters
Type |
Name |
Description |
IPublishedContent |
contentItem |
|
IRequestMemberAccessService |
requestMemberAccessService |
|
Returns
Type |
Description |
Task<System.Nullable<IActionResult>> |
|
View Source
IsProtected(IPublishedContent)
Declaration
protected bool IsProtected(IPublishedContent content)
Parameters
Type |
Name |
Description |
IPublishedContent |
content |
|
Returns
Type |
Description |
System.Boolean |
|