C# Class Nop.Services.Logging.CustomerActivityService

Customer activity service
Inheritance: ICustomerActivityService
ファイルを表示 Open project: emilianionascu/NopCommerce

Public Methods

Method Description
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

Method Details

ClearAllActivities() public method

Clears activity log
public ClearAllActivities ( ) : void
return void

CustomerActivityService() public method

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
return System

DeleteActivity() public method

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

DeleteActivityType() public method

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

GetActivityById() public method

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

GetActivityTypeById() public method

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

GetAllActivities() public method

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
return IPagedList

GetAllActivityTypes() public method

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

InsertActivity() public method

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
return Nop.Core.Domain.Logging.ActivityLog

InsertActivity() public method

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
return Nop.Core.Domain.Logging.ActivityLog

InsertActivityType() public method

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

UpdateActivityType() public method

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