Interface ContactHandler


  • public interface ContactHandler
    This handler provides access to Contact objects.
    Since:
    11.26
    • Method Detail

      • getContact

        java.util.Optional<Contact> getContact​(Ticket ticket)
        This method returns the optional Contact of a Ticket. If the Ticket is not assigned to a Contact the methods returns an empty Optional.
        Parameters:
        ticket - the Ticket for which the Contact should be retrieved
        Returns:
        the optional Contact of a Ticket, or an empty Optional if the ticket has no contact.
        Since:
        11.26
      • getContact

        java.util.Optional<Contact> getContact​(Call call)
        This method returns the optional Contact of a Call. If the Call is not assigned to a Contact the methods returns an empty Optional.
        Parameters:
        call - the Call for which the Contact should be retrieved
        Returns:
        the optional Contact of a Call, or an empty Optional if the call has no contact.
        Since:
        12.14
      • getContactByID

        java.util.Optional<Contact> getContactByID​(java.lang.Long id)
        This method returns the optional Contact of an id. If the id is not assigned to a Contact the methods returns an empty Optional.
        Parameters:
        id - the id for which the Contact should be retrieved
        Returns:
        the optional Contact of an id, or an empty Optional if the ticket has no contact.
        Since:
        12.24
      • getContactListByContactIdentifier

        java.util.List<Contact> getContactListByContactIdentifier​(ContactIdentifier contactIdentifier)
        This method returns a list of all contacts matching any of the search criteria of the ContactIdentifier. If more than one Contact is found, the list is sorted ascending by the contact's id.
        Parameters:
        contactIdentifier - the ContactIdentifier with the search criteria inside
        Returns:
        the list of matching contacts
        Since:
        12.24
      • getContactListByContactIdentifier

        java.util.List<Contact> getContactListByContactIdentifier​(ContactIdentifier contactIdentifier,
                                                                  Tenant tenant)
        This method returns a list of contacts that are assigned to a Tenant and matching any of the search criteria of the ContactIdentifier. If more than one Contact is found, the list is sorted ascending by the contact's id.
        Parameters:
        contactIdentifier - the ContactIdentifier with the search criteria inside
        tenant - the Tenant assigned to a Contact
        Returns:
        the list of matching contacts
        Since:
        12.24
      • getJoinedContactList

        java.util.List<Contact> getJoinedContactList​(Contact contact)
        Returns a list of contacts that are joined to the associated Contact. If more than one Contact is found, the list is sorted ascending by the contact's id.
        Parameters:
        contact - the Contact to be used to search for associated contacts
        Returns:
        the list of associated contacts
        Since:
        12.24
      • getContactModifier

        ContactModifier getContactModifier​(Contact contact,
                                           java.util.Optional<User> user)
        Build a ContactModifier for the passed Contact object.
        Parameters:
        contact - the instance to modify
        user - pass a user, if called in a user context. Otherwise pass an empty optional.
        Returns:
        a ContactModifier associated with the Contact.
        Since:
        12.14
      • getContactRelationHandler

        ContactRelationHandler getContactRelationHandler​(Contact contact,
                                                         java.util.Optional<User> user)
        Build a ContactRelationHandler for the passed Contact object.
        Parameters:
        contact - the instance to modify
        user - pass a user, if called in a user context. Otherwise pass an empty optional.
        Returns:
        a ContactRelationHandler for the Contact.
        Since:
        12.24