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

CMIS UCP

2013-08-29 Thread Rajath Shashidhara
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 dialog, it is opened as readonly as editing needs the d

Re: Opinion: CMIS UCP Open

2013-08-17 Thread janI
On 17 August 2013 11:16, Rajath Shashidhara wrote: > Hello, > > I need opinion on how to implement "open" command in my cmis ucp. > Since, cmis supports versioning, the make any changes to the document, the > document has to be checked out. Later, the changes have to che

Opinion: CMIS UCP Open

2013-08-17 Thread Rajath Shashidhara
Hello, I need opinion on how to implement "open" command in my cmis ucp. Since, cmis supports versioning, the make any changes to the document, the document has to be checked out. Later, the changes have to checked in. So, when the user "open" a folder from the file dialog, t

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Rajath Shashidhara
to find your code at the moment > >>>> > >>>> - ... > >>>> > >>>> Juergen > >>>> > >>>>> > >>>>> > >>>>> On Tue, Jun 4, 2013 at 3:35 PM, Rajath Shashidhara &

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Jürgen Schmidt
t;> >>>>> 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 properties array: >>&g

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Rajath Shashidhara
; > >>>> > >>>> On Tue, Jun 4, 2013 at 2:23 PM, Rajath Shashidhara < > >>>> rajaths.raja...@gmail.com> wrote: > >>>> > >>>>> Hello Juergen, > >>>>> > >>>>> I think i'll hav

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Jürgen Schmidt
ara < >>>> rajaths.raja...@gmail.com> wrote: >>>> >>>>> Hello Juergen, >>>>> >>>>> I think i'll have to more debugging. I'm facing some errors. I'll >>>>> continue once I complete it. >>>&

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Rajath Shashidhara
I'm facing some errors. I'll > >>> continue once I complete it. > >>> > >>> > >>> On Tue, Jun 4, 2013 at 1:50 PM, Jürgen Schmidt >wrote: > >>> > >>>> On 6/4/13 10:01 AM, Rajath Shashidhara wrote: >

Re: CMIS UCP getPropertyValues

2013-06-05 Thread Jürgen Schmidt
13 at 1:50 PM, Jürgen Schmidt wrote: >>> >>>> On 6/4/13 10:01 AM, Rajath Shashidhara wrote: >>>>> Hello, >>>>> >>>>> I have successfully completed the implementation of >>>> "getPropertyValues" ucb >>>>> c

Re: CMIS UCP getPropertyValues

2013-06-04 Thread Rajath Shashidhara
a wrote: >>> > Hello, >>> > >>> > I have successfully completed the implementation of >>> "getPropertyValues" ucb >>> > command for cmis ucp. >>> > >>> > My ContentProvider repo: >>> > https://gi

Re: CMIS UCP getPropertyValues

2013-06-04 Thread Rajath Shashidhara
; Hello, >> > >> > I have successfully completed the implementation of "getPropertyValues" >> ucb >> > command for cmis ucp. >> > >> > My ContentProvider repo: >> > https://github.com/rajaths589/CMISContentProvider.git >> > >> >

Re: CMIS UCP getPropertyValues

2013-06-04 Thread Rajath Shashidhara
ully 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: > > https://github.c

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 wrot

CMIS UCP getPropertyValues

2013-06-04 Thread Rajath Shashidhara
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: https://github.com/rajaths589/CMISContentProviderTest.gi

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 > sequence type. > http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html > >

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 U

Re: CMIS UCP

2013-06-03 Thread Rajath Shashidhara
Hello Juergen, Ok. On Mon, Jun 3, 2013 at 11:40 PM, Jürgen Schmidt wrote: > 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 > > sequence type. > > > http://www.openoffice.or

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 > sequence type. > http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html > > I'm not able to define such a varia

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 sequence 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 . I'll test my code with the macro sent by Ariel. B

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, 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: http://wiki.openoffice.or

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 diffi

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-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 meth

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

Fwd: CMIS UCP

2013-06-02 Thread Ariel Constenla-Haile
It seems Apache SMTP service is failing, forwarding via my gmail account. -- Forwarded message -- From: Ariel Constenla-Haile Date: Sun, Jun 2, 2013 at 2:46 PM Subject: Re: CMIS UCP To: dev@openoffice.apache.org Hi Rajath, On Sun, Jun 02, 2013 at 05:12:03PM +0530, Rajath

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 re

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
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 imple

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 que

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 wrote: > 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 Secu

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

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 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 implement

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: Name,handle,argume

Re: CMIS UCP

2013-06-01 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

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-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 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 suppose

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 should

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:

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 repos

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

Re: CMIS UCP

2013-05-31 Thread Ariel Constenla-Haile
l this without NetBeams, with other IDE, and even with no IDE at all. But better use NB with the AOO plug-in) Please see http://wiki.openoffice.org/wiki/OpenOffice_NetBeans_Integration For the CMIS UCP follow http://wiki.openoffice.org/wiki/General_UNO_Component_Project_Type In the step 4, "

Re: CMIS UCP

2013-05-31 Thread Rajath Shashidhara
e: > > > 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). > > >

Re: CMIS UCP

2013-05-31 Thread Rajath Shashidhara
Fri, May 31, 2013 at 10:34 PM, Ariel Constenla-Haile < > arie...@apache.org> wrote: > >> 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 ha

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

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 wrote: > On 5/31/13 4:01 PM, Rajath Shashidhara wrote: > > Hello, > > > > I have built th

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 di

CMIS UCP

2013-05-31 Thread Rajath Shashidhara
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: cmis:/// It says non-existant object. Need help. -- Rajath S, M.Sc(Hons

Re: [GSOC] CMIS UCP on top of Apache Chemistry [was: Fwd: Re:]

2013-04-09 Thread Jürgen Schmidt
On 4/9/13 2:36 PM, Ariel Constenla-Haile wrote: > On Tue, Apr 09, 2013 at 07:19:09AM +0200, Jürgen Schmidt wrote: Maybe you can give a little bit more background about you. What did you have made in this direction and what's your experience with Java. >>> >>> Apache Chemistry has a

Re: [GSOC] CMIS UCP on top of Apache Chemistry [was: Fwd: Re:]

2013-04-09 Thread Ariel Constenla-Haile
On Tue, Apr 09, 2013 at 07:19:09AM +0200, Jürgen Schmidt wrote: > >> Maybe you can give a little bit more background about you. What > >> did you have made in this direction and what's your experience > >> with Java. > > > > Apache Chemistry has a Python implementation: > > http://chemistry.apach

Re: [GSOC] CMIS UCP on top of Apache Chemistry [was: Fwd: Re:]

2013-04-08 Thread Jürgen Schmidt
On 4/8/13 6:07 PM, Ariel Constenla-Haile wrote: > On Mon, Apr 08, 2013 at 04:36:32PM +0200, Jürgen Schmidt wrote: >> I saw Rob's reply and was wondering because I replied already and >> have now recognized that I replied to Sabhya only. >> >> >> Original Message Subject: Re: Dat

[GSOC] CMIS UCP on top of Apache Chemistry [was: Fwd: Re:]

2013-04-08 Thread Ariel Constenla-Haile
On Mon, Apr 08, 2013 at 04:36:32PM +0200, Jürgen Schmidt wrote: > I saw Rob's reply and was wondering because I replied already and have > now recognized that I replied to Sabhya only. > > > Original Message > Subject: Re: > Date: Mon, 08 Apr 2013 09:43:51 +0200 > From: Juergen