C# 클래스 Nop.Services.Logging.CustomerActivityService

Customer activity service
상속: ICustomerActivityService
파일 보기 프로젝트 열기: emilianionascu/NopCommerce

공개 메소드들

메소드 설명
ClearAllActivities ( ) : void

Clears activity log

CustomerActivityService ( ICacheManager cacheManager, IRepository activityLogRepository, IRepository activityLogTypeRepository, IWorkContext workContext, IDbContext dbContext, IDataProvider dataProvider, CommonSettings commonSettings ) : System

Ctor

DeleteActivity ( Nop.Core.Domain.Logging.ActivityLog activityLog ) : void

Deletes an activity log item

DeleteActivityType ( ActivityLogType activityLogType ) : void

Deletes an activity log type item

GetActivityById ( int activityLogId ) : Nop.Core.Domain.Logging.ActivityLog

Gets an activity log item

GetActivityTypeById ( int activityLogTypeId ) : ActivityLogType

Gets an activity log type item

GetAllActivities ( System.DateTime createdOnFrom, System.DateTime createdOnTo, int customerId, int activityLogTypeId, int pageIndex, int pageSize ) : IPagedList

Gets all activity log items

GetAllActivityTypes ( ) : IList

Gets all activity log type items

InsertActivity ( string systemKeyword, string comment ) : Nop.Core.Domain.Logging.ActivityLog

Inserts an activity log item

InsertActivity ( string systemKeyword, string comment, Customer customer ) : Nop.Core.Domain.Logging.ActivityLog

Inserts an activity log item

InsertActivityType ( ActivityLogType activityLogType ) : void

Inserts an activity log type item

UpdateActivityType ( ActivityLogType activityLogType ) : void

Updates an activity log type item

메소드 상세

ClearAllActivities() 공개 메소드

Clears activity log
public ClearAllActivities ( ) : void
리턴 void

CustomerActivityService() 공개 메소드

Ctor
public CustomerActivityService ( ICacheManager cacheManager, IRepository activityLogRepository, IRepository activityLogTypeRepository, IWorkContext workContext, IDbContext dbContext, IDataProvider dataProvider, CommonSettings commonSettings ) : System
cacheManager ICacheManager Cache manager
activityLogRepository IRepository Activity log repository
activityLogTypeRepository IRepository Activity log type repository
workContext IWorkContext Work context
dbContext IDbContext DB context
dataProvider IDataProvider WeData provider
commonSettings Nop.Core.Domain.Common.CommonSettings Common settings
리턴 System

DeleteActivity() 공개 메소드

Deletes an activity log item
public DeleteActivity ( Nop.Core.Domain.Logging.ActivityLog activityLog ) : void
activityLog Nop.Core.Domain.Logging.ActivityLog Activity log type
리턴 void

DeleteActivityType() 공개 메소드

Deletes an activity log type item
public DeleteActivityType ( ActivityLogType activityLogType ) : void
activityLogType Nop.Core.Domain.Logging.ActivityLogType Activity log type
리턴 void

GetActivityById() 공개 메소드

Gets an activity log item
public GetActivityById ( int activityLogId ) : Nop.Core.Domain.Logging.ActivityLog
activityLogId int Activity log identifier
리턴 Nop.Core.Domain.Logging.ActivityLog

GetActivityTypeById() 공개 메소드

Gets an activity log type item
public GetActivityTypeById ( int activityLogTypeId ) : ActivityLogType
activityLogTypeId int Activity log type identifier
리턴 Nop.Core.Domain.Logging.ActivityLogType

GetAllActivities() 공개 메소드

Gets all activity log items
public GetAllActivities ( System.DateTime createdOnFrom, System.DateTime createdOnTo, int customerId, int activityLogTypeId, int pageIndex, int pageSize ) : IPagedList
createdOnFrom System.DateTime Log item creation from; null to load all customers
createdOnTo System.DateTime Log item creation to; null to load all customers
customerId int Customer identifier; null to load all customers
activityLogTypeId int Activity log type identifier
pageIndex int Page index
pageSize int Page size
리턴 IPagedList

GetAllActivityTypes() 공개 메소드

Gets all activity log type items
public GetAllActivityTypes ( ) : IList
리턴 IList

InsertActivity() 공개 메소드

Inserts an activity log item
public InsertActivity ( string systemKeyword, string comment ) : Nop.Core.Domain.Logging.ActivityLog
systemKeyword string The system keyword
comment string The activity comment
리턴 Nop.Core.Domain.Logging.ActivityLog

InsertActivity() 공개 메소드

Inserts an activity log item
public InsertActivity ( string systemKeyword, string comment, Customer customer ) : Nop.Core.Domain.Logging.ActivityLog
systemKeyword string The system keyword
comment string The activity comment
customer Nop.Core.Domain.Customers.Customer The customer
리턴 Nop.Core.Domain.Logging.ActivityLog

InsertActivityType() 공개 메소드

Inserts an activity log type item
public InsertActivityType ( ActivityLogType activityLogType ) : void
activityLogType Nop.Core.Domain.Logging.ActivityLogType Activity log type item
리턴 void

UpdateActivityType() 공개 메소드

Updates an activity log type item
public UpdateActivityType ( ActivityLogType activityLogType ) : void
activityLogType Nop.Core.Domain.Logging.ActivityLogType Activity log type item
리턴 void