Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 65745 invoked from network); 9 Oct 2009 16:32:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 9 Oct 2009 16:32:19 -0000 Received: (qmail 31603 invoked by uid 500); 9 Oct 2009 16:32:19 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 31572 invoked by uid 500); 9 Oct 2009 16:32:19 -0000 Mailing-List: contact esme-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: esme-dev@incubator.apache.org Delivered-To: mailing list esme-dev@incubator.apache.org Received: (qmail 31562 invoked by uid 99); 9 Oct 2009 16:32:19 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 16:32:19 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of benewu@gmail.com designates 209.85.223.181 as permitted sender) Received: from [209.85.223.181] (HELO mail-iw0-f181.google.com) (209.85.223.181) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 09 Oct 2009 16:32:10 +0000 Received: by iwn11 with SMTP id 11so225609iwn.22 for ; Fri, 09 Oct 2009 09:31:48 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:content-type; bh=eUiUCXq/zOhlUnPylQT27tTXe0+/zCMRO3qfEioxEY8=; b=iV9W1cyiRfzknFVi9WJjbTSoGZSbnX2N3srQiJvUrmezWzwrYS+OeWDCN5uaA/QWh5 GSvhi5LwqPT+qoyaO/MtIv54FRNmBTUhMczojXsAo2+VimkbvGyfOXCGzwqF/+0uSWgt WJ0X0/hPdqh1AjMhRwDHBkhVegH3eVDsAA7m4= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; b=RKz2szG1lsUzyQ/vHHeW31UpmyMyIy3FSy4PLqOf0ViEkNAtgUml8J5fnc7cMPGHE3 VRaJxgMmH2pj+9qRFR7Gn0w0AOl7hGx9KSGptTzseFdzGzMAXNpaITL9zifsODxUrbhe xiL2xLF/wOtTSUHzlQ7qOeCPcZEVOjgZfSR2c= MIME-Version: 1.0 Received: by 10.231.25.199 with SMTP id a7mr5492938ibc.51.1255105908806; Fri, 09 Oct 2009 09:31:48 -0700 (PDT) In-Reply-To: <4db64d890910090854u7844a611k83fce00242ebac23@mail.gmail.com> References: <4db64d890910010443l22e94871xab078a7a7a73a960@mail.gmail.com> <4db64d890910010530h4377ce8eq698597fc8e48e483@mail.gmail.com> <4db64d890910042247h18a3e807tca6683fd11e08475@mail.gmail.com> <4db64d890910050756i2093355ey4347dc543a7f3136@mail.gmail.com> <4db64d890910090854u7844a611k83fce00242ebac23@mail.gmail.com> Date: Sat, 10 Oct 2009 00:31:48 +0800 Message-ID: <4db64d890910090931h7b789927r87fde287e864167d@mail.gmail.com> Subject: Re: Deleting user from access pool From: Xuefeng Wu To: esme-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=001517741218d993950475831de0 X-Virus-Checked: Checked by ClamAV on apache.org --001517741218d993950475831de0 Content-Type: text/plain; charset=ISO-8859-1 For question 2, My solution is:1. add method followingIdsForUserId at model.User 2. add refresh user at actor.Distributor, refresh the following user 3. add refresh user at actor.UserActor, refresh the pools now. the code is pools = Privilege.findViewablePools(userId) 4. call Distributor ! Distributor.RefreshUser(user) after delete user from pool 2009/10/9 Xuefeng Wu > Yes, I have some questions. > I already have a patch to delete the user from pool by delete Privilege. > > > I have some questions when run your user case at . > 1. After delete user from pool, he/she could not see the pool's messages > which already in mailbox. > And the some he/she can not find any message from the pool from *Streams* > > 2. If user B follow user A and delete user B from a pool, and A write > message in the pool. > B will receive* the messages *from A which is writen in the pool. > > I think that the cache is UserActor: > private var pools: Set[Long] = Set() > > I need to add many method to refresh it for every following, is there any > easy way? > > I attach the patch although it did not work perfect. > > > On Wed, Oct 7, 2009 at 8:59 PM, Richard Hirsch wrote: > >> @Xuefeng Do you have questions about this task? Do you still need >> Vassil's "specs" document? >> >> D. >> >> On Mon, Oct 5, 2009 at 7:00 PM, Vassil Dichev wrote: >> >> Sorry, I mean I found two wrong things when I'm trying to resolve this >> >> task(delete user from pool). >> >> Yes I know it's not thing we want and I'm trying to find what's the >> reason >> >> and resolution. >> > >> > Oops, sorry, I knew I must be getting it wrong. >> > >> > > > > -- > Global R&D Center,Shanghai China,Carestream Health, Inc. > Tel:(86-21)3852 6101 > -- Global R&D Center,Shanghai China,Carestream Health, Inc. Tel:(86-21)3852 6101 --001517741218d993950475831de0--