Package org.springframework.social.connect.web

Examples of org.springframework.social.connect.web.ConnectController


   * @param connectionRepositoryProvider needed to persist new connections
   * @param profilePictureService needed by the {@link FacebookConnectInterceptor} to make the user's Facebook profile picture their Greenhouse profile picture.
   */
  @Bean
  public ConnectController connectController(ProfilePictureService profilePictureService) {
    ConnectController controller = new ConnectController(connectionFactoryLocator(), connectionRepository());
    controller.addInterceptor(new FacebookConnectInterceptor(profilePictureService));
    controller.addInterceptor(new TwitterConnectInterceptor());
    return controller;
  }
View Full Code Here


     * This bean manages the connection flow between the account provider and
     * the example application.
     */
    @Bean
    public ConnectController connectController(ConnectionFactoryLocator connectionFactoryLocator, ConnectionRepository connectionRepository) {
        return new ConnectController(connectionFactoryLocator, connectionRepository);
    }
View Full Code Here

    @Bean
    @ConditionalOnMissingBean(ConnectController.class)
    public ConnectController connectController(
        ConnectionFactoryLocator factoryLocator, ConnectionRepository repository) {
      ConnectController controller = new ConnectController(factoryLocator,
          repository);
      if (!CollectionUtils.isEmpty(this.connectInterceptors)) {
        controller.setConnectInterceptors(this.connectInterceptors);
      }
      if (!CollectionUtils.isEmpty(this.disconnectInterceptors)) {
        controller.setDisconnectInterceptors(this.disconnectInterceptors);
      }
      return controller;
    }
View Full Code Here

    return linkedin != null ? linkedin.getApi() : null;
  }

  @Bean
  public ConnectController connectController() {
    ConnectController connectController = new ConnectController(connectionFactoryLocator(), connectionRepository());
    connectController.addInterceptor(new PostToWallAfterConnectInterceptor());
    connectController.addInterceptor(new TweetAfterConnectInterceptor());
    return connectController;
  }
View Full Code Here

  @Inject
  private UsersConnectionRepository usersConnectionRepository;

  @Bean
  public ConnectController connectController() {
    ConnectController connectController = new ConnectController(connectionFactoryLocator, connectionRepository);
    connectController.addInterceptor(new PostToWallAfterConnectInterceptor());
    connectController.addInterceptor(new TweetAfterConnectInterceptor());
    return connectController;
  }
View Full Code Here

  }


  @Bean
  public ConnectController connectController() {
    return new ConnectController(connectionFactoryLocator(), connectionRepository());
  }
View Full Code Here

    return new JdbcUsersConnectionRepository(dataSource, connectionFactoryLocator, Encryptors.noOpText());
  }

  @Bean
  public ConnectController connectController(ConnectionFactoryLocator connectionFactoryLocator, ConnectionRepository connectionRepository) {
    ConnectController connectController = new ConnectController(connectionFactoryLocator, connectionRepository);
    connectController.addInterceptor(new PostToWallAfterConnectInterceptor());
    connectController.addInterceptor(new TweetAfterConnectInterceptor());
    return connectController;
  }
View Full Code Here

  //
  // Web Controller and Filter Beans
  //
  @Bean
  public ConnectController connectController(ConnectionFactoryLocator connectionFactoryLocator, ConnectionRepository connectionRepository) {
    ConnectController connectController = new ConnectController(connectionFactoryLocator, connectionRepository);
    connectController.addInterceptor(new PostToWallAfterConnectInterceptor());
    connectController.addInterceptor(new TweetAfterConnectInterceptor());
    return connectController;
  }
View Full Code Here

TOP

Related Classes of org.springframework.social.connect.web.ConnectController

Copyright © 2018 www.massapicom. 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.