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