GlobalConfigurationDataLocal data1= globalconfigurationhome.create(pk,globalconfiguration); getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITSYSTEMCONFIGURATION,"");
GlobalConfigurationDataLocal data1 = globalconfigurationhome.create(pk,globalconfiguration); getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITSYSTEMCONFIGURATION, "Global configuration with id "+data1.getConfigurationId()+" created.");
    public void saveGlobalConfiguration(Admin admin, GlobalConfiguration globalconfiguration)  {    	debug(">saveGlobalConfiguration()");    	String pk = "0";    	try {    		GlobalConfigurationDataLocal gcdata = globalconfigurationhome.findByPrimaryKey(pk);    		gcdata.setGlobalConfiguration(globalconfiguration);    		getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITSYSTEMCONFIGURATION,"");    	}catch (javax.ejb.FinderException fe) {    		// Global configuration doesn't yet exists.    		try{    			GlobalConfigurationDataLocal data1= globalconfigurationhome.create(pk,globalconfiguration);    			getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITSYSTEMCONFIGURATION,"");    		} catch(CreateException e){    			getLogSession().log(admin, admin.getCAId(), LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITSYSTEMCONFIGURATION,"");    		}    	}    	this.globalconfiguration=globalconfiguration;    	debug("<saveGlobalConfiguration()");    } // saveGlobalConfiguration