当前位置: 首页>>代码示例>>Java>>正文


Java ConnectionSignUp类代码示例

本文整理汇总了Java中org.springframework.social.connect.ConnectionSignUp的典型用法代码示例。如果您正苦于以下问题:Java ConnectionSignUp类的具体用法?Java ConnectionSignUp怎么用?Java ConnectionSignUp使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


ConnectionSignUp类属于org.springframework.social.connect包,在下文中一共展示了ConnectionSignUp类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: setUp

import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
@Before
public void setUp() throws Exception {
  userRepository = mock(UserRepository.class);
  connectionFactoryLocator = mock(ConnectionFactoryLocator.class);
  connectionSignUp = mock(ConnectionSignUp.class);
  usersConnectionRepository = new AwesomeAgileUsersConnectionRepository(
      userRepository, connectionFactoryLocator, connectionSignUp);
}
 
开发者ID:cs71-caffeine,项目名称:awesome-agile,代码行数:9,代码来源:AwesomeAgileUsersConnectionRepositoryTest.java

示例2: AwesomeAgileUsersConnectionRepository

import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
public AwesomeAgileUsersConnectionRepository(UserRepository userRepository,
    ConnectionFactoryLocator connectionFactoryLocator, ConnectionSignUp connectionSignUp) {
  this.userRepository = userRepository;
  this.connectionFactoryLocator = connectionFactoryLocator;
  this.connectionSignUp = connectionSignUp;
}
 
开发者ID:cs71-caffeine,项目名称:awesome-agile,代码行数:7,代码来源:AwesomeAgileUsersConnectionRepository.java

示例3: getConnectionSignUp

import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
private ConnectionSignUp getConnectionSignUp() {
  return new AwesomeAgileConnectionSignup(userRepository);
}
 
开发者ID:cs71-caffeine,项目名称:awesome-agile,代码行数:4,代码来源:SocialConfig.java

示例4: connectionSignUp

import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(ConnectionSignUp.class)
public ConnectionSignUp connectionSignUp() {
	return new SimpleConnectionSignUp();
}
 
开发者ID:xfcjscn,项目名称:spring-social-base,代码行数:6,代码来源:BaseAutoConfiguration.java

示例5: autoConnectionSignUp

import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
@Bean
public ConnectionSignUp autoConnectionSignUp() {
    return new AutoConnectionSignUp(userAccountService, messageSender);
}
 
开发者ID:jiwhiz,项目名称:JiwhizBlogWeb,代码行数:5,代码来源:SocialConfig.java

示例6: getUsersConnectionRepository

import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {

    JdbcUsersConnectionRepository usersConnectionRepository = new JdbcUsersConnectionRepository(dataSource,
            connectionFactoryLocator,

            Encryptors.noOpText());

    ConnectionSignUp connectionSignUp = new ConnectionSignUpImpl(userDAO);
    usersConnectionRepository.setConnectionSignUp(connectionSignUp);

    return usersConnectionRepository;
}
 
开发者ID:DmitriyLy,项目名称:travel_portal,代码行数:14,代码来源:SocialConfig.java

示例7: setConnectionSignUp

import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
/**
 * The command to execute to create a new local user profile in the event no user id could be mapped to a connection.
 * Allows for implicitly creating a user profile from connection data during a provider sign-in attempt.
 * Defaults to null, indicating explicit sign-up will be required to complete the provider sign-in attempt.
 * @see #findUserIdsWithConnection(Connection)
 */
public void setConnectionSignUp(ConnectionSignUp connectionSignUp) {
	this.connectionSignUp = connectionSignUp;
}
 
开发者ID:bestarandyan,项目名称:ShoppingMall,代码行数:10,代码来源:SQLiteUsersConnectionRepository.java

示例8: setConnectionSignUp

import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
/**
 * The command to execute to create a new local user profile in the event no user id could be mapped to a connection.
 * Allows for implicitly creating a user profile from connection data during a provider sign-in attempt.
 * Defaults to null, indicating explicit sign-up will be required to complete the provider sign-in attempt.
 * @see #findUserIdsWithConnection(Connection)
 */
public void setConnectionSignUp(ConnectionSignUp connectionSignUp) {
    this.connectionSignUp = connectionSignUp;
}
 
开发者ID:jiwhiz,项目名称:JiwhizBlogWeb,代码行数:10,代码来源:MongoUsersConnectionRepositoryImpl.java


注:本文中的org.springframework.social.connect.ConnectionSignUp类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。