Esempio n. 1
0
 /**
  * Delete customer
  *
  * @param backingBean
  * @throws ParentChildConstraintException
  */
 private void deleteCustomer(CustomerAdminBackingBean backingBean)
     throws ParentChildConstraintException {
   customerService.deleteCustomer(backingBean.getCustomer().getCustomerId());
 }
Esempio n. 2
0
 /**
  * Persist customer to db
  *
  * @param backingBean
  * @throws ObjectNotUniqueException
  */
 private void persistCustomer(CustomerAdminBackingBean backingBean)
     throws ObjectNotUniqueException {
   customerService.persistCustomer(backingBean.getCustomer());
 }