Search in sources :

Example 1 with GluuConfiguration

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;
}
Also used : GluuConfiguration(io.jans.scim.model.GluuConfiguration)

Example 2 with GluuConfiguration

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;
}
Also used : SmtpConfiguration(io.jans.model.SmtpConfiguration) GluuConfiguration(io.jans.scim.model.GluuConfiguration) Produces(javax.enterprise.inject.Produces) RequestScoped(javax.enterprise.context.RequestScoped)

Aggregations

GluuConfiguration (io.jans.scim.model.GluuConfiguration)2 SmtpConfiguration (io.jans.model.SmtpConfiguration)1 RequestScoped (javax.enterprise.context.RequestScoped)1 Produces (javax.enterprise.inject.Produces)1