use of com.redhat.jenkins.plugins.ci.authentication.activemq.UsernameAuthenticationMethod in project jms-messaging-plugin by jenkinsci.
the class ActiveMqMessagingProvider method readResolve.
protected Object readResolve() {
if (user != null) {
log.info("Legacy Message Provider username value is not null.");
authenticationMethod = new UsernameAuthenticationMethod(user, password);
log.info("Added default username/password authentication method using deprecated configuration.");
setMigrationInProgress(true);
}
if (topicProvider == null) {
topicProvider = new DefaultTopicProvider();
setMigrationInProgress(true);
}
return this;
}
use of com.redhat.jenkins.plugins.ci.authentication.activemq.UsernameAuthenticationMethod in project jms-messaging-plugin by jenkinsci.
the class GlobalCIConfiguration method readResolve.
protected Object readResolve() {
if (broker != null) {
log.info("Legacy Message Provider Broker value is not null.");
if (configs.size() == 0) {
log.info("Current Message Provider size is 0.");
if (getProvider(DEFAULT_PROVIDER) == null) {
log.info("There is no default Message Provider.");
configs.add(new ActiveMqMessagingProvider(DEFAULT_PROVIDER, broker, false, topic, new DefaultTopicProvider(), new UsernameAuthenticationMethod(user, password)));
log.info("Added default Message Provider using deprecated configuration.");
setMigrationInProgress(true);
} else {
log.info("Default (" + DEFAULT_PROVIDER + ") Message Provider already exists.");
}
}
}
// Examine providers
if (configs != null) {
for (JMSMessagingProvider config : configs) {
if (config instanceof ActiveMqMessagingProvider) {
ActiveMqMessagingProvider aconfig = (ActiveMqMessagingProvider) config;
if (aconfig.IsMigrationInProgress()) {
log.info("Migration in progress for ActiveMqMessagingProvider " + aconfig.getName());
setMigrationInProgress(true);
}
}
}
}
return this;
}
Aggregations