Examples of removeConnection()


Examples of org.springframework.social.connect.ConnectionRepository.removeConnection()

      providerUserIds.add(userId);
      Set<String> localUserIds = usersConnectionRepository.findUserIdsConnectedTo("facebook", providerUserIds);
      for (String localUserId : localUserIds) {
        ConnectionRepository connectionRepository = usersConnectionRepository.createConnectionRepository(localUserId);
        logger.info("  Removing Facebook connection for local user '" + localUserId + "'");
        connectionRepository.removeConnection(new ConnectionKey("facebook", userId));
      }   
      return new ResponseEntity<String>(HttpStatus.NO_CONTENT);
    } catch (SignedRequestException e) {
      return new ResponseEntity<String>(HttpStatus.BAD_REQUEST);
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.