Class UserContactDao

java.lang.Object
org.apache.openmeetings.db.dao.user.UserContactDao

@Repository @Transactional public class UserContactDao extends Object
  • Constructor Details

    • UserContactDao

      public UserContactDao()
  • Method Details

    • add

      public UserContact add(Long userId, Long ownerId, boolean pending)
    • delete

      public void delete(Long id)
      Parameters:
      id - - id of item to delete
    • deleteAllUserContacts

      public Integer deleteAllUserContacts(Long ownerId)
      Parameters:
      ownerId - - id of owner
      Returns:
      rowcount of update
    • get

      public UserContact get(Long userId, Long ownerId)
    • isContact

      public boolean isContact(Long userId, Long ownerId)
    • get

      public List<UserContact> get(long ownerId, long first, long count)
    • count

      public long count(long ownerId)
    • getContactsByUserAndStatus

      public List<UserContact> getContactsByUserAndStatus(Long ownerId, boolean pending)
    • getContactRequestsByUserAndStatus

      public List<UserContact> getContactRequestsByUserAndStatus(Long userId, boolean pending)
    • get

      public UserContact get(Long id)
    • get

      public List<UserContact> get()
    • updateContactStatus

      public Long updateContactStatus(Long id, boolean pending)
    • update

      public UserContact update(UserContact c)