本文整理汇总了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);
}
示例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;
}
示例3: getConnectionSignUp
import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
private ConnectionSignUp getConnectionSignUp() {
return new AwesomeAgileConnectionSignup(userRepository);
}
示例4: connectionSignUp
import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
@Bean
@ConditionalOnMissingBean(ConnectionSignUp.class)
public ConnectionSignUp connectionSignUp() {
return new SimpleConnectionSignUp();
}
示例5: autoConnectionSignUp
import org.springframework.social.connect.ConnectionSignUp; //导入依赖的package包/类
@Bean
public ConnectionSignUp autoConnectionSignUp() {
return new AutoConnectionSignUp(userAccountService, messageSender);
}
示例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;
}
示例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;
}
示例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;
}