public interface ContactServiceLocal extends ContactService, CRUDServiceLocal<Contact,ContactDTO,ContactData,ContactDataParams>
ContactService| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ATTR_OWNER
Attribute name for scripting: The contact owner when searching the contact list
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
canAddToContacts(User owner,
User contact)
Returns true if the given owner can add the given user as contact.
|
Contact |
getByOwnerAndContact(User owner,
User contact)
Returns the contact for the given owner and contact users, returning null if not a contact
|
boolean |
isContact(User owner,
User contact)
Returns whether the given user is a contact of the given user
|
void |
removeAll(User user)
Removes all contacts where the given user is either the owner or the contact
|
getSearchData, removeByOwnerAndContact, searchfind, findAll, getEntityClass, newEntity, remove, removeAll, saveSkippingEntityLog, toDTO, toEntity, validategetData, getDataForNew, load, remove, removeAll, savestatic final java.lang.String ATTR_OWNER
boolean canAddToContacts(User owner, User contact)
Contact getByOwnerAndContact(User owner, User contact)
boolean isContact(User owner, User contact)
void removeAll(User user)