本文整理汇总了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()
);
}
示例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());
}
示例3: providerSignInController
import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
@Bean
public ProviderSignInController providerSignInController() {
((JdbcUsersConnectionRepository) usersConnectionRepository)
.setConnectionSignUp(providerConnectionSignup);
return new ProviderSignInController(
connectionFactoryLocator,
usersConnectionRepository,
authSignInAdapter());
}
示例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;
}
示例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");
}
示例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;
}
示例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;
}
示例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;
}
示例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;
}
示例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);
}
示例12: getUsersConnectionRepository
import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
@Override
public UsersConnectionRepository getUsersConnectionRepository(ConnectionFactoryLocator connectionFactoryLocator) {
return new JdbcUsersConnectionRepository(dataSource,connectionFactoryLocator,textEncryptor);
}
示例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;
}
示例14: usersConnectionRepository
import org.springframework.social.connect.jdbc.JdbcUsersConnectionRepository; //导入依赖的package包/类
@Bean
public UsersConnectionRepository usersConnectionRepository() {
return new JdbcUsersConnectionRepository(dataSource, connectionFactoryLocator(), textEncryptor());
}
示例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);
}