Re: CMIS UCP

2013-08-29 Thread Jürgen Schmidt
On 8/29/13 9:14 PM, Rajath Shashidhara wrote: Hello, SInce, my mentor for a long period of time. I need help from your side. My ucp is completed till the point where I can open files through open dialog and can create new documents on repository. When the user opens a document from open

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Jürgen Schmidt
On 6/4/13 6:32 PM, Rajath Shashidhara wrote: Hello Juergen, I have tested the getPropertyValues command. It works pretty nicely. Please send me some pointers about my code so that I can improve. I will take a look in your code asap but currently I am also busy with the release. Please

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Rajath Shashidhara
Ok.. I'll do it. As of now, I am not very clear about the project plan because I'm not sure how much time each module will take. I'll doucment about where to find my code and milestones. On Wed, Jun 5, 2013 at 12:53 PM, Jürgen Schmidt jogischm...@gmail.comwrote: On 6/4/13 6:32 PM, Rajath

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Jürgen Schmidt
On 6/5/13 9:54 AM, Rajath Shashidhara wrote: Ok.. I'll do it. As of now, I am not very clear about the project plan because I'm not sure how much time each module will take. I'll doucment about where to find my code and milestones. we can adapt the plan accordingly when we get a clear picture

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Rajath Shashidhara
Ok. I'll document the milestones. On Wed, Jun 5, 2013 at 1:35 PM, Jürgen Schmidt jogischm...@gmail.comwrote: On 6/5/13 9:54 AM, Rajath Shashidhara wrote: Ok.. I'll do it. As of now, I am not very clear about the project plan because I'm not sure how much time each module will take. I'll

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Rajath Shashidhara
Hello, Is there any enumeration for different modes for OpenCommandArgument2 in open command implementation? Or is the mode implementation specific? On Wed, Jun 5, 2013 at 7:35 PM, Jürgen Schmidt jogischm...@gmail.comwrote: On 6/5/13 10:07 AM, Rajath Shashidhara wrote: Ok. I'll document the

Re: CMIS UCP getPropertyValues

2013-06-04 Thread Jürgen Schmidt
On 6/4/13 10:01 AM, Rajath Shashidhara wrote: Hello, I have successfully completed the implementation of getPropertyValues ucb command for cmis ucp. My ContentProvider repo: https://github.com/rajaths589/CMISContentProvider.git I wrote a client application to test my ucp:

Re: CMIS UCP getPropertyValues

2013-06-04 Thread Rajath Shashidhara
Hello Juergen, I think i'll have to more debugging. I'm facing some errors. I'll continue once I complete it. On Tue, Jun 4, 2013 at 1:50 PM, Jürgen Schmidt jogischm...@gmail.comwrote: On 6/4/13 10:01 AM, Rajath Shashidhara wrote: Hello, I have successfully completed the implementation

Re: CMIS UCP getPropertyValues

2013-06-04 Thread Rajath Shashidhara
Is this the right way to convert an any object to properties array: pRequest = (Property[]) AnyConverter.toArray(arg0.Argument); ? because I need to convert the any object to sequenceProperty . On Tue, Jun 4, 2013 at 2:23 PM, Rajath Shashidhara rajaths.raja...@gmail.com wrote: Hello Juergen,

Re: CMIS UCP getPropertyValues

2013-06-04 Thread Rajath Shashidhara
Hello Juergen, I have tested the getPropertyValues command. It works pretty nicely. Please send me some pointers about my code so that I can improve. On Tue, Jun 4, 2013 at 3:35 PM, Rajath Shashidhara rajaths.raja...@gmail.com wrote: Is this the right way to convert an any object to

Re: CMIS UCP

2013-06-03 Thread Jürgen Schmidt
Hi Rajath, first of all sorry for not answering over the weekend but I try to take a real break over the weekend and focus on some private work items. But Ariel gave you very detailed and good advice, it seems that he would be a better mentor ;-) The office API will be of course the more

Re: CMIS UCP

2013-06-03 Thread Rajath Shashidhara
Hello, I have changed the getPropertyValues return type to XRow. One Problem I'm facing is that the stated UNOtype sequence is not available for me. I checked com.sun.star.uno package also. I typecasted the command.argument to Property[] because from these two examples:

Re: CMIS UCP

2013-06-03 Thread Jürgen Schmidt
On 6/3/13 6:46 PM, Rajath Shashidhara wrote: Hello, I have changed the getPropertyValues return type to XRow. One Problem I'm facing is that the stated UNOtype sequence is not available for me. I checked com.sun.star.uno package also. I typecasted the command.argument to Property[]

Re: CMIS UCP

2013-06-03 Thread Rajath Shashidhara
Hello Juergen, I have type casted it to Property[]. This page says that the argument for getPropertyValues is sequenceProperty type. http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html I'm not able to define such a variable type sequence . I'll test my code with the macro

Re: CMIS UCP

2013-06-03 Thread Jürgen Schmidt
On 6/3/13 8:06 PM, Rajath Shashidhara wrote: Hello Juergen, I have type casted it to Property[]. This page says that the argument for getPropertyValues is sequenceProperty type. http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html I'm not able to define such a

Re: CMIS UCP

2013-06-03 Thread Rajath Shashidhara
Hello Juergen, Ok. On Mon, Jun 3, 2013 at 11:40 PM, Jürgen Schmidt jogischm...@gmail.comwrote: On 6/3/13 8:06 PM, Rajath Shashidhara wrote: Hello Juergen, I have type casted it to Property[]. This page says that the argument for getPropertyValues is sequenceProperty type.

Re: CMIS UCP

2013-06-03 Thread Rajath Shashidhara
Hello, I rebuilt openoffice using this switch --enable-category-b to enable the macro security dialog box. But, now openoffice exits as soon as I click Macro security button. I wont be able to test my work without this. Please help. Also, Is there any procedure/code to write to register the new

Re: CMIS UCP

2013-06-03 Thread Ariel Constenla-Haile
Hi Rajath, On Mon, Jun 03, 2013 at 11:36:05PM +0530, Rajath Shashidhara wrote: Hello Juergen, I have type casted it to Property[]. This page says that the argument for getPropertyValues is sequenceProperty type. http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html

Re: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
Hi Rajath, On Sun, Jun 02, 2013 at 09:58:56AM +0530, Rajath Shashidhara wrote: Hello, Now that I have added a UNO Object of IDL type Content, there are some methods that need to be implemented. Out of which, com.sun.star.ucb.XContentIdentifier getIdentifier() is one of them. I have read

Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hello, Sorry for asking too many questions. 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 now aCommand object has three attributes:

Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hello, I think there is a bug in OpenOffice 4. Tools-Options-Security. Macro Security Button link is broken. On Sun, Jun 2, 2013 at 2:03 PM, Rajath Shashidhara rajaths.raja...@gmail.com wrote: Hello, Sorry for asking too many questions. The method execute in the XContent implementation

Re: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
Hi Rajath, On Sun, Jun 02, 2013 at 02:03:56PM +0530, Rajath Shashidhara wrote: Hello, 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,

Re: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
On Sun, Jun 02, 2013 at 03:21:42PM +0530, Rajath Shashidhara wrote: Hello, I think there is a bug in OpenOffice 4. Tools-Options-Security. Macro Security Button link is broken. Did you build it yourself? You have to enable category-b (configure with --enable-category-b ) for that dialog to

Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Yes. I built it myself. I'll rebuild it with that switch. Thanks. On Sun, Jun 2, 2013 at 3:50 PM, Ariel Constenla-Haile arie...@apache.orgwrote: On Sun, Jun 02, 2013 at 03:21:42PM +0530, Rajath Shashidhara wrote: Hello, I think there is a bug in OpenOffice 4. Tools-Options-Security.

Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hi Ariel, I'm still not clear about one thing: I'm completing the implementation of the function execute() for getPropertyValues command. But, until now I assumed that the path and name of the object whose properties I'm getting are contained in the XIdentifier object that is a parameter to

Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Just realised my mistake, XContentIdentifier will be passed to queryContent. So, analysis of URL is done in that method itself. On Sun, Jun 2, 2013 at 5:12 PM, Rajath Shashidhara rajaths.raja...@gmail.com wrote: Hi Ariel, I'm still not clear about one thing: I'm completing the

Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hello Ariel, function: compareContentIds Description: 0 is returned, if the identifiers are equal. A value less than 0 indiactes, that the Id1 is less than Id2. A value greater than 0 is returned, if Id1 is greater than Id2. What is less than? Is it below in the file hierarchy? Are alphabetic?

Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hello everyone, I have completed some part of the CMISUCP. I have made my own implementation of XContent, XContentIdentifier interfaces. I have partially Completed implementation of the following methods: queryContent() execute() - getPropertyValues, open I was not very clear about the return

Re: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
On Sun, Jun 02, 2013 at 11:06:40PM +0530, Rajath Shashidhara wrote: Hello Ariel, function: compareContentIds Description: 0 is returned, if the identifiers are equal. A value less than 0 indiactes, that the Id1 is less than Id2. A value greater than 0 is returned, if Id1 is greater than

Re: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
Hi Rajath, On Mon, Jun 03, 2013 at 01:28:24AM +0530, Rajath Shashidhara wrote: Hello everyone, I have completed some part of the CMISUCP. I have made my own implementation of XContent, XContentIdentifier interfaces. I have partially Completed implementation of the following methods:

Re: CMIS UCP

2013-06-02 Thread Rajath Shashidhara
Hello Ariel, Actually, this is my first code using openoffice api. I'll do these before completing my ucp. Sorry. I'll get back to you with the understanding of the general api. On Mon, Jun 3, 2013 at 10:20 AM, Ariel Constenla-Haile ariel.constenla.ha...@gmail.com wrote: Hi Rajath, On

Re: CMIS UCP

2013-06-01 Thread Rajath Shashidhara
Hello Ariel, Your code has these lines in queryContent() method: System.out.printf(queryContent()\n); System.out.printf(Identifier: %s\n, xIdentifier.getContentIdentifier()); System.out.printf(Scheme: \n, xIdentifier.getContentProviderScheme()); So, when I try to open a file from CMIS

Re: CMIS UCP

2013-06-01 Thread Ariel Constenla-Haile
Hi Rajath, On Sat, Jun 01, 2013 at 09:05:34PM +0530, Rajath Shashidhara wrote: Hello Ariel, Your code has these lines in queryContent() method: System.out.printf(queryContent()\n); System.out.printf(Identifier: %s\n, xIdentifier.getContentIdentifier()); System.out.printf(Scheme: \n,

Re: CMIS UCP

2013-06-01 Thread Rajath Shashidhara
Hello, I read the wikipages about UCB and UCP(all the links in these mails), One thing I did not understand is: What functions are called under what situations from the UCP? What are those functions supposed to do? For example: what is the function: registerInstance() supposed to do? What

Re: CMIS UCP

2013-06-01 Thread Ariel Constenla-Haile
Hi Rajath, On Sun, Jun 02, 2013 at 12:12:11AM +0530, Rajath Shashidhara wrote: Hello, I read the wikipages about UCB and UCP(all the links in these mails), One thing I did not understand is: What functions are called under what situations from the UCP? What are those functions supposed to

Re: CMIS UCP

2013-06-01 Thread Rajath Shashidhara
Hello, Now that I have added a UNO Object of IDL type Content, there are some methods that need to be implemented. Out of which, com.sun.star.ucb.XContentIdentifier getIdentifier() is one of them. I have read the api reference for XContentIdentifier. It needs XComponentContext as an argument for

Re: CMIS UCP

2013-06-01 Thread Rajath Shashidhara
This is the getContentProviderScheme() implementation for ftp: rtl::OUString SAL_CALL FTPContentIdentifier::getContentProviderScheme( ) throw ( com::sun::star::uno::RuntimeException ) { return rtl::OUString::createFromAscii(ftp); } So should I return a string cmis ? On

Re: CMIS UCP

2013-05-31 Thread Jürgen Schmidt
On 5/31/13 4:01 PM, Rajath Shashidhara wrote: Hello, I have built the basic CMIS UCP code that Ariel had sent me. Created a .oxt. Installed it. I uploaded a .odt file to my inmemory repository(no authentication required). I tried this URL in the open dialog:

Re: CMIS UCP

2013-05-31 Thread Rajath Shashidhara
Yes. I am able to upload, then download and access the document into the local server. I tried the same document. I'll read them. On Fri, May 31, 2013 at 8:21 PM, Jürgen Schmidt jogischm...@gmail.comwrote: On 5/31/13 4:01 PM, Rajath Shashidhara wrote: Hello, I have built the basic CMIS

Re: CMIS UCP

2013-05-31 Thread Ariel Constenla-Haile
On Fri, May 31, 2013 at 04:51:14PM +0200, Jürgen Schmidt wrote: On 5/31/13 4:01 PM, Rajath Shashidhara wrote: Hello, I have built the basic CMIS UCP code that Ariel had sent me. Created a .oxt. Installed it. I uploaded a .odt file to my inmemory repository(no authentication

Re: CMIS UCP

2013-05-31 Thread Rajath Shashidhara
Hello, Where can I find the code of OpenOffice UCB? On Sat, Jun 1, 2013 at 12:12 AM, Rajath Shashidhara rajaths.raja...@gmail.com wrote: Hello, thought so because there was not much code in the package... I'll have to build on that. Right? On Fri, May 31, 2013 at 10:34 PM, Ariel

Re: CMIS UCP

2013-05-31 Thread Rajath Shashidhara
Hello, thought so because there was not much code in the package... I'll have to build on that. Right? On Fri, May 31, 2013 at 10:34 PM, Ariel Constenla-Haile arie...@apache.orgwrote: On Fri, May 31, 2013 at 04:51:14PM +0200, Jürgen Schmidt wrote: On 5/31/13 4:01 PM, Rajath Shashidhara

Re: CMIS UCP

2013-05-31 Thread Ariel Constenla-Haile
Hi Rajath, On Sat, Jun 01, 2013 at 12:12:01AM +0530, Rajath Shashidhara wrote: Hello, thought so because there was not much code in the package... I'll have to build on that. Right? I guess no. You have to learn to do that yourself. That is, get familiar with the NetBeans plug-in, how to

Re: CMIS UCP

2013-05-31 Thread Ariel Constenla-Haile
On Sat, Jun 01, 2013 at 12:12:34AM +0530, Rajath Shashidhara wrote: Hello, Where can I find the code of OpenOffice UCB? already answered at the end of http://markmail.org/message/jgnq7plytaog5wbi As suggested there, start first with plain/pure UNO, get an overview of how UCB works, and then