Interface ContactServiceLocal

    • 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