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