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 addAvailableAccessRule(Admin admin, String name){        debug(">addAvailableAccessRule(name : " + name + ")");        try {            AvailableAccessRulesDataLocal data= availableaccessruleshome.create(name);                  logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES,"Adding 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("<addAvailableAccessRule");    } // addAvailableAccessRule