use of com.helger.phoss.smp.settings.SMPSettings in project phoss-smp by phax.
the class SMPSettingsManagerJDBC method getSettings.
@Nonnull
public ISMPSettings getSettings() {
final ICommonsMap<String, String> aValues = getAllSettingsValues();
final SMPSettings ret = new SMPSettings(false);
ret.setRESTWritableAPIDisabled(StringParser.parseBool(aValues.get(SMP_REST_WRITABLE_API_DISABLED), SMPServerConfiguration.DEFAULT_SMP_REST_WRITABLE_API_DISABLED));
ret.setDirectoryIntegrationEnabled(StringParser.parseBool(aValues.get(DIRECTORY_INTEGRATION_ENABLED), SMPServerConfiguration.DEFAULT_SMP_DIRECTORY_INTEGRATION_ENABLED));
ret.setDirectoryIntegrationRequired(StringParser.parseBool(aValues.get(DIRECTORY_INTEGRATION_REQUIRED), SMPServerConfiguration.DEFAULT_SMP_DIRECTORY_INTEGRATION_REQUIRED));
ret.setDirectoryIntegrationAutoUpdate(StringParser.parseBool(aValues.get(DIRECTORY_INTEGRATION_AUTO_UPDATE), SMPServerConfiguration.DEFAULT_SMP_DIRECTORY_INTEGRATION_AUTO_UPDATE));
ret.setDirectoryHostName(aValues.get(DIRECTORY_HOSTNAME));
ret.setSMLEnabled(StringParser.parseBool(aValues.get(SML_ENABLED), SMPServerConfiguration.DEFAULT_SML_ENABLED));
ret.setSMLRequired(StringParser.parseBool(aValues.get(SML_REQUIRED), SMPServerConfiguration.DEFAULT_SML_REQUIRED));
ret.setSMLInfoID(aValues.get(SML_INFO_ID));
return ret;
}
Aggregations