C# 클래스 Nop.Services.Customers.CustomerService

Customer service
상속: ICustomerService
파일 보기 프로젝트 열기: grandnode/grandnode

공개 메소드들

메소드 설명
CustomerService ( ICacheManager cacheManager, IRepository customerRepository, IRepository customerRoleRepository, IRepository customerRoleProductRepository, IRepository orderRepository, IRepository forumPostRepository, IRepository forumTopicRepository, IRepository blogCommentRepository, IRepository newsCommentRepository, IRepository pollVotingRecordRepository, IRepository productReviewRepository, IRepository productReviewHelpfulnessRepository, IGenericAttributeService genericAttributeService, IDataProvider dataProvider, IEventPublisher eventPublisher, CustomerSettings customerSettings, CommonSettings commonSettings ) : System
DeleteAddress ( Nop.Core.Domain.Common.Address address ) : void
DeleteCustomer ( Customer customer ) : void

Delete a customer

DeleteCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void

Delete a customer role

DeleteCustomerRoleInCustomer ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void
DeleteCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void

Delete a customer role product

DeleteGuestCustomers ( System.DateTime createdFromUtc, System.DateTime createdToUtc, bool onlyWithoutShoppingCart ) : int

Delete guest customer records

DeleteShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void
GetAllCustomerRoles ( bool showHidden = false ) : IList

Gets all customer roles

GetAllCustomers ( System.DateTime createdFromUtc = null, System.DateTime createdToUtc = null, int affiliateId, int vendorId, int customerRoleIds = null, string email = null, string username = null, string firstName = null, string lastName = null, int dayOfBirth, int monthOfBirth, string company = null, string phone = null, string zipPostalCode = null, bool loadOnlyWithShoppingCart = false, ShoppingCartType sct = null, int pageIndex, int pageSize = 2147483647 ) : IPagedList

Gets all customers

GetAllCustomersByPasswordFormat ( PasswordFormat passwordFormat ) : IList

Gets all customers by customer format (including deleted ones)

GetCustomerByEmail ( string email ) : Customer

Get customer by email

GetCustomerByGuid ( System.Guid customerGuid ) : Customer

Gets a customer by GUID

GetCustomerById ( int customerId ) : Customer

Gets a customer

GetCustomerBySystemName ( string systemName ) : Customer

Get customer by system name

GetCustomerByUsername ( string username ) : Customer

Get customer by username

GetCustomerRoleById ( int customerRoleId ) : Nop.Core.Domain.Customers.CustomerRole

Gets a customer role

GetCustomerRoleBySystemName ( string systemName ) : Nop.Core.Domain.Customers.CustomerRole

Gets a customer role

GetCustomerRoleProduct ( int customerRoleId, int productId ) : Nop.Core.Domain.Customers.CustomerRoleProduct

Gets customer roles products for customer role

GetCustomerRoleProductById ( int id ) : Nop.Core.Domain.Customers.CustomerRoleProduct

Gets customer roles product

GetCustomerRoleProducts ( int customerRoleId ) : IList

Gets customer roles products for customer role

GetCustomersByIds ( int customerIds ) : IList

Get customers by identifiers

GetOnlineCustomers ( System.DateTime lastActivityFromUtc, int customerRoleIds, int pageIndex, int pageSize = int.MaxValue ) : IPagedList

Gets online customers

InsertAddress ( Nop.Core.Domain.Common.Address address ) : void
InsertCustomer ( Customer customer ) : void

Insert a customer

InsertCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void

Inserts a customer role

InsertCustomerRoleInCustomer ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void
InsertCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void

Inserts a customer role product

InsertGuestCustomer ( ) : Customer

Insert a guest customer

InsertShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void
RemoveShippingAddress ( int customerId ) : void
ResetCheckoutData ( Customer customer, int storeId, bool clearCouponCodes = false, bool clearCheckoutAttributes = false, bool clearRewardPoints = true, bool clearShippingMethod = true, bool clearPaymentMethod = true ) : void

Reset data required for checkout

UpdateActive ( Customer customer ) : void
UpdateAddress ( Nop.Core.Domain.Common.Address address ) : void
UpdateAffiliate ( Customer customer ) : void

Updates the customer - last activity date

UpdateBillingAddress ( Nop.Core.Domain.Common.Address address ) : void
UpdateCustomer ( Customer customer ) : void

Updates the customer

UpdateCustomerLastActivityDate ( Customer customer ) : void

Updates the customer - last activity date

UpdateCustomerLastIpAddress ( Customer customer ) : void

Updates the customer - last activity date

UpdateCustomerLastLoginDate ( Customer customer ) : void

Updates the customer - last activity date

UpdateCustomerPassword ( Customer customer ) : void

Updates the customer - password

UpdateCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void

Updates the customer role

UpdateCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void

Updates the customer role product

UpdateCustomerVendor ( Customer customer ) : void
UpdateCustomerinAdminPanel ( Customer customer ) : void
UpdateHasBlogComments ( int customerId ) : void
UpdateHasForumPost ( int customerId ) : void
UpdateHasForumTopic ( int customerId ) : void
UpdateHasOrders ( int customerId ) : void
UpdateHasPoolVoting ( int customerId ) : void
UpdateHasProductReview ( int customerId ) : void
UpdateHasProductReviewH ( int customerId ) : void
UpdateHasShoppingCartItems ( Customer customer ) : void
UpdateNewsItem ( Customer customer ) : void
UpdateShippingAddress ( Nop.Core.Domain.Common.Address address ) : void
UpdateShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void

메소드 상세

CustomerService() 공개 메소드

public CustomerService ( ICacheManager cacheManager, IRepository customerRepository, IRepository customerRoleRepository, IRepository customerRoleProductRepository, IRepository orderRepository, IRepository forumPostRepository, IRepository forumTopicRepository, IRepository blogCommentRepository, IRepository newsCommentRepository, IRepository pollVotingRecordRepository, IRepository productReviewRepository, IRepository productReviewHelpfulnessRepository, IGenericAttributeService genericAttributeService, IDataProvider dataProvider, IEventPublisher eventPublisher, CustomerSettings customerSettings, CommonSettings commonSettings ) : System
cacheManager ICacheManager
customerRepository IRepository
customerRoleRepository IRepository
customerRoleProductRepository IRepository
orderRepository IRepository
forumPostRepository IRepository
forumTopicRepository IRepository
blogCommentRepository IRepository
newsCommentRepository IRepository
pollVotingRecordRepository IRepository
productReviewRepository IRepository
productReviewHelpfulnessRepository IRepository
genericAttributeService IGenericAttributeService
dataProvider IDataProvider
eventPublisher IEventPublisher
customerSettings Nop.Core.Domain.Customers.CustomerSettings
commonSettings Nop.Core.Domain.Common.CommonSettings
리턴 System

DeleteAddress() 공개 메소드

public DeleteAddress ( Nop.Core.Domain.Common.Address address ) : void
address Nop.Core.Domain.Common.Address
리턴 void

DeleteCustomer() 공개 메소드

Delete a customer
public DeleteCustomer ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer Customer
리턴 void

DeleteCustomerRole() 공개 메소드

Delete a customer role
public DeleteCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void
customerRole Nop.Core.Domain.Customers.CustomerRole Customer role
리턴 void

DeleteCustomerRoleInCustomer() 공개 메소드

public DeleteCustomerRoleInCustomer ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void
customerRole Nop.Core.Domain.Customers.CustomerRole
리턴 void

DeleteCustomerRoleProduct() 공개 메소드

Delete a customer role product
public DeleteCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void
customerRoleProduct Nop.Core.Domain.Customers.CustomerRoleProduct Customer role product
리턴 void

DeleteGuestCustomers() 공개 메소드

Delete guest customer records
public DeleteGuestCustomers ( System.DateTime createdFromUtc, System.DateTime createdToUtc, bool onlyWithoutShoppingCart ) : int
createdFromUtc System.DateTime Created date from (UTC); null to load all records
createdToUtc System.DateTime Created date to (UTC); null to load all records
onlyWithoutShoppingCart bool A value indicating whether to delete customers only without shopping cart
리턴 int

DeleteShoppingCartItem() 공개 메소드

public DeleteShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void
shoppingCartItem Nop.Core.Domain.Orders.ShoppingCartItem
리턴 void

GetAllCustomerRoles() 공개 메소드

Gets all customer roles
public GetAllCustomerRoles ( bool showHidden = false ) : IList
showHidden bool A value indicating whether to show hidden records
리턴 IList

GetAllCustomers() 공개 메소드

Gets all customers
public GetAllCustomers ( System.DateTime createdFromUtc = null, System.DateTime createdToUtc = null, int affiliateId, int vendorId, int customerRoleIds = null, string email = null, string username = null, string firstName = null, string lastName = null, int dayOfBirth, int monthOfBirth, string company = null, string phone = null, string zipPostalCode = null, bool loadOnlyWithShoppingCart = false, ShoppingCartType sct = null, int pageIndex, int pageSize = 2147483647 ) : IPagedList
createdFromUtc System.DateTime Created date from (UTC); null to load all records
createdToUtc System.DateTime Created date to (UTC); null to load all records
affiliateId int Affiliate identifier
vendorId int Vendor identifier
customerRoleIds int A list of customer role identifiers to filter by (at least one match); pass null or empty list in order to load all customers;
email string Email; null to load all customers
username string Username; null to load all customers
firstName string First name; null to load all customers
lastName string Last name; null to load all customers
dayOfBirth int Day of birth; 0 to load all customers
monthOfBirth int Month of birth; 0 to load all customers
company string Company; null to load all customers
phone string Phone; null to load all customers
zipPostalCode string Phone; null to load all customers
loadOnlyWithShoppingCart bool Value indicating whether to load customers only with shopping cart
sct ShoppingCartType Value indicating what shopping cart type to filter; userd when 'loadOnlyWithShoppingCart' param is 'true'
pageIndex int Page index
pageSize int Page size
리턴 IPagedList

GetAllCustomersByPasswordFormat() 공개 메소드

Gets all customers by customer format (including deleted ones)
public GetAllCustomersByPasswordFormat ( PasswordFormat passwordFormat ) : IList
passwordFormat PasswordFormat Password format
리턴 IList

GetCustomerByEmail() 공개 메소드

Get customer by email
public GetCustomerByEmail ( string email ) : Customer
email string Email
리턴 Nop.Core.Domain.Customers.Customer

GetCustomerByGuid() 공개 메소드

Gets a customer by GUID
public GetCustomerByGuid ( System.Guid customerGuid ) : Customer
customerGuid System.Guid Customer GUID
리턴 Nop.Core.Domain.Customers.Customer

GetCustomerById() 공개 메소드

Gets a customer
public GetCustomerById ( int customerId ) : Customer
customerId int Customer identifier
리턴 Nop.Core.Domain.Customers.Customer

GetCustomerBySystemName() 공개 메소드

Get customer by system name
public GetCustomerBySystemName ( string systemName ) : Customer
systemName string System name
리턴 Nop.Core.Domain.Customers.Customer

GetCustomerByUsername() 공개 메소드

Get customer by username
public GetCustomerByUsername ( string username ) : Customer
username string Username
리턴 Nop.Core.Domain.Customers.Customer

GetCustomerRoleById() 공개 메소드

Gets a customer role
public GetCustomerRoleById ( int customerRoleId ) : Nop.Core.Domain.Customers.CustomerRole
customerRoleId int Customer role identifier
리턴 Nop.Core.Domain.Customers.CustomerRole

GetCustomerRoleBySystemName() 공개 메소드

Gets a customer role
public GetCustomerRoleBySystemName ( string systemName ) : Nop.Core.Domain.Customers.CustomerRole
systemName string Customer role system name
리턴 Nop.Core.Domain.Customers.CustomerRole

GetCustomerRoleProduct() 공개 메소드

Gets customer roles products for customer role
public GetCustomerRoleProduct ( int customerRoleId, int productId ) : Nop.Core.Domain.Customers.CustomerRoleProduct
customerRoleId int Customer role id
productId int Product id
리턴 Nop.Core.Domain.Customers.CustomerRoleProduct

GetCustomerRoleProductById() 공개 메소드

Gets customer roles product
public GetCustomerRoleProductById ( int id ) : Nop.Core.Domain.Customers.CustomerRoleProduct
id int
리턴 Nop.Core.Domain.Customers.CustomerRoleProduct

GetCustomerRoleProducts() 공개 메소드

Gets customer roles products for customer role
public GetCustomerRoleProducts ( int customerRoleId ) : IList
customerRoleId int Customer role id
리턴 IList

GetCustomersByIds() 공개 메소드

Get customers by identifiers
public GetCustomersByIds ( int customerIds ) : IList
customerIds int Customer identifiers
리턴 IList

GetOnlineCustomers() 공개 메소드

Gets online customers
public GetOnlineCustomers ( System.DateTime lastActivityFromUtc, int customerRoleIds, int pageIndex, int pageSize = int.MaxValue ) : IPagedList
lastActivityFromUtc System.DateTime Customer last activity date (from)
customerRoleIds int A list of customer role identifiers to filter by (at least one match); pass null or empty list in order to load all customers;
pageIndex int Page index
pageSize int Page size
리턴 IPagedList

InsertAddress() 공개 메소드

public InsertAddress ( Nop.Core.Domain.Common.Address address ) : void
address Nop.Core.Domain.Common.Address
리턴 void

InsertCustomer() 공개 메소드

Insert a customer
public InsertCustomer ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer Customer
리턴 void

InsertCustomerRole() 공개 메소드

Inserts a customer role
public InsertCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void
customerRole Nop.Core.Domain.Customers.CustomerRole Customer role
리턴 void

InsertCustomerRoleInCustomer() 공개 메소드

public InsertCustomerRoleInCustomer ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void
customerRole Nop.Core.Domain.Customers.CustomerRole
리턴 void

InsertCustomerRoleProduct() 공개 메소드

Inserts a customer role product
public InsertCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void
customerRoleProduct Nop.Core.Domain.Customers.CustomerRoleProduct Customer role product
리턴 void

InsertGuestCustomer() 공개 메소드

Insert a guest customer
public InsertGuestCustomer ( ) : Customer
리턴 Nop.Core.Domain.Customers.Customer

InsertShoppingCartItem() 공개 메소드

public InsertShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void
shoppingCartItem Nop.Core.Domain.Orders.ShoppingCartItem
리턴 void

RemoveShippingAddress() 공개 메소드

public RemoveShippingAddress ( int customerId ) : void
customerId int
리턴 void

ResetCheckoutData() 공개 메소드

Reset data required for checkout
public ResetCheckoutData ( Customer customer, int storeId, bool clearCouponCodes = false, bool clearCheckoutAttributes = false, bool clearRewardPoints = true, bool clearShippingMethod = true, bool clearPaymentMethod = true ) : void
customer Nop.Core.Domain.Customers.Customer Customer
storeId int Store identifier
clearCouponCodes bool A value indicating whether to clear coupon code
clearCheckoutAttributes bool A value indicating whether to clear selected checkout attributes
clearRewardPoints bool A value indicating whether to clear "Use reward points" flag
clearShippingMethod bool A value indicating whether to clear selected shipping method
clearPaymentMethod bool A value indicating whether to clear selected payment method
리턴 void

UpdateActive() 공개 메소드

public UpdateActive ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer
리턴 void

UpdateAddress() 공개 메소드

public UpdateAddress ( Nop.Core.Domain.Common.Address address ) : void
address Nop.Core.Domain.Common.Address
리턴 void

UpdateAffiliate() 공개 메소드

Updates the customer - last activity date
public UpdateAffiliate ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer Customer
리턴 void

UpdateBillingAddress() 공개 메소드

public UpdateBillingAddress ( Nop.Core.Domain.Common.Address address ) : void
address Nop.Core.Domain.Common.Address
리턴 void

UpdateCustomer() 공개 메소드

Updates the customer
public UpdateCustomer ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer Customer
리턴 void

UpdateCustomerLastActivityDate() 공개 메소드

Updates the customer - last activity date
public UpdateCustomerLastActivityDate ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer Customer
리턴 void

UpdateCustomerLastIpAddress() 공개 메소드

Updates the customer - last activity date
public UpdateCustomerLastIpAddress ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer Customer
리턴 void

UpdateCustomerLastLoginDate() 공개 메소드

Updates the customer - last activity date
public UpdateCustomerLastLoginDate ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer Customer
리턴 void

UpdateCustomerPassword() 공개 메소드

Updates the customer - password
public UpdateCustomerPassword ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer Customer
리턴 void

UpdateCustomerRole() 공개 메소드

Updates the customer role
public UpdateCustomerRole ( Nop.Core.Domain.Customers.CustomerRole customerRole ) : void
customerRole Nop.Core.Domain.Customers.CustomerRole Customer role
리턴 void

UpdateCustomerRoleProduct() 공개 메소드

Updates the customer role product
public UpdateCustomerRoleProduct ( Nop.Core.Domain.Customers.CustomerRoleProduct customerRoleProduct ) : void
customerRoleProduct Nop.Core.Domain.Customers.CustomerRoleProduct Customer role product
리턴 void

UpdateCustomerVendor() 공개 메소드

public UpdateCustomerVendor ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer Customer
리턴 void

UpdateCustomerinAdminPanel() 공개 메소드

public UpdateCustomerinAdminPanel ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer
리턴 void

UpdateHasBlogComments() 공개 메소드

public UpdateHasBlogComments ( int customerId ) : void
customerId int
리턴 void

UpdateHasForumPost() 공개 메소드

public UpdateHasForumPost ( int customerId ) : void
customerId int
리턴 void

UpdateHasForumTopic() 공개 메소드

public UpdateHasForumTopic ( int customerId ) : void
customerId int
리턴 void

UpdateHasOrders() 공개 메소드

public UpdateHasOrders ( int customerId ) : void
customerId int
리턴 void

UpdateHasPoolVoting() 공개 메소드

public UpdateHasPoolVoting ( int customerId ) : void
customerId int
리턴 void

UpdateHasProductReview() 공개 메소드

public UpdateHasProductReview ( int customerId ) : void
customerId int
리턴 void

UpdateHasProductReviewH() 공개 메소드

public UpdateHasProductReviewH ( int customerId ) : void
customerId int
리턴 void

UpdateHasShoppingCartItems() 공개 메소드

public UpdateHasShoppingCartItems ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer
리턴 void

UpdateNewsItem() 공개 메소드

public UpdateNewsItem ( Customer customer ) : void
customer Nop.Core.Domain.Customers.Customer
리턴 void

UpdateShippingAddress() 공개 메소드

public UpdateShippingAddress ( Nop.Core.Domain.Common.Address address ) : void
address Nop.Core.Domain.Common.Address
리턴 void

UpdateShoppingCartItem() 공개 메소드

public UpdateShoppingCartItem ( Nop.Core.Domain.Orders.ShoppingCartItem shoppingCartItem ) : void
shoppingCartItem Nop.Core.Domain.Orders.ShoppingCartItem
리턴 void