| Modifier and Type | Method and Description |
|---|---|
boolean |
NotEmptySearchField.Validator.isValid(ContactCard contact,
javax.validation.ConstraintValidatorContext constraintValidatorContext) |
boolean |
AtLeastOneContact.Validator.isValid(ContactCard contact,
javax.validation.ConstraintValidatorContext constraintValidatorContext) |
boolean |
HasId.Validator.isValid(ContactCard contact,
javax.validation.ConstraintValidatorContext constraintValidatorContext) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
NotEmptySearchField.ListValidator.isValid(List<ContactCard> contacts,
javax.validation.ConstraintValidatorContext constraintValidatorContext) |
boolean |
HasId.ListValidator.isValid(List<ContactCard> contacts,
javax.validation.ConstraintValidatorContext constraintValidatorContext) |
| Modifier and Type | Method and Description |
|---|---|
ContactCard |
ContactCardResource.addContact(ContactCard contact) |
ContactCard |
ContactCardResource.deleteContact(Long id) |
ContactCard |
ContactCardResource.getContact(Long id) |
| Modifier and Type | Method and Description |
|---|---|
List<ContactCard> |
ContactCardResource.deleteContacts() |
List<ContactCard> |
ContactCardResource.getContacts() |
List<ContactCard> |
SearchResource.searchForContact(String searchValue) |
| Modifier and Type | Method and Description |
|---|---|
ContactCard |
ContactCardResource.addContact(ContactCard contact) |
| Modifier and Type | Method and Description |
|---|---|
static ContactCard |
StorageService.addContact(ContactCard contact)
Adds a contact into the storage.
|
static ContactCard |
StorageService.get(Long id)
Retrieves contact with given
id. |
static ContactCard |
StorageService.remove(Long id)
Removes contact with given
id. |
| Modifier and Type | Method and Description |
|---|---|
static List<ContactCard> |
StorageService.clear()
Removes all contacts from the storage.
|
static List<ContactCard> |
StorageService.findByEmail(String emailPart)
Finds contacts whose email contains
emailPart as a substring. |
static List<ContactCard> |
StorageService.findByName(String namePart)
Finds contacts whose name contains
namePart as a substring. |
static List<ContactCard> |
StorageService.findByPhone(String phonePart)
Finds contacts whose phone contains
phonePart as a substring. |
| Modifier and Type | Method and Description |
|---|---|
static ContactCard |
StorageService.addContact(ContactCard contact)
Adds a contact into the storage.
|
Copyright © 2007-2017, Oracle and/or its affiliates. All Rights Reserved. Use is subject to license terms.