Return-Path: Delivered-To: apmail-incubator-esme-dev-archive@minotaur.apache.org Received: (qmail 56435 invoked from network); 25 Mar 2009 16:47:04 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 25 Mar 2009 16:47:04 -0000 Received: (qmail 29450 invoked by uid 500); 25 Mar 2009 16:47:04 -0000 Delivered-To: apmail-incubator-esme-dev-archive@incubator.apache.org Received: (qmail 29417 invoked by uid 500); 25 Mar 2009 16:47:04 -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 29407 invoked by uid 99); 25 Mar 2009 16:47:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 16:47:04 +0000 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=SPF_HELO_PASS,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [212.227.126.188] (HELO moutng.kundenserver.de) (212.227.126.188) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 25 Mar 2009 16:46:54 +0000 Received: from pustefix159.kundenserver.de (pustefix159.kundenserver.de [172.23.4.159]) by mrelayeu.kundenserver.de (node=mreu1) with ESMTP (Nemesis) id 0MKv1o-1LmWFM30XA-000k29; Wed, 25 Mar 2009 17:46:32 +0100 Message-Id: <22478227.2091591237999592528.JavaMail.servlet@kundenserver> From: Darren Hague To: Subject: Re: Other twitter functionality to implement MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Priority: 3 X-Binford: 6100 (more power) X-Mailer: Webmail X-Originating-From: 31823396 X-Routing: UK X-Message-Id: <31823396$1237999592230172.23.4.15922201035@pustefix159.kundenserver.de--461553131> X-Received: from pustefix159.kundenserver.de by 83.244.131.181 with HTTP id 31823396 for [esme-dev@incubator.apache.org]; Wed, 25 Mar 2009 17:46:32 CET Date: Wed, 25 Mar 2009 17:46:32 +0100 X-Provags-ID: V01U2FsdGVkX1/+8iXo6QLmZp8hA/poXEpvmu4YkuOhkEb49jz YdXumSsFiTxsICYG+5PBnLYXUnZha6zXiUytxc4LXF3sWOZRBq SA/bHdMNpA= X-Virus-Checked: Checked by ClamAV on apache.org I think there's a distinction to be made here between mutable objects and mutable data - or are you saying that SQL UPDATE is inherently evil? ;-) To preserve object immutability, a copy of the message object with "deleted=true" could be created, and this could replace the previous message in people's mailboxes as a side-effect of the method which updates the message record in the database. Put another way, a mailbox which receives a "deleted=true" message would cause a matter/antimatter-like annihilation of the original message. Cheers, Darren >On Wed, Mar 25, 2009 at 7:56 AM, Hirsch, Richard > wrote: > >> Why couldn't you just have a "deleted" attribute in the message object. Of >> course, then you have to define what happens when a deleted message is >> present in a conversation. Of course, you might have consider performance >> problems. > > >Because a deleted attribute would mean mutating the message to add the >attribute. > > >> >> >> D. >> >> ________________________________ >> >> Von: David Pollak [mailto:feeder.of.the.bears@gmail.com] >> Gesendet: Mo 23.03.2009 16:42 >> An: esme-dev@incubator.apache.org >> Betreff: Re: Other twitter functionality to implement >> >> >> >> On Mon, Mar 23, 2009 at 2:34 AM, Hirsch, Richard < >> richard.hirsch@siemens.com >> > wrote: >> >> > I was exploring the Twitter REST API and was comparing to what we >> > currently support. Although there is some functionality (favorites, >> > block, etc.), there are still some functionality that is open. >> > >> > What about supporting the deletion of messages? >> > >> > * statuses/destroy >> > Destroys the status specified by the required ID parameter. The >> > authenticating user must be the author of the specified status. >> > >> > I know this currently isn't possible in ESME but I think it is a >> > functionality that is useful. Of course, the inclusion of pools would >> > influence the future implementation (think of pools in which messages >> > can't be deleted based on compliance reasons) but until we have >> > developed pools, the deletion of messages would still be useful. >> > >> > Added a Jira item for this: >> > https://issues.apache.org/jira/browse/ESME-51 >> > >> > Thoughts? >> >> >> It makes life very difficult. I am an anti-fan of mutable messages. But >> there may be a way around it. Rather than deleting a message, have a >> separate table of non-displayed messages and the messages in that table are >> used as a filter for the messages in a mailbox. >> >> >> > >> > >> > D. >> > >> > >> >> >> -- >> Lift, the simply functional web framework http://liftweb.net < >> http://liftweb.net/> >> Beginning Scala http://www.apress.com/book/view/1430219890 >> Follow me: http://twitter.com/dpp >> Git some: http://github.com/dpp >> >> >> > > >-- >Lift, the simply functional web framework http://liftweb.net >Beginning Scala http://www.apress.com/book/view/1430219890 >Follow me: http://twitter.com/dpp >Git some: http://github.com/dpp -- darren.hague@fortybeans.com