Class CustomerService
- java.lang.Object
-
- fr.paris.lutece.plugins.grubusiness.business.customer.CustomerService
-
public class CustomerService extends java.lang.ObjectService used to find customer
-
-
Constructor Summary
Constructors Constructor Description CustomerService(ICustomerDAO daoCustomer)Constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<Customer>findbyFilter(java.util.Map<java.lang.String,java.lang.String> mapFilter)Find all the customers corresponding to the specified filterCustomerfindById(java.lang.String strCustomerId)Find a customer by its idjava.util.List<Customer>findbyName(java.lang.String strFirstName, java.lang.String strLastName)Find all the customers with the specified first name and last name
-
-
-
Constructor Detail
-
CustomerService
public CustomerService(ICustomerDAO daoCustomer)
Constructor- Parameters:
daoCustomer- the customer DAO used by this service
-
-
Method Detail
-
findbyFilter
public java.util.List<Customer> findbyFilter(java.util.Map<java.lang.String,java.lang.String> mapFilter)
Find all the customers corresponding to the specified filter- Parameters:
mapFilter- the filter- Returns:
- the list of customers
-
findbyName
public java.util.List<Customer> findbyName(java.lang.String strFirstName, java.lang.String strLastName)
Find all the customers with the specified first name and last name- Parameters:
strFirstName- the customer first namestrLastName- the customer last name- Returns:
- the list of customers
-
findById
public Customer findById(java.lang.String strCustomerId)
Find a customer by its id- Parameters:
strCustomerId- the customer id- Returns:
- the customer with the specified id
-
-