Show / Hide Table of Contents

Class BlogPostAdminAppService

Inheritance
object
ApplicationService
CmsKitAppServiceBase
BlogPostAdminAppService
Implements
IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IBlogPostAdminAppService
ICrudAppService<BlogPostDto, BlogPostListDto, Guid, BlogPostGetListInput, CreateBlogPostDto, UpdateBlogPostDto>
IReadOnlyAppService<BlogPostDto, BlogPostListDto, Guid, BlogPostGetListInput>
ICreateUpdateAppService<BlogPostDto, Guid, CreateBlogPostDto, UpdateBlogPostDto>
ICreateAppService<BlogPostDto, CreateBlogPostDto>
IUpdateAppService<BlogPostDto, Guid, UpdateBlogPostDto>
IDeleteAppService<Guid>
IApplicationService
IRemoteService
Inherited Members
ApplicationService.CheckPolicyAsync(string)
ApplicationService.CreateLocalizer()
ApplicationService.LazyServiceProvider
ApplicationService.ServiceProvider
ApplicationService.CommonPostfixes
ApplicationService.AppliedCrossCuttingConcerns
ApplicationService.UnitOfWorkManager
ApplicationService.AsyncExecuter
ApplicationService.ObjectMapperContext
ApplicationService.ObjectMapper
ApplicationService.GuidGenerator
ApplicationService.LoggerFactory
ApplicationService.CurrentTenant
ApplicationService.DataFilter
ApplicationService.CurrentUser
ApplicationService.SettingProvider
ApplicationService.Clock
ApplicationService.AuthorizationService
ApplicationService.FeatureChecker
ApplicationService.StringLocalizerFactory
ApplicationService.L
ApplicationService.LocalizationResource
ApplicationService.CurrentUnitOfWork
ApplicationService.Logger
object.GetType()
object.MemberwiseClone()
object.ToString()
object.Equals(object)
object.Equals(object, object)
object.ReferenceEquals(object, object)
object.GetHashCode()
Namespace: Volo.CmsKit.Admin.Blogs
Assembly: Volo.CmsKit.Admin.Application.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.BlogEnable" })]
[RequiresGlobalFeature(typeof(BlogsFeature))]
[Authorize("CmsKit.BlogPosts")]
public class BlogPostAdminAppService : CmsKitAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, IBlogPostAdminAppService, ICrudAppService<BlogPostDto, BlogPostListDto, Guid, BlogPostGetListInput, CreateBlogPostDto, UpdateBlogPostDto>, IReadOnlyAppService<BlogPostDto, BlogPostListDto, Guid, BlogPostGetListInput>, ICreateUpdateAppService<BlogPostDto, Guid, CreateBlogPostDto, UpdateBlogPostDto>, ICreateAppService<BlogPostDto, CreateBlogPostDto>, IUpdateAppService<BlogPostDto, Guid, UpdateBlogPostDto>, IDeleteAppService<Guid>, IApplicationService, IRemoteService

Constructors

BlogPostAdminAppService(BlogPostManager, IBlogPostRepository, IBlogRepository, ICmsUserLookupService, IMediaDescriptorAdminAppService)

Declaration
public BlogPostAdminAppService(BlogPostManager blogPostManager, IBlogPostRepository blogPostRepository, IBlogRepository blogRepository, ICmsUserLookupService userLookupService, IMediaDescriptorAdminAppService mediaDescriptorAdminAppService)
Parameters
Type Name Description
BlogPostManager blogPostManager
IBlogPostRepository blogPostRepository
IBlogRepository blogRepository
ICmsUserLookupService userLookupService
IMediaDescriptorAdminAppService mediaDescriptorAdminAppService

Properties

BlogPostManager

Declaration
protected BlogPostManager BlogPostManager { get; }
Property Value
Type Description
BlogPostManager

BlogPostRepository

Declaration
protected IBlogPostRepository BlogPostRepository { get; }
Property Value
Type Description
IBlogPostRepository

BlogRepository

Declaration
protected IBlogRepository BlogRepository { get; }
Property Value
Type Description
IBlogRepository

MediaDescriptorAdminAppService

Declaration
protected IMediaDescriptorAdminAppService MediaDescriptorAdminAppService { get; }
Property Value
Type Description
IMediaDescriptorAdminAppService

UserLookupService

Declaration
protected ICmsUserLookupService UserLookupService { get; }
Property Value
Type Description
ICmsUserLookupService

Methods

CreateAndPublishAsync(CreateBlogPostDto)

Declaration
[Authorize("CmsKit.BlogPosts.Create")]
[Authorize("CmsKit.BlogPosts.Publish")]
public virtual Task<BlogPostDto> CreateAndPublishAsync(CreateBlogPostDto input)
Parameters
Type Name Description
CreateBlogPostDto input
Returns
Type Description
Task<BlogPostDto>

CreateAndSendToReviewAsync(CreateBlogPostDto)

Declaration
[Authorize("CmsKit.BlogPosts.Create")]
public virtual Task<BlogPostDto> CreateAndSendToReviewAsync(CreateBlogPostDto input)
Parameters
Type Name Description
CreateBlogPostDto input
Returns
Type Description
Task<BlogPostDto>

CreateAsync(CreateBlogPostDto)

Declaration
[Authorize("CmsKit.BlogPosts.Create")]
public virtual Task<BlogPostDto> CreateAsync(CreateBlogPostDto input)
Parameters
Type Name Description
CreateBlogPostDto input
Returns
Type Description
Task<BlogPostDto>

DeleteAsync(Guid)

Declaration
[Authorize("CmsKit.BlogPosts.Delete")]
public virtual Task DeleteAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

DraftAsync(Guid)

Declaration
[Authorize("CmsKit.BlogPosts.Update")]
public virtual Task DraftAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

GetAsync(Guid)

Declaration
[Authorize("CmsKit.BlogPosts")]
public virtual Task<BlogPostDto> GetAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<BlogPostDto>

GetListAsync(BlogPostGetListInput)

Declaration
[Authorize("CmsKit.BlogPosts")]
public virtual Task<PagedResultDto<BlogPostListDto>> GetListAsync(BlogPostGetListInput input)
Parameters
Type Name Description
BlogPostGetListInput input
Returns
Type Description
Task<PagedResultDto<BlogPostListDto>>

HasBlogPostWaitingForReviewAsync()

Declaration
[Authorize("CmsKit.BlogPosts.Publish")]
public virtual Task<bool> HasBlogPostWaitingForReviewAsync()
Returns
Type Description
Task<bool>

PublishAsync(Guid)

Declaration
[Authorize("CmsKit.BlogPosts.Publish")]
public virtual Task PublishAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

SendToReviewAsync(Guid)

Declaration
[Authorize("CmsKit.BlogPosts.Create")]
public virtual Task SendToReviewAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task

UpdateAsync(Guid, UpdateBlogPostDto)

Declaration
[Authorize("CmsKit.BlogPosts.Update")]
public virtual Task<BlogPostDto> UpdateAsync(Guid id, UpdateBlogPostDto input)
Parameters
Type Name Description
Guid id
UpdateBlogPostDto input
Returns
Type Description
Task<BlogPostDto>

Implements

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
IBlogPostAdminAppService
ICrudAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput, TCreateInput, TUpdateInput>
IReadOnlyAppService<TGetOutputDto, TGetListOutputDto, TKey, TGetListInput>
ICreateUpdateAppService<TGetOutputDto, TKey, TCreateUpdateInput, TUpdateInput>
ICreateAppService<TGetOutputDto, TCreateInput>
IUpdateAppService<TGetOutputDto, TKey, TUpdateInput>
IDeleteAppService<TKey>
IApplicationService
IRemoteService

Extension Methods

AbpObjectExtensions.As<T>(object)
AbpObjectExtensions.To<T>(object)
LockExtensions.Locking(object, Action)
LockExtensions.Locking<TResult>(object, Func<TResult>)
AbpObjectExtensions.If<T>(T, bool, Action<T>)
AbpObjectExtensions.If<T>(T, bool, Func<T, T>)
AbpObjectExtensions.IsIn<T>(T, IEnumerable<T>)
AbpObjectExtensions.IsIn<T>(T, params T[])
AbpQueryableExtensions.OrderByIf<T, TQueryable>(TQueryable, bool, string)
AbpQueryableExtensions.PageBy<T, TQueryable>(TQueryable, int, int)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, bool>>)
AbpQueryableExtensions.WhereIf<T, TQueryable>(TQueryable, bool, Expression<Func<T, int, bool>>)
AbpOpenIddictQueryableExtensions.SkipIf<T, TQueryable>(TQueryable, bool, int?)
AbpOpenIddictQueryableExtensions.TakeIf<T, TQueryable>(TQueryable, bool, int?)
LockExtensions.Locking<T>(T, Action<T>)
LockExtensions.Locking<T, TResult>(T, Func<T, TResult>)
In this article
Back to top Powered by ABP.IO Platform