Return-Path: X-Original-To: apmail-openoffice-dev-archive@www.apache.org Delivered-To: apmail-openoffice-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 28BB610461 for ; Sun, 2 Jun 2013 10:17:27 +0000 (UTC) Received: (qmail 21962 invoked by uid 500); 2 Jun 2013 10:17:26 -0000 Delivered-To: apmail-openoffice-dev-archive@openoffice.apache.org Received: (qmail 21827 invoked by uid 500); 2 Jun 2013 10:17:25 -0000 Mailing-List: contact dev-help@openoffice.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@openoffice.apache.org Delivered-To: mailing list dev@openoffice.apache.org Received: (qmail 21819 invoked by uid 99); 2 Jun 2013 10:17:25 -0000 Received: from minotaur.apache.org (HELO minotaur.apache.org) (140.211.11.9) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jun 2013 10:17:25 +0000 Received: from localhost (HELO localhost) (127.0.0.1) (smtp-auth username arielch, mechanism plain) by minotaur.apache.org (qpsmtpd/0.29) with ESMTP; Sun, 02 Jun 2013 10:17:25 +0000 Date: Sun, 2 Jun 2013 07:17:21 -0300 From: Ariel Constenla-Haile To: dev@openoffice.apache.org Subject: Re: CMIS UCP Message-ID: <20130602101721.GA4979@localhost> References: <20130531203437.GB558@localhost> <20130601170422.GA29141@localhost> <20130602003630.GA17728@localhost> <20130602063606.GC17728@localhost> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="YiEDa0DAkWCtVeE4" Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) --YiEDa0DAkWCtVeE4 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable Hi Rajath, On Sun, Jun 02, 2013 at 02:03:56PM +0530, Rajath Shashidhara wrote: > Hello, >=20 > Sorry for asking too many questions. It's alright :) > The method execute in the XContent implementation class I have created, > which has parameters: com.sun.star.ucb.Command aCommand, int CommandId, > com.sun.star.ucb.XCommandEnvironment Environment >=20 > now aCommand object has three attributes: > Name,handle,argument >=20 > So if trying to get Metadata. we use command as getPropertyValues. > "getPropertyValues" is the name of the command, I would state it with the sentences switched: if the application is executing the command "getPropertyValues", you have to get meta-data from the CMIS service without downloading anything expect the meta-data itself. "getPropertyValues" is one of the commands to be first executed by the application, usually to know if the content represents a folder or a document. > argument -> which property to get. in plural, even if it is only one property, you get a sequence. > What is handle? Look at the API reference: http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Command.html long Handle; contains an implementation specific handle for the command.=20 It is up to the implementation (that is, you) whether to use it or simply ignore it. You can ignore it now and come back later. > Also what is commandid? Any enumeration to represent various commandids? For CommandId read http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/XCommandProc= essor.html#execute "is a unique id for the command. This identifier was obtained by calling XCommandProcessor::createCommandIdentifier." Most (if not all) implementations in the core code simply ignore this param= eter. Note that different css.ucb.Command's have different Command.Argument, and XCommandProcessor.execute() returns different things. This is document in the Dev's Guide, and with more detail in http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html The SDK from trunk has a nicer formatted documentation. For "getPropertyValues" you will have to implement a css::sdbc::XRow, the internal helper implementation is ucbhelper::PropertyValueSet in=20 main/ucbhelper/inc/ucbhelper/propertyvalueset.hxx main/ucbhelper/source/provider/propertyvalueset.cxx Regards --=20 Ariel Constenla-Haile La Plata, Argentina --YiEDa0DAkWCtVeE4 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.13 (GNU/Linux) iQIcBAEBCAAGBQJRqxuxAAoJEMjP1bm45QNWJNgP/2mCKA2b9I+NDEFWUnKenF/u rzv3duMbUagIbaSH4+MevX5bOqQkxPDwjPsRq6HC3+yDyXNGgTG32LFrKkciYlXG oDYkbC9o6mhOa1BNrUuG/qQ9li8qtgCQiaNDokwpEdDEp0r22SqeMna4UhWcpw4x a1QfQK1i4fMijY7YI8xoYrxmQjFim69lbHSUehuusrBYfZZFM16GeBKWIsfWPldh bIvJj0665OkW9V6Fo6TUoHk6UI6YmIzGYZDXJ2GU5xtS73HIov1FlsR2Owzp5OWM PDAprmJ+P9PPn4ByeSEpmw7XHy74xJvngYP/F66QtjqJojxfWNg8H6JEU6WRssxC vGjso8RA+tJ7RFbLtumCvsZJeDv96rw2GLhS91rs0nxhnEYDppYOJk2luY/9z387 UHGiKc8X1tDxmUE5li6774ndoIg4FaFJW6euJtIuwEpdg8kcc2Uzi1XbRdWGM7Zv R3SIedbitF6m+9UfYwP7PjALiFHJ2rc8l6RhG4ds/5zTq7GAKTuDZmWHOg0BrM2J GhjJtj7ct1B7dE+knqv1VbT1KInxXqUwzedZ+E/zh50YGdIQ93SJQOp2U2DpLfHe vzv5gGwBKNiu4+YUtVhGE9o4gn7n4arUCZMCmhRv9u9BKMVv+AMmJOo4ZUhcTkrb /2qHC3sn2WBpcxJvAIWV =noV1 -----END PGP SIGNATURE----- --YiEDa0DAkWCtVeE4--