public boolean endEntityAuthorization(Admin admin, int profileid, String rights, boolean log) { boolean returnval = false;   if(admin.getAdminInformation().isSpecialUser()){ return true; } try{ if(log) returnval = authorizationsession.isAuthorized(admin, AvailableAccessRules.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights); else returnval = authorizationsession.isAuthorizedNoLog(admin, AvailableAccessRules.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights); }catch(AuthorizationDeniedException e){}  return returnval;
public boolean endEntityAuthorization(Admin admin, int profileid, String rights, boolean log) throws RemoteException { boolean returnval = false; String adm = null;   if(admin.getAdminInformation().isSpecialUser()){ adm = Integer.toString(admin.getAdminInformation().getSpecialUser()); return true; } try{ if(log) returnval = authorizationsession.isAuthorized(admin, AvailableAccessRules.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights); else returnval = authorizationsession.isAuthorizedNoLog(admin, AvailableAccessRules.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights); }catch(AuthorizationDeniedException e){}  return returnval;
    public boolean endEntityAuthorization(Admin admin, int profileid, String rights, boolean log) {        boolean returnval = false;                // TODO FIX        if(admin.getAdminInformation().isSpecialUser()){            return true;        }        try{            if(log)                returnval = authorizationsession.isAuthorized(admin, AvailableAccessRules.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights);            else                returnval = authorizationsession.isAuthorizedNoLog(admin, AvailableAccessRules.ENDENTITYPROFILEPREFIX+Integer.toString(profileid)+rights);        }catch(AuthorizationDeniedException e){}                return returnval;    }    