Show / Hide Table of Contents

Class CommentAdminAppService

Inheritance
object
ApplicationService
CmsKitAppServiceBase
CmsKitAdminAppServiceBase
CommentAdminAppService
Implements
IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
ICommentAdminAppService
IApplicationService
IRemoteService
Inherited Members
CmsKitAdminAppServiceBase.CheckAnyOfPoliciesAsync(IEnumerable<string>)
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.Comments
Assembly: Volo.CmsKit.Admin.Application.dll
Syntax
[RequiresFeature(new string[] { "CmsKit.CommentEnable" })]
[RequiresGlobalFeature(typeof(CommentsFeature))]
[Authorize("CmsKit.Comments")]
public class CommentAdminAppService : CmsKitAdminAppServiceBase, IAvoidDuplicateCrossCuttingConcerns, IValidationEnabled, IUnitOfWorkEnabled, IAuditingEnabled, IGlobalFeatureCheckingEnabled, ITransientDependency, ICommentAdminAppService, IApplicationService, IRemoteService

Constructors

CommentAdminAppService(ICommentRepository, ISettingManager)

Declaration
public CommentAdminAppService(ICommentRepository commentRepository, ISettingManager settingManager)
Parameters
Type Name Description
ICommentRepository commentRepository
ISettingManager settingManager

Properties

CommentRepository

Declaration
protected ICommentRepository CommentRepository { get; }
Property Value
Type Description
ICommentRepository

SettingManager

Declaration
protected ISettingManager SettingManager { get; }
Property Value
Type Description
ISettingManager

Methods

DeleteAsync(Guid)

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

GetAsync(Guid)

Declaration
public virtual Task<CommentWithAuthorDto> GetAsync(Guid id)
Parameters
Type Name Description
Guid id
Returns
Type Description
Task<CommentWithAuthorDto>

GetListAsync(CommentGetListInput)

Declaration
public virtual Task<PagedResultDto<CommentWithAuthorDto>> GetListAsync(CommentGetListInput input)
Parameters
Type Name Description
CommentGetListInput input
Returns
Type Description
Task<PagedResultDto<CommentWithAuthorDto>>

GetWaitingCountAsync()

Declaration
public Task<int> GetWaitingCountAsync()
Returns
Type Description
Task<int>

UpdateApprovalStatusAsync(Guid, CommentApprovalDto)

Declaration
[Authorize("CmsKit.Comments.Update")]
public Task UpdateApprovalStatusAsync(Guid id, CommentApprovalDto input)
Parameters
Type Name Description
Guid id
CommentApprovalDto input
Returns
Type Description
Task

UpdateSettingsAsync(CommentSettingsDto)

Declaration
[Authorize("CmsKit.Comments.SettingManagement")]
public Task UpdateSettingsAsync(CommentSettingsDto input)
Parameters
Type Name Description
CommentSettingsDto input
Returns
Type Description
Task

Implements

IAvoidDuplicateCrossCuttingConcerns
IValidationEnabled
IUnitOfWorkEnabled
IAuditingEnabled
IGlobalFeatureCheckingEnabled
ITransientDependency
ICommentAdminAppService
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