use of io.jans.scim.model.GluuConfiguration in project jans by JanssenProject.
the class ConfigurationService method getConfiguration.
/**
* Get configuration
*
* @return Configuration
* @throws Exception
*/
public GluuConfiguration getConfiguration(String[] returnAttributes) {
GluuConfiguration result = null;
result = persistenceEntryManager.find(getDnForConfiguration(), GluuConfiguration.class, returnAttributes);
return result;
}
use of io.jans.scim.model.GluuConfiguration in project jans by JanssenProject.
the class ApplicationFactory method getSmtpConfiguration.
@Produces
@RequestScoped
public SmtpConfiguration getSmtpConfiguration() {
GluuConfiguration configuration = configurationService.getConfiguration();
SmtpConfiguration smtpConfiguration = configuration.getSmtpConfiguration();
if (smtpConfiguration == null) {
return new SmtpConfiguration();
}
configurationService.decryptSmtpPassword(smtpConfiguration);
return smtpConfiguration;
}
Aggregations