@Component(value="blCustomerCustomPersistenceHandler") public class CustomerCustomPersistenceHandler extends CustomPersistenceHandlerAdapter
| Modifier and Type | Field and Description |
|---|---|
protected CustomerService |
customerService |
protected RoleDao |
roleDao |
protected boolean |
useEmailForLogin |
DEFAULT_ORDER| Constructor and Description |
|---|
CustomerCustomPersistenceHandler() |
| Modifier and Type | Method and Description |
|---|---|
Entity |
add(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
Boolean |
canHandleAdd(PersistencePackage persistencePackage) |
Boolean |
canHandleRemove(PersistencePackage persistencePackage) |
Boolean |
canHandleUpdate(PersistencePackage persistencePackage) |
void |
remove(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
Entity |
update(PersistencePackage persistencePackage,
DynamicEntityDao dynamicEntityDao,
RecordHelper helper) |
protected Entity |
validateUniqueUsername(Entity entity,
Customer adminInstance)
Validates that a Customer does not have their username duplicated
|
canHandleFetch, canHandleInspect, fetch, getMetadata, getOrder, getResultSet, inspect, willHandleSecurity@Value(value="${use.email.for.site.login:true}")
protected boolean useEmailForLogin
protected CustomerService customerService
protected RoleDao roleDao
public Boolean canHandleAdd(PersistencePackage persistencePackage)
canHandleAdd in interface CustomPersistenceHandlercanHandleAdd in class CustomPersistenceHandlerAdapterpublic Boolean canHandleUpdate(PersistencePackage persistencePackage)
canHandleUpdate in interface CustomPersistenceHandlercanHandleUpdate in class CustomPersistenceHandlerAdapterpublic Boolean canHandleRemove(PersistencePackage persistencePackage)
canHandleRemove in interface CustomPersistenceHandlercanHandleRemove in class CustomPersistenceHandlerAdapterpublic Entity add(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
add in interface CustomPersistenceHandleradd in class CustomPersistenceHandlerAdapterServiceExceptionpublic Entity update(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
update in interface CustomPersistenceHandlerupdate in class CustomPersistenceHandlerAdapterServiceExceptionprotected Entity validateUniqueUsername(Entity entity, Customer adminInstance)
entity - adminInstance - public void remove(PersistencePackage persistencePackage, DynamicEntityDao dynamicEntityDao, RecordHelper helper) throws ServiceException
remove in interface CustomPersistenceHandlerremove in class CustomPersistenceHandlerAdapterServiceExceptionCopyright © 2015. All Rights Reserved.