org.broadleafcommerce.profile.core.service
Class CustomerPaymentServiceImpl

java.lang.Object
  extended by org.broadleafcommerce.profile.core.service.CustomerPaymentServiceImpl
All Implemented Interfaces:
CustomerPaymentService

@Service(value="blCustomerPaymentService")
public class CustomerPaymentServiceImpl
extends Object
implements CustomerPaymentService


Field Summary
protected  CustomerPaymentDao customerPaymentDao
          Services
protected  CustomerService customerService
           
 
Constructor Summary
CustomerPaymentServiceImpl()
           
 
Method Summary
 CustomerPayment create()
           
 void deleteCustomerPaymentById(Long customerPaymentId)
           
 Customer deleteCustomerPaymentFromCustomer(Customer customer, CustomerPayment payment)
           
 CustomerPayment findDefaultPaymentForCustomer(Customer customer)
           
 CustomerPayment readCustomerPaymentById(Long customerPaymentId)
           
 CustomerPayment readCustomerPaymentByToken(String token)
           
 List<CustomerPayment> readCustomerPaymentsByCustomerId(Long customerId)
           
 CustomerPayment saveCustomerPayment(CustomerPayment customerPayment)
           
 CustomerPayment setAsDefaultPayment(CustomerPayment payment)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

customerPaymentDao

protected CustomerPaymentDao customerPaymentDao
Services


customerService

protected CustomerService customerService
Constructor Detail

CustomerPaymentServiceImpl

public CustomerPaymentServiceImpl()
Method Detail

saveCustomerPayment

@Transactional(value="blTransactionManager")
public CustomerPayment saveCustomerPayment(CustomerPayment customerPayment)
Specified by:
saveCustomerPayment in interface CustomerPaymentService

readCustomerPaymentsByCustomerId

public List<CustomerPayment> readCustomerPaymentsByCustomerId(Long customerId)
Specified by:
readCustomerPaymentsByCustomerId in interface CustomerPaymentService

readCustomerPaymentById

public CustomerPayment readCustomerPaymentById(Long customerPaymentId)
Specified by:
readCustomerPaymentById in interface CustomerPaymentService

readCustomerPaymentByToken

public CustomerPayment readCustomerPaymentByToken(String token)
Specified by:
readCustomerPaymentByToken in interface CustomerPaymentService

deleteCustomerPaymentById

@Transactional(value="blTransactionManager")
public void deleteCustomerPaymentById(Long customerPaymentId)
Specified by:
deleteCustomerPaymentById in interface CustomerPaymentService

create

@Transactional(value="blTransactionManager")
public CustomerPayment create()
Specified by:
create in interface CustomerPaymentService

findDefaultPaymentForCustomer

public CustomerPayment findDefaultPaymentForCustomer(Customer customer)
Specified by:
findDefaultPaymentForCustomer in interface CustomerPaymentService

setAsDefaultPayment

@Transactional(value="blTransactionManager")
public CustomerPayment setAsDefaultPayment(CustomerPayment payment)
Specified by:
setAsDefaultPayment in interface CustomerPaymentService

deleteCustomerPaymentFromCustomer

@Transactional(value="blTransactionManager")
public Customer deleteCustomerPaymentFromCustomer(Customer customer,
                                                                CustomerPayment payment)
Specified by:
deleteCustomerPaymentFromCustomer in interface CustomerPaymentService


Copyright © 2013. All Rights Reserved.