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


Java UsersConnectionRepository类代码示例

本文整理汇总了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;
}
 
开发者ID:xm-online,项目名称:xm-uaa,代码行数:14,代码来源:SocialController.java

示例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;
}
 
开发者ID:Microsoft,项目名称:MTC_Labrat,代码行数:11,代码来源:SocialService.java

示例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;
}
 
开发者ID:codenergic,项目名称:theskeleton,代码行数:8,代码来源:SocialConfig.java

示例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;
}
 
开发者ID:quanticc,项目名称:sentry,代码行数:12,代码来源:SocialService.java

示例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;
}
 
开发者ID:quanticc,项目名称:sentry,代码行数:8,代码来源:SocialConfiguration.java

示例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;
}
 
开发者ID:mintster,项目名称:nixmash-blog,代码行数:9,代码来源:SocialConfig.java

示例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;
}
 
开发者ID:AppertaFoundation,项目名称:Code4Health-Platform,代码行数:12,代码来源:SocialService.java

示例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()
    );
}
 
开发者ID:eduyayo,项目名称:gamesboard,代码行数:14,代码来源:SocialContext.java

示例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);
}
 
开发者ID:Itema-as,项目名称:dawn-marketplace-server,代码行数:8,代码来源:SignupController.java

示例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;
}
 
开发者ID:music-for-all,项目名称:music-for-all-application,代码行数:9,代码来源:SocialConfig.java

示例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;
}
 
开发者ID:lixiaocong,项目名称:lxcCMS,代码行数:8,代码来源:SignController.java

示例13: getUsersConnectionRepository

import org.springframework.social.connect.UsersConnectionRepository; //导入依赖的package包/类
@Override
public UsersConnectionRepository getUsersConnectionRepository(
    ConnectionFactoryLocator connectionFactoryLocator) {
  return new AwesomeAgileUsersConnectionRepository(
      userRepository,
      connectionFactoryLocator,
      getConnectionSignUp());
}
 
开发者ID:cs71-caffeine,项目名称:awesome-agile,代码行数:9,代码来源:SocialConfig.java

示例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;
}
 
开发者ID:gill3s,项目名称:opentipbot,代码行数:10,代码来源:SocialContext.java

示例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;
}
 
开发者ID:yarli4u,项目名称:spring-social-meetup,代码行数:10,代码来源:SocialConfig.java


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