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 removeAvailableAccessRules(Admin admin, Collection names){      debug(">removeAvailableAccessRules(size : " + names.size() + ")");        if(names != null){          Iterator i = names.iterator();          while(i.hasNext()){            String name = (String) i.next();            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("<removeAvailableAccessRules");    } // removeAvailableAccessRules