Return-Path: X-Original-To: apmail-jackrabbit-users-archive@minotaur.apache.org Delivered-To: apmail-jackrabbit-users-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id EDCA783C6 for ; Tue, 13 Sep 2011 13:08:35 +0000 (UTC) Received: (qmail 96374 invoked by uid 500); 13 Sep 2011 13:08:35 -0000 Delivered-To: apmail-jackrabbit-users-archive@jackrabbit.apache.org Received: (qmail 96355 invoked by uid 500); 13 Sep 2011 13:08:35 -0000 Mailing-List: contact users-help@jackrabbit.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: users@jackrabbit.apache.org Delivered-To: mailing list users@jackrabbit.apache.org Received: (qmail 96325 invoked by uid 99); 13 Sep 2011 13:08:35 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 13:08:35 +0000 X-ASF-Spam-Status: No, hits=1.6 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of parvez12@gmail.com designates 209.85.213.170 as permitted sender) Received: from [209.85.213.170] (HELO mail-yx0-f170.google.com) (209.85.213.170) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 13 Sep 2011 13:08:27 +0000 Received: by yxi13 with SMTP id 13so829377yxi.1 for ; Tue, 13 Sep 2011 06:08:06 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; bh=LH0paPZDQ3fVF0FAKbcU1soOeHatPNZaGcBPniBymNg=; b=Tqb9tEMNuUujos91XlMkKZaM41iZ/6NvfjGeIJkgXzihxRg63HaWVbb8orW/mn6S1g kQjGSaR700C6DG4Z/QRUFpwactfzl1YlRcJ/9fGfHoeSLzHqQRiZHaClTk20CR+Exb3P TSED16HxBoYjllGCRRgItAzx5DFYuX7S+5fTE= MIME-Version: 1.0 Received: by 10.42.39.210 with SMTP id i18mr2140498ice.53.1315919286281; Tue, 13 Sep 2011 06:08:06 -0700 (PDT) Received: by 10.231.35.77 with HTTP; Tue, 13 Sep 2011 06:08:06 -0700 (PDT) In-Reply-To: <4E6F4F24.7040402@gmx.de> References: <4E6F4F24.7040402@gmx.de> Date: Tue, 13 Sep 2011 18:38:06 +0530 Message-ID: Subject: Re: version creation using httpclient From: Parvez Ahmad To: Julian Reschke Cc: users@jackrabbit.apache.org, user@jackrabbit.apache.org, users-help@jackrabbit.apache.org, users-owner@jackrabbit.apache.org, =?UTF-8?Q?J=C3=BCrgen_Baier?= Content-Type: multipart/alternative; boundary=90e6ba6e855e9ca49904acd25539 X-Virus-Checked: Checked by ClamAV on apache.org --90e6ba6e855e9ca49904acd25539 Content-Type: text/plain; charset=UTF-8 sir, I did that but got no answer. I actually want to create version using webdav rather than RMI repositories I need to add a label to every version that i create. My best regards. I am fan of jackrabbit team and make my living by use of your invention-- jackrabbit. I am struggling to create version for a file from last 15 days. Version is getting created but I am unable to retrieve the version labels using code. I am using httpclient and am creating version for the file using webdav. I use jackrabit/apache sling. I want to retrieve version labels. Please help regards Ahmad Kashmir Srinagar Kashmir India Sample code i use is :- public void createVersion(String un_encoded_virtual_Path){ String virtualPath = Utility.encodePath(un_encoded_ virtual_Path); String remotePath = getServerRoot() + virtualPath; int status; try { VersionControlMethod vcMethod = new VersionControlMethod(remotePath); executeMethod(vcMethod); vcMethod.releaseConnection(); // execute check in and check out methods if(urlExists(remotePath)){ /** CheckoutMethod checkOut = new CheckoutMethod(remotePath); executeMethod(checkOut); checkOut.releaseConnection(); */ CheckinMethod checkIn = new CheckinMethod(remotePath); executeMethod(checkIn); checkIn.releaseConnection(); } LabelMethod lbMethod = new LabelMethod(remotePath,"FLINTOFF", LabelInfo.TYPE_ADD); status = executeMethod(lbMethod); System.out.println("status : " + status + "--" + lbMethod.getResponseBodyAsString()); } catch (Exception e2){ e2.printStackTrace(); } } public List getVersions(String un_encoded_virtual_Path){ List lstVersions = new ArrayList(); String virtualPath = Utility.encodePath(un_encoded_virtual_Path); String remotePath = getServerRoot() + virtualPath; try { /// get versions // create the report // I am unable to get version names using reportmethod , though I get the URLS of versions I want to attach version name to every version regards Ahmad On Tue, Sep 13, 2011 at 6:10 PM, Julian Reschke wrote: > On 2011-09-12 13:27, Parvez Ahmad wrote: > >> Sir, >> My best regards. I am fan of jackrabbit team and make my living by use of >> your invention-- jackrabbit. >> >> I am struggling to create version for a file from last 15 days. Version is >> getting created but I am unable to retrieve >> the version labels using code. >> >> I use jackrabit/apache sling. I want to retrieve version labels. Please >> help >> ... >> > > Please be more specific -- "/// HERE I SEE THE PROBLEM" isn't very helpful > for people trying to understand what you want to do, and what might be going > wrong. > > Best regards, Julian > --90e6ba6e855e9ca49904acd25539--