Package org.cyclos.impl.users
Interface ContactServiceLocal
-
- All Superinterfaces:
ContactService,CRUDService<ContactDTO,ContactData,ContactDataParams>,CRUDServiceLocal<Contact,ContactDTO,ContactData,ContactDataParams>,Service
public interface ContactServiceLocal extends ContactService, CRUDServiceLocal<Contact,ContactDTO,ContactData,ContactDataParams>
Local interface forContactService
-
-
Field Summary
Fields Modifier and Type Field Description static StringATTR_OWNERAttribute name for scripting: The contact owner when searching the contact list
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description booleancanAddToContacts(BasicUser owner, BasicUser contact)Returns true if the given owner can add the given user as contact.ContactgetByOwnerAndContact(User owner, User contact)Returns the contact for the given owner and contact users, returning null if not a contactbooleanisContact(User owner, User contact)Returns whether the given user is a contact of the given uservoidremoveAll(User user)Removes all contacts where the given user is either the owner or the contact-
Methods inherited from interface org.cyclos.services.users.ContactService
getSearchData, search
-
Methods inherited from interface org.cyclos.services.CRUDService
getData, getDataForNew, load, remove, removeAll, save
-
Methods inherited from interface org.cyclos.impl.CRUDServiceLocal
find, findAll, getEntityClass, newEntity, remove, removeAll, saveEntity, saveSkippingEntityLog, toDTO, toEntity, validate
-
-
-
-
Field Detail
-
ATTR_OWNER
static final String ATTR_OWNER
Attribute name for scripting: The contact owner when searching the contact list- See Also:
- Constant Field Values
-
-
Method Detail
-
canAddToContacts
boolean canAddToContacts(BasicUser owner, BasicUser contact)
Returns true if the given owner can add the given user as contact. If either is null or operator, returns false
-
getByOwnerAndContact
Contact getByOwnerAndContact(User owner, User contact)
Returns the contact for the given owner and contact users, returning null if not a contact
-
isContact
boolean isContact(User owner, User contact)
Returns whether the given user is a contact of the given user
-
removeAll
void removeAll(User user)
Removes all contacts where the given user is either the owner or the contact
-
-