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


Java JdbcUsersConnectionRepository类代码示例

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


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

示例1: getUsersConnectionRepository

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的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

示例2: providerSignInController

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
/**
 * Configuring a {@link ProviderSignInController} to intercept OAuth2
 * requests that will be used to initiate an OAuth2 handshake with the specified
 * OAuth2 provider.
 * @return
 */
@Bean
public ProviderSignInController providerSignInController() {

    ((JdbcUsersConnectionRepository) usersConnectionRepository)
            .setConnectionSignUp(providerConnectionSignup);

    return new ProviderSignInController(
            connectionFactoryLocator,
            usersConnectionRepository,
            authSignInAdapter());
}
 
开发者ID:PacktPublishing,项目名称:Spring-Security-Third-Edition,代码行数:18,代码来源:SocialConfig.java

示例3: providerSignInController

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
@Bean
public ProviderSignInController providerSignInController() {
    ((JdbcUsersConnectionRepository) usersConnectionRepository)
            .setConnectionSignUp(providerConnectionSignup);

    return new ProviderSignInController(
            connectionFactoryLocator,
            usersConnectionRepository,
            authSignInAdapter());
}
 
开发者ID:PacktPublishing,项目名称:Spring-Security-Third-Edition,代码行数:11,代码来源:SocialConfig.java

示例4: getUsersConnectionRepository

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的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

示例5: create

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
private static void create() {
    final ResourceDatabasePopulator databasePopulator = new ResourceDatabasePopulator();
    databasePopulator.addScript(new ClassPathResource("JdbcUsersConnectionRepository.sql",
            JdbcUsersConnectionRepository.class));
    DatabasePopulatorUtils.execute(databasePopulator, dataSource);
    LOG.info("Table UserConnection successfully created");
}
 
开发者ID:music-for-all,项目名称:music-for-all-application,代码行数:8,代码来源:UsersConnectionRepositoryTable.java

示例6: jdbcCR

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
private UsersConnectionRepository jdbcCR(ConnectionFactoryLocator connectionFactoryLocator, ConnectionSignUp connectionSignUp) {
    JdbcUsersConnectionRepository repository = new JdbcUsersConnectionRepository(
        dataSource, connectionFactoryLocator, textEncryptor());

    repository.setTablePrefix("ac.");
    repository.setConnectionSignUp(connectionSignUp);
    return repository;
}
 
开发者ID:esutoniagodesu,项目名称:egd-web,代码行数:9,代码来源:SocialConfig.java

示例7: getUsersConnectionRepository

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的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

示例8: getUsersConnectionRepository

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的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

示例9: databasePopulator

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
private DatabasePopulator databasePopulator() {
	ResourceDatabasePopulator populator = new ResourceDatabasePopulator();
	populator.addScript(new ClassPathResource("JdbcUsersConnectionRepository.sql", JdbcUsersConnectionRepository.class));
	populator.addScript(new ClassPathResource("Account.sql", JdbcAccountRepository.class));
	populator.addScript(new ClassPathResource("data.sql", JdbcAccountRepository.class));
	return populator;
}
 
开发者ID:markoradinovic,项目名称:Vaadin4Spring-MVP-Sample-SpringSecuritySocial,代码行数:8,代码来源:Application.java

示例10: usersConnectionRepository

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
@Bean
public UsersConnectionRepository usersConnectionRepository() {    	
	JdbcUsersConnectionRepository jdbcUsersConnectionRepository = new JdbcUsersConnectionRepository(dataSource, 
    		connectionFactoryLocator, 
    		textEncryptor());
	jdbcUsersConnectionRepository.setConnectionSignUp(userConnectionSignUp);
	return jdbcUsersConnectionRepository;
}
 
开发者ID:qcri-social,项目名称:AIDR,代码行数:9,代码来源:SocialConfig.java

示例11: addInstallChangeSet

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
private void addInstallChangeSet(GenericDatabaseUpgrader upgrader) {
	DatabaseChangeSet changeSet = new DatabaseChangeSet(DatabaseVersion.valueOf("4"));
	changeSet.add(installScript("Member.sql"));
	changeSet.add(installScript("Group.sql"));
	changeSet.add(installScript("Activity.sql"));
	changeSet.add(installScript("ConnectedApp.sql"));
	changeSet.add(installScript("Reset.sql"));
	changeSet.add(installScript("Invite.sql"));		
	changeSet.add(installScript("Venue.sql"));
	changeSet.add(installScript("Event.sql"));
	changeSet.add(SqlDatabaseChange.inResource(new ClassPathResource("JdbcUsersConnectionRepository.sql", JdbcUsersConnectionRepository.class)));
	addInstallChanges(changeSet);
	upgrader.addChangeSet(changeSet);
}
 
开发者ID:mqprichard,项目名称:spring-greenhouse-clickstart,代码行数:15,代码来源:DatabaseUpgrader.java

示例12: getUsersConnectionRepository

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
	return new JdbcUsersConnectionRepository(dataSource,connectionFactoryLocator,textEncryptor);
}
 
开发者ID:Itema-as,项目名称:dawn-marketplace-server,代码行数:5,代码来源:SocialConfiguration.java

示例13: databasePopulator

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
private DatabasePopulator databasePopulator() {
	ResourceDatabasePopulator populator = new ResourceDatabasePopulator();
	populator.addScript(new ClassPathResource("JdbcUsersConnectionRepository.sql", JdbcUsersConnectionRepository.class));
	return populator;
}
 
开发者ID:openanalytics,项目名称:shinyproxy,代码行数:6,代码来源:SocialConfiguration.java

示例14: usersConnectionRepository

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
@Bean
public UsersConnectionRepository usersConnectionRepository() {
	return new JdbcUsersConnectionRepository(dataSource, connectionFactoryLocator(), textEncryptor());
}
 
开发者ID:kevindeyne,项目名称:simple-facebook-integration-spring-sec,代码行数:5,代码来源:WebSecurityConfig.java

示例15: usersConnectionRepository

import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
@Bean
@Scope(value = "singleton", proxyMode = ScopedProxyMode.INTERFACES)
public UsersConnectionRepository usersConnectionRepository() {
  return new JdbcUsersConnectionRepository(dataSource, connectionFactoryLocator(), textEncryptor);
}
 
开发者ID:MikhailErofeev,项目名称:mars-calendar,代码行数:6,代码来源:SocialConfig.java


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