if (log.isTraceEnabled()) {
log.trace(">saveGlobalConfiguration()");
}
String pk = "0";
GlobalConfigurationData gcdata = GlobalConfigurationData.findByConfigurationId(entityManager, pk);
if (gcdata != null) {
gcdata.setGlobalConfiguration(globconf);
String msg = intres.getLocalizedMessage("ra.savedconf", gcdata.getConfigurationId());
logSession.log(admin, admin.getCaId(), LogConstants.MODULE_RA, new java.util.Date(), null, null, LogConstants.EVENT_INFO_EDITSYSTEMCONFIGURATION,
msg);
} else {
// Global configuration doesn't yet exists.
try {
entityManager.persist(new GlobalConfigurationData(pk, globconf));
String msg = intres.getLocalizedMessage("ra.createdconf", pk);
logSession.log(admin, admin.getCaId(), LogConstants.MODULE_RA, new java.util.Date(), null, null,
LogConstants.EVENT_INFO_EDITSYSTEMCONFIGURATION, msg);
} catch (Exception e) {
String msg = intres.getLocalizedMessage("ra.errorcreateconf");