Class UserContactDao


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

      • UserContactDao

        public UserContactDao()
    • Method Detail

      • 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
      • 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)
      • updateContactStatus

        public Long updateContactStatus​(Long id,
                                        boolean pending)