Class DefaultCustomerService
- java.lang.Object
-
- de.hybris.platform.commerceservices.customer.impl.DefaultCustomerService
-
- All Implemented Interfaces:
CustomerService
public class DefaultCustomerService extends java.lang.Object implements CustomerService
Provides methods for retrieving the customer and verify customer id
-
-
Constructor Summary
Constructors Constructor Description DefaultCustomerService(CustomerDao customerDao, java.lang.String regexp)Service constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomerModelgetCustomerByCustomerId(java.lang.String customerId)Gets the customer by customerIdprotected CustomerDaogetCustomerDao()booleanisUUID(java.lang.String id)Verifies if given id is in UUID format
-
-
-
Constructor Detail
-
DefaultCustomerService
public DefaultCustomerService(CustomerDao customerDao, java.lang.String regexp)
Service constructor- Parameters:
customerDao- DAO for retrieving customerregexp- regular expression for UUID validation
-
-
Method Detail
-
isUUID
public boolean isUUID(java.lang.String id)
Description copied from interface:CustomerServiceVerifies if given id is in UUID format- Specified by:
isUUIDin interfaceCustomerService- Parameters:
id- the id- Returns:
trueif UUID format
-
getCustomerByCustomerId
public CustomerModel getCustomerByCustomerId(java.lang.String customerId)
Description copied from interface:CustomerServiceGets the customer by customerId- Specified by:
getCustomerByCustomerIdin interfaceCustomerService- Parameters:
customerId- the customerID in UUID format of the customer- Returns:
- the found customer
-
getCustomerDao
protected CustomerDao getCustomerDao()
-
-