try{ logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error adding available access rule" + name + "."); }catch( RemoteException re){}
error("Can't add available access rule: ",e); try{ logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error adding available access rule" + name + "."); }catch( RemoteException re){ error("Can't write log: ",re); }
    public void addAvailableAccessRules(Admin admin, Collection names){        debug(">addAvailableAccessRules(size : " + names.size() + ")");        if(names != null){          Iterator i = names.iterator();          while(i.hasNext()){            String name = (String) i.next();            try {              AvailableAccessRulesDataLocal data= availableaccessruleshome.create(name);              logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES,"Added available access rule" + name + ".");                          }            catch (Exception e) {              try{                  logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error adding available access rule" + name + ".");                              }catch( RemoteException re){}              }          }        }        debug("<addAvailableAccessRules");    } //  addAvailableAccessRules