Example #1
0
 @Transactional
 public void deleteConnectionRequest(User receiver, User sender) {
   connectionRequestRepository.deleteConnectionRequest(receiver, sender);
 }
Example #2
0
 @Transactional
 public void saveConnectionRequest(ConnectionRequest connectionRequest) {
   connectionRequestRepository.save(connectionRequest);
 }
Example #3
0
 /** Checks if user1 has requested to be connected to user2 */
 public boolean hasRequested(User user1, User user2) {
   return connectionRequestRepository.hasRequested(user1, user2);
 }