private void preinitializeBean(long contactRecipientId) { ContactRecipient contactRecipient = contactRecipientBo.getContactRecipient(contactRecipientId); if (contactRecipient != null) { this.contactRecipientId = contactRecipient.getContactRecipientId(); this.firstName = contactRecipient.getFirstName(); this.lastName = contactRecipient.getLastName(); this.email = contactRecipient.getEmail(); } }
public String addContactRecipient() { ContactRecipient contactRecipient = new ContactRecipient(); contactRecipient.setFirstName(firstName); contactRecipient.setLastName(lastName); contactRecipient.setEmail(email); contactRecipientBo.addRecipient(contactRecipient); resetView(); return ""; }
public String removeContractRecipient(long contractRecipientId) { contactRecipientBo.removeRecipient(contractRecipientId); resetView(); return ""; }