try{ logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error removing administrator entity " + matchvalue + " from administratorgroup " + admingroupname + "."); }catch( RemoteException re){}
error("Can't add admin entity: ",e); try{ logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error removing administrator entity " + matchvalue + " from administratorgroup " + admingroupname + "."); }catch( RemoteException re){ error("Can't write log: ",re); }
    public void removeAdminEntity(Admin admin, String admingroupname, int matchwith, int matchtype, String matchvalue){      try{        (admingrouphome.findByPrimaryKey(admingroupname)).removeAdminEntity(matchwith, matchtype, matchvalue);        authorization.buildAccessTree(getAdminGroups(admin));        logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_INFO_EDITEDADMINISTRATORPRIVILEGES,"Removed administrator entity " + matchvalue + " from administratorgroup " + admingroupname + ".");              }catch(Exception e){        try{            logsession.log(admin, LogEntry.MODULE_RA, new java.util.Date(),null, null, LogEntry.EVENT_ERROR_EDITEDADMINISTRATORPRIVILEGES,"Error removing administrator entity " + matchvalue + " from administratorgroup " + admingroupname + ".");          }catch( RemoteException re){}              }    } // removeAdminEntity