C# Класс Nop.Services.Logging.CustomerActivityService

Customer activity service
Наследование: ICustomerActivityService
Показать файл Открыть проект

Открытые методы

Метод Описание
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