Interface ContactHandler
public interface ContactHandler
This handler provides access to
Contact objects.- Since:
- 11.26
-
Method Summary
Modifier and TypeMethodDescriptiongetContact(Call call) getContact(Chat chat) getContact(Ticket ticket) getContactByContactIdentifier(ContactIdentifier contactIdentifier) This method returns the optionalContactfor aContactIdentifier.getContactByContactIdentifier(ContactIdentifier contactIdentifier, Tenant tenant) getContactByID(Long id) This method returns the optionalContactof an id.getContactListByContactIdentifier(ContactIdentifier contactIdentifier) This method returns a list of all contacts matching any of the search criteria of theContactIdentifier.getContactListByContactIdentifier(ContactIdentifier contactIdentifier, Tenant tenant) This method returns a list of contacts that are assigned to aTenantand matching any of the search criteria of theContactIdentifier.getContactModifier(Contact contact, Optional<User> user) Build aContactModifierfor the passedContactobject.getContactRelationHandler(Contact contact, Optional<User> user) Build aContactRelationHandlerfor the passedContactobject.getJoinedContactList(Contact contact) Returns a list of contacts that are joined to the associatedContact.
-
Method Details
-
getContact
-
getContact
-
getContact
-
getContactByID
-
getContactByContactIdentifier
This method returns the optionalContactfor aContactIdentifier. If the search criteria of theContactIdentifierdo not match anyContactthe method returns an emptyOptional.- Parameters:
contactIdentifier- theContactIdentifierwith the search criteria inside.- Returns:
- the optional
Contactfor aContactIdentifier, or an emptyOptionalif the search criteria of theContactIdentifierdo not match anyContact. - Since:
- 12.24
-
getContactListByContactIdentifier
This method returns a list of all contacts matching any of the search criteria of theContactIdentifier. If more than oneContactis found, the list is sorted ascending by the contact's id.- Parameters:
contactIdentifier- theContactIdentifierwith the search criteria inside- Returns:
- the list of matching contacts
- Since:
- 12.24
-
getContactByContactIdentifier
This method returns the optionalContactfor aContactIdentifierand aTenant. If the search criteria of theContactIdentifierand theTenantdo not belong to anyContactthe method returns an emptyOptional.- Parameters:
contactIdentifier- theContactIdentifierwith the search criteria insidetenant- theTenantassigned to aContact- Returns:
- the optional
Contactfor aContactIdentifierand aTenant, or an emptyOptionalif the search criteria of theContactIdentifierand the Tenant do not match anyContact. - Since:
- 12.24
-
getContactListByContactIdentifier
This method returns a list of contacts that are assigned to aTenantand matching any of the search criteria of theContactIdentifier. If more than oneContactis found, the list is sorted ascending by the contact's id.- Parameters:
contactIdentifier- theContactIdentifierwith the search criteria insidetenant- theTenantassigned to aContact- Returns:
- the list of matching contacts
- Since:
- 12.24
-
getJoinedContactList
Returns a list of contacts that are joined to the associatedContact. If more than oneContactis found, the list is sorted ascending by the contact's id.- Parameters:
contact- theContactto be used to search for associated contacts- Returns:
- the list of associated contacts
- Since:
- 12.24
-
getContactModifier
Build aContactModifierfor the passedContactobject.- Parameters:
contact- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
ContactModifierassociated with theContact. - Since:
- 12.14
-
getContactRelationHandler
Build aContactRelationHandlerfor the passedContactobject.- Parameters:
contact- the instance to modifyuser- pass a user, if called in a user context. Otherwise pass an empty optional.- Returns:
- a
ContactRelationHandlerfor theContact. - Since:
- 12.24
-