From photark-dev-return-1034-apmail-incubator-photark-dev-archive=incubator.apache.org@incubator.apache.org Sat Oct 16 06:31:39 2010 Return-Path: Delivered-To: apmail-incubator-photark-dev-archive@minotaur.apache.org Received: (qmail 73633 invoked from network); 16 Oct 2010 06:31:39 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 16 Oct 2010 06:31:39 -0000 Received: (qmail 85259 invoked by uid 500); 16 Oct 2010 06:31:39 -0000 Delivered-To: apmail-incubator-photark-dev-archive@incubator.apache.org Received: (qmail 85223 invoked by uid 500); 16 Oct 2010 06:31:38 -0000 Mailing-List: contact photark-dev-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: photark-dev@incubator.apache.org Delivered-To: mailing list photark-dev@incubator.apache.org Received: (qmail 85214 invoked by uid 99); 16 Oct 2010 06:31:37 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Oct 2010 06:31:37 +0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS,T_TO_NO_BRKTS_FREEMAIL X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of suhothayan@gmail.com designates 209.85.214.175 as permitted sender) Received: from [209.85.214.175] (HELO mail-iw0-f175.google.com) (209.85.214.175) by apache.org (qpsmtpd/0.29) with ESMTP; Sat, 16 Oct 2010 06:31:30 +0000 Received: by iwn2 with SMTP id 2so1725501iwn.6 for ; Fri, 15 Oct 2010 23:31:10 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:mime-version:received:in-reply-to :references:from:date:message-id:subject:to:content-type; bh=gP1msiH+62hO7+yR+QiXKh3H3UWMxlPyRCrd+JxgqXQ=; b=lTVW73F5HIk02MhKZq+Y7u/Yh0c8eFMKWxL6TC8r3JSTZJ8IUQA3sF42WfSR8j/Ue/ iMNOlt04SyIQN1i+nRvakavY4dX96T4KNJebSSsIcvo56HcPNEmgLp2XZH+F9kxENsgN CnRMufc9iXKixll3R8iTP1Npd+IORp4Nr0A3w= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; b=Yc7ugmjxzNEzmxq5r61PqYy6mRiD2x7qjqetiTDYysO/M1lv6Xu0FuHTktIVogBhEg zpBkEIFMTvsS6BLMM7qQhRjck5IfRFcbKa37mtejr8gol5BJMq6gYGSZQcaZnYQHHxzK wVQd8ZdgI9+vnUo/oPLvCOy4uri8tHjrc6wyc= Received: by 10.42.214.8 with SMTP id gy8mr1300948icb.392.1287210670045; Fri, 15 Oct 2010 23:31:10 -0700 (PDT) MIME-Version: 1.0 Received: by 10.42.174.202 with HTTP; Fri, 15 Oct 2010 23:30:49 -0700 (PDT) In-Reply-To: References: From: Suhothayan Sriskandarajah Date: Sat, 16 Oct 2010 12:00:49 +0530 Message-ID: Subject: Re: Pass HttpServletRequest parameter to JCRImageUploadServiceImpl.addPictureToAlbum() from a JS To: photark-dev@incubator.apache.org Content-Type: multipart/alternative; boundary=20cf301d42e0bd39da0492b61621 --20cf301d42e0bd39da0492b61621 Content-Type: text/plain; charset=ISO-8859-1 On 15 October 2010 23:46, Subash Chaturanga wrote: > Hi Luciano, > > What i want to do is , when some one hit the subscribe button providing > album name, feed url, and album description I want to add create a new > album > in the repository and add those images to that album. > I have a doubt where you are going to save the new album in the repository. When we create an album node at the root in JCR then this remote album is going to contain a different sets of meta data form the others. therefore we also need to handle this differences every time when we fetch the albums. If we can have a hierarchical structure /albums/local/ and /albums/remote/picasa/ then it will be easy for the Photark to handle specific albums accordingly > So for that I have to > > 1. JCRGalleryImpl.addAlbum() to create a new album > 2. JCRImageUploadServiceImpl.addPictureToAlbum() to store Image instances . > > I have to do these things in a method which inside a service component > called PicasaSubscription / FlickerSubscription which is invoked from > upload.js. This is what I am going to achieve. So the HttpServletRequest is > needed for addPictureToAlbum() method. > > So how can I achieve this? Any suggestions please? > I think at the time of submitting, we have to store the album meta data in the JCR, and when loading the gallery just fetching these albums remotely, populate them to a new photark album, and sending that to the gallery will do Let me know if I have gone wrong somewhere Suho > And hope I made my problem clear. > > Thanks > /subash > --20cf301d42e0bd39da0492b61621--