本文整理汇总了Java中org.identityconnectors.framework.spi.Configuration类的典型用法代码示例。如果您正苦于以下问题:Java Configuration类的具体用法?Java Configuration怎么用?Java Configuration使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Configuration类属于org.identityconnectors.framework.spi包,在下文中一共展示了Configuration类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
/**
* Callback method to receive the {@link Configuration}.
*
* @param configuration the new {@link Configuration}
* @see org.identityconnectors.framework.spi.Connector#init(org.identityconnectors.framework.spi.Configuration)
*/
public void init(final Configuration configuration) {
long currentTime = System.currentTimeMillis();
this.configuration = (KerberosConfiguration) configuration;
logger.info("Initializing resource with realm {0}", this.configuration.getRealm());
krb5_init(GuardedStringAccessor.class);
this.lastLoginTime = currentTime;
}
开发者ID:CESNET,项目名称:kerberos-connector,代码行数:15,代码来源:KerberosConnector.java
示例2: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
@Override
public void init(Configuration configuration) {
LOG.info("Initializing {0} connector instance {1}", this.getClass().getSimpleName(), this);
this.configuration = (C)configuration;
this.configuration.recompute();
connectionManager = new ConnectionManager<>(this.configuration);
connectionManager.connect();
if (LOG.isOk()) {
LOG.ok("Servers:\n{0}", connectionManager.dumpServers());
}
}
开发者ID:Evolveum,项目名称:connector-ldap,代码行数:12,代码来源:AbstractLdapConnector.java
示例3: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
@SuppressWarnings("unchecked")
@Override
public void init(Configuration configuration) {
LOGGER.info("Initialize");
this.connection = openConnection((C) configuration);
this.configuration = (C) configuration;
}
开发者ID:Evolveum,项目名称:polygon,代码行数:8,代码来源:AbstractJdbcConnector.java
示例4: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
@Override
public void init(Configuration configuration) {
this.configuration = (GitlabConfiguration)configuration;
gitlabAPI = GitlabAPI.connect(this.configuration.getHostUrl(),
this.configuration.getApiToken());
gitlabAPI.ignoreCertificateErrors(this.configuration.getIgnoreCertificateErrors());
}
开发者ID:Evolveum,项目名称:connector-gitlab,代码行数:8,代码来源:GitlabConnector.java
示例5: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
public void init(Configuration cfg) {
//get the config object
this.config = (FlatFileConnectorConfiguration)cfg;
//this creates a connection to the target system
createSshConnection();
//connection is now alive
this.isAlive = true;
System.out.println("Finished init..!");
}
开发者ID:rayedchan,项目名称:OIMFlatFileICFConnector,代码行数:10,代码来源:FlatFileConnector.java
示例6: getConfiguration
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
@Override
public Configuration getConfiguration() {
return configuration;
}
开发者ID:Evolveum,项目名称:connector-sap,代码行数:5,代码来源:SapConnector.java
示例7: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
@Override
public void init(Configuration configuration) {
this.configuration = (SapConfiguration) configuration;
LOG.info("Initialization start, configuration: {0}", this.configuration.toString());
CustomDestinationDataProvider myProvider = CustomDestinationDataProvider.getInstance();
//register the provider with the JCo environment;
//catch IllegalStateException if an instance is already registered
try {
if (!com.sap.conn.jco.ext.Environment.isDestinationDataProviderRegistered()) {
com.sap.conn.jco.ext.Environment.registerDestinationDataProvider(myProvider);
}
} catch (IllegalStateException providerAlreadyRegisteredException) {
//somebody else registered its implementation,
//stop the execution
throw new ConnectorIOException(providerAlreadyRegisteredException.getMessage(), providerAlreadyRegisteredException);
}
//properties for destination from config
Properties props = this.configuration.getDestinationProperties();
String destinationName = this.configuration.getFinalDestinationName();
Properties destProps = myProvider.getDestinationProperties(destinationName);
if (destProps == null || !destProps.equals(props)){
myProvider.setDestinationProperties(destinationName, props);
}
// set read only parameters from gui connector configuration
readOnlyParams = this.configuration.getReadOnlyParams();
if (this.configuration.SNC_MODE_ON.equals(this.configuration.getSncMode())) {
createDestinationDataFile(destinationName, props);
}
// create destination & ping it
try {
this.destination = JCoDestinationManager.getDestination(destinationName);
this.destination.ping();
} catch (JCoException e) {
throw new ConnectorIOException(e.getMessage(), e);
}
// validate & initialize tables
configuration.validate();
// read schema
schema();
LOG.info("Initialization finished");
}
开发者ID:Evolveum,项目名称:connector-sap,代码行数:51,代码来源:SapConnector.java
示例8: getConfiguration
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
/**
* Gets the Configuration context for this connector.
*/
@Override
public Configuration getConfiguration() {
return this.configuration;
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:8,代码来源:DummyConnector.java
示例9: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
/**
* Callback method to receive the {@link Configuration}.
*
* @see Connector#init(org.identityconnectors.framework.spi.Configuration)
*/
@Override
public void init(Configuration configuration) {
notNullArgument(configuration, "configuration");
this.configuration = (DummyConfiguration) configuration;
String instanceName = this.configuration.getInstanceId();
if (instanceName == null || instanceName.isEmpty()) {
instanceName = null;
}
resource = DummyResource.getInstance(instanceName);
resource.setCaseIgnoreId(this.configuration.getCaseIgnoreId());
resource.setCaseIgnoreValues(this.configuration.getCaseIgnoreValues());
resource.setEnforceUniqueName(this.configuration.isEnforceUniqueName());
resource.setTolerateDuplicateValues(this.configuration.getTolerateDuplicateValues());
resource.setGenerateDefaultValues(this.configuration.isGenerateDefaultValues());
resource.setGenerateAccountDescriptionOnCreate(this.configuration.getGenerateAccountDescriptionOnCreate());
resource.setGenerateAccountDescriptionOnUpdate(this.configuration.getGenerateAccountDescriptionOnUpdate());
if (this.configuration.getForbiddenNames().length > 0) {
resource.setForbiddenNames(Arrays.asList(((DummyConfiguration) configuration).getForbiddenNames()));
} else {
resource.setForbiddenNames(null);
}
resource.setUselessString(this.configuration.getUselessString());
if (this.configuration.isRequireUselessString() && StringUtils.isBlank((this.configuration.getUselessString()))) {
throw new ConfigurationException("No useless string");
}
GuardedString uselessGuardedString = this.configuration.getUselessGuardedString();
if (uselessGuardedString == null) {
resource.setUselessGuardedString(null);
} else {
uselessGuardedString.access(chars -> resource.setUselessGuardedString(new String(chars)));
}
resource.setMonsterization(this.configuration.isMonsterized());
if (connected) {
throw new IllegalStateException("Double connect in "+this);
}
connected = true;
resource.connect();
if (staticVal == null) {
staticVal = this.toString();
}
log.info("Connected to dummy resource instance {0} ({1} connections open)", resource, resource.getConnectionCount());
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:55,代码来源:DummyConnector.java
示例10: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
@Override
public void init(Configuration configuration) {
super.init(configuration);
globalCatalogConnectionManager = new GlobalCatalogConnectionManager(getConfiguration());
}
开发者ID:Evolveum,项目名称:connector-ldap,代码行数:6,代码来源:AdLdapConnector.java
示例11: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
@Override
public void init(Configuration configuration) {
LOG.info("Initializing {0} connector instance {1}", this.getClass().getSimpleName(), this);
this.configuration = (C) configuration;
this.httpClient = createHttpClient();
}
开发者ID:Evolveum,项目名称:polygon,代码行数:7,代码来源:AbstractRestConnector.java
示例12: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
@Override
public void init(Configuration configuration) {
this.configuration = (${connectorName}Configuration)configuration;
this.connection = new ${connectorName}Connection(this.configuration);
}
开发者ID:Evolveum,项目名称:polygon,代码行数:6,代码来源:__connectorName__Connector.java
示例13: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
/**
* Callback method to receive the {@link Configuration}.
*
* @see Connector#init(org.identityconnectors.framework.spi.Configuration)
*/
@Override
public void init(Configuration configuration) {
notNullArgument(configuration, "configuration");
this.configuration = (DummyConfiguration) configuration;
String instanceName = this.configuration.getInstanceId();
if (instanceName == null || instanceName.isEmpty()) {
instanceName = null;
}
resource = DummyResource.getInstance(instanceName);
resource.setCaseIgnoreId(this.configuration.getCaseIgnoreId());
resource.setCaseIgnoreValues(this.configuration.getCaseIgnoreValues());
resource.setEnforceUniqueName(this.configuration.isEnforceUniqueName());
resource.setTolerateDuplicateValues(this.configuration.getTolerateDuplicateValues());
resource.setGenerateDefaultValues(this.configuration.isGenerateDefaultValues());
resource.setGenerateAccountDescriptionOnCreate(this.configuration.getGenerateAccountDescriptionOnCreate());
resource.setGenerateAccountDescriptionOnUpdate(this.configuration.getGenerateAccountDescriptionOnUpdate());
if (this.configuration.getForbiddenNames().length > 0) {
resource.setForbiddenNames(Arrays.asList(((DummyConfiguration) configuration).getForbiddenNames()));
} else {
resource.setForbiddenNames(null);
}
resource.setUselessString(this.configuration.getUselessString());
if (this.configuration.isRequireUselessString() && StringUtils.isBlank((this.configuration.getUselessString()))) {
throw new ConfigurationException("No useless string");
}
GuardedString uselessGuardedString = this.configuration.getUselessGuardedString();
if (uselessGuardedString == null) {
resource.setUselessGuardedString(null);
} else {
uselessGuardedString.access(chars -> resource.setUselessGuardedString(new String(chars)));
}
resource.setMonsterization(this.configuration.isMonsterized());
if (connected) {
throw new IllegalStateException("Double connect in "+this);
}
connected = true;
resource.connect();
if (staticVal == null) {
staticVal = this.toString();
}
log.info("Connected to dummy resource instance {0} ({1} connections open)", resource, resource.getConnectionCount());
}
开发者ID:Evolveum,项目名称:midpoint,代码行数:55,代码来源:DummyConnector.java
示例14: getConfiguration
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
/**
* {@inheritDoc}
*/
public Configuration getConfiguration() {
return this.config;
}
开发者ID:rayedchan,项目名称:OIMFlatFileICFConnector,代码行数:7,代码来源:FlatFileConnector.java
示例15: getConfiguration
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
/**
* Gets the Configuration context for this connector.
*
* @return The current {@link Configuration}
*/
public Configuration getConfiguration() {
return this.configuration;
}
开发者ID:CESNET,项目名称:kerberos-connector,代码行数:9,代码来源:KerberosConnector.java
示例16: init
import org.identityconnectors.framework.spi.Configuration; //导入依赖的package包/类
/**
* Callback method to receive the {@link Configuration}.
*
* @see Connector#init(org.identityconnectors.framework.spi.Configuration)
*/
@Override
public void init(Configuration configuration) {
this.configuration = (DummyConfiguration) configuration;
}
开发者ID:Pardus-Engerek,项目名称:engerek,代码行数:10,代码来源:DummyConnector.java
注:本文中的org.identityconnectors.framework.spi.Configuration类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论