@ApplicationScoped public class ContactServiceBean extends EntityServiceBase<Contact> implements ContactService
ContactService implemented as an injectable bean| Constructor and Description |
|---|
ContactServiceBean() |
| Modifier and Type | Method and Description |
|---|---|
Object |
createContact(View contactView) |
View |
findAllContacts() |
View |
findContactById(Long id) |
void |
init() |
View |
updateContact(Long id,
View contactView) |
create, delete, findById, getEntityManager, getViewContext, newEntity, onDelete, setEntityManager, setViewContext, update@PostConstruct public void init()
public View findAllContacts()
findAllContacts in interface ContactServicepublic View findContactById(Long id) throws NoSuchEntityException
findContactById in interface ContactServiceNoSuchEntityExceptionpublic Object createContact(View contactView)
createContact in interface ContactServicepublic View updateContact(Long id, View contactView) throws NoSuchEntityException, UpdateConflictException
updateContact in interface ContactServiceNoSuchEntityExceptionUpdateConflictExceptionCopyright © 2014–2016. All rights reserved.