From user-return-21509-apmail-commons-user-archive=commons.apache.org@commons.apache.org Mon Jul 14 12:51:13 2008 Return-Path: Delivered-To: apmail-commons-user-archive@www.apache.org Received: (qmail 648 invoked from network); 14 Jul 2008 12:51:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Jul 2008 12:51:13 -0000 Received: (qmail 69326 invoked by uid 500); 14 Jul 2008 12:51:09 -0000 Delivered-To: apmail-commons-user-archive@commons.apache.org Received: (qmail 69252 invoked by uid 500); 14 Jul 2008 12:51:09 -0000 Mailing-List: contact user-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Commons Users List" Delivered-To: mailing list user@commons.apache.org Received: (qmail 69241 invoked by uid 99); 14 Jul 2008 12:51:09 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 05:51:09 -0700 X-ASF-Spam-Status: No, hits=2.0 required=10.0 tests=HTML_MESSAGE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of kleij@hotmail.com designates 65.55.116.90 as permitted sender) Received: from [65.55.116.90] (HELO blu0-omc3-s15.blu0.hotmail.com) (65.55.116.90) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 14 Jul 2008 12:50:15 +0000 Received: from BLU122-W38 ([65.55.116.74]) by blu0-omc3-s15.blu0.hotmail.com with Microsoft SMTPSVC(6.0.3790.3959); Mon, 14 Jul 2008 05:50:38 -0700 Message-ID: Content-Type: multipart/alternative; boundary="_c5a51824-42a0-4d62-bcdd-2f3ac538e4b8_" X-Originating-IP: [193.121.166.91] From: Frank van der Kleij To: Commons Users List Subject: RE: [VFS] How to use operations Date: Mon, 14 Jul 2008 12:50:38 +0000 Importance: Normal In-Reply-To: References: MIME-Version: 1.0 X-OriginalArrivalTime: 14 Jul 2008 12:50:38.0764 (UTC) FILETIME=[377776C0:01C8E5B0] X-Virus-Checked: Checked by ClamAV on apache.org --_c5a51824-42a0-4d62-bcdd-2f3ac538e4b8_ Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Yeah=2C I know what it is=3B I did read the JavaDocs and I have implemented= some FileOperations myself.=20 I am just curious if anyone else has ever used them and how they did it.=20 Is the only use of them when you create your own client that knows about yo= ur own operations? Or should any VFS client (e.g. JCommander) know how to = discover which operations exist=2C select one=2C configure it and execute i= t? Frank > Date: Mon=2C 14 Jul 2008 07:24:50 -0400 > From: james@carmanconsulting.com > To: user@commons.apache.org > Subject: Re: [VFS] How to use operations >=20 > Check the Javadocs for FileOperation/s. It's intended to be used for > "extensions" to the core API that could be provided by some > implementations (the example given is a version control system=2C such > as CVS/SVN). >=20 > On Mon=2C Jul 14=2C 2008 at 7:13 AM=2C Frank van der Kleij wrote: > > > > Ah=2C now I see! Sorry=2C I tried to refer to the 'FileOperations': Fil= eObject.getOperations(). > > > > There is some code in org.apache.commons.vfs.operations and org.apache.= commons.vfs.operations.vcs. > > > > Thanks for helping me clarify. > > > > Frank > > > >> Date: Mon=2C 14 Jul 2008 06:38:25 -0400 > >> From: james@carmanconsulting.com > >> To: user@commons.apache.org > >> Subject: Re: [VFS] How to use operations > >> > >> What I'm getting at is that if you stick to the VFS public API (the > >> FileObject interface)=2C you should have a pretty good idea of what > >> operations are available across the different implementations. Of > >> course=2C some implementations don't support all operations (HTTP can'= t > >> give you a directory listing for instance). > >> > >> > >> On Mon=2C Jul 14=2C 2008 at 5:41 AM=2C Frank van der Kleij wrote: > >> > > >> > Yes=2C I guess so=3B are there other APIs? I don't see where you get= ting at... > >> > > >> > Thanks=2C > >> > > >> > Frank > >> > > >> >> Date: Sun=2C 13 Jul 2008 21:37:26 -0400 > >> >> From: james@carmanconsulting.com > >> >> To: user@commons.apache.org > >> >> Subject: Re: [VFS] How to use operations > >> >> > >> >> Are you sticking to the FileObject API? > >> >> > >> >> On Sun=2C Jul 13=2C 2008 at 2:41 PM=2C Frank van der Kleij wrote: > >> >> > > >> >> > Hi all=2C > >> >> > > >> >> > I'm toying with my own VFS operations but I can't quite figure ou= t how to work with them. > >> >> > > >> >> > I > >> >> > don't see how a client of the VFS framework should use the operat= ions=3B > >> >> > other than when the client has prior knowledge of the operations = that > >> >> > exist. > >> >> > > >> >> > I wrote a beanshell script that rewrites the basic > >> >> > beanshell interpreter file manipulations (cd=2C pwd=2C cp=2C mv e= tc) to VFS > >> >> > manipulations. It works great and I can use my custom provider = (for > >> >> > Documentum) without any problem within the beanshell interpreter.= When > >> >> > I tried to add support for operations I found that it is difficul= t to > >> >> > make it generic though. > >> >> > > >> >> > I added some operations to my provider > >> >> > just to try=3B when I list the available operations I get a list = of > >> >> > Classes. As a user it is quite hard to interpret this. I could tr= y to > >> >> > use Reflection=2C but a user readable description of what the ope= ration > >> >> > seems far away. > >> >> > > >> >> > In my view the operations only become > >> >> > interesting when they are usable by a generic VFS client. If the = client > >> >> > is specific for the operations (I guess most operations are relat= ed to > >> >> > a provider for a particular schema) then I don't see the need to= have > >> >> > the intermediate VFS layer=2C you can as well create a client ba= sed > >> >> > directly on the underlying layer. > >> >> > > >> >> > Does anyone have any experience with using the operations? > >> >> > > >> >> > Thanks=2C > >> >> > > >> >> > Frank > >> >> > _________________________________________________________________ > >> >> > Express yourself instantly with MSN Messenger! Download today it'= s FREE! > >> >> > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >> >> > >> >> -------------------------------------------------------------------= -- > >> >> To unsubscribe=2C e-mail: user-unsubscribe@commons.apache.org > >> >> For additional commands=2C e-mail: user-help@commons.apache.org > >> >> > >> > > >> > _________________________________________________________________ > >> > Express yourself instantly with MSN Messenger! Download today it's F= REE! > >> > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ > >> > >> --------------------------------------------------------------------- > >> To unsubscribe=2C e-mail: user-unsubscribe@commons.apache.org > >> For additional commands=2C e-mail: user-help@commons.apache.org > >> > > > > _________________________________________________________________ > > Express yourself instantly with MSN Messenger! Download today it's FREE= ! > > http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/ >=20 > --------------------------------------------------------------------- > To unsubscribe=2C e-mail: user-unsubscribe@commons.apache.org > For additional commands=2C e-mail: user-help@commons.apache.org >=20 _________________________________________________________________ Express yourself instantly with MSN Messenger! Download today it's FREE! http://messenger.msn.click-url.com/go/onm00200471ave/direct/01/= --_c5a51824-42a0-4d62-bcdd-2f3ac538e4b8_--