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