if(profileauthproxy.getEndEntityProfileAuthorization(admin, user.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.VIEW_RIGHTS))
if(profileauthproxy.getEndEntityProfileAuthorization(admin, user.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.VIEW_RIGHTS, LogEntry.MODULE_RA))
    public Collection findAllUsersByStatus(Admin admin, int status) throws FinderException, RemoteException {        debug(">findAllUsersByStatus("+status+")");        debug("Looking for users with status: " + status);        Collection users = home.findByStatus(status);        Collection ret = new ArrayList();        Iterator iter = users.iterator();        while (iter.hasNext())        {            UserDataLocal user = (UserDataLocal) iter.next();            UserAdminData userData = new UserAdminData(user.getUsername(), user.getSubjectDN(), user.getSubjectAltName() ,user.getSubjectEmail(), user.getStatus()                                        , user.getType(), user.getEndEntityProfileId(), user.getCertificateProfileId()                                        , new java.util.Date(user.getTimeCreated()), new java.util.Date(user.getTimeModified())                                        , user.getTokenType(), user.getHardTokenIssuerId());            userData.setPassword(user.getClearPassword());            if(globalconfiguration.getEnableEndEntityProfileLimitations()){              // Check if administrator is authorized to view user.              if(profileauthproxy.getEndEntityProfileAuthorization(admin, user.getEndEntityProfileId(),EndEntityProfileAuthorizationProxy.VIEW_RIGHTS))                ret.add(userData);            }            else              ret.add(userData);        }        debug("found "+ret.size()+" user(s) with status="+status);        debug("<findAllUsersByStatus("+status+")");        return ret;    } // findAllUsersByStatus