本文整理匯總了Java中org.springframework.social.connect.UsersConnectionRepository類的典型用法代碼示例。如果您正苦於以下問題:Java UsersConnectionRepository類的具體用法?Java UsersConnectionRepository怎麽用?Java UsersConnectionRepository使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
UsersConnectionRepository類屬於org.springframework.social.connect包,在下文中一共展示了UsersConnectionRepository類的15個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。
示例1: SocialController
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
public SocialController(SocialService socialService, ProviderSignInUtils providerSignInUtils,
ConnectionFactoryLocator connectionFactoryLocator, UsersConnectionRepository usersConnectionRepository,
SignInAdapter signInAdapter, ConnectSupport connectSupport, SessionStrategy sessionStrategy,
SocialConfigRepository socialConfigRepository) {
this.socialService = socialService;
this.providerSignInUtils = providerSignInUtils;
this.connectionFactoryLocator = connectionFactoryLocator;
this.usersConnectionRepository = usersConnectionRepository;
this.signInAdapter = signInAdapter;
this.connectSupport = connectSupport;
this.sessionStrategy = sessionStrategy;
this.socialConfigRepository = socialConfigRepository;
}
示例2: SocialService
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
public SocialService(UsersConnectionRepository usersConnectionRepository, AuthorityRepository authorityRepository,
PasswordEncoder passwordEncoder, UserRepository userRepository,
MailService mailService) {
this.usersConnectionRepository = usersConnectionRepository;
this.authorityRepository = authorityRepository;
this.passwordEncoder = passwordEncoder;
this.userRepository = userRepository;
this.mailService = mailService;
}
示例3: providerSignInController
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
@Bean
public ProviderSignInController providerSignInController(ConnectionFactoryLocator connectionFactoryLocator, UsersConnectionRepository usersConnectionRepository, SignInAdapter signInAdapter) {
ProviderSignInController signInController =
new ProviderSignInController(connectionFactoryLocator, usersConnectionRepository, signInAdapter);
signInController.setSignUpUrl("/registration");
return signInController;
}
示例4: SocialService
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
@Autowired
public SocialService(UsersConnectionRepository usersConnectionRepository, AuthorityRepository authorityRepository,
PasswordEncoder passwordEncoder, UserRepository userRepository, MailService mailService,
SentryProperties sentryProperties) {
this.usersConnectionRepository = usersConnectionRepository;
this.authorityRepository = authorityRepository;
this.passwordEncoder = passwordEncoder;
this.userRepository = userRepository;
this.mailService = mailService;
this.sentryProperties = sentryProperties;
}
示例5: getUsersConnectionRepository
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
CustomSocialUsersConnectionRepository usersConnectionRepository = new CustomSocialUsersConnectionRepository(
socialUserConnectionRepository, connectionFactoryLocator);
usersConnectionRepository.setConnectionSignUp(new ImplicitConnectionSignUp(userRepository, authorityRepository, passwordEncoder, sentryProperties));
return usersConnectionRepository;
}
示例6: providerSignInController
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
@Bean
public ProviderSignInController providerSignInController(ConnectionFactoryLocator connectionFactoryLocator,
UsersConnectionRepository usersConnectionRepository) {
ProviderSignInController controller = new ProviderSignInController(connectionFactoryLocator,
usersConnectionRepository, signInAdapter());
controller.setApplicationUrl(applicationUrl);
return controller;
}
示例7: SocialService
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
public SocialService(UsersConnectionRepository usersConnectionRepository, AuthorityRepository authorityRepository,
PasswordEncoder passwordEncoder, UserRepository userRepository,
MailService mailService, UserSearchRepository userSearchRepository) {
this.usersConnectionRepository = usersConnectionRepository;
this.authorityRepository = authorityRepository;
this.passwordEncoder = passwordEncoder;
this.userRepository = userRepository;
this.mailService = mailService;
this.userSearchRepository = userSearchRepository;
}
示例8: getUsersConnectionRepository
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
return new JdbcUsersConnectionRepository(
dataSource,
connectionFactoryLocator,
/**
* The TextEncryptor object encrypts the authorization details of the connection. In
* our example, the authorization details are stored as plain text.
* DO NOT USE THIS IN PRODUCTION.
*/
Encryptors.noOpText()
);
}
示例9: SignupController
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
@Inject
public SignupController(AccountRepository accountRepository,
ConnectionFactoryLocator connectionFactoryLocator,
UsersConnectionRepository connectionRepository) {
this.accountRepository = accountRepository;
this.providerSignInUtils = new ProviderSignInUtils(connectionFactoryLocator, connectionRepository);
}
示例10: signInController
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
@Bean
@ConditionalOnBean(SignInAdapter.class)
@ConditionalOnMissingBean
public ProviderSignInController signInController(
ConnectionFactoryLocator factoryLocator,
UsersConnectionRepository usersRepository, SignInAdapter signInAdapter) {
ProviderSignInController controller = new ProviderSignInController(
factoryLocator, usersRepository, signInAdapter);
if (!CollectionUtils.isEmpty(this.signInInterceptors)) {
controller.setSignInInterceptors(this.signInInterceptors);
}
return controller;
}
開發者ID:vikrammane23,項目名稱:https-github.com-g0t4-jenkins2-course-spring-boot,代碼行數:14,代碼來源:SocialWebAutoConfiguration.java
示例11: getUsersConnectionRepository
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator locator) {
UsersConnectionRepositoryTable.update(dataSource);
final JdbcUsersConnectionRepository repository = new JdbcUsersConnectionRepository(dataSource,
locator, Encryptors.noOpText());
repository.setConnectionSignUp(connectionSignUp);
return repository;
}
示例12: SignController
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
@Autowired
public SignController(ConnectionFactoryLocator connectionFactoryLocator, UsersConnectionRepository connectionRepository, IUserService userService, UserDetailsService userDetailsService) {
this.providerSignInUtils = new ProviderSignInUtils(connectionFactoryLocator, connectionRepository);
this.userService = userService;
this.encoder = new BCryptPasswordEncoder();
this.userDetailsService = userDetailsService;
}
示例13: getUsersConnectionRepository
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
@Override
public UsersConnectionRepository getUsersConnectionRepository(
ConnectionFactoryLocator connectionFactoryLocator) {
return new AwesomeAgileUsersConnectionRepository(
userRepository,
connectionFactoryLocator,
getConnectionSignUp());
}
示例14: getUsersConnectionRepository
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
/**
* Singleton data access object providing access to connections across all users.
*/
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
JdbcUsersConnectionRepository repository = new JdbcUsersConnectionRepository(dataSource, connectionFactoryLocator, Encryptors.noOpText());
repository.setConnectionSignUp(new OpenTipBotConnectionSignUp(opentipbotUserService, bitcoinService));
return repository;
}
示例15: getUsersConnectionRepository
import org.springframework.social.connect.UsersConnectionRepository; //導入依賴的package包/類
/**
* Singleton data access object providing access to connections across all users.
*/
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
JdbcUsersConnectionRepository repository = new JdbcUsersConnectionRepository(dataSource, connectionFactoryLocator, Encryptors.noOpText());
repository.setConnectionSignUp(new SimpleConnectionSignUp());
return repository;
}