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 document to be checked out and later the changes to be
checked in.

I have also developed checkin and checkout ucb commands.

My question is :
how to show a popup or message box prompting user to checkout the document
when the user opens the document as readonly from the open file dialog?

Please reply as early as possible. Your help is essential as I'm running
out of time.

-- 
Rajath S,
M.Sc(Hons.) Physics, B.E.(Hons.) Computer Science
Birla Institute of Technology and Science - Pilani,
Pilani


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 dialog, it is opened as readonly
 as editing needs the document to be checked out and later the changes to be
 checked in.
 
 I have also developed checkin and checkout ucb commands.
 
 My question is :
 how to show a popup or message box prompting user to checkout the document
 when the user opens the document as readonly from the open file dialog?
 
 Please reply as early as possible. Your help is essential as I'm running
 out of time.
 

Hi Rajath,

I told you that I am off for 4 days and have limited time. There is
still enough to do to improve the code and to cleanup.

Implement as default that the document is opened readonly. Later on the
file open dialog have to be extended to show the checkin/checkout
commands in the context menu. Or even better a sidebar will provide a
separate view on the files and show the commands explicitly.

For test purposes you can also add a toolbar with 2 buttons to
checkin/checkout the currently active document if it is from a cmsi
storage.

It's your project, you should drive it. Think what's useful and make
sense. If you prefer a dialog to ask every time you can do that as well.
Get the desktop and the current frame to get a parent window for the
dialog. Examples are in the SDK as I told you. The code have to be
adapted to your code but in general the samples are there.

The question is if you want to ask when the document is opened or only
if the user try to save. When save than only if it is not yet checked
out. And ask when a checked out document is closed if the user want to
check in.

Think about the usecases and think what would be best to help the user
to fulfill his task and to avoid mistakes, what would be a good workflow.

Juergen





-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



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, there are two
options:
1. Open the document as a read-only copy. Provide an option to
2. Checkout the document and open it.

What do you feel is best way to go about it?
Please provide your opinion.

-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 update the wiki page:

- the project plan, document milestones

- add info where to find your code at the moment

- ...

Juergen

 
 
 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:
 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,

 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 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.git

 What is my next Step?


 sounds good, you make good progress. I think you can now move forward to
 take a closer look on the open command.

 You should document the steps on the wiki page. I can think of the
 following milestones

 1. milestone
 was to setup a local Chemistry test server and get familiar with the
 Chemistry API. Use your own client to load a document from the CMIS
 store and open it manually with the Office.
 Status: done

 2. milestone
 should be to use the internal office file open dialog and be able to
 browse in a CMIS file store and show the content of directories.
 Status: in progress

 3. milestone
 be able to open and save files
 Status:

 4. milestone
 creating, deleting, copy and moving content

 5. milestone
 implement a options page to configure the user and connection
 information for several CMIS stores and make use of this information.
 Use internal password container... - TBD

 6. milestone
 Support https connections to CMIS stores using the internal certificate
 store and use the internal interaction handler ... - TDB

 Juergen

 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani

 
 
 


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



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 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 update the wiki page:

 - the project plan, document milestones

 - add info where to find your code at the moment

 - ...

 Juergen

 
 
  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:
  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,
 
  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.com
 wrote:
 
  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:
  https://github.com/rajaths589/CMISContentProviderTest.git
 
  What is my next Step?
 
 
  sounds good, you make good progress. I think you can now move forward
 to
  take a closer look on the open command.
 
  You should document the steps on the wiki page. I can think of the
  following milestones
 
  1. milestone
  was to setup a local Chemistry test server and get familiar with the
  Chemistry API. Use your own client to load a document from the CMIS
  store and open it manually with the Office.
  Status: done
 
  2. milestone
  should be to use the internal office file open dialog and be able to
  browse in a CMIS file store and show the content of directories.
  Status: in progress
 
  3. milestone
  be able to open and save files
  Status:
 
  4. milestone
  creating, deleting, copy and moving content
 
  5. milestone
  implement a options page to configure the user and connection
  information for several CMIS stores and make use of this information.
  Use internal password container... - TBD
 
  6. milestone
  Support https connections to CMIS stores using the internal
 certificate
  store and use the internal interaction handler ... - TDB
 
  Juergen
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
  For additional commands, e-mail: dev-h...@openoffice.apache.org
 
 
 
 
  --
  Rajath S,
  M.Sc(Hons.) Physics,
  Birla Institute of Technology and Science - Pilani,
  Pilani
 
 
 
 
  --
  Rajath S,
  M.Sc(Hons.) Physics,
  Birla Institute of Technology and Science - Pilani,
  Pilani
 
 
 
 


 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 how long
certain tasks will take.

For me it is important that we define milestones that we can reach and
that we can track. If it takes for example 5 instead of 3 days it is no
problem for me. We can document potential delays if necessary.

Keep in mind that I can be a bottle neck as well and don't give you the
necessary feedback or support in time.

I think you make good progress and you ask good questions. That show me
that you dive deeper and deeper in the secret world of the UCB and the
office ;-)

Juergen

 
 
 On Wed, Jun 5, 2013 at 12:53 PM, Jürgen Schmidt jogischm...@gmail.comwrote:
 
 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 update the wiki page:

 - the project plan, document milestones

 - add info where to find your code at the moment

 - ...

 Juergen



 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:
 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,

 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.com
 wrote:

 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:
 https://github.com/rajaths589/CMISContentProviderTest.git

 What is my next Step?


 sounds good, you make good progress. I think you can now move forward
 to
 take a closer look on the open command.

 You should document the steps on the wiki page. I can think of the
 following milestones

 1. milestone
 was to setup a local Chemistry test server and get familiar with the
 Chemistry API. Use your own client to load a document from the CMIS
 store and open it manually with the Office.
 Status: done

 2. milestone
 should be to use the internal office file open dialog and be able to
 browse in a CMIS file store and show the content of directories.
 Status: in progress

 3. milestone
 be able to open and save files
 Status:

 4. milestone
 creating, deleting, copy and moving content

 5. milestone
 implement a options page to configure the user and connection
 information for several CMIS stores and make use of this information.
 Use internal password container... - TBD

 6. milestone
 Support https connections to CMIS stores using the internal
 certificate
 store and use the internal interaction handler ... - TDB

 Juergen

 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani






 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org


 
 


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



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 doucment
  about where to find my code and milestones.

 we can adapt the plan accordingly when we get a clear picture how long
 certain tasks will take.

 For me it is important that we define milestones that we can reach and
 that we can track. If it takes for example 5 instead of 3 days it is no
 problem for me. We can document potential delays if necessary.

 Keep in mind that I can be a bottle neck as well and don't give you the
 necessary feedback or support in time.

 I think you make good progress and you ask good questions. That show me
 that you dive deeper and deeper in the secret world of the UCB and the
 office ;-)

 Juergen

 
 
  On Wed, Jun 5, 2013 at 12:53 PM, Jürgen Schmidt jogischm...@gmail.com
 wrote:
 
  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 update the wiki page:
 
  - the project plan, document milestones
 
  - add info where to find your code at the moment
 
  - ...
 
  Juergen
 
 
 
  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:
  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,
 
  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.com
  wrote:
 
  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:
  https://github.com/rajaths589/CMISContentProviderTest.git
 
  What is my next Step?
 
 
  sounds good, you make good progress. I think you can now move
 forward
  to
  take a closer look on the open command.
 
  You should document the steps on the wiki page. I can think of the
  following milestones
 
  1. milestone
  was to setup a local Chemistry test server and get familiar with the
  Chemistry API. Use your own client to load a document from the CMIS
  store and open it manually with the Office.
  Status: done
 
  2. milestone
  should be to use the internal office file open dialog and be able to
  browse in a CMIS file store and show the content of directories.
  Status: in progress
 
  3. milestone
  be able to open and save files
  Status:
 
  4. milestone
  creating, deleting, copy and moving content
 
  5. milestone
  implement a options page to configure the user and connection
  information for several CMIS stores and make use of this
 information.
  Use internal password container... - TBD
 
  6. milestone
  Support https connections to CMIS stores using the internal
  certificate
  store and use the internal interaction handler ... - TDB
 
  Juergen
 
 
 -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
  For additional commands, e-mail: dev-h...@openoffice.apache.org
 
 
 
 
  --
  Rajath S,
  M.Sc(Hons.) Physics,
  Birla Institute of Technology and Science - Pilani,
  Pilani
 
 
 
 
  --
  Rajath S,
  M.Sc(Hons.) Physics,
  Birla Institute of Technology and Science - Pilani,
  Pilani
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
  For additional commands, e-mail: dev-h...@openoffice.apache.org
 
 
 
 


 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


Re: CMIS UCP getPropertyValues

2013-06-05 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.git
 
  What is my next Step?
 
 
  sounds good, you make good progress. I think you can now move
  forward
  to
  take a closer look on the open command.
 
  You should document the steps on the wiki page. I can think of the
  following milestones
 
  1. milestone
  was to setup a local Chemistry test server and get familiar with
 the
  Chemistry API. Use your own client to load a document from the
 CMIS
  store and open it manually with the Office.
  Status: done
 
  2. milestone
  should be to use the internal office file open dialog and be able
 to
  browse in a CMIS file store and show the content of directories.
  Status: in progress
 
  3. milestone
  be able to open and save files
  Status:
 
  4. milestone
  creating, deleting, copy and moving content
 
  5. milestone
  implement a options page to configure the user and connection
  information for several CMIS stores and make use of this
  information.
  Use internal password container... - TBD
 
  6. milestone
  Support https connections to CMIS stores using the internal
  certificate
  store and use the internal interaction handler ... - TDB
 
  Juergen
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
  For additional commands, e-mail: dev-h...@openoffice.apache.org
 
 
 
 
  --
  Rajath S,
  M.Sc(Hons.) Physics,
  Birla Institute of Technology and Science - Pilani,
  Pilani
 
 
 
 
  --
  Rajath S,
  M.Sc(Hons.) Physics,
  Birla Institute of Technology and Science - Pilani,
  Pilani
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
  For additional commands, e-mail: dev-h...@openoffice.apache.org
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
  For additional commands, e-mail: dev-h...@openoffice.apache.org
 
 
 
 


 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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.git

What is my next Step?
-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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:
 https://github.com/rajaths589/CMISContentProviderTest.git
 
 What is my next Step?
 

sounds good, you make good progress. I think you can now move forward to
take a closer look on the open command.

You should document the steps on the wiki page. I can think of the
following milestones

1. milestone
was to setup a local Chemistry test server and get familiar with the
Chemistry API. Use your own client to load a document from the CMIS
store and open it manually with the Office.
Status: done

2. milestone
should be to use the internal office file open dialog and be able to
browse in a CMIS file store and show the content of directories.
Status: in progress

3. milestone
be able to open and save files
Status:

4. milestone
creating, deleting, copy and moving content

5. milestone
implement a options page to configure the user and connection
information for several CMIS stores and make use of this information.
Use internal password container... - TBD

6. milestone
Support https connections to CMIS stores using the internal certificate
store and use the internal interaction handler ... - TDB

Juergen

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



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 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.git
 
  What is my next Step?
 

 sounds good, you make good progress. I think you can now move forward to
 take a closer look on the open command.

 You should document the steps on the wiki page. I can think of the
 following milestones

 1. milestone
 was to setup a local Chemistry test server and get familiar with the
 Chemistry API. Use your own client to load a document from the CMIS
 store and open it manually with the Office.
 Status: done

 2. milestone
 should be to use the internal office file open dialog and be able to
 browse in a CMIS file store and show the content of directories.
 Status: in progress

 3. milestone
 be able to open and save files
 Status:

 4. milestone
 creating, deleting, copy and moving content

 5. milestone
 implement a options page to configure the user and connection
 information for several CMIS stores and make use of this information.
 Use internal password container... - TBD

 6. milestone
 Support https connections to CMIS stores using the internal certificate
 store and use the internal interaction handler ... - TDB

 Juergen

 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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,

 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 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.git
 
  What is my next Step?
 

 sounds good, you make good progress. I think you can now move forward to
 take a closer look on the open command.

 You should document the steps on the wiki page. I can think of the
 following milestones

 1. milestone
 was to setup a local Chemistry test server and get familiar with the
 Chemistry API. Use your own client to load a document from the CMIS
 store and open it manually with the Office.
 Status: done

 2. milestone
 should be to use the internal office file open dialog and be able to
 browse in a CMIS file store and show the content of directories.
 Status: in progress

 3. milestone
 be able to open and save files
 Status:

 4. milestone
 creating, deleting, copy and moving content

 5. milestone
 implement a options page to configure the user and connection
 information for several CMIS stores and make use of this information.
 Use internal password container... - TBD

 6. milestone
 Support https connections to CMIS stores using the internal certificate
 store and use the internal interaction handler ... - TDB

 Juergen

 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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

 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 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.git
 
  What is my next Step?
 

 sounds good, you make good progress. I think you can now move forward to
 take a closer look on the open command.

 You should document the steps on the wiki page. I can think of the
 following milestones

 1. milestone
 was to setup a local Chemistry test server and get familiar with the
 Chemistry API. Use your own client to load a document from the CMIS
 store and open it manually with the Office.
 Status: done

 2. milestone
 should be to use the internal office file open dialog and be able to
 browse in a CMIS file store and show the content of directories.
 Status: in progress

 3. milestone
 be able to open and save files
 Status:

 4. milestone
 creating, deleting, copy and moving content

 5. milestone
 implement a options page to configure the user and connection
 information for several CMIS stores and make use of this information.
 Use internal password container... - TBD

 6. milestone
 Support https connections to CMIS stores using the internal certificate
 store and use the internal interaction handler ... - TDB

 Juergen

 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 difficult part of this project
because you won't find so much documentation and samples as for Java.
The UCB is a special candidate in the office API and it takes some time
to understand it. Exception are playing a special role in the context of
the UCB and you will learn this over time.

The SDK contains also an example showing the usage of the UCB API. But
it's a good idea to play around on your own and get some understanding
how it works.

Juergen




On 6/3/13 6:59 AM, Rajath Shashidhara wrote:
 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 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:
 queryContent()
 execute() - getPropertyValues, open


 I was not very clear about the return type of execute method.
 I might have erred there.

 In open you are returning a java.io.InputStream.  According to the API
 documentation, For non-folder objects, the OpenCommandArgument2 struct
 will be prefilled with a data sink object, which will be filled with the
 content data.; important point: OpenCommandArgument::Sink: a sink,
 where the implementation can put the document data into.

 And in getPropertyValues you are returning
 a java.util.MapString,String. According to the API docs, the return
 type is a ::com::sun::star::sdbc::XRow (as told in a previous mail).

 Both errors tell me you need a deeper knowledge of the UCB API: before
 trying to implement your own UCP, you need a general understanding of
 how the UCB API works, this is something fundamental, and these two
 basic errors tell you are missing this point.

 So back to the basics:

 - create client application
 - using the UCB API, get some properties of a file/folder
 - if the content is a file, execute an open command. If the content is
   a folder, list its content.
 - if the content is a file,
   a) store the stream to disk
   b) use the stream to load the file inside OpenOffice

 The code should work using local files/folders, http, webdav, etc. Try
 with http://demo.owncloud.org/files/webdav.php so that you have to use
 an interaction handler for authentication (user=test, password=test).

 This (together with reading the API reference) will give you a first
 idea of how open and getPropertyValues work.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina

 
 
 


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



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.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands
http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands

Argument is initialized as com.sun.star.beans.Property[](specifying it
particularly because there is a Property type in chemistry api also).

Again My github:
https://github.com/rajaths589/CMISContentProvider.git


On Mon, Jun 3, 2013 at 1:00 PM, Jürgen Schmidt jogischm...@gmail.comwrote:

 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 difficult part of this project
 because you won't find so much documentation and samples as for Java.
 The UCB is a special candidate in the office API and it takes some time
 to understand it. Exception are playing a special role in the context of
 the UCB and you will learn this over time.

 The SDK contains also an example showing the usage of the UCB API. But
 it's a good idea to play around on your own and get some understanding
 how it works.

 Juergen




 On 6/3/13 6:59 AM, Rajath Shashidhara wrote:
  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 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:
  queryContent()
  execute() - getPropertyValues, open
 
 
  I was not very clear about the return type of execute method.
  I might have erred there.
 
  In open you are returning a java.io.InputStream.  According to the API
  documentation, For non-folder objects, the OpenCommandArgument2 struct
  will be prefilled with a data sink object, which will be filled with the
  content data.; important point: OpenCommandArgument::Sink: a sink,
  where the implementation can put the document data into.
 
  And in getPropertyValues you are returning
  a java.util.MapString,String. According to the API docs, the return
  type is a ::com::sun::star::sdbc::XRow (as told in a previous mail).
 
  Both errors tell me you need a deeper knowledge of the UCB API: before
  trying to implement your own UCP, you need a general understanding of
  how the UCB API works, this is something fundamental, and these two
  basic errors tell you are missing this point.
 
  So back to the basics:
 
  - create client application
  - using the UCB API, get some properties of a file/folder
  - if the content is a file, execute an open command. If the content is
a folder, list its content.
  - if the content is a file,
a) store the stream to disk
b) use the stream to load the file inside OpenOffice
 
  The code should work using local files/folders, http, webdav, etc. Try
  with http://demo.owncloud.org/files/webdav.php so that you have to use
  an interaction handler for authentication (user=test, password=test).
 
  This (together with reading the API reference) will give you a first
  idea of how open and getPropertyValues work.
 
 
  Regards
  --
  Ariel Constenla-Haile
  La Plata, Argentina
 
 
 
 


 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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[] because
 from these two examples:
 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands
 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands
 
 Argument is initialized as com.sun.star.beans.Property[](specifying it
 particularly because there is a Property type in chemistry api also).

the Command.Argument is of type Any, see and use AnyConverter to convert
object into Any -
http://www.openoffice.org/api/docs/java/ref/com/sun/star/uno/AnyConverter.html


Juergen

 
 Again My github:
 https://github.com/rajaths589/CMISContentProvider.git
 
 
 On Mon, Jun 3, 2013 at 1:00 PM, Jürgen Schmidt jogischm...@gmail.comwrote:
 
 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 difficult part of this project
 because you won't find so much documentation and samples as for Java.
 The UCB is a special candidate in the office API and it takes some time
 to understand it. Exception are playing a special role in the context of
 the UCB and you will learn this over time.

 The SDK contains also an example showing the usage of the UCB API. But
 it's a good idea to play around on your own and get some understanding
 how it works.

 Juergen




 On 6/3/13 6:59 AM, Rajath Shashidhara wrote:
 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 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:
 queryContent()
 execute() - getPropertyValues, open


 I was not very clear about the return type of execute method.
 I might have erred there.

 In open you are returning a java.io.InputStream.  According to the API
 documentation, For non-folder objects, the OpenCommandArgument2 struct
 will be prefilled with a data sink object, which will be filled with the
 content data.; important point: OpenCommandArgument::Sink: a sink,
 where the implementation can put the document data into.

 And in getPropertyValues you are returning
 a java.util.MapString,String. According to the API docs, the return
 type is a ::com::sun::star::sdbc::XRow (as told in a previous mail).

 Both errors tell me you need a deeper knowledge of the UCB API: before
 trying to implement your own UCP, you need a general understanding of
 how the UCB API works, this is something fundamental, and these two
 basic errors tell you are missing this point.

 So back to the basics:

 - create client application
 - using the UCB API, get some properties of a file/folder
 - if the content is a file, execute an open command. If the content is
   a folder, list its content.
 - if the content is a file,
   a) store the stream to disk
   b) use the stream to load the file inside OpenOffice

 The code should work using local files/folders, http, webdav, etc. Try
 with http://demo.owncloud.org/files/webdav.php so that you have to use
 an interaction handler for authentication (user=test, password=test).

 This (together with reading the API reference) will give you a first
 idea of how open and getPropertyValues work.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina






 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org


 
 


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



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 sent by Ariel.
Because, executeCommand() helper method calls ucp execute() method with
argument initialized with a type Property[].

I'll get back to you about what I used anyConverter or typeCast.


On Mon, Jun 3, 2013 at 11:26 PM, Jürgen Schmidt jogischm...@gmail.comwrote:

 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[] because
  from these two examples:
 
 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands
 
 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands
 
  Argument is initialized as com.sun.star.beans.Property[](specifying it
  particularly because there is a Property type in chemistry api also).

 the Command.Argument is of type Any, see and use AnyConverter to convert
 object into Any -

 http://www.openoffice.org/api/docs/java/ref/com/sun/star/uno/AnyConverter.html


 Juergen

 
  Again My github:
  https://github.com/rajaths589/CMISContentProvider.git
 
 
  On Mon, Jun 3, 2013 at 1:00 PM, Jürgen Schmidt jogischm...@gmail.com
 wrote:
 
  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 difficult part of this project
  because you won't find so much documentation and samples as for Java.
  The UCB is a special candidate in the office API and it takes some time
  to understand it. Exception are playing a special role in the context of
  the UCB and you will learn this over time.
 
  The SDK contains also an example showing the usage of the UCB API. But
  it's a good idea to play around on your own and get some understanding
  how it works.
 
  Juergen
 
 
 
 
  On 6/3/13 6:59 AM, Rajath Shashidhara wrote:
  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 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:
  queryContent()
  execute() - getPropertyValues, open
 
 
  I was not very clear about the return type of execute method.
  I might have erred there.
 
  In open you are returning a java.io.InputStream.  According to the
 API
  documentation, For non-folder objects, the OpenCommandArgument2
 struct
  will be prefilled with a data sink object, which will be filled with
 the
  content data.; important point: OpenCommandArgument::Sink: a sink,
  where the implementation can put the document data into.
 
  And in getPropertyValues you are returning
  a java.util.MapString,String. According to the API docs, the return
  type is a ::com::sun::star::sdbc::XRow (as told in a previous mail).
 
  Both errors tell me you need a deeper knowledge of the UCB API: before
  trying to implement your own UCP, you need a general understanding of
  how the UCB API works, this is something fundamental, and these two
  basic errors tell you are missing this point.
 
  So back to the basics:
 
  - create client application
  - using the UCB API, get some properties of a file/folder
  - if the content is a file, execute an open command. If the content
 is
a folder, list its content.
  - if the content is a file,
a) store the stream to disk
b) use the stream to load the file inside OpenOffice
 
  The code should work using local files/folders, http, webdav, etc. Try
  with http://demo.owncloud.org/files/webdav.php so that you have to
 use
  an interaction handler for authentication (user=test, password=test).
 
  This (together with reading the API reference) will give you a first
  idea of how open and getPropertyValues work.
 
 
  Regards
  --
  Ariel Constenla-Haile
  La Plata, Argentina
 
 
 
 
 
 
  -
  To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
  For additional commands, e-mail: dev-h...@openoffice.apache.org
 
 
 
 


 

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 variable type sequence .
 I'll test my code with the macro sent by Ariel.
 Because, executeCommand() helper method calls ucp execute() method with
 argument initialized with a type Property[].
 
 I'll get back to you about what I used anyConverter or typeCast.

you should use the AnyConverter to be save and avoid problems

Juergen

 
 
 On Mon, Jun 3, 2013 at 11:26 PM, Jürgen Schmidt jogischm...@gmail.comwrote:
 
 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[] because
 from these two examples:

 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands

 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands

 Argument is initialized as com.sun.star.beans.Property[](specifying it
 particularly because there is a Property type in chemistry api also).

 the Command.Argument is of type Any, see and use AnyConverter to convert
 object into Any -

 http://www.openoffice.org/api/docs/java/ref/com/sun/star/uno/AnyConverter.html


 Juergen


 Again My github:
 https://github.com/rajaths589/CMISContentProvider.git


 On Mon, Jun 3, 2013 at 1:00 PM, Jürgen Schmidt jogischm...@gmail.com
 wrote:

 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 difficult part of this project
 because you won't find so much documentation and samples as for Java.
 The UCB is a special candidate in the office API and it takes some time
 to understand it. Exception are playing a special role in the context of
 the UCB and you will learn this over time.

 The SDK contains also an example showing the usage of the UCB API. But
 it's a good idea to play around on your own and get some understanding
 how it works.

 Juergen




 On 6/3/13 6:59 AM, Rajath Shashidhara wrote:
 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 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:
 queryContent()
 execute() - getPropertyValues, open


 I was not very clear about the return type of execute method.
 I might have erred there.

 In open you are returning a java.io.InputStream.  According to the
 API
 documentation, For non-folder objects, the OpenCommandArgument2
 struct
 will be prefilled with a data sink object, which will be filled with
 the
 content data.; important point: OpenCommandArgument::Sink: a sink,
 where the implementation can put the document data into.

 And in getPropertyValues you are returning
 a java.util.MapString,String. According to the API docs, the return
 type is a ::com::sun::star::sdbc::XRow (as told in a previous mail).

 Both errors tell me you need a deeper knowledge of the UCB API: before
 trying to implement your own UCP, you need a general understanding of
 how the UCB API works, this is something fundamental, and these two
 basic errors tell you are missing this point.

 So back to the basics:

 - create client application
 - using the UCB API, get some properties of a file/folder
 - if the content is a file, execute an open command. If the content
 is
   a folder, list its content.
 - if the content is a file,
   a) store the stream to disk
   b) use the stream to load the file inside OpenOffice

 The code should work using local files/folders, http, webdav, etc. Try
 with http://demo.owncloud.org/files/webdav.php so that you have to
 use
 an interaction handler for authentication (user=test, password=test).

 This (together with reading the API reference) will give you a first
 idea of how open and getPropertyValues work.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina






 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org






 

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.
 
 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 sent by Ariel.
  Because, executeCommand() helper method calls ucp execute() method with
  argument initialized with a type Property[].
 
  I'll get back to you about what I used anyConverter or typeCast.

 you should use the AnyConverter to be save and avoid problems

 Juergen

 
 
  On Mon, Jun 3, 2013 at 11:26 PM, Jürgen Schmidt jogischm...@gmail.com
 wrote:
 
  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[] because
  from these two examples:
 
 
 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands
 
 
 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands
 
  Argument is initialized as com.sun.star.beans.Property[](specifying it
  particularly because there is a Property type in chemistry api also).
 
  the Command.Argument is of type Any, see and use AnyConverter to convert
  object into Any -
 
 
 http://www.openoffice.org/api/docs/java/ref/com/sun/star/uno/AnyConverter.html
 
 
  Juergen
 
 
  Again My github:
  https://github.com/rajaths589/CMISContentProvider.git
 
 
  On Mon, Jun 3, 2013 at 1:00 PM, Jürgen Schmidt jogischm...@gmail.com
  wrote:
 
  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 difficult part of this
 project
  because you won't find so much documentation and samples as for Java.
  The UCB is a special candidate in the office API and it takes some
 time
  to understand it. Exception are playing a special role in the context
 of
  the UCB and you will learn this over time.
 
  The SDK contains also an example showing the usage of the UCB API. But
  it's a good idea to play around on your own and get some understanding
  how it works.
 
  Juergen
 
 
 
 
  On 6/3/13 6:59 AM, Rajath Shashidhara wrote:
  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 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:
  queryContent()
  execute() - getPropertyValues, open
 
 
  I was not very clear about the return type of execute method.
  I might have erred there.
 
  In open you are returning a java.io.InputStream.  According to the
  API
  documentation, For non-folder objects, the OpenCommandArgument2
  struct
  will be prefilled with a data sink object, which will be filled with
  the
  content data.; important point: OpenCommandArgument::Sink: a sink,
  where the implementation can put the document data into.
 
  And in getPropertyValues you are returning
  a java.util.MapString,String. According to the API docs, the
 return
  type is a ::com::sun::star::sdbc::XRow (as told in a previous mail).
 
  Both errors tell me you need a deeper knowledge of the UCB API:
 before
  trying to implement your own UCP, you need a general understanding
 of
  how the UCB API works, this is something fundamental, and these two
  basic errors tell you are missing this point.
 
  So back to the basics:
 
  - create client application
  - using the UCB API, get some properties of a file/folder
  - if the content is a file, execute an open command. If the
 content
  is
a folder, list its content.
  - if the content is a file,
a) store the stream to disk
b) use the stream to load the file inside OpenOffice
 
  The code should work using local files/folders, http, webdav, etc.
 Try
  with http://demo.owncloud.org/files/webdav.php so that you have to
  use
  an interaction handler for authentication (user=test,
 password=test).
 
  This (together with reading the API reference) will give you a first
  idea of how open and getPropertyValues work.
 
 
  Regards
  --
  Ariel Constenla-Haile
  La 

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 UCP to UCB?


On Mon, Jun 3, 2013 at 11:41 PM, Rajath Shashidhara 
rajaths.raja...@gmail.com wrote:

 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.
 
 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 sent by Ariel.
  Because, executeCommand() helper method calls ucp execute() method with
  argument initialized with a type Property[].
 
  I'll get back to you about what I used anyConverter or typeCast.

 you should use the AnyConverter to be save and avoid problems

 Juergen

 
 
  On Mon, Jun 3, 2013 at 11:26 PM, Jürgen Schmidt jogischm...@gmail.com
 wrote:
 
  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[] because
  from these two examples:
 
 
 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands
 
 
 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Executing_Content_Commands
 
  Argument is initialized as com.sun.star.beans.Property[](specifying it
  particularly because there is a Property type in chemistry api also).
 
  the Command.Argument is of type Any, see and use AnyConverter to
 convert
  object into Any -
 
 
 http://www.openoffice.org/api/docs/java/ref/com/sun/star/uno/AnyConverter.html
 
 
  Juergen
 
 
  Again My github:
  https://github.com/rajaths589/CMISContentProvider.git
 
 
  On Mon, Jun 3, 2013 at 1:00 PM, Jürgen Schmidt jogischm...@gmail.com
  wrote:
 
  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 difficult part of this
 project
  because you won't find so much documentation and samples as for Java.
  The UCB is a special candidate in the office API and it takes some
 time
  to understand it. Exception are playing a special role in the
 context of
  the UCB and you will learn this over time.
 
  The SDK contains also an example showing the usage of the UCB API.
 But
  it's a good idea to play around on your own and get some
 understanding
  how it works.
 
  Juergen
 
 
 
 
  On 6/3/13 6:59 AM, Rajath Shashidhara wrote:
  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 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:
  queryContent()
  execute() - getPropertyValues, open
 
 
  I was not very clear about the return type of execute method.
  I might have erred there.
 
  In open you are returning a java.io.InputStream.  According to
 the
  API
  documentation, For non-folder objects, the OpenCommandArgument2
  struct
  will be prefilled with a data sink object, which will be filled
 with
  the
  content data.; important point: OpenCommandArgument::Sink: a
 sink,
  where the implementation can put the document data into.
 
  And in getPropertyValues you are returning
  a java.util.MapString,String. According to the API docs, the
 return
  type is a ::com::sun::star::sdbc::XRow (as told in a previous
 mail).
 
  Both errors tell me you need a deeper knowledge of the UCB API:
 before
  trying to implement your own UCP, you need a general understanding
 of
  how the UCB API works, this is something fundamental, and these two
  basic errors tell you are missing this point.
 
  So back to the basics:
 
  - create client application
  - using the UCB API, get some properties of a file/folder
  - if the content is a file, execute an open command. If the
 content
  is
a folder, list its content.
  - if the content is a file,
a) store the stream to disk
b) use the stream to load the file 

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
 
 I'm not able to define such a variable type sequence .

Because the IDL reference talks about IDL types. You have to understand
how this IDL types are mapped to Java, the Developer's Guide is your
friend: 
http://wiki.openoffice.org/wiki/Documentation/DevGuide/FirstSteps/Common_Types
http://wiki.openoffice.org/wiki/Documentation/DevGuide/FirstSteps/Any
http://wiki.openoffice.org/wiki/Documentation/DevGuide/FirstSteps/Sequence

http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Data_Types

http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Java_Language_Binding
http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Type_Mappings


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpKxnsHeKxX2.pgp
Description: PGP signature


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 the api reference for XContentIdentifier.
 
 It needs XComponentContext as an argument for its constructor.

XContentIdentifier is a class, it does not have constructor.
http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/XContentIdentifier.html


 That can be obtained from the argument to the constructor of my UCP class.
 But, my question is what is identifier?
 Is it the name of the file/folder ?
 Also, the second method, getContentProviderScheme()
 does it refer to the way of writing the path as cmis://path ?

At the beginning you can simply use the default implementation. Try the
following macro in an office installation without your extension, it
will return cmis as schema is the identifier starts with cmis://


REM  *  BASIC  *

Option Explicit

Sub Main
Dim aMap as Object
aMap = 
com.sun.star.container.EnumerableMap.create(string,com.sun.star.ucb.XContentIdentifier)

Dim oUCB as Object
oUCB = CreateUnoService(com.sun.star.ucb.UniversalContentBroker)

Dim sIds()
sIds = Array(_
file:///tmp,_
http://www.openoffice.org,_
ftp://d...@openoffice.org/test/dummy,_
cmis://cmis.alfresco.com:80/cmisatom/ )
Dim sId$
For Each sId in sIds
aMap.put( sId, oUCB.createContentIdentifier( sId ) )
Next

Dim oEnum as Object
oEnum = aMap.createElementEnumeration(false)
While oEnum.hasMoreElements()
Dim oPair as Object
oPair = oEnum.nextElement()
MsgBox URL:  + oPair.First + Chr(13) + _
Content ID:  + oPair.Second.getContentIdentifier() + Chr(13) 
+ _
Content Scheme:  + oPair.Second.getContentProviderScheme()
Wend
End Sub


If you want to implement the content identifier yourself, just create
a class that implements XContentIdentifier.

And simply reuse the XContentIdentifier you get in queryContent():

public XContent queryContent(XContentIdentifier xIdentifier) throws 
IllegalIdentifierException {
if (!isValidIdentifier(xIdentifier)) {
throw new IllegalIdentifierException();
}
// Check if a content with given XContentIdentifier already exists
// TODO implement a cache mechanism, for example a hash map
// Key: xIdentifier.getContentIdentifier()
// Value: xIdentifier
XContent xRet = queryExistingContent(xIdentifier);
if (xRet != null) {
return xRet;
}

CMISContent aContent = new CMISContent(m_xContext, xIdentifier);
// cache the new content
registerNewContent(aContent);

return aContent;
}


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgp_OdePbI9v7.pgp
Description: PGP signature


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,argument

So if trying to get Metadata. we use command as getPropertyValues.
getPropertyValues is the name of the command,
argument - which property to get.
What is handle?

Also what is commandid? Any enumeration to represent various commandids?



On Sun, Jun 2, 2013 at 12:06 PM, Ariel Constenla-Haile
arie...@apache.orgwrote:


 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 the api reference for XContentIdentifier.
 
  It needs XComponentContext as an argument for its constructor.

 XContentIdentifier is a class, it does not have constructor.

 http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/XContentIdentifier.html


  That can be obtained from the argument to the constructor of my UCP
 class.
  But, my question is what is identifier?
  Is it the name of the file/folder ?
  Also, the second method, getContentProviderScheme()
  does it refer to the way of writing the path as cmis://path ?

 At the beginning you can simply use the default implementation. Try the
 following macro in an office installation without your extension, it
 will return cmis as schema is the identifier starts with cmis://


 REM  *  BASIC  *

 Option Explicit

 Sub Main
 Dim aMap as Object
 aMap =
 com.sun.star.container.EnumerableMap.create(string,com.sun.star.ucb.XContentIdentifier)

 Dim oUCB as Object
 oUCB = CreateUnoService(com.sun.star.ucb.UniversalContentBroker)

 Dim sIds()
 sIds = Array(_
 file:///tmp,_
 http://www.openoffice.org,_
 ftp://d...@openoffice.org/test/dummy,_
 cmis://cmis.alfresco.com:80/cmisatom/ )
 Dim sId$
 For Each sId in sIds
 aMap.put( sId, oUCB.createContentIdentifier( sId ) )
 Next

 Dim oEnum as Object
 oEnum = aMap.createElementEnumeration(false)
 While oEnum.hasMoreElements()
 Dim oPair as Object
 oPair = oEnum.nextElement()
 MsgBox URL:  + oPair.First + Chr(13) + _
 Content ID:  + oPair.Second.getContentIdentifier() +
 Chr(13) + _
 Content Scheme:  +
 oPair.Second.getContentProviderScheme()
 Wend
 End Sub


 If you want to implement the content identifier yourself, just create
 a class that implements XContentIdentifier.

 And simply reuse the XContentIdentifier you get in queryContent():

 public XContent queryContent(XContentIdentifier xIdentifier) throws
 IllegalIdentifierException {
 if (!isValidIdentifier(xIdentifier)) {
 throw new IllegalIdentifierException();
 }
 // Check if a content with given XContentIdentifier already exists
 // TODO implement a cache mechanism, for example a hash map
 // Key: xIdentifier.getContentIdentifier()
 // Value: xIdentifier
 XContent xRet = queryExistingContent(xIdentifier);
 if (xRet != null) {
 return xRet;
 }

 CMISContent aContent = new CMISContent(m_xContext, xIdentifier);
 // cache the new content
 registerNewContent(aContent);

 return aContent;
 }


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 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,argument

 So if trying to get Metadata. we use command as getPropertyValues.
 getPropertyValues is the name of the command,
 argument - which property to get.
 What is handle?

 Also what is commandid? Any enumeration to represent various commandids?



 On Sun, Jun 2, 2013 at 12:06 PM, Ariel Constenla-Haile arie...@apache.org
  wrote:


 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 the api reference for XContentIdentifier.
 
  It needs XComponentContext as an argument for its constructor.

 XContentIdentifier is a class, it does not have constructor.

 http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/XContentIdentifier.html


  That can be obtained from the argument to the constructor of my UCP
 class.
  But, my question is what is identifier?
  Is it the name of the file/folder ?
  Also, the second method, getContentProviderScheme()
  does it refer to the way of writing the path as cmis://path ?

 At the beginning you can simply use the default implementation. Try the
 following macro in an office installation without your extension, it
 will return cmis as schema is the identifier starts with cmis://


 REM  *  BASIC  *

 Option Explicit

 Sub Main
 Dim aMap as Object
 aMap =
 com.sun.star.container.EnumerableMap.create(string,com.sun.star.ucb.XContentIdentifier)

 Dim oUCB as Object
 oUCB = CreateUnoService(com.sun.star.ucb.UniversalContentBroker)

 Dim sIds()
 sIds = Array(_
 file:///tmp,_
 http://www.openoffice.org,_
 ftp://d...@openoffice.org/test/dummy,_
 cmis://cmis.alfresco.com:80/cmisatom/ )
 Dim sId$
 For Each sId in sIds
 aMap.put( sId, oUCB.createContentIdentifier( sId ) )
 Next

 Dim oEnum as Object
 oEnum = aMap.createElementEnumeration(false)
 While oEnum.hasMoreElements()
 Dim oPair as Object
 oPair = oEnum.nextElement()
 MsgBox URL:  + oPair.First + Chr(13) + _
 Content ID:  + oPair.Second.getContentIdentifier() +
 Chr(13) + _
 Content Scheme:  +
 oPair.Second.getContentProviderScheme()
 Wend
 End Sub


 If you want to implement the content identifier yourself, just create
 a class that implements XContentIdentifier.

 And simply reuse the XContentIdentifier you get in queryContent():

 public XContent queryContent(XContentIdentifier xIdentifier) throws
 IllegalIdentifierException {
 if (!isValidIdentifier(xIdentifier)) {
 throw new IllegalIdentifierException();
 }
 // Check if a content with given XContentIdentifier already exists
 // TODO implement a cache mechanism, for example a hash map
 // Key: xIdentifier.getContentIdentifier()
 // Value: xIdentifier
 XContent xRet = queryExistingContent(xIdentifier);
 if (xRet != null) {
 return xRet;
 }

 CMISContent aContent = new CMISContent(m_xContext, xIdentifier);
 // cache the new content
 registerNewContent(aContent);

 return aContent;
 }


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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,
 com.sun.star.ucb.XCommandEnvironment Environment
 
 now aCommand object has three attributes:
 Name,handle,argument
 
 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. 

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/XCommandProcessor.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 parameter.


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 
main/ucbhelper/inc/ucbhelper/propertyvalueset.hxx
main/ucbhelper/source/provider/propertyvalueset.cxx


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpjI40nh__sH.pgp
Description: PGP signature


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 work.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgp61F2OJnfHo.pgp
Description: PGP signature


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.
  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 work.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 queryContent method. My Implementation of XContent has an
constructor with XContentIdentifier as one of the parameters.

But, I added a cout statement to the file ucp to print the
XContentIdentifierObject-getContentIdentifier(), thinking that the
returned string will be the path to the content which is being queried.
But, the print statements were a little a bunch of hexadecimals, when I
tried to access a file from open dialog.

I have not understood the basic way of obtaining the path of the object
that is being referred to get the metadata of it.
Also, is the argument in the Command refer to which property is being
referred?

Please help.


On Sun, Jun 2, 2013 at 3:51 PM, Rajath Shashidhara 
rajaths.raja...@gmail.com wrote:

 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.
  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 work.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 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 queryContent method. My Implementation of XContent has an
 constructor with XContentIdentifier as one of the parameters.

 But, I added a cout statement to the file ucp to print the
 XContentIdentifierObject-getContentIdentifier(), thinking that the
 returned string will be the path to the content which is being queried.
 But, the print statements were a little a bunch of hexadecimals, when I
 tried to access a file from open dialog.

 I have not understood the basic way of obtaining the path of the object
 that is being referred to get the metadata of it.
 Also, is the argument in the Command refer to which property is being
 referred?

 Please help.


 On Sun, Jun 2, 2013 at 3:51 PM, Rajath Shashidhara 
 rajaths.raja...@gmail.com wrote:

 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.org
  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 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 work.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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?


On Sun, Jun 2, 2013 at 8:20 PM, Rajath Shashidhara 
rajaths.raja...@gmail.com wrote:

 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 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 queryContent method. My Implementation of XContent has an
 constructor with XContentIdentifier as one of the parameters.

 But, I added a cout statement to the file ucp to print the
 XContentIdentifierObject-getContentIdentifier(), thinking that the
 returned string will be the path to the content which is being queried.
 But, the print statements were a little a bunch of hexadecimals, when I
 tried to access a file from open dialog.

 I have not understood the basic way of obtaining the path of the object
 that is being referred to get the metadata of it.
 Also, is the argument in the Command refer to which property is being
 referred?

 Please help.


 On Sun, Jun 2, 2013 at 3:51 PM, Rajath Shashidhara 
 rajaths.raja...@gmail.com wrote:

 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.org 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 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 work.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 type of execute method.
I might have erred there.

for open, I have created an InputStream object for the specified object,
but since a .odt file is different from text/plain type, the InputStream
gives scrambled output.

This works for the inmemory repo.
The server address, repo id, username, passwd can be changed in the
apache.ooffice.gsoc.cmisucp.cmis.repositoryconnect class.

Please give some pointers about my code.

My code is hosted on my github repository:
https://github.com/rajaths589/CMISContentProvider.git




On Sun, Jun 2, 2013 at 11:06 PM, Rajath Shashidhara 
rajaths.raja...@gmail.com wrote:

 Hello Ariel,

 function:
 compareContentIds
 Description:
 0 is returned, if the identifiers are equal. A value less than 0indiactes, 
 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?


 On Sun, Jun 2, 2013 at 8:20 PM, Rajath Shashidhara 
 rajaths.raja...@gmail.com wrote:

 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 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 queryContent method. My Implementation of XContent has an
 constructor with XContentIdentifier as one of the parameters.

 But, I added a cout statement to the file ucp to print the
 XContentIdentifierObject-getContentIdentifier(), thinking that the
 returned string will be the path to the content which is being queried.
 But, the print statements were a little a bunch of hexadecimals, when I
 tried to access a file from open dialog.

 I have not understood the basic way of obtaining the path of the object
 that is being referred to get the metadata of it.
 Also, is the argument in the Command refer to which property is being
 referred?

 Please help.


 On Sun, Jun 2, 2013 at 3:51 PM, Rajath Shashidhara 
 rajaths.raja...@gmail.com wrote:

 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.org 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 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 work.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 arie...@apache.org
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 Shashidhara wrote:
 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 queryContent method. My Implementation of XContent has an
 constructor with XContentIdentifier as one of the parameters.

 But, I added a cout statement to the file ucp to print the
 XContentIdentifierObject-getContentIdentifier(), thinking that the
 returned string will be the path to the content which is being queried.
 But, the print statements were a little a bunch of hexadecimals, when I
 tried to access a file from open dialog.

May be it is better to play with the open dialog later, when you
implement listing a directory; for now, it is easier to play with
a Basic macro. The open dialog will query your UCP the moment you start
typing cmis:/ which is not a valid content identifier for your UCP. As
you already understood, you check this in queryContent:

public XContent queryContent(XContentIdentifier xIdentifier)
throws IllegalIdentifierException {

Logger.getLogger(CMISContentProvider.class.getName()).log(
Level.INFO,
String.format(Content ID \%s\,
xIdentifier.getContentIdentifier()));

if (!isValidIdentifier(xIdentifier)) {
throw new IllegalIdentifierException();
}

// Check if a content with given XContentIdentifier already exists
// TODO implement a hash map
// Key: xIdentifier.getContentIdentifier()
// Value: XContent
XContent xRet = queryExistingContent(xIdentifier);
if (xRet != null) {
return xRet;
}

CMISContent aContent = new CMISContent(m_xContext, xIdentifier);
// cache the new content
registerNewContent(aContent);

return aContent;
}

Two notes:

- you have to cache contents
- related to this, there should be only one instance of your UCP; test
  with the following macro (replace
  org.apache.openoffice.ucp.cmis.CMISContentProvider witht the
  implementation name of your UCP):

REM  *  BASIC  *

Sub Main
Dim o1, o2, o3, o4
o1 = CreateUnoService(org.apache.openoffice.ucp.cmis.CMISContentProvider)
o2 = CreateUnoService(org.apache.openoffice.ucp.cmis.CMISContentProvider)
MsgBox EqualUnoObjects( o1, o2 )

o3 = CreateUnoService(com.sun.star.comp.FTPContentProvider)
o4 = CreateUnoService(com.sun.star.comp.FTPContentProvider)
MsgBox EqualUnoObjects( o3, o4 )
End Sub


 Also, is the argument in the Command refer to which property is being
 referred?

For the command getPropertyValues, the argument is a sequence of
com.sun.star.beans.Property, where Name has the name of the property.
Note that it is a sequence even if it a single property. Use
com.sun.star.uno.AnyConverter to convert the any.


Regards
--
Ariel Constenla-Haile
La Plata, Argentina

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



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 Id2.
 
 What is less than?
 Is it below in the file hierarchy? Are alphabetic?

How to compare, depends on the implementation. For example,
ExpandContentProviderImpl::compareContentIds() first expands posible
macros in the content ids, and them compares the two strings. For now,
you can simple compare the strings lexically.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpE3iRQcUgGi.pgp
Description: PGP signature


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:
 queryContent()
 execute() - getPropertyValues, open
 
 
 I was not very clear about the return type of execute method.
 I might have erred there.

In open you are returning a java.io.InputStream.  According to the API
documentation, For non-folder objects, the OpenCommandArgument2 struct
will be prefilled with a data sink object, which will be filled with the
content data.; important point: OpenCommandArgument::Sink: a sink,
where the implementation can put the document data into.

And in getPropertyValues you are returning
a java.util.MapString,String. According to the API docs, the return
type is a ::com::sun::star::sdbc::XRow (as told in a previous mail).

Both errors tell me you need a deeper knowledge of the UCB API: before
trying to implement your own UCP, you need a general understanding of
how the UCB API works, this is something fundamental, and these two
basic errors tell you are missing this point.

So back to the basics:

- create client application
- using the UCB API, get some properties of a file/folder
- if the content is a file, execute an open command. If the content is
  a folder, list its content.
- if the content is a file, 
  a) store the stream to disk
  b) use the stream to load the file inside OpenOffice

The code should work using local files/folders, http, webdav, etc. Try
with http://demo.owncloud.org/files/webdav.php so that you have to use
an interaction handler for authentication (user=test, password=test).

This (together with reading the API reference) will give you a first
idea of how open and getPropertyValues work.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpiirB5xQIF1.pgp
Description: PGP signature


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 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:
  queryContent()
  execute() - getPropertyValues, open
 
 
  I was not very clear about the return type of execute method.
  I might have erred there.

 In open you are returning a java.io.InputStream.  According to the API
 documentation, For non-folder objects, the OpenCommandArgument2 struct
 will be prefilled with a data sink object, which will be filled with the
 content data.; important point: OpenCommandArgument::Sink: a sink,
 where the implementation can put the document data into.

 And in getPropertyValues you are returning
 a java.util.MapString,String. According to the API docs, the return
 type is a ::com::sun::star::sdbc::XRow (as told in a previous mail).

 Both errors tell me you need a deeper knowledge of the UCB API: before
 trying to implement your own UCP, you need a general understanding of
 how the UCB API works, this is something fundamental, and these two
 basic errors tell you are missing this point.

 So back to the basics:

 - create client application
 - using the UCB API, get some properties of a file/folder
 - if the content is a file, execute an open command. If the content is
   a folder, list its content.
 - if the content is a file,
   a) store the stream to disk
   b) use the stream to load the file inside OpenOffice

 The code should work using local files/folders, http, webdav, etc. Try
 with http://demo.owncloud.org/files/webdav.php so that you have to use
 an interaction handler for authentication (user=test, password=test).

 This (together with reading the API reference) will give you a first
 idea of how open and getPropertyValues work.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 repository,
does it mean that these print statements should be executed?
So, I will be able to see the print statements on the terminal when I start
openoffice from terminal?


On Sat, Jun 1, 2013 at 2:04 AM, Ariel Constenla-Haile arie...@apache.orgwrote:

 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
 look at the C++ impleimentation only if necessary. The code is complex,
 it uses several internal helper classes that won't be accessible to you.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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, xIdentifier.getContentProviderScheme());
 
 So, when I try to open a file from CMIS repository,
 does it mean that these print statements should be executed?
 So, I will be able to see the print statements on the terminal when I start
 openoffice from terminal?

This is just for dummy debugging, you have to avoid printing to standard
output in your final extension, use a logger instead or AOO logging API.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgp6LahOZ_djj.pgp
Description: PGP signature


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 be implemented in each of these methods?


On Sat, Jun 1, 2013 at 10:34 PM, Ariel Constenla-Haile
arie...@apache.orgwrote:

 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, xIdentifier.getContentProviderScheme());
 
  So, when I try to open a file from CMIS repository,
  does it mean that these print statements should be executed?
  So, I will be able to see the print statements on the terminal when I
 start
  openoffice from terminal?

 This is just for dummy debugging, you have to avoid printing to standard
 output in your final extension, use a logger instead or AOO logging API.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 do?
 
 For example:
 what is the function:
 registerInstance() supposed to do?
 
 What should be implemented in each of these methods?

In these cases, you have to consult the API reference:
http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/ContentProvider.html
Both XContentIdentifierFactory and XParameterizedContentProvider are
optional.

This is a little tricky: in general, an optional interface means that
you don't need to implement it if you don't need to; but in several
cases, new properties and interfaces are introduced as optional, as
a workaround, just because the service is published and cannot be
modified.

For now, only implement the required interfaces, comment out the
optional ones, and later on, when you have the whole picture, you can
come back to this.

The main interface for the css.ucb.ContentProvider is
css.ucb.XContentProvider. Concentrate on queryContent()
http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/XContentProvider.html#queryContent

creates a new XContent instance, if the given XContentIdentifier
matches a content provided by the implementation of this interface.

If the content identifier is supported by your implementation (did you
already define this?), you have to return an object implementing
http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
Here again, some interface are optionals; and in the documentation of
XCommandProcessor in this page you can find the set of commands and
properties, some are mandatory, some are optional.

To create this new Java UNO object, right-click on the package, and
select New - Other On the New File dialog, choose Apache
OpenOffice under Categories and Java UNO Object under File Types.
On the next step, select com.sun.star.ucb.Content as the IDL Type to
implement.

IMO it is better to start implementing this step by step, and not using
the file picker to test, but a macro, like this one:
http://people.apache.org/~arielch/api/UCB_demo.odt

Start with  getPropertyValues and do not bother by now with
authentication (this is a rather complex subject, IMO it is better to
get a general picture now), simply hard-code user and password in your
code. You can try with http://cmis.alfresco.com/ (with user=admin and
password=admin) or set-up your own server.

getPropertyValues is the most basic UCB command. You have to implement
the mandatory properties. And implemente it in a way that you don't
download the file from the server, but simply read the metadata, see
http://chemistry.apache.org/java/examples/example-read-meta-content.html
You have to map CMIS metadata with UCB properties.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpo9TMumdANW.pgp
Description: PGP signature


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 its constructor.

That can be obtained from the argument to the constructor of my UCP class.
But, my question is what is identifier?
Is it the name of the file/folder ?
Also, the second method, getContentProviderScheme()
does it refer to the way of writing the path as cmis://path ?




On Sun, Jun 2, 2013 at 6:06 AM, Ariel Constenla-Haile arie...@apache.orgwrote:

 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 do?
 
  For example:
  what is the function:
  registerInstance() supposed to do?
 
  What should be implemented in each of these methods?

 In these cases, you have to consult the API reference:

 http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/ContentProvider.html
 Both XContentIdentifierFactory and XParameterizedContentProvider are
 optional.

 This is a little tricky: in general, an optional interface means that
 you don't need to implement it if you don't need to; but in several
 cases, new properties and interfaces are introduced as optional, as
 a workaround, just because the service is published and cannot be
 modified.

 For now, only implement the required interfaces, comment out the
 optional ones, and later on, when you have the whole picture, you can
 come back to this.

 The main interface for the css.ucb.ContentProvider is
 css.ucb.XContentProvider. Concentrate on queryContent()

 http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/XContentProvider.html#queryContent

 creates a new XContent instance, if the given XContentIdentifier
 matches a content provided by the implementation of this interface.

 If the content identifier is supported by your implementation (did you
 already define this?), you have to return an object implementing
 http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
 Here again, some interface are optionals; and in the documentation of
 XCommandProcessor in this page you can find the set of commands and
 properties, some are mandatory, some are optional.

 To create this new Java UNO object, right-click on the package, and
 select New - Other On the New File dialog, choose Apache
 OpenOffice under Categories and Java UNO Object under File Types.
 On the next step, select com.sun.star.ucb.Content as the IDL Type to
 implement.

 IMO it is better to start implementing this step by step, and not using
 the file picker to test, but a macro, like this one:
 http://people.apache.org/~arielch/api/UCB_demo.odt

 Start with  getPropertyValues and do not bother by now with
 authentication (this is a rather complex subject, IMO it is better to
 get a general picture now), simply hard-code user and password in your
 code. You can try with http://cmis.alfresco.com/ (with user=admin and
 password=admin) or set-up your own server.

 getPropertyValues is the most basic UCB command. You have to implement
 the mandatory properties. And implemente it in a way that you don't
 download the file from the server, but simply read the metadata, see
 http://chemistry.apache.org/java/examples/example-read-meta-content.html
 You have to map CMIS metadata with UCB properties.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 Sun, Jun 2, 2013 at 9:58 AM, Rajath Shashidhara 
rajaths.raja...@gmail.com 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 the api reference for XContentIdentifier.

 It needs XComponentContext as an argument for its constructor.

 That can be obtained from the argument to the constructor of my UCP class.
 But, my question is what is identifier?
 Is it the name of the file/folder ?
 Also, the second method, getContentProviderScheme()
 does it refer to the way of writing the path as cmis://path ?




 On Sun, Jun 2, 2013 at 6:06 AM, Ariel Constenla-Haile 
 arie...@apache.orgwrote:

 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 do?
 
  For example:
  what is the function:
  registerInstance() supposed to do?
 
  What should be implemented in each of these methods?

 In these cases, you have to consult the API reference:

 http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/ContentProvider.html
 Both XContentIdentifierFactory and XParameterizedContentProvider are
 optional.

 This is a little tricky: in general, an optional interface means that
 you don't need to implement it if you don't need to; but in several
 cases, new properties and interfaces are introduced as optional, as
 a workaround, just because the service is published and cannot be
 modified.

 For now, only implement the required interfaces, comment out the
 optional ones, and later on, when you have the whole picture, you can
 come back to this.

 The main interface for the css.ucb.ContentProvider is
 css.ucb.XContentProvider. Concentrate on queryContent()

 http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/XContentProvider.html#queryContent

 creates a new XContent instance, if the given XContentIdentifier
 matches a content provided by the implementation of this interface.

 If the content identifier is supported by your implementation (did you
 already define this?), you have to return an object implementing

 http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
 Here again, some interface are optionals; and in the documentation of
 XCommandProcessor in this page you can find the set of commands and
 properties, some are mandatory, some are optional.

 To create this new Java UNO object, right-click on the package, and
 select New - Other On the New File dialog, choose Apache
 OpenOffice under Categories and Java UNO Object under File Types.
 On the next step, select com.sun.star.ucb.Content as the IDL Type to
 implement.

 IMO it is better to start implementing this step by step, and not using
 the file picker to test, but a macro, like this one:
 http://people.apache.org/~arielch/api/UCB_demo.odt

 Start with  getPropertyValues and do not bother by now with
 authentication (this is a rather complex subject, IMO it is better to
 get a general picture now), simply hard-code user and password in your
 code. You can try with http://cmis.alfresco.com/ (with user=admin and
 password=admin) or set-up your own server.

 getPropertyValues is the most basic UCB command. You have to implement
 the mandatory properties. And implemente it in a way that you don't
 download the file from the server, but simply read the metadata, see
 http://chemistry.apache.org/java/examples/example-read-meta-content.html
 You have to map CMIS metadata with UCB properties.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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://in-memory-repositoty-address/path-of-uploaded-object

It says non-existant object.

Need help.

-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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:
 cmis://in-memory-repositoty-address/path-of-uploaded-object
 
 It says non-existant object.

I still haven't had the time to look in Ariel's code. You have uploaded
a odt into you inmemory repo via some other client code. You are able to
retrieve this document via your Chemistry client and can open it in
OpenOffice?

Now you try to load this document via the Ariels code snippet, correct?

I will try to take a look into the code asap... Maybe Ariel can say what
is already there or not.

The UCB will call the UCP with a command + some properties and the Url.
internally you have to analyze the Url and have to map it on the
appropriate Chemistry calls. But it io more tricky because you will see
more than one call in the UCP, asking for some properties first, etc.

I recommend to read the UCB chapter in the DevGuide to get some idea of
it works in general

http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Universal_Content_Broker

http://wiki.openoffice.org/wiki/Documentation/DevGuide/AppendixC/Universal_Content_Providers

Juergen

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



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 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://in-memory-repositoty-address/path-of-uploaded-object
 
  It says non-existant object.

 I still haven't had the time to look in Ariel's code. You have uploaded
 a odt into you inmemory repo via some other client code. You are able to
 retrieve this document via your Chemistry client and can open it in
 OpenOffice?

 Now you try to load this document via the Ariels code snippet, correct?

 I will try to take a look into the code asap... Maybe Ariel can say what
 is already there or not.

 The UCB will call the UCP with a command + some properties and the Url.
 internally you have to analyze the Url and have to map it on the
 appropriate Chemistry calls. But it io more tricky because you will see
 more than one call in the UCP, asking for some properties first, etc.

 I recommend to read the UCB chapter in the DevGuide to get some idea of
 it works in general


 http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Universal_Content_Broker


 http://wiki.openoffice.org/wiki/Documentation/DevGuide/AppendixC/Universal_Content_Providers

 Juergen

 -
 To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
 For additional commands, e-mail: dev-h...@openoffice.apache.org




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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
  required).
  I tried this URL in the open dialog:
  cmis://in-memory-repositoty-address/path-of-uploaded-object
  
  It says non-existant object.
 
 I still haven't had the time to look in Ariel's code. You have uploaded
 a odt into you inmemory repo via some other client code. You are able to
 retrieve this document via your Chemistry client and can open it in
 OpenOffice?
 
 Now you try to load this document via the Ariels code snippet, correct?
 
 I will try to take a look into the code asap... Maybe Ariel can say what
 is already there or not.

It is just an skeleton, there is no code.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgphLYkXqBDKM.pgp
Description: PGP signature


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 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 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://in-memory-repositoty-address/path-of-uploaded-object
  
   It says non-existant object.
 
  I still haven't had the time to look in Ariel's code. You have uploaded
  a odt into you inmemory repo via some other client code. You are able to
  retrieve this document via your Chemistry client and can open it in
  OpenOffice?
 
  Now you try to load this document via the Ariels code snippet, correct?
 
  I will try to take a look into the code asap... Maybe Ariel can say what
  is already there or not.

 It is just an skeleton, there is no code.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




 --
 Rajath S,
 M.Sc(Hons.) Physics,
 Birla Institute of Technology and Science - Pilani,
 Pilani




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 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:
   cmis://in-memory-repositoty-address/path-of-uploaded-object
  
   It says non-existant object.
 
  I still haven't had the time to look in Ariel's code. You have uploaded
  a odt into you inmemory repo via some other client code. You are able to
  retrieve this document via your Chemistry client and can open it in
  OpenOffice?
 
  Now you try to load this document via the Ariels code snippet, correct?
 
  I will try to take a look into the code asap... Maybe Ariel can say what
  is already there or not.

 It is just an skeleton, there is no code.


 Regards
 --
 Ariel Constenla-Haile
 La Plata, Argentina




-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 create with it an extension that has
a UNO component, how to generate the UNO component skeleton, how to add
UNO objects later on, how to package the extension (license, notice,
icon, etc.).

And the more important, how to debug the code you are writing inside
NetBeans. (You could do all 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, Step 4: Specifiy or define the UNO IDL services and
interfaces which should be implemented select Add Services/Interfaces
in Implemented Services/Interfaces, and choose
com.sun.star.ucb.ContentProvider. That's all to get the entry point of
the component.

You will need a configuration file, note that the description on the
Developer's Guide is old
http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Preconfigured_UCBs
You should read my example and the schema and data on trunk:
http://svn.apache.org/viewvc/openoffice/trunk/main/officecfg/registry/schema/org/openoffice/ucb/Configuration.xcs?view=markup
http://svn.apache.org/viewvc/openoffice/trunk/main/officecfg/registry/data/org/openoffice/ucb/Configuration.xcu?view=markup


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpVMfNDe7ZYc.pgp
Description: PGP signature


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
look at the C++ impleimentation only if necessary. The code is complex,
it uses several internal helper classes that won't be accessible to you.


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgppoMfVRkHSx.pgp
Description: PGP signature


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.apache.org/python/cmislib.html
  
  It would be nice to try with Python first, instead of introducing
  yet another Java dependency (besides other reasons: AOO ships with
  Python by default, but not with a JRE).
 
 I would be fine with Python as well but it seems that we are not
 accepted as mentoring organization anyway.

As we are part of the ASF:
http://www.google-melange.com/gsoc/program/accepted_orgs/google/gsoc2013
http://www.google-melange.com/gsoc/org/google/gsoc2013/apache


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpUVdrGIA0m8.pgp
Description: PGP signature


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 Python implementation: 
 http://chemistry.apache.org/python/cmislib.html
 
 It would be nice to try with Python first, instead of
 introducing yet another Java dependency (besides other reasons:
 AOO ships with Python by default, but not with a JRE).
 
 I would be fine with Python as well but it seems that we are not 
 accepted as mentoring organization anyway.
 
 As we are part of the ASF: 
 http://www.google-melange.com/gsoc/program/accepted_orgs/google/gsoc2013

 
http://www.google-melange.com/gsoc/org/google/gsoc2013/apache

yes, there was simply some confusion earlier and some false noise
about it. Everything is fine now.

Juergen

-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org



[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 Schmidt j...@apache.org
 Reply-To: j...@apache.org
 To: Sabhya Kaushal sabhya007kaus...@gmail.com
 
 On 4/6/13 11:51 AM, Sabhya Kaushal wrote:
  Respected Sir/ Ma'am,
  
  I am an undergraduate student of Computer Science and Engineering,
  Panjab University, Chandigarh, India.
  As a budding programmer, I am very much interested in joining your
  organisation for Google Summer Of Code 2013.
  
  I am, in particular, interested in the following idea(s) that have
  been displayed on the project idea link page of your organisation,
  that I would be happy to work on and that I can contribute to:
  
  [GSoC] CMIS Universal Content Provider (UCP) for Apache OpenOffice
  [GSoC] Apache OpenOffice Extension Plugin for Eclipse
  
  I would also like to state that I fulfill all the prerequisites
  required for the fulfillment of these tasks.
  
  I would be very obliged if I am given a chance to work under your
  knowledgeable mentors.
  
 
 Hi Sabhya,
 
 welcome at Apache OpenOffice and thanks for your interest in one of our
 GSOC 2013 projects proposals.
 
 We have already a volunteer for the Eclipse plugin project and you
 mentioned that you are interested in the CMIS project as well.
 
 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.apache.org/python/cmislib.html

It would be nice to try with Python first, instead of introducing yet
another Java dependency (besides other reasons: AOO ships with Python by
default, but not with a JRE).


Regards
-- 
Ariel Constenla-Haile
La Plata, Argentina


pgpCAKA1dmMVT.pgp
Description: PGP signature


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: Date: Mon, 08 Apr
 2013 09:43:51 +0200 From: Juergen Schmidt j...@apache.org 
 Reply-To: j...@apache.org To: Sabhya Kaushal
 sabhya007kaus...@gmail.com
 
 On 4/6/13 11:51 AM, Sabhya Kaushal wrote:
 Respected Sir/ Ma'am,
 
 I am an undergraduate student of Computer Science and
 Engineering, Panjab University, Chandigarh, India. As a budding
 programmer, I am very much interested in joining your 
 organisation for Google Summer Of Code 2013.
 
 I am, in particular, interested in the following idea(s) that
 have been displayed on the project idea link page of your
 organisation, that I would be happy to work on and that I can
 contribute to:
 
 [GSoC] CMIS Universal Content Provider (UCP) for Apache
 OpenOffice [GSoC] Apache OpenOffice Extension Plugin for
 Eclipse
 
 I would also like to state that I fulfill all the
 prerequisites required for the fulfillment of these tasks.
 
 I would be very obliged if I am given a chance to work under
 your knowledgeable mentors.
 
 
 Hi Sabhya,
 
 welcome at Apache OpenOffice and thanks for your interest in one
 of our GSOC 2013 projects proposals.
 
 We have already a volunteer for the Eclipse plugin project and
 you mentioned that you are interested in the CMIS project as
 well.
 
 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.apache.org/python/cmislib.html
 
 It would be nice to try with Python first, instead of introducing
 yet another Java dependency (besides other reasons: AOO ships with
 Python by default, but not with a JRE).

I would be fine with Python as well but it seems that we are not
accepted as mentoring organization anyway.

I have chosen Java because of the better IDE support, I believe the
work would become a little bit easier with the NetBeans plugin ;-)

Juergen


 
 
 Regards
 


-
To unsubscribe, e-mail: dev-unsubscr...@openoffice.apache.org
For additional commands, e-mail: dev-h...@openoffice.apache.org