try{ logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error removing available access rule " + name + "."); }catch( RemoteException re){}
error("Can't remove available access rule: ",e); try{ logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error removing available access rule " + name + "."); }catch( RemoteException re){ error("Can't write log: ",re); }
    public void removeAvailableAccessRule(Admin admin, String name){      debug(">removeAvailableAccessRule(name : " + name + ")");      try{        AvailableAccessRulesDataLocal data= availableaccessruleshome.findByPrimaryKey(name);        data.remove();        logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES,"Removed 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 removing available access rule " + name + ".");          }catch( RemoteException re){}        }      debug("<removeAvailableAccessRule");    } // removeAvailableAccessRule