Re: MediaType UCB property from file ucb is null

2013-09-10 Thread Rajath Shashidhara
Hello Jurgen,
I'm sorry abt the odf file.
I thought that ODF was opendocument format and is the parent format for all
the opendocument formats.
But, Now i checked it. it is formula file.


On Tue, Sep 10, 2013 at 8:56 PM, Jürgen Schmidt wrote:

> On 9/10/13 5:22 PM, Rajath Shashidhara wrote:
> > Hello,
> >
> > should I explicitly set the mimetype as odf?
>
> no you can't do that, it depends on the file. It's not always an odf
> file. What comes next after the transfer? Maybe it is necessary to
> prepare the final save first and wait for further info ... But of course
> I am guessing only and have to debug as well
>
> Juergen
>
>
> >
> >
> > On Tue, Sep 10, 2013 at 8:51 PM, Rajath Shashidhara <
> > rajaths.raja...@gmail.com> wrote:
> >
> >> Hello Jurgen,
> >> Yes I have debugged the calls.
> >> FIrst, the ucb tries to queryContent for the object name specified
> through
> >> the save dialog.
> >> Then, if it fails. It obtains the parent content. Then Issues a
> "transfer"
> >> command.
> >> But, the only information it provides is a TransferInfo object.
> >> WHich just contains the SourceURL. I'm creating a ucb instance to obtain
> >> the content stream from that url.
> >>
> >>
> >>
> >>
> >> On Tue, Sep 10, 2013 at 8:47 PM, Jürgen Schmidt  >wrote:
> >>
> >>> On 9/10/13 5:08 PM, Rajath Shashidhara wrote:
> >>>> Hello,
> >>>>
> >>>> When I create a new Document and save it from dialog on a cmis
> >>> repository,
> >>>> I need the media type of the file.
> >>>>
> >>>> In the back end what happens is, when a new document is created in
> >>>> OpenOffice, it is stored in a temp file on the harddisk.
> >>>> So, when I save it from the save dialog on a cmis repository through
> my
> >>>> ucp, I receive a "transfer" ucb call. So, When I have to create a new
> >>> file
> >>>> of CMIS server, I need the mime type of the file. So, the the
> >>>> "getPropertyValues" to file ucp with the property as "MediaType"
> >>> returns me
> >>>> null.
> >>>>
> >>>> So, any idea how I have to go about this?
> >>>> Because, the file can be saved in different formats from saveas
> dialog,
> >>> I
> >>>> assusme the stream encoding for different formats will be different.
> So,
> >>>> this would cause errors later, if I don't supply the correct mimetype.
> >>>>
> >>>
> >>> I believe the property should be provided with the transfer call or in
> >>> this context. Have you debug all calls to the UCB in the context of the
> >>> save command, it's more than one call ...
> >>>
> >>> 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, B.E.(Hons.) Computer Science
> >> 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, B.E.(Hons.) Computer Science
Birla Institute of Technology and Science - Pilani,
Pilani


Re: MediaType UCB property from file ucb is null

2013-09-10 Thread Rajath Shashidhara
Hello,

should I explicitly set the mimetype as odf?


On Tue, Sep 10, 2013 at 8:51 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Jurgen,
> Yes I have debugged the calls.
> FIrst, the ucb tries to queryContent for the object name specified through
> the save dialog.
> Then, if it fails. It obtains the parent content. Then Issues a "transfer"
> command.
> But, the only information it provides is a TransferInfo object.
> WHich just contains the SourceURL. I'm creating a ucb instance to obtain
> the content stream from that url.
>
>
>
>
> On Tue, Sep 10, 2013 at 8:47 PM, Jürgen Schmidt wrote:
>
>> On 9/10/13 5:08 PM, Rajath Shashidhara wrote:
>> > Hello,
>> >
>> > When I create a new Document and save it from dialog on a cmis
>> repository,
>> > I need the media type of the file.
>> >
>> > In the back end what happens is, when a new document is created in
>> > OpenOffice, it is stored in a temp file on the harddisk.
>> > So, when I save it from the save dialog on a cmis repository through my
>> > ucp, I receive a "transfer" ucb call. So, When I have to create a new
>> file
>> > of CMIS server, I need the mime type of the file. So, the the
>> > "getPropertyValues" to file ucp with the property as "MediaType"
>> returns me
>> > null.
>> >
>> > So, any idea how I have to go about this?
>> > Because, the file can be saved in different formats from saveas dialog,
>> I
>> > assusme the stream encoding for different formats will be different. So,
>> > this would cause errors later, if I don't supply the correct mimetype.
>> >
>>
>> I believe the property should be provided with the transfer call or in
>> this context. Have you debug all calls to the UCB in the context of the
>> save command, it's more than one call ...
>>
>> 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, B.E.(Hons.) Computer Science
> Birla Institute of Technology and Science - Pilani,
> Pilani
>



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


Re: MediaType UCB property from file ucb is null

2013-09-10 Thread Rajath Shashidhara
Hello Jurgen,
Yes I have debugged the calls.
FIrst, the ucb tries to queryContent for the object name specified through
the save dialog.
Then, if it fails. It obtains the parent content. Then Issues a "transfer"
command.
But, the only information it provides is a TransferInfo object.
WHich just contains the SourceURL. I'm creating a ucb instance to obtain
the content stream from that url.




On Tue, Sep 10, 2013 at 8:47 PM, Jürgen Schmidt wrote:

> On 9/10/13 5:08 PM, Rajath Shashidhara wrote:
> > Hello,
> >
> > When I create a new Document and save it from dialog on a cmis
> repository,
> > I need the media type of the file.
> >
> > In the back end what happens is, when a new document is created in
> > OpenOffice, it is stored in a temp file on the harddisk.
> > So, when I save it from the save dialog on a cmis repository through my
> > ucp, I receive a "transfer" ucb call. So, When I have to create a new
> file
> > of CMIS server, I need the mime type of the file. So, the the
> > "getPropertyValues" to file ucp with the property as "MediaType" returns
> me
> > null.
> >
> > So, any idea how I have to go about this?
> > Because, the file can be saved in different formats from saveas dialog, I
> > assusme the stream encoding for different formats will be different. So,
> > this would cause errors later, if I don't supply the correct mimetype.
> >
>
> I believe the property should be provided with the transfer call or in
> this context. Have you debug all calls to the UCB in the context of the
> save command, it's more than one call ...
>
> 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, B.E.(Hons.) Computer Science
Birla Institute of Technology and Science - Pilani,
Pilani


MediaType UCB property from file ucb is null

2013-09-10 Thread Rajath Shashidhara
Hello,

When I create a new Document and save it from dialog on a cmis repository,
I need the media type of the file.

In the back end what happens is, when a new document is created in
OpenOffice, it is stored in a temp file on the harddisk.
So, when I save it from the save dialog on a cmis repository through my
ucp, I receive a "transfer" ucb call. So, When I have to create a new file
of CMIS server, I need the mime type of the file. So, the the
"getPropertyValues" to file ucp with the property as "MediaType" returns me
null.

So, any idea how I have to go about this?
Because, the file can be saved in different formats from saveas dialog, I
assusme the stream encoding for different formats will be different. So,
this would cause errors later, if I don't supply the correct mimetype.

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


Authentication Example

2013-09-07 Thread Rajath Shashidhara
Hello,

I want an example code or code snippet or wiki link for using
InteractionHandler to get authentication details like user credentials for
my ucp.

Please provide me an example.

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


Re: OptionsPage for my extension

2013-09-06 Thread Rajath Shashidhara
Hello,

My options page GUI doesn't show up If I include the value of the the
handler in xcu file.
If I make it blank, the GUI is shown. What is the problem with my
OptionsPageHandler?

It works if:
 
doesn't work for this:
 org.apache.aoo.cmisucp.dialog.OptionsPageDialogHandler


On Fri, Sep 6, 2013 at 1:29 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Finally found the mistake.
>
> The configuration file entry was missing from the manifest file.
>



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


Re: OptionsPage for my extension

2013-09-06 Thread Rajath Shashidhara
Finally found the mistake.

The configuration file entry was missing from the manifest file.


Re: OptionsPage for my extension

2013-09-06 Thread Rajath Shashidhara
Hello Jurgen,

I am not even receiving the "Options" button on the extension.
How can I debug?

Only If I click that "Options" Button, I'll be able to construct the
EventHandler after which I can debug.
Right?


On Fri, Sep 6, 2013 at 12:06 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Tsutomu,
>
> That did not work.
>
> This is my configuration file:
>
> 
>  oor:package="org.openoffice.Office" xmlns:oor="
> http://openoffice.org/2001/registry"; xmlns:xs="
> http://www.w3.org/2001/XMLSchema";>
> 
>  oor:op="fuse">
> 
> CMIS UCP Options
> 
> 
> true
> 
> 
>
> %origin%/../../../../../../dialogs/CMISUCPOptionsPage.xdl
> 
> 
>  oor:op="fuse">
>  oor:name="Id">org.apache.aoo.cmisucp.CMISContentProvider
> CMIS
> UCP Options
>  oor:name="OptionsPage">%origin%/../../../../../../dialogs/CMISUCPOptionsPage.xdl
>  oor:name="EventHandlerService">org.apache.aoo.cmisucp.dialog.OptionsDialogHandler
> 
> 
> 
> 
> 
>
> I have stored this as OptionsDialog.xcu in
> registry/data/org/openoffice/Office.
>
> My Extension identifier is :
> org.apache.aoo.cmisucp.CMISContentProvider
>
>
> On Fri, Sep 6, 2013 at 10:55 AM, Tsutomu Uchino wrote:
>
>> Hello,
>>
>> Id of the Leave of your OptionDialog setting should be the same with your
>> extension identifier.
>>
>> Regards
>>
>>
>> 2013/9/6 Rajath Shashidhara 
>>
>> > Hello,
>> >
>> > I'm not getting the "Options" Button for my extension on the extension
>> > manager.
>> > WHere am I going wrong?
>> >
>> >
>> > --
>> > Rajath S,
>> > M.Sc(Hons.) Physics, B.E.(Hons.) Computer Science
>> > Birla Institute of Technology and Science - Pilani,
>> > Pilani
>> >
>>
>
>
>
> --
> Rajath S,
> M.Sc(Hons.) Physics, B.E.(Hons.) Computer Science
> Birla Institute of Technology and Science - Pilani,
> Pilani
>



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


Re: OptionsPage for my extension

2013-09-05 Thread Rajath Shashidhara
Hello Tsutomu,

That did not work.

This is my configuration file:


http://openoffice.org/2001/registry"; xmlns:xs="
http://www.w3.org/2001/XMLSchema";>



CMIS UCP Options


true



%origin%/../../../../../../dialogs/CMISUCPOptionsPage.xdl



org.apache.aoo.cmisucp.CMISContentProvider
CMIS UCP
Options
%origin%/../../../../../../dialogs/CMISUCPOptionsPage.xdl
org.apache.aoo.cmisucp.dialog.OptionsDialogHandler






I have stored this as OptionsDialog.xcu in
registry/data/org/openoffice/Office.

My Extension identifier is :
org.apache.aoo.cmisucp.CMISContentProvider


On Fri, Sep 6, 2013 at 10:55 AM, Tsutomu Uchino wrote:

> Hello,
>
> Id of the Leave of your OptionDialog setting should be the same with your
> extension identifier.
>
> Regards
>
>
> 2013/9/6 Rajath Shashidhara 
>
> > Hello,
> >
> > I'm not getting the "Options" Button for my extension on the extension
> > manager.
> > WHere am I going wrong?
> >
> >
> > --
> > Rajath S,
> > M.Sc(Hons.) Physics, B.E.(Hons.) Computer Science
> > Birla Institute of Technology and Science - Pilani,
> > Pilani
> >
>



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


Re: OptionsPage for my extension

2013-09-05 Thread Rajath Shashidhara
Hello Jurgen,

I have been debugging the checkin and checkout feature.

Yes.. I used the example provided by you to write the xcu file.
I'll have to debug it more.


On Fri, Sep 6, 2013 at 10:40 AM, Jürgen Schmidt wrote:

> On 9/6/13 6:20 AM, Rajath Shashidhara wrote:
> > Hello,
> >
> > I'm not getting the "Options" Button for my extension on the extension
> > manager.
> > WHere am I going wrong?
>
> I gave you an example for an option page and without more information it
> is not possible to say what's going wrong.
>
> Check the config files if you use the correct extension identifier. Have
> you debugged your code already? If the entry points are correct you
> should at least be able to debug your constructor. Maybe some
> initialization gos wrong but this can checked by debugging.
>
> I am busy with the next snapshot and have limited time to dive in your
> code.
>
>
> 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, B.E.(Hons.) Computer Science
Birla Institute of Technology and Science - Pilani,
Pilani


OptionsPage for my extension

2013-09-05 Thread Rajath Shashidhara
Hello,

I'm not getting the "Options" Button for my extension on the extension
manager.
WHere am I going wrong?


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


Re: XComponentLoader loadComponentfromURL Readonly

2013-09-05 Thread Rajath Shashidhara
Hello Alexandro,

Here is what happens:
Document is opened through the "Open" Dialog -> User asked if he wants to
checkout -> If Yes - > Document is checkedout and displayed in read-write
mode -> Save from Save dialog -> User checksin -> User is asked if he wants
to checksout.

When the user chooses not to checkout(initially), the document is opened in
readonly mode(the cursor cannot be placed in the document).

When the user doesn't checkout after checking in, the document is reopened
in the same frame as readonly. Here, the cursor can be placed in the
document but changes cannot be saved. (in a sense it is read-only because
it cannot be saved. But, it creates confusion to the user because the
cursor can  be placed and edited but save button remains deactivated).

As far as code snippet is concerned:
it is hard to point give the code as snippet because it is a ucb property.

I'll give the link to my code:
https://github.com/rajaths589/CMISContentProvider.git

Code snipped for loadComponentFromURL:

XMultiComponentFactory xMCF = m_xContext.getServiceManager();
Object desktop =
xMCF.createInstanceWithContext("com.sun.star.frame.Desktop", m_xContext);
XDesktop xDesktop = UnoRuntime.queryInterface(XDesktop.class,
desktop);
XFrame current_frame = xDesktop.getCurrentFrame();
XComponentLoader xComponentLoader =
(XComponentLoader)UnoRuntime.queryInterface(XComponentLoader.class,
desktop);
try
{
PropertyValue pv[] = new PropertyValue[1];
pv[0] = new PropertyValue();
pv[0].Name = "ReadOnly";
pv[0].Value = new Any(Type.BOOLEAN,true);
pv[0].Handle = -1;

xComponentLoader.loadComponentFromURL(manager.getCompleteURL(),current_frame.getName(),
FrameSearchFlag.ALL, pv);
}
catch(Exception e)
{
log.info("what the hell is this");
}

Hope this helps.



On Thu, Sep 5, 2013 at 8:01 PM, Alexandro Colorado  wrote:

> Can you provide code snippet to be able to provide more quality answer. Is
> there any other property value being defined and is that definition passing
> through without problem.
>
> F
> rom some of my search through the DevGuide, it seems that before Read only
> was defined through a OpenFlag but that was instead repleaced with the own
> ReadOnly property for the MediaDescriptor service.
>
> http://wiki.openoffice.org/wiki/Documentation/DevGuide/OfficeDev/Handling_Documents
> 
>
>
>
> On Thu, Sep 5, 2013 at 8:57 AM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
> > Hello,
> >
> > I'm passing a propertyvalue, "readOnly"-true to loadComponentFromURL(),
> but
> > the openoffice is still not opening in readonly from.
> > What are the possible sources of error?
> >
> > --
> > Rajath S,
> > M.Sc(Hons.) Physics, B.E.(Hons.) Computer Science
> > Birla Institute of Technology and Science - Pilani,
> > Pilani
> >
>
>
>
> --
> Alexandro Colorado
> Apache OpenOffice Contributor
> http://www.openoffice.org
>



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


XComponentLoader loadComponentfromURL Readonly

2013-09-05 Thread Rajath Shashidhara
Hello,

I'm passing a propertyvalue, "readOnly"-true to loadComponentFromURL(), but
the openoffice is still not opening in readonly from.
What are the possible sources of error?

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


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


Options Page registry files

2013-08-21 Thread Rajath Shashidhara
Hello,

Can anyone provide me a good source to read up on how to configure(.xcu and
.xcs) the options page of an extension?

I haven't been able to find it on devguide.

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


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


Insert Command

2013-07-31 Thread Rajath Shashidhara
Hello,

The API reference for service com::sun::star:ucb::Content says:

On successful completion of this command, the parent of the inserted
 // content must propagate the change by notifying a
 // ContentEvent  - ContentAction
::INSERTED .


But, how will the parent of the content created/inserted know that a child
was inserted?
What I have done is that the content created itself will notify the
ContentAction - INSERTED to the attached listeners.

Should I keep track of the changes in the child for a parent folder? and
How to do it?

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


CMIS Workbench problem

2013-07-30 Thread Rajath Shashidhara
Hello,

I have created a new folder Inside the My_Folder-0-0 in the local immemory
repository named "moved1" programmatically.
Code:
Map newFolderProps = new HashMap();
newFolderProps.put(PropertyIds.NAME, name);
newFolderProps.put(PropertyIds.OBJECT_TYPE_ID,
ObjectType.FOLDER_BASETYPE_ID);
try
{
getFolder().createFolder(newFolderProps);
return true;
}
catch(CmisBaseException e)
{
return false;
}

Here, name variable is "moved1"[image: Inline image 1]

This is the screenshot after creation of folder.
Now, when I try to getObjectbyPath from the session:
using: session.getObjectbyPath("/My_Folder-0-0/moved1") I'm getting a
CMisObjectNotFOundException.
the exception caught has a message containing
"/My_FOlder-0-0/My_FOlder-0-1" not found.

When I open the moved1 folder from the workbench, [image: Inline image 2]
U can clearly see that there is a conflict in the paths in the two places.
In the address bar, it shows a different path and in the properties bar it
shows the right path.

WHy is it so?
When I try to open "/My_Folder-0-0/moved1" why is it trying to open
"/My_FOlder-0-0/My_Dolder-0-1" ?

Is this a bug in opencmis?
-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


Re: Not understanding how to link events to Extensions Options Page

2013-07-26 Thread Rajath Shashidhara
Hello,
When I listening to button clicks using XActionListener,
I receive an ActionEvent.

ActionEvent has a string ActionCommand attribute.
What are the values that actionCommand string can take?
Any enumeration or constant group exists?

the api reference says:
he object that implements the
XActionListener<http://www.openoffice.org/api/docs/common/ref/com/sun/star/awt/XActionListener.html>
interface
gets this ActionEvent when the event occurs. The listener is therefore
spared the details of processing individual mouse movements and mouse
clicks, and can instead process a "meaningful" (semantic) event like
"button pressed".

so, should I check:
actionCommand.compareTo("button pressed")==0 ?


On Fri, Jul 26, 2013 at 8:17 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Oliver,
>
> Thank you..!
>
>
> On Fri, Jul 26, 2013 at 8:08 PM, Oliver Brinzing 
> wrote:
>
>> Hi Rajath,
>>
>> i am sending you an example extension via email
>>
>> Regards
>>
>> Oliver
>>
>> --
>>
>> GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
>>
>> -
>> 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: Not understanding how to link events to Extensions Options Page

2013-07-26 Thread Rajath Shashidhara
Hello Oliver,

Thank you..!


On Fri, Jul 26, 2013 at 8:08 PM, Oliver Brinzing wrote:

> Hi Rajath,
>
> i am sending you an example extension via email
>
> Regards
>
> Oliver
>
> --
>
> GnuPG key 0xCFD04A45: 8822 057F 4956 46D3 352C 1A06 4E2C AB40 CFD0 4A45
>
> -
> 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: Not understanding how to link events to Extensions Options Page

2013-07-26 Thread Rajath Shashidhara
Hello,

One thing I don't understand is when is "external_event" triggered?



On Fri, Jul 26, 2013 at 7:22 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
>
> I have attached my options page design.
> I have three buttons, "Edit", "Delete" and "Add".
> I'm not understanding how to add events to identify these button clicks in
> my XContainerWindowEventHandler Implementation.
>
> Please help.
>
> --
> 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


Not understanding how to link events to Extensions Options Page

2013-07-26 Thread Rajath Shashidhara
Hello,

I have attached my options page design.
I have three buttons, "Edit", "Delete" and "Add".
I'm not understanding how to add events to identify these button clicks in
my XContainerWindowEventHandler Implementation.

Please help.

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

Help with options page for extension

2013-07-24 Thread Rajath Shashidhara
Hello,

I need help for developing options page for my extension.

I have created a .xdl file using the openoffice dialog editor.
Now, I plan to implement an event handler by implementing
XContainerWindowEventHandler interface.

To load the GUI of an xdl file, do I also need to implement the service to
ContainerWindowProvider?

Also, how do I link the .xdl file to a the EventHandler Implementation?

I have looked at the example provided in the devguide.
It is very unclear.

My question is how do I link events to my buttons.
I have 3 buttons - edit, delete and add.

all three buttons are of type - "ok".
How do I link different buttons to different methods?

In the example, the sMethodName = external_event.
What triggers external_event?

Please lead me to a better source?

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


Extension Options Page

2013-07-22 Thread Rajath Shashidhara
Hello,

The wikipage:
http://wiki.openoffice.org/wiki/Documentation/DevGuide/Extensions/Saving_and_Reading_Data_for_the_Options_Page
contains
example code which listens to "external_event". When is this
"external_event" triggered? How do I link events to actions like mouse
click, etc?

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


XListBox

2013-07-20 Thread Rajath Shashidhara
Can I add columns in a ListBox object?

Alos, when I try to export a dialog design into a .xdl file,
I get this error:
terminate called after throwing an instance of
'com::sun::star::resource::MissingResourceException'
 and openoffice hangs.

I'm unable to export. Please help.

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


Re: Next Step

2013-07-20 Thread Rajath Shashidhara
Hello Juergen,

In the example provided by you, there is an xdl file which describes the
the UI of the dialog box.
I looked up the xdl file. Each element has an id and a help url associated
with it.

I looked up both OptionsPageDemo.java and OptionsHandlerImpl.java

OptionsPageDemo implements XDispatchProvider and XDispatch interfaces.
the queryDispatch has URL as a parameter.
The scheme of this URL seems to resemble the help-url attribute in the xdl
file.
The code in the queryDispatch():
if ( aURL.Protocol.compareTo("org.openoffice.demo.optionspagedemo:") == 0 )
{
if ( aURL.Path.compareTo("insertMsg") == 0 )
return this;
}
return null;

this seems to search for a help-url :
org.openoffice.demo.optionspagedemo:insertMsg

but, i couldn't locate this url in the xdl file.
so, my initial assumption that help-url = url in queryDispach() must be
wrong.

Also, what is Dispatch? I don't seem the understand that term.

Also the dispatch() in XDispatch in this example seems to add the text from
the message box which was stored in registry using the HandlerImpl class to
a text document.
Is that right?

Now speaking of the handlerImpl class:
in the callHandlerMethod()
this line:
sMethodName.equals("external_event")
needs some explanation. Where is "external_event" defined? Also, in the
openoffice dialog editor, when i right click an dialog object, I see a menu
to link the event on the object to a component.

the listed events don't seem to have "external_event". So, what action  by
user triggers "external_event".
This handlerImpl class saves/loads the option data entered by user to
openoffice registry.

Thanks.


On Fri, Jul 19, 2013 at 12:55 PM, Jürgen Schmidt wrote:

> On 7/18/13 8:40 PM, Rajath Shashidhara wrote:
> > Hello Jurgen
> > Tomorrow I wont be able to repsond to your mails quickly.
> > I'll not be there at my home.
> > But I'll make up for tomorrow day after tomorrow.
> >
> > One thing I'm not able to understand is why will there be different
> > usernames and passwords for differnent urls?
>
> well, for security reason it is always better to use not the same
> username and password for different services or accounts.
>
> > The UI will be a list table of url schemes and usernames. with three
> > buttons add, edit , delete.
> > Is that ok?
>
> sure, I will be not available for 5 days as well because I have to move
> in anew flat.
>
> Juergen
>
>
>


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


Re: Adding my own ucb commands

2013-07-01 Thread Rajath Shashidhara
Hello Juergen,

When I upload a .odt file which contains "Hello World" as the only content
and use "open" command,
I get scrambled output. Is it a problem? Also I'm using the my own
implementation of XInputStream rather than
InputStreamToXInputStreamAdapter. Is that a problem? Still no luck with
opening form Open dialog box. But, all the ucb commands form my client
application works. Any direction to proceed in?


On Mon, Jul 1, 2013 at 10:22 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Juergen,
>
> I have changed my implementation for "open" command for document.
> Now I'm using InputStreamToXInputStreamAdapter from the api.
>
> But, now the readBytes() method now gives a null pointer exception.
> Here is the stack trace:
> com.sun.star.uno.RuntimeException: [jni_uno bridge error] UNO calling Java
> method readBytes: non-UNO exception occurred: java.lang.NullPointerException
> java stack trace:
> java.lang.NullPointerException
> at
> sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:674)
> at java.io.FilterInputStream.read(FilterInputStream.java:133)
> at
> sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3052)
> at
> com.sun.star.lib.uno.adapter.InputStreamToXInputStreamAdapter.readBytes(InputStreamToXInputStreamAdapter.java:88)
>
> at
> com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:173)
> at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:139)
> at
> com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:334)
> at
> com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:303)
> at
> com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:87)
> at
> com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:636)
> at
> com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:146)
> at
> com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:128)
> at sun.proxy.$Proxy9.readBytes(Unknown Source)
> at
> apache.ooffice.gsoc.cmisucp.test.CMISContentProviderTest.main(CMISContentProviderTest.java:133)
> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
> at
> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
> at
> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke(Method.java:616)
> at com.sun.star.lib.loader.Loader.main(Loader.java:134)
>
> Any Pointers?
>
>
> On Mon, Jul 1, 2013 at 9:36 PM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Hello Juergen,
>>
>> My I use my own client application I am able to open and save documents.
>> I'd like to know the ucb commands that are executed when open is clicked.
>> Also, How exactly can I debug why my code is not working when using the
>> open dialog?
>>
>>
>> On Mon, Jul 1, 2013 at 9:28 PM, Jürgen Schmidt wrote:
>>
>>> On 7/1/13 5:29 PM, Rajath Shashidhara wrote:
>>> > Hello,
>>> > I'm thinking of adding "checkin" and "checkout" as ucp commands.
>>> >
>>> > Is it permitted to add my own ucb commands?
>>> >
>>>
>>> sure and it make sense of course but you focus on a simple open and save
>>> of documents first.
>>>
>>> Sorry I have found the time today to look in the code because of too
>>> many translation updates for the release.
>>>
>>> Your focus for now should be to be able to use the office internal file
>>> open dialog and browse your CMIS store and open and save files from
>>> there. Or to store new files into this CMIS store.
>>>
>>> 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: Adding my own ucb commands

2013-07-01 Thread Rajath Shashidhara
Hello Juergen,

I have changed my implementation for "open" command for document.
Now I'm using InputStreamToXInputStreamAdapter from the api.

But, now the readBytes() method now gives a null pointer exception.
Here is the stack trace:
com.sun.star.uno.RuntimeException: [jni_uno bridge error] UNO calling Java
method readBytes: non-UNO exception occurred: java.lang.NullPointerException
java stack trace:
java.lang.NullPointerException
at sun.net.www.http.ChunkedInputStream.read(ChunkedInputStream.java:674)
at java.io.FilterInputStream.read(FilterInputStream.java:133)
at
sun.net.www.protocol.http.HttpURLConnection$HttpInputStream.read(HttpURLConnection.java:3052)
at
com.sun.star.lib.uno.adapter.InputStreamToXInputStreamAdapter.readBytes(InputStreamToXInputStreamAdapter.java:88)

at
com.sun.star.lib.uno.environments.remote.Job.remoteUnoRequestRaisedException(Job.java:173)
at com.sun.star.lib.uno.environments.remote.Job.execute(Job.java:139)
at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:334)
at
com.sun.star.lib.uno.environments.remote.JobQueue.enter(JobQueue.java:303)
at
com.sun.star.lib.uno.environments.remote.JavaThreadPool.enter(JavaThreadPool.java:87)
at
com.sun.star.lib.uno.bridges.java_remote.java_remote_bridge.sendRequest(java_remote_bridge.java:636)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.request(ProxyFactory.java:146)
at
com.sun.star.lib.uno.bridges.java_remote.ProxyFactory$Handler.invoke(ProxyFactory.java:128)
at sun.proxy.$Proxy9.readBytes(Unknown Source)
at
apache.ooffice.gsoc.cmisucp.test.CMISContentProviderTest.main(CMISContentProviderTest.java:133)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:616)
at com.sun.star.lib.loader.Loader.main(Loader.java:134)

Any Pointers?


On Mon, Jul 1, 2013 at 9:36 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Juergen,
>
> My I use my own client application I am able to open and save documents.
> I'd like to know the ucb commands that are executed when open is clicked.
> Also, How exactly can I debug why my code is not working when using the
> open dialog?
>
>
> On Mon, Jul 1, 2013 at 9:28 PM, Jürgen Schmidt wrote:
>
>> On 7/1/13 5:29 PM, Rajath Shashidhara wrote:
>> > Hello,
>> > I'm thinking of adding "checkin" and "checkout" as ucp commands.
>> >
>> > Is it permitted to add my own ucb commands?
>> >
>>
>> sure and it make sense of course but you focus on a simple open and save
>> of documents first.
>>
>> Sorry I have found the time today to look in the code because of too
>> many translation updates for the release.
>>
>> Your focus for now should be to be able to use the office internal file
>> open dialog and browse your CMIS store and open and save files from
>> there. Or to store new files into this CMIS store.
>>
>> 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: Adding my own ucb commands

2013-07-01 Thread Rajath Shashidhara
Hello Juergen,

My I use my own client application I am able to open and save documents.
I'd like to know the ucb commands that are executed when open is clicked.
Also, How exactly can I debug why my code is not working when using the
open dialog?


On Mon, Jul 1, 2013 at 9:28 PM, Jürgen Schmidt wrote:

> On 7/1/13 5:29 PM, Rajath Shashidhara wrote:
> > Hello,
> > I'm thinking of adding "checkin" and "checkout" as ucp commands.
> >
> > Is it permitted to add my own ucb commands?
> >
>
> sure and it make sense of course but you focus on a simple open and save
> of documents first.
>
> Sorry I have found the time today to look in the code because of too
> many translation updates for the release.
>
> Your focus for now should be to be able to use the office internal file
> open dialog and browse your CMIS store and open and save files from
> there. Or to store new files into this CMIS store.
>
> 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


Adding my own ucb commands

2013-07-01 Thread Rajath Shashidhara
Hello,
I'm thinking of adding "checkin" and "checkout" as ucp commands.

Is it permitted to add my own ucb commands?


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


Re: Implementing one instance component factory

2013-06-30 Thread Rajath Shashidhara
Hello,

This code returns true. So i believe its working
Sub Main
Dim o1, o2, o3, o4
o1 = CreateUnoService("org.apache.aoo.cmisucp.CMISContentProvider")
o2 = CreateUnoService("org.apache.aoo.cmisucp.CMISContentProvider")
MsgBox EqualUnoObjects( o1, o2 )
End Sub



On Mon, Jul 1, 2013 at 9:18 AM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
>
> I got this working.
> THe problem was the I was using ComponentBase as SuperClass to
> XSingleComponentFacotry... then changed it to weakbase.
>
> It worked!!!.
>
>
> On Sun, Jun 30, 2013 at 11:46 PM, Juergen Schmidt 
> wrote:
>
>> Am Sonntag, 30. Juni 2013 um 19:38 schrieb Rajath Shashidhara:
>> > Hello,
>> >
>> > I was implementing XSingleComponentFactory to return only the same
>> instance
>> > of ucp. I was following the example provided by Ariel.
>> >
>> > But, when i follow his example, the ucp object returned by the UCB is
>> not
>> > corresponding to the ucp developed by me.
>> >
>> >
>> > What could be the possible errors?
>> hi Rajath,
>>
>> I will take a look into the code tomorrow, take a short break ;-)
>>
>> Juergen
>> >
>> > --
>> > 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: Implementing one instance component factory

2013-06-30 Thread Rajath Shashidhara
Hello,

I got this working.
THe problem was the I was using ComponentBase as SuperClass to
XSingleComponentFacotry... then changed it to weakbase.

It worked!!!.


On Sun, Jun 30, 2013 at 11:46 PM, Juergen Schmidt wrote:

> Am Sonntag, 30. Juni 2013 um 19:38 schrieb Rajath Shashidhara:
> > Hello,
> >
> > I was implementing XSingleComponentFactory to return only the same
> instance
> > of ucp. I was following the example provided by Ariel.
> >
> > But, when i follow his example, the ucp object returned by the UCB is not
> > corresponding to the ucp developed by me.
> >
> >
> > What could be the possible errors?
> hi Rajath,
>
> I will take a look into the code tomorrow, take a short break ;-)
>
> Juergen
> >
> > --
> > 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


Implementing one instance component factory

2013-06-30 Thread Rajath Shashidhara
Hello,

I was implementing XSingleComponentFactory to return only the same instance
of ucp. I was following the example provided by Ariel.

But, when i follow his example, the ucp object returned by the UCB is not
corresponding to the ucp developed by me.


What could be the possible errors?

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


Code linked with File->Open

2013-06-30 Thread Rajath Shashidhara
Hello,

How do I find the code lined with file open dialog box. I want to see the
ucb calls after i press open button.

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


Re: "Open" from file menu

2013-06-29 Thread Rajath Shashidhara
Hello Juergen,

I have added a couple of log statements in my extension.
When I type a url in the open menu, a call to getPropertyValues ucb command
is executed.

When I type a wrong/nonexistent url, a non-existant object dialog is
launched.
When I type a correct url, a call to "getPropertyValues" is shown in the
log, but nothing happens after that.

Debugging,
yes I have developed my own client application and I have executed the ucb
commands i have developed and they work fine.
I have added the arguments to my jre to connect to the debugger. I followed
the instructions of ariel for this.


On Sat, Jun 29, 2013 at 11:47 PM, Juergen Schmidt wrote:

> Hi Rajath,
>
> I am sorry that I have currently not more time but besides the upcoming
> release I have to organize some private things especially at the weekends.
>
> Are you able to debug your UCP? What happens when you type a CMIS URL in
> the file open dialog?
>
> Juergen
>
>
> Am Samstag, 29. Juni 2013 um 07:47 schrieb Rajath Shashidhara:
>
> > Hello,
> > since i have installed my .oxt,
> > i tried to open a document stored on my local server using file->open
> menu.
> > but when i give the filename ad press enter. the document doesnt open.
> >
> > Is it normal? Is there more work to be done to open the document on
> > openoffice?
> >
> > --
> > 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


"Open" from file menu

2013-06-28 Thread Rajath Shashidhara
Hello,
since i have installed my .oxt,
i tried to open a document stored on my local server using file->open menu.
but when i give the filename ad press enter. the document doesnt open.

Is it normal? Is there more work to be done to open the document on
openoffice?

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


Re: CMIS URL scheme

2013-06-27 Thread Rajath Shashidhara
Hello,

What I came to know is that there is nothing called url for a file on cmis
repository. Although, oasis standard requires to have some primary patterns
which was given in what Dennis sent me.

A file on a cmis repository is identified by the repo endpoint address and
path on the repo separately. So,
I will define my own scheme this way.
cmis:path=.
cmiss:path=

cmiss:objectid=
cmis:objectid=

I'll try to find out more on this.



On Thu, Jun 27, 2013 at 8:39 PM, Jürgen Schmidt wrote:

> Hi Rajath,
>
> sorry for the late response
>
> If you can't identify a common pattern you can define one on your own or
> can try to take care of the most common ones. I have not really a good
> idea.
>
> Or think about a configuration item that allows to define a Url scheme.
> This way it will be possible to handle different repository schemes.
>
> Juergen
>
>
> On 6/26/13 9:55 PM, Dennis E. Hamilton wrote:
> > Is this of any assistance in terms of what you might need to be told to
> access any given repository, and what is then discovered from the
> repository:
> > <http://docs.oasis-open.org/cmis/CMIS/v1.0/os/cmis-spec-v1.0.html>?
> >
> >  - Dennis
> >
> > -Original Message-
> > From: Rajath Shashidhara [mailto:rajaths.raja...@gmail.com]
> > Sent: Wednesday, June 26, 2013 11:50 AM
> > To: dev; Jürgen Schmidt
> > Subject: CMIS URL scheme
> >
> > Hello,
> >
> > I asked the question about existence of URL scheme on stackoverflow.
> >
> > It seems that the url scheme is repository specific.
> >
> > SO, how do I proceed now?
> > Do I define my own scheme?
> >
> http://stackoverflow.com/questions/17273987/how-to-split-a-cmis-url-into-repository-path-and-path-with-respect-to-repository?answertab=votes#tab-top
> >
> > Please reply. Its important for processing the XContentIdentifier to
> obtain
> > a connection to the repository.
> >
>
>
> -
> 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 URL scheme

2013-06-26 Thread Rajath Shashidhara
Hello,

I asked the question about existence of URL scheme on stackoverflow.

It seems that the url scheme is repository specific.

SO, how do I proceed now?
Do I define my own scheme?
http://stackoverflow.com/questions/17273987/how-to-split-a-cmis-url-into-repository-path-and-path-with-respect-to-repository?answertab=votes#tab-top

Please reply. Its important for processing the XContentIdentifier to obtain
a connection to the repository.

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


Re: "Search" command

2013-06-26 Thread Rajath Shashidhara
Hello Juergen,
Search command can be mapped to querying cmis repository.


On Wed, Jun 26, 2013 at 1:37 PM, Jürgen Schmidt wrote:

> On 6/25/13 5:06 PM, Rajath Shashidhara wrote:
> > Hello,
> >
> > Search command has not been implemented in any of the existing ucp's.
> > Is it important to implement it?
> >
> >
> http://opengrok.adfinis-sygroup.org/source/search?q=%22search%22&defs=&refs=&path=%2Faoo-trunk%2Fmain%2Fucb%2Fsource%2Fucp%2F&hist=&project=aoo-trunk
> >
>
> Can you easy map it to any CMIS function? If yes you can support it,
> otherwise I think you don't have to support it yet and it can be done
> later on demand.
>
> 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


"Search" command

2013-06-25 Thread Rajath Shashidhara
Hello,

Search command has not been implemented in any of the existing ucp's.
Is it important to implement it?

http://opengrok.adfinis-sygroup.org/source/search?q=%22search%22&defs=&refs=&path=%2Faoo-trunk%2Fmain%2Fucb%2Fsource%2Fucp%2F&hist=&project=aoo-trunk

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


Re: CMISUrl

2013-06-25 Thread Rajath Shashidhara
Hello Juergen,

The standard for AtomPub Urls is:
cmis://localhost:8080/inmemory/atom/A1/path?path=/My_Folder-0-0

source:
https://chemistry.apache.org/java/developing/dev-url.html


On Tue, Jun 25, 2013 at 12:37 PM, Jürgen Schmidt wrote:

> On 6/24/13 7:29 PM, Rajath Shashidhara wrote:
> > Hello Juergen,
> >
> > My doubt:
> > Suppose there is a folder call My_Folder-0-0 on a repository A1 on local
> > server
> >
> > The actual url for this is:
> > http://localhost:8080/inmemory/atom/A1/path?path=/My_Folder-0-0
> >
> > So, Should i implement it the same way or should i do it like this:
> > cmis://localhost:8080/inmemory/atom/A1/My_Folder-0-0
> >
> > or
> >
> > cmis://localhost:8080/inmemory/atom/A1/path?path=/My_Folder-0-0
> >
>
> is there a standard scheme used. How does other CMIS implementation
> handle it? We should use what others use to be compatible as much as
> possible.
>
> I suggest that you take a look on Alfresco which seems to have a good
> reference implementation of CMIS.
>
> If is is up to your implementation I would prefer
>
> cmis://localhost:8080/inmemory/atom/A1/My_Folder-0-0
> cmis://localhost:8080/inmemory/atom/A1/My_Folder-0-0/test.odt[params]
>
> Juergen
>
>
> >
> >
> >
> >
> >
> > On Mon, Jun 24, 2013 at 9:28 PM, Rajath Shashidhara <
> > rajaths.raja...@gmail.com> wrote:
> >
> >> Hello Juergen,
> >>
> >> Yes, a server can support multiple repositories.
> >> But, the problem I'm facing is that I'm not able to separate the server
> >> path and the path of the object on the server.
> >> So, I'm trying to do this by trial and error.
> >>
> >> Let me see how this comes out, I'm planning on refining my code. I'll
> come
> >> back to you once I'm done.
> >>
> >
> >
> >
>
>
> -
> 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: CMISUrl

2013-06-24 Thread Rajath Shashidhara
Hello Juergen,

My doubt:
Suppose there is a folder call My_Folder-0-0 on a repository A1 on local
server

The actual url for this is:
http://localhost:8080/inmemory/atom/A1/path?path=/My_Folder-0-0

So, Should i implement it the same way or should i do it like this:
cmis://localhost:8080/inmemory/atom/A1/My_Folder-0-0

or

cmis://localhost:8080/inmemory/atom/A1/path?path=/My_Folder-0-0






On Mon, Jun 24, 2013 at 9:28 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Juergen,
>
> Yes, a server can support multiple repositories.
> But, the problem I'm facing is that I'm not able to separate the server
> path and the path of the object on the server.
> So, I'm trying to do this by trial and error.
>
> Let me see how this comes out, I'm planning on refining my code. I'll come
> back to you once I'm done.
>



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


Re: CMISUrl

2013-06-24 Thread Rajath Shashidhara
Hello Juergen,

Yes, a server can support multiple repositories.
But, the problem I'm facing is that I'm not able to separate the server
path and the path of the object on the server.
So, I'm trying to do this by trial and error.

Let me see how this comes out, I'm planning on refining my code. I'll come
back to you once I'm done.


Re: CMISUrl

2013-06-24 Thread Rajath Shashidhara
Hello juergen,
About http and https,
Webdav ucp uses dav:// and davs:// as respective schemes.
Should I do it as cmis and cmiss?


On Mon, Jun 24, 2013 at 6:41 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Juergen,
> We could also do this by trial and error,
> for example try to connect to:
> localhost:8080
> if it fails
> try
> localhost:8080/inmemory
> if it fails
> try
> localhost:8080/inmemory/atom
>
> now it connects so,
> now connect to repo id:A1.
> then the path of folder relative to repo can be determined.
>
>
> On Mon, Jun 24, 2013 at 6:38 PM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Hello Juergen,
>> I feel more than the authentication thing right now, its important to
>> break the url into parts like:
>> hostname, portname, ,repositoryid, path on repository from
>> the given url. This is hard because, there seems to be no standard or it.
>> https://chemistry.apache.org/java/developing/dev-url.html
>>
>> this page has a standard for atompub urls.
>> But, the since the servletpath can be also seperated by '/' it is
>> difficult to break the url into the above mentioned items.
>> So, I propose something like that we define that these items must be
>> separated by # in the url.
>> for example:
>> now the url is written as:
>> cmis://localhost:8080/inmemory/atom/A1/My_Folder-0-0
>>
>> here, the server address is: http://localhost:8080/inmemory/atom
>> Repo id: A1
>> Path of folder on repo: /My_Folder-0-0
>>
>> So we could define a way to do it this way:
>> cmis://localhost:8080/inmemory/atom/#A1/#My_Folder-0-0
>>
>> IS that possible?
>>
>>
>> On Mon, Jun 24, 2013 at 4:39 PM, Jürgen Schmidt wrote:
>>
>>> On 6/24/13 11:29 AM, Rajath Shashidhara wrote:
>>> > Hello,
>>> >
>>> > Can i follow the uri format mentioned on this page:
>>> > https://camel.apache.org/cmis.html
>>>
>>> in general yes, but I would say the configuration of the CMIS stores
>>> should be http/https. Internally you will replace http/https with "cmis"
>>> and will use the CMIS Url only.
>>>
>>> I think it is important to differentiate between http and https
>>> connections. If you have better ideas please let us know and discuss.
>>>
>>> The next step will be to define a configuration scheme to manage 1-n
>>> cmis stores.
>>>
>>> User credentials can be stored in the internal password container that
>>> can handle Urls and related user/password combinations.
>>>
>>> I will search some related info for you ...
>>>
>>> Juergen
>>>
>>>
>>>
>>>
>>>
>>> >
>>> >
>>> >
>>> > On Mon, Jun 24, 2013 at 2:53 PM, Rajath Shashidhara <
>>> > rajaths.raja...@gmail.com> wrote:
>>> >
>>> >> Hello,
>>> >>
>>> >> As of now I'm by default connected to my inmemory repository and my
>>> path
>>> >> supplied to ucp is relative to the root of that repository.
>>> >> But, as my task requires I need to develop a way to break any given
>>> url
>>> >> into the repository url, repository id, port, and the relative path of
>>> >> object with respective to the root of this repository. This requires
>>> are
>>> >> decoding mechanism.
>>> >>
>>> >> Is there a standard way of encoding a CMIS Url so that I can decode it
>>> >> into the respective components?
>>> >> I want to do this before continuing on implementing other commands.
>>> >>
>>> >> --
>>> >> 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
>>
>
>
>
> --
> 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: CMISUrl

2013-06-24 Thread Rajath Shashidhara
Hello Juergen,
We could also do this by trial and error,
for example try to connect to:
localhost:8080
if it fails
try
localhost:8080/inmemory
if it fails
try
localhost:8080/inmemory/atom

now it connects so,
now connect to repo id:A1.
then the path of folder relative to repo can be determined.


On Mon, Jun 24, 2013 at 6:38 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Juergen,
> I feel more than the authentication thing right now, its important to
> break the url into parts like:
> hostname, portname, ,repositoryid, path on repository from
> the given url. This is hard because, there seems to be no standard or it.
> https://chemistry.apache.org/java/developing/dev-url.html
>
> this page has a standard for atompub urls.
> But, the since the servletpath can be also seperated by '/' it is
> difficult to break the url into the above mentioned items.
> So, I propose something like that we define that these items must be
> separated by # in the url.
> for example:
> now the url is written as:
> cmis://localhost:8080/inmemory/atom/A1/My_Folder-0-0
>
> here, the server address is: http://localhost:8080/inmemory/atom
> Repo id: A1
> Path of folder on repo: /My_Folder-0-0
>
> So we could define a way to do it this way:
> cmis://localhost:8080/inmemory/atom/#A1/#My_Folder-0-0
>
> IS that possible?
>
>
> On Mon, Jun 24, 2013 at 4:39 PM, Jürgen Schmidt wrote:
>
>> On 6/24/13 11:29 AM, Rajath Shashidhara wrote:
>> > Hello,
>> >
>> > Can i follow the uri format mentioned on this page:
>> > https://camel.apache.org/cmis.html
>>
>> in general yes, but I would say the configuration of the CMIS stores
>> should be http/https. Internally you will replace http/https with "cmis"
>> and will use the CMIS Url only.
>>
>> I think it is important to differentiate between http and https
>> connections. If you have better ideas please let us know and discuss.
>>
>> The next step will be to define a configuration scheme to manage 1-n
>> cmis stores.
>>
>> User credentials can be stored in the internal password container that
>> can handle Urls and related user/password combinations.
>>
>> I will search some related info for you ...
>>
>> Juergen
>>
>>
>>
>>
>>
>> >
>> >
>> >
>> > On Mon, Jun 24, 2013 at 2:53 PM, Rajath Shashidhara <
>> > rajaths.raja...@gmail.com> wrote:
>> >
>> >> Hello,
>> >>
>> >> As of now I'm by default connected to my inmemory repository and my
>> path
>> >> supplied to ucp is relative to the root of that repository.
>> >> But, as my task requires I need to develop a way to break any given url
>> >> into the repository url, repository id, port, and the relative path of
>> >> object with respective to the root of this repository. This requires
>> are
>> >> decoding mechanism.
>> >>
>> >> Is there a standard way of encoding a CMIS Url so that I can decode it
>> >> into the respective components?
>> >> I want to do this before continuing on implementing other commands.
>> >>
>> >> --
>> >> 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
>



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


Re: CMISUrl

2013-06-24 Thread Rajath Shashidhara
Hello Juergen,
I feel more than the authentication thing right now, its important to break
the url into parts like:
hostname, portname, ,repositoryid, path on repository from
the given url. This is hard because, there seems to be no standard or it.
https://chemistry.apache.org/java/developing/dev-url.html

this page has a standard for atompub urls.
But, the since the servletpath can be also seperated by '/' it is difficult
to break the url into the above mentioned items.
So, I propose something like that we define that these items must be
separated by # in the url.
for example:
now the url is written as:
cmis://localhost:8080/inmemory/atom/A1/My_Folder-0-0

here, the server address is: http://localhost:8080/inmemory/atom
Repo id: A1
Path of folder on repo: /My_Folder-0-0

So we could define a way to do it this way:
cmis://localhost:8080/inmemory/atom/#A1/#My_Folder-0-0

IS that possible?


On Mon, Jun 24, 2013 at 4:39 PM, Jürgen Schmidt wrote:

> On 6/24/13 11:29 AM, Rajath Shashidhara wrote:
> > Hello,
> >
> > Can i follow the uri format mentioned on this page:
> > https://camel.apache.org/cmis.html
>
> in general yes, but I would say the configuration of the CMIS stores
> should be http/https. Internally you will replace http/https with "cmis"
> and will use the CMIS Url only.
>
> I think it is important to differentiate between http and https
> connections. If you have better ideas please let us know and discuss.
>
> The next step will be to define a configuration scheme to manage 1-n
> cmis stores.
>
> User credentials can be stored in the internal password container that
> can handle Urls and related user/password combinations.
>
> I will search some related info for you ...
>
> Juergen
>
>
>
>
>
> >
> >
> >
> > On Mon, Jun 24, 2013 at 2:53 PM, Rajath Shashidhara <
> > rajaths.raja...@gmail.com> wrote:
> >
> >> Hello,
> >>
> >> As of now I'm by default connected to my inmemory repository and my path
> >> supplied to ucp is relative to the root of that repository.
> >> But, as my task requires I need to develop a way to break any given url
> >> into the repository url, repository id, port, and the relative path of
> >> object with respective to the root of this repository. This requires are
> >> decoding mechanism.
> >>
> >> Is there a standard way of encoding a CMIS Url so that I can decode it
> >> into the respective components?
> >> I want to do this before continuing on implementing other commands.
> >>
> >> --
> >> 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: CMISUrl

2013-06-24 Thread Rajath Shashidhara
Hello,

Can i follow the uri format mentioned on this page:
https://camel.apache.org/cmis.html



On Mon, Jun 24, 2013 at 2:53 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
>
> As of now I'm by default connected to my inmemory repository and my path
> supplied to ucp is relative to the root of that repository.
> But, as my task requires I need to develop a way to break any given url
> into the repository url, repository id, port, and the relative path of
> object with respective to the root of this repository. This requires are
> decoding mechanism.
>
> Is there a standard way of encoding a CMIS Url so that I can decode it
> into the respective components?
> I want to do this before continuing on implementing other commands.
>
> --
> 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


CMISUrl

2013-06-24 Thread Rajath Shashidhara
Hello,

As of now I'm by default connected to my inmemory repository and my path
supplied to ucp is relative to the root of that repository.
But, as my task requires I need to develop a way to break any given url
into the repository url, repository id, port, and the relative path of
object with respective to the root of this repository. This requires are
decoding mechanism.

Is there a standard way of encoding a CMIS Url so that I can decode it into
the respective components?
I want to do this before continuing on implementing other commands.

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


PropertyChangeListeners

2013-06-22 Thread Rajath Shashidhara
Hello,

I have now completed the implementation of "insert" command.
I was thinking about the propertychangelisteners.

Is it good to store all the properties locally and each time
getPropertyValues is called update all the properties and return only the
requested properties. This way propertyvhangelistenters can be notified at
each getPropertyValues call.

Also,

Unsure about the "update" ucb command?
How does it work in terms of ucb. Because the xcontent example is related
to a mailbox. In this case, we dont keep a local copy to update it. (Not
seen this in any existing ucp).

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


Re: "Insert" command

2013-06-22 Thread Rajath Shashidhara
Hello,

I'm unable to access opengrok.

"Insert" command when title is not set in webdav ucp:
OSL_ENSURE( sal_False, "Content::insert - Title missing!" );

What is this error?
Or what is the equivalent java error to throw?


On Fri, Jun 21, 2013 at 1:39 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Juergen,
>
> the decription of "insert" some what makes it clear:
>
> This command inserts a new content. It commits the process of
>  // creating a new content via executing the command "createNewContent"
>  // and initializing it via setting properties, afterwards.
>  // The command is not called on the content which created the new
>  // content, because the new object already knows where it is to be
>  // inserted (i.e. Calling createNewContent with the content type for a
>  // message on a News Group creates a content which internally belongs
>  // to the Outbox. Calling "insert" on that message will result in
>  // posting the article to the appropriate News Group). Not calling
>  // "insert" for the new content, i.e. because the user cancels writing
>  // a new message, simply discards the new object. No extra call to
>  // "delete" is necessary.
>
> But what is not clear is suppose there were more than one call to 
> createNewContent. and only one call to insert.
>
> whether all the created content must be committed or only a particular 
> content must be committed. how to decide that?/?
>
>
>
>
> On Fri, Jun 21, 2013 at 1:35 PM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Hello Juergen,
>>
>> If I have to create new content, where do I obtain the properties of the
>> content. InsertCommandArgument2 has no attribute to store the content
>> Properties.
>>
>> For example to insert a folder - what is its "Title" ?
>>
>>
>> On Fri, Jun 21, 2013 at 12:49 PM, Jürgen Schmidt 
>> wrote:
>>
>>> On 6/21/13 9:16 AM, Jürgen Schmidt wrote:
>>> > On 6/21/13 9:09 AM, Rajath Shashidhara wrote:
>>> >> Hello Juergen,
>>> >>
>>> >> I mean if "getPropertyValues" is requested for non-existing content
>>> what is
>>> >> the exception that must be thrown?
>>> >
>>> > I have to check the code of another UCP to say it exactly, I can't
>>> > remember for sure...
>>>
>>> first guess InteractiveIOException but as mentioned before I have to
>>> check the code ...
>>>
>>> >
>>> > But the UCP handles or communicate errors via exceptions, don't ask me
>>> > why. Have you checked the exceptions and error codes (enums) on
>>> >
>>> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/module-ix.html
>>> ?
>>> >
>>> > Juergen
>>> >
>>> >
>>> >>
>>> >>
>>> >> On Fri, Jun 21, 2013 at 12:09 PM, Jürgen Schmidt <
>>> jogischm...@gmail.com>wrote:
>>> >>
>>> >>> On 6/21/13 8:05 AM, Rajath Shashidhara wrote:
>>> >>>> Hello,
>>> >>>>
>>> >>>> The explanation for "insert" command is not clear to me.
>>> >>>>
>>> >>>> If I call "insert" for a document, then I'll have to set the
>>> InputStream
>>> >>> to
>>> >>>> to existing document. What happens If I call "insert" for a folder?
>>> >>>
>>> >>> you create a folder
>>> >>>
>>> >>>>
>>> >>>> Also, if the object specified by path doesnt exist on the
>>> repository,
>>> >>> what
>>> >>>> kind of error should be raised? I mean the XContentIdentifer points
>>> to a
>>> >>>> location that doesnt exist, what kind of exception must be thrown?
>>> >>>
>>> >>> you should create it and only in case of an error you handle the
>>> error
>>> >>> appropriately and return back to the UCB.
>>> >>>
>>> >>> In general you can open, edit and save document and folders, can
>>> create
>>> >>> new document and can delete document, rename document/folder, basic
>>> file
>>> >>> operations and all should be supported.
>>> >>>
>>> >>> Juergen
>>> >>>
>>> >>>
>>> >>> -
>>> >>> 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
>>
>
>
>
> --
> 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


Converting XInputStream to java.io.InputStream

2013-06-21 Thread Rajath Shashidhara
Hello,

I wanted to convert an XInputStream into java.io.InputStream.
I found this on the mail archive.
http://markmail.org/message/fo2txhbgxu3ksnct

This is a very old mail.
So, just asking if such a conversion api has been defined now.
What is the best way to do this conversion?


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


Re: "Insert" command

2013-06-21 Thread Rajath Shashidhara
Hello Juergen,

the decription of "insert" some what makes it clear:

This command inserts a new content. It commits the process of
 // creating a new content via executing the command "createNewContent"
 // and initializing it via setting properties, afterwards.
 // The command is not called on the content which created the new
 // content, because the new object already knows where it is to be
 // inserted (i.e. Calling createNewContent with the content type for a
 // message on a News Group creates a content which internally belongs
 // to the Outbox. Calling "insert" on that message will result in
 // posting the article to the appropriate News Group). Not calling
 // "insert" for the new content, i.e. because the user cancels writing
 // a new message, simply discards the new object. No extra call to
 // "delete" is necessary.

But what is not clear is suppose there were more than one call to
createNewContent. and only one call to insert.

whether all the created content must be committed or only a particular
content must be committed. how to decide that?/?




On Fri, Jun 21, 2013 at 1:35 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Juergen,
>
> If I have to create new content, where do I obtain the properties of the
> content. InsertCommandArgument2 has no attribute to store the content
> Properties.
>
> For example to insert a folder - what is its "Title" ?
>
>
> On Fri, Jun 21, 2013 at 12:49 PM, Jürgen Schmidt wrote:
>
>> On 6/21/13 9:16 AM, Jürgen Schmidt wrote:
>> > On 6/21/13 9:09 AM, Rajath Shashidhara wrote:
>> >> Hello Juergen,
>> >>
>> >> I mean if "getPropertyValues" is requested for non-existing content
>> what is
>> >> the exception that must be thrown?
>> >
>> > I have to check the code of another UCP to say it exactly, I can't
>> > remember for sure...
>>
>> first guess InteractiveIOException but as mentioned before I have to
>> check the code ...
>>
>> >
>> > But the UCP handles or communicate errors via exceptions, don't ask me
>> > why. Have you checked the exceptions and error codes (enums) on
>> >
>> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/module-ix.html
>> ?
>> >
>> > Juergen
>> >
>> >
>> >>
>> >>
>> >> On Fri, Jun 21, 2013 at 12:09 PM, Jürgen Schmidt <
>> jogischm...@gmail.com>wrote:
>> >>
>> >>> On 6/21/13 8:05 AM, Rajath Shashidhara wrote:
>> >>>> Hello,
>> >>>>
>> >>>> The explanation for "insert" command is not clear to me.
>> >>>>
>> >>>> If I call "insert" for a document, then I'll have to set the
>> InputStream
>> >>> to
>> >>>> to existing document. What happens If I call "insert" for a folder?
>> >>>
>> >>> you create a folder
>> >>>
>> >>>>
>> >>>> Also, if the object specified by path doesnt exist on the repository,
>> >>> what
>> >>>> kind of error should be raised? I mean the XContentIdentifer points
>> to a
>> >>>> location that doesnt exist, what kind of exception must be thrown?
>> >>>
>> >>> you should create it and only in case of an error you handle the error
>> >>> appropriately and return back to the UCB.
>> >>>
>> >>> In general you can open, edit and save document and folders, can
>> create
>> >>> new document and can delete document, rename document/folder, basic
>> file
>> >>> operations and all should be supported.
>> >>>
>> >>> Juergen
>> >>>
>> >>>
>> >>> -
>> >>> 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
>



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


Re: "Insert" command

2013-06-21 Thread Rajath Shashidhara
Hello Juergen,

If I have to create new content, where do I obtain the properties of the
content. InsertCommandArgument2 has no attribute to store the content
Properties.

For example to insert a folder - what is its "Title" ?


On Fri, Jun 21, 2013 at 12:49 PM, Jürgen Schmidt wrote:

> On 6/21/13 9:16 AM, Jürgen Schmidt wrote:
> > On 6/21/13 9:09 AM, Rajath Shashidhara wrote:
> >> Hello Juergen,
> >>
> >> I mean if "getPropertyValues" is requested for non-existing content
> what is
> >> the exception that must be thrown?
> >
> > I have to check the code of another UCP to say it exactly, I can't
> > remember for sure...
>
> first guess InteractiveIOException but as mentioned before I have to
> check the code ...
>
> >
> > But the UCP handles or communicate errors via exceptions, don't ask me
> > why. Have you checked the exceptions and error codes (enums) on
> >
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/module-ix.html
> ?
> >
> > Juergen
> >
> >
> >>
> >>
> >> On Fri, Jun 21, 2013 at 12:09 PM, Jürgen Schmidt  >wrote:
> >>
> >>> On 6/21/13 8:05 AM, Rajath Shashidhara wrote:
> >>>> Hello,
> >>>>
> >>>> The explanation for "insert" command is not clear to me.
> >>>>
> >>>> If I call "insert" for a document, then I'll have to set the
> InputStream
> >>> to
> >>>> to existing document. What happens If I call "insert" for a folder?
> >>>
> >>> you create a folder
> >>>
> >>>>
> >>>> Also, if the object specified by path doesnt exist on the repository,
> >>> what
> >>>> kind of error should be raised? I mean the XContentIdentifer points
> to a
> >>>> location that doesnt exist, what kind of exception must be thrown?
> >>>
> >>> you should create it and only in case of an error you handle the error
> >>> appropriately and return back to the UCB.
> >>>
> >>> In general you can open, edit and save document and folders, can create
> >>> new document and can delete document, rename document/folder, basic
> file
> >>> operations and all should be supported.
> >>>
> >>> Juergen
> >>>
> >>>
> >>> -
> >>> 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: "Insert" command

2013-06-21 Thread Rajath Shashidhara
Hello Juergen,

I mean if "getPropertyValues" is requested for non-existing content what is
the exception that must be thrown?


On Fri, Jun 21, 2013 at 12:09 PM, Jürgen Schmidt wrote:

> On 6/21/13 8:05 AM, Rajath Shashidhara wrote:
> > Hello,
> >
> > The explanation for "insert" command is not clear to me.
> >
> > If I call "insert" for a document, then I'll have to set the InputStream
> to
> > to existing document. What happens If I call "insert" for a folder?
>
> you create a folder
>
> >
> > Also, if the object specified by path doesnt exist on the repository,
> what
> > kind of error should be raised? I mean the XContentIdentifer points to a
> > location that doesnt exist, what kind of exception must be thrown?
>
> you should create it and only in case of an error you handle the error
> appropriately and return back to the UCB.
>
> In general you can open, edit and save document and folders, can create
> new document and can delete document, rename document/folder, basic file
> operations and all should be supported.
>
> 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


"Insert" command

2013-06-20 Thread Rajath Shashidhara
Hello,

The explanation for "insert" command is not clear to me.

If I call "insert" for a document, then I'll have to set the InputStream to
to existing document. What happens If I call "insert" for a folder?

Also, if the object specified by path doesnt exist on the repository, what
kind of error should be raised? I mean the XContentIdentifer points to a
location that doesnt exist, what kind of exception must be thrown?


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


Re: OpenCommandArgument2 Data Sink

2013-06-20 Thread Rajath Shashidhara
Hello Juergen,
I have updated the code of XInputStream and not pushed it to the repo.
I'll do it now. You can get a better idea now.


On Thu, Jun 20, 2013 at 2:27 PM, Jürgen Schmidt wrote:

> On 6/20/13 10:26 AM, Rajath Shashidhara wrote:
> > Can I use this?
> >
> http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/IOUtils.html
>
> in principal yes, just try if it fulfill your needs.
>
> Juergen
>
> >
> >
> > On Thu, Jun 20, 2013 at 12:48 PM, Rajath Shashidhara <
> > rajaths.raja...@gmail.com> wrote:
> >
> >> Hello Ariel,
> >>
> >> in you code:
> >> copyStream() is to be implemented by me or is it there in any library?
> >>
> >>
> >> On Thu, Jun 20, 2013 at 9:25 AM, Rajath Shashidhara <
> >> rajaths.raja...@gmail.com> wrote:
> >>
> >>> Thanks ariel.
> >>> I have finished major part of this code. I only had doubt in that
> >>> queryInterface part.
> >>>
> >>>
> >>> On Thu, Jun 20, 2013 at 1:08 AM, Ariel Constenla-Haile <
> >>> arie...@apache.org> wrote:
> >>>
> >>>> Hi Rajath,
> >>>>
> >>>> On Wed, Jun 19, 2013 at 09:55:21PM +0530, Rajath Shashidhara wrote:
> >>>>> Hello,
> >>>>>
> >>>>> I'm working on the XActiveDataSink.
> >>>>> I'm slightly confused about how to handle OpenCommandArgument2.Sink .
> >>>>> The object is the one which is filled with the XActiveDataSink object
> >>>> for
> >>>>> which I have to set the InputStream by calling setInputStream() and
> >>>> pass
> >>>>> the XInputStream implementation.
> >>>>> This is what I have understood. But, the confusing thing is why  is
> the
> >>>>> datatype for Sink - Object? Shoudnt it be XActiveDataSink? I'm not
> >>>>> understanding how to handle this Sink.
> >>>>
> >>>> The OpenCommandArgument2.Sink can be of different kinds, that's why
> its
> >>>> type is defined in a generic way as css.uno.XInterface; this interface
> >>>> is the base interface of all other interfaces:
> >>>>
> >>>>
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/OpenCommandArgument.html#Sink
> >>>>
> >>>> css.uno.XInterface, in this case, is mapped in the Jave bridge to
> >>>> java.lang.Object:
> >>>>
> >>>>
> http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Mapping_of_Interface_Types
> >>>>
> >>>> You have to find out if the sink is
> >>>>
> >>>> a) com.sun.star.io.XOutputStream
> >>>> b) com.sun.star.io.XActiveDataSink
> >>>> c) com.sun.star.io.XActiveDataStreamer
> >>>>
> >>>> simply query the sink for each interface. Something like this:
> >>>>
> >>>>
> >>>> private Object open(
> >>>> com.sun.star.ucb.OpenCommandArgument2 aOpenCommand,
> >>>> com.sun.star.ucb.XCommandEnvironment xEnvironment)
> >>>> throws com.sun.star.uno.Exception {
> >>>> Object oRet = com.sun.star.uno.Any.VOID;
> >>>>
> >>>> int nOpenMode = aOpenCommand.Mode;
> >>>> if (nOpenMode == com.sun.star.ucb.OpenMode.ALL
> >>>> || nOpenMode == com.sun.star.ucb.OpenMode.DOCUMENTS
> >>>> || nOpenMode == com.sun.star.ucb.OpenMode.FOLDERS) {
> >>>> if (!isFolder(xEnvironment)) {
> >>>> throw new com.sun.star.lang.IllegalArgumentException(
> >>>> "The content is not a folder!");
> >>>> }
> >>>> com.sun.star.ucb.XDynamicResultSet xResultSet = new
> >>>> DynamicResultSet(
> >>>> m_xContext, this, aOpenCommand, xEnvironment);
> >>>> oRet = xResultSet;
> >>>> } else if (nOpenMode == com.sun.star.ucb.OpenMode.DOCUMENT) {
> >>>> Object aSink = aOpenCommand.Sink;
> >>>> if (aSink == null) {
> >>>> throw new com.sun.star.lang.IllegalArgumentException(
> >>>> "open command without sink!");
> >>>> }
> >>>> // the Sink can be
>

Re: OpenCommandArgument2 Data Sink

2013-06-20 Thread Rajath Shashidhara
Can I use this?
http://commons.apache.org/proper/commons-io/apidocs/org/apache/commons/io/IOUtils.html


On Thu, Jun 20, 2013 at 12:48 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Ariel,
>
> in you code:
> copyStream() is to be implemented by me or is it there in any library?
>
>
> On Thu, Jun 20, 2013 at 9:25 AM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Thanks ariel.
>> I have finished major part of this code. I only had doubt in that
>> queryInterface part.
>>
>>
>> On Thu, Jun 20, 2013 at 1:08 AM, Ariel Constenla-Haile <
>> arie...@apache.org> wrote:
>>
>>> Hi Rajath,
>>>
>>> On Wed, Jun 19, 2013 at 09:55:21PM +0530, Rajath Shashidhara wrote:
>>> > Hello,
>>> >
>>> > I'm working on the XActiveDataSink.
>>> > I'm slightly confused about how to handle OpenCommandArgument2.Sink .
>>> > The object is the one which is filled with the XActiveDataSink object
>>> for
>>> > which I have to set the InputStream by calling setInputStream() and
>>> pass
>>> > the XInputStream implementation.
>>> > This is what I have understood. But, the confusing thing is why  is the
>>> > datatype for Sink - Object? Shoudnt it be XActiveDataSink? I'm not
>>> > understanding how to handle this Sink.
>>>
>>> The OpenCommandArgument2.Sink can be of different kinds, that's why its
>>> type is defined in a generic way as css.uno.XInterface; this interface
>>> is the base interface of all other interfaces:
>>>
>>> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/OpenCommandArgument.html#Sink
>>>
>>> css.uno.XInterface, in this case, is mapped in the Jave bridge to
>>> java.lang.Object:
>>>
>>> http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Mapping_of_Interface_Types
>>>
>>> You have to find out if the sink is
>>>
>>> a) com.sun.star.io.XOutputStream
>>> b) com.sun.star.io.XActiveDataSink
>>> c) com.sun.star.io.XActiveDataStreamer
>>>
>>> simply query the sink for each interface. Something like this:
>>>
>>>
>>> private Object open(
>>> com.sun.star.ucb.OpenCommandArgument2 aOpenCommand,
>>> com.sun.star.ucb.XCommandEnvironment xEnvironment)
>>> throws com.sun.star.uno.Exception {
>>> Object oRet = com.sun.star.uno.Any.VOID;
>>>
>>> int nOpenMode = aOpenCommand.Mode;
>>> if (nOpenMode == com.sun.star.ucb.OpenMode.ALL
>>> || nOpenMode == com.sun.star.ucb.OpenMode.DOCUMENTS
>>> || nOpenMode == com.sun.star.ucb.OpenMode.FOLDERS) {
>>> if (!isFolder(xEnvironment)) {
>>> throw new com.sun.star.lang.IllegalArgumentException(
>>> "The content is not a folder!");
>>> }
>>> com.sun.star.ucb.XDynamicResultSet xResultSet = new
>>> DynamicResultSet(
>>> m_xContext, this, aOpenCommand, xEnvironment);
>>> oRet = xResultSet;
>>> } else if (nOpenMode == com.sun.star.ucb.OpenMode.DOCUMENT) {
>>> Object aSink = aOpenCommand.Sink;
>>> if (aSink == null) {
>>> throw new com.sun.star.lang.IllegalArgumentException(
>>> "open command without sink!");
>>> }
>>> // the Sink can be
>>> // a) com.sun.star.io.XOutputStream
>>> // b) com.sun.star.io.XActiveDataSink
>>> // c) com.sun.star.io.XActiveDataStreamer
>>> com.sun.star.io.XActiveDataStreamer xActiveDataStreamer =
>>> UnoRuntime.queryInterface(
>>> com.sun.star.io.XActiveDataStreamer.class, aSink);
>>> if (xActiveDataStreamer != null) {
>>> com.sun.star.io.XStream xStream =
>>> getContentStream(xEnvironment);
>>> xActiveDataStreamer.setStream(xStream);
>>> } else {
>>> com.sun.star.io.XOutputStream xOutputStream =
>>> UnoRuntime.queryInterface(
>>> com.sun.star.io.XOutputStream.class, aSink);
>>> if (xOutputStream != null) {
>>> com.sun.star.io.XInputStream xInputStream =
>>> getContentInputStream(xEnvironment);
>>> copyStream(xInputStream, xOutputStream);
>>> } else {

Re: OpenCommandArgument2 Data Sink

2013-06-20 Thread Rajath Shashidhara
Hello Ariel,

in you code:
copyStream() is to be implemented by me or is it there in any library?


On Thu, Jun 20, 2013 at 9:25 AM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Thanks ariel.
> I have finished major part of this code. I only had doubt in that
> queryInterface part.
>
>
> On Thu, Jun 20, 2013 at 1:08 AM, Ariel Constenla-Haile  > wrote:
>
>> Hi Rajath,
>>
>> On Wed, Jun 19, 2013 at 09:55:21PM +0530, Rajath Shashidhara wrote:
>> > Hello,
>> >
>> > I'm working on the XActiveDataSink.
>> > I'm slightly confused about how to handle OpenCommandArgument2.Sink .
>> > The object is the one which is filled with the XActiveDataSink object
>> for
>> > which I have to set the InputStream by calling setInputStream() and pass
>> > the XInputStream implementation.
>> > This is what I have understood. But, the confusing thing is why  is the
>> > datatype for Sink - Object? Shoudnt it be XActiveDataSink? I'm not
>> > understanding how to handle this Sink.
>>
>> The OpenCommandArgument2.Sink can be of different kinds, that's why its
>> type is defined in a generic way as css.uno.XInterface; this interface
>> is the base interface of all other interfaces:
>>
>> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/OpenCommandArgument.html#Sink
>>
>> css.uno.XInterface, in this case, is mapped in the Jave bridge to
>> java.lang.Object:
>>
>> http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Mapping_of_Interface_Types
>>
>> You have to find out if the sink is
>>
>> a) com.sun.star.io.XOutputStream
>> b) com.sun.star.io.XActiveDataSink
>> c) com.sun.star.io.XActiveDataStreamer
>>
>> simply query the sink for each interface. Something like this:
>>
>>
>> private Object open(
>> com.sun.star.ucb.OpenCommandArgument2 aOpenCommand,
>> com.sun.star.ucb.XCommandEnvironment xEnvironment)
>> throws com.sun.star.uno.Exception {
>> Object oRet = com.sun.star.uno.Any.VOID;
>>
>> int nOpenMode = aOpenCommand.Mode;
>> if (nOpenMode == com.sun.star.ucb.OpenMode.ALL
>> || nOpenMode == com.sun.star.ucb.OpenMode.DOCUMENTS
>> || nOpenMode == com.sun.star.ucb.OpenMode.FOLDERS) {
>> if (!isFolder(xEnvironment)) {
>> throw new com.sun.star.lang.IllegalArgumentException(
>> "The content is not a folder!");
>> }
>> com.sun.star.ucb.XDynamicResultSet xResultSet = new
>> DynamicResultSet(
>> m_xContext, this, aOpenCommand, xEnvironment);
>> oRet = xResultSet;
>> } else if (nOpenMode == com.sun.star.ucb.OpenMode.DOCUMENT) {
>> Object aSink = aOpenCommand.Sink;
>> if (aSink == null) {
>> throw new com.sun.star.lang.IllegalArgumentException(
>> "open command without sink!");
>> }
>> // the Sink can be
>> // a) com.sun.star.io.XOutputStream
>> // b) com.sun.star.io.XActiveDataSink
>> // c) com.sun.star.io.XActiveDataStreamer
>> com.sun.star.io.XActiveDataStreamer xActiveDataStreamer =
>> UnoRuntime.queryInterface(
>> com.sun.star.io.XActiveDataStreamer.class, aSink);
>> if (xActiveDataStreamer != null) {
>> com.sun.star.io.XStream xStream =
>> getContentStream(xEnvironment);
>> xActiveDataStreamer.setStream(xStream);
>> } else {
>> com.sun.star.io.XOutputStream xOutputStream =
>> UnoRuntime.queryInterface(
>> com.sun.star.io.XOutputStream.class, aSink);
>> if (xOutputStream != null) {
>> com.sun.star.io.XInputStream xInputStream =
>> getContentInputStream(xEnvironment);
>> copyStream(xInputStream, xOutputStream);
>> } else {
>> com.sun.star.io.XActiveDataSink xActiveDataSink =
>> UnoRuntime.queryInterface(
>> com.sun.star.io.XActiveDataSink.class, aSink);
>> if (xActiveDataSink == null) {
>> throw new com.sun.star.lang.IllegalArgumentException(
>> "open command's sink is neither
>> XActiveDataStreamer, XOutputStream nor XActiveDataSink!");
>> }
>> com.sun.star.io.XInputStream xInputStream =
>> getContentInputStream(xEnvironment);
>> xActiveDataSink.setInputStream(xInputStream);
>> }
>> }
>> } else if (nOpenMode ==
>> com.sun.star.ucb.OpenMode.DOCUMENT_SHARE_DENY_NONE ||
>> nOpenMode ==
>> com.sun.star.ucb.OpenMode.DOCUMENT_SHARE_DENY_WRITE){
>> throw new UnsupportedCommandException();
>> }
>> return oRet;
>> }
>>
>>
>>
>> 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: OpenCommandArgument2 Data Sink

2013-06-19 Thread Rajath Shashidhara
Thanks ariel.
I have finished major part of this code. I only had doubt in that
queryInterface part.


On Thu, Jun 20, 2013 at 1:08 AM, Ariel Constenla-Haile
wrote:

> Hi Rajath,
>
> On Wed, Jun 19, 2013 at 09:55:21PM +0530, Rajath Shashidhara wrote:
> > Hello,
> >
> > I'm working on the XActiveDataSink.
> > I'm slightly confused about how to handle OpenCommandArgument2.Sink .
> > The object is the one which is filled with the XActiveDataSink object for
> > which I have to set the InputStream by calling setInputStream() and pass
> > the XInputStream implementation.
> > This is what I have understood. But, the confusing thing is why  is the
> > datatype for Sink - Object? Shoudnt it be XActiveDataSink? I'm not
> > understanding how to handle this Sink.
>
> The OpenCommandArgument2.Sink can be of different kinds, that's why its
> type is defined in a generic way as css.uno.XInterface; this interface
> is the base interface of all other interfaces:
>
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/OpenCommandArgument.html#Sink
>
> css.uno.XInterface, in this case, is mapped in the Jave bridge to
> java.lang.Object:
>
> http://wiki.openoffice.org/wiki/Documentation/DevGuide/ProUNO/Java/Mapping_of_Interface_Types
>
> You have to find out if the sink is
>
> a) com.sun.star.io.XOutputStream
> b) com.sun.star.io.XActiveDataSink
> c) com.sun.star.io.XActiveDataStreamer
>
> simply query the sink for each interface. Something like this:
>
>
> private Object open(
> com.sun.star.ucb.OpenCommandArgument2 aOpenCommand,
> com.sun.star.ucb.XCommandEnvironment xEnvironment)
> throws com.sun.star.uno.Exception {
> Object oRet = com.sun.star.uno.Any.VOID;
>
> int nOpenMode = aOpenCommand.Mode;
> if (nOpenMode == com.sun.star.ucb.OpenMode.ALL
> || nOpenMode == com.sun.star.ucb.OpenMode.DOCUMENTS
> || nOpenMode == com.sun.star.ucb.OpenMode.FOLDERS) {
> if (!isFolder(xEnvironment)) {
> throw new com.sun.star.lang.IllegalArgumentException(
> "The content is not a folder!");
> }
> com.sun.star.ucb.XDynamicResultSet xResultSet = new
> DynamicResultSet(
> m_xContext, this, aOpenCommand, xEnvironment);
> oRet = xResultSet;
> } else if (nOpenMode == com.sun.star.ucb.OpenMode.DOCUMENT) {
> Object aSink = aOpenCommand.Sink;
> if (aSink == null) {
> throw new com.sun.star.lang.IllegalArgumentException(
> "open command without sink!");
> }
> // the Sink can be
> // a) com.sun.star.io.XOutputStream
> // b) com.sun.star.io.XActiveDataSink
> // c) com.sun.star.io.XActiveDataStreamer
> com.sun.star.io.XActiveDataStreamer xActiveDataStreamer =
> UnoRuntime.queryInterface(
> com.sun.star.io.XActiveDataStreamer.class, aSink);
> if (xActiveDataStreamer != null) {
> com.sun.star.io.XStream xStream =
> getContentStream(xEnvironment);
> xActiveDataStreamer.setStream(xStream);
> } else {
> com.sun.star.io.XOutputStream xOutputStream =
> UnoRuntime.queryInterface(
> com.sun.star.io.XOutputStream.class, aSink);
> if (xOutputStream != null) {
> com.sun.star.io.XInputStream xInputStream =
> getContentInputStream(xEnvironment);
> copyStream(xInputStream, xOutputStream);
> } else {
> com.sun.star.io.XActiveDataSink xActiveDataSink =
> UnoRuntime.queryInterface(
> com.sun.star.io.XActiveDataSink.class, aSink);
> if (xActiveDataSink == null) {
> throw new com.sun.star.lang.IllegalArgumentException(
> "open command's sink is neither
> XActiveDataStreamer, XOutputStream nor XActiveDataSink!");
> }
> com.sun.star.io.XInputStream xInputStream =
> getContentInputStream(xEnvironment);
> xActiveDataSink.setInputStream(xInputStream);
> }
> }
> } else if (nOpenMode ==
> com.sun.star.ucb.OpenMode.DOCUMENT_SHARE_DENY_NONE ||
> nOpenMode ==
> com.sun.star.ucb.OpenMode.DOCUMENT_SHARE_DENY_WRITE){
> throw new UnsupportedCommandException();
> }
> return oRet;
> }
>
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>



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


Re: OpenCommandArgument2 Data Sink

2013-06-19 Thread Rajath Shashidhara
Hello,
with reference to my previous mail.

>From webdav ucp, this is the statement I'm not understanding:
uno::Reference< io::XActiveDataSink > xSink( rArg.Sink, uno::UNO_QUERY );

Where is this constructor coming from?


On Wed, Jun 19, 2013 at 9:55 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
>
> I'm working on the XActiveDataSink.
> I'm slightly confused about how to handle OpenCommandArgument2.Sink .
> The object is the one which is filled with the XActiveDataSink object for
> which I have to set the InputStream by calling setInputStream() and pass
> the XInputStream implementation.
> This is what I have understood. But, the confusing thing is why  is the
> datatype for Sink - Object? Shoudnt it be XActiveDataSink? I'm not
> understanding how to handle this Sink.
>
> --
> 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


OpenCommandArgument2 Data Sink

2013-06-19 Thread Rajath Shashidhara
Hello,

I'm working on the XActiveDataSink.
I'm slightly confused about how to handle OpenCommandArgument2.Sink .
The object is the one which is filled with the XActiveDataSink object for
which I have to set the InputStream by calling setInputStream() and pass
the XInputStream implementation.
This is what I have understood. But, the confusing thing is why  is the
datatype for Sink - Object? Shoudnt it be XActiveDataSink? I'm not
understanding how to handle this Sink.

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


Re: XInputStream

2013-06-18 Thread Rajath Shashidhara
Hello,

Also in the file XInputStream implementation,
readSomeBytes() implementation just calls readBytes() method.
Code:

sal_Int32 SAL_CALL
XInputStream_impl::readSomeBytes(
uno::Sequence< sal_Int8 >& aData,
sal_Int32 nMaxBytesToRead )
throw( io::NotConnectedException,
   io::BufferSizeExceededException,
   io::IOException,
   uno::RuntimeException)
{
return readBytes( aData,nMaxBytesToRead );
}


But this behaviour is not like the one described in
http://www.openoffice.org/api/docs/common/ref/com/sun/star/io/XInputStream.html#readBytes
.

Should I also do the same?



On Tue, Jun 18, 2013 at 7:50 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
>
> The methods readBytes and readSomeBytes have an argument Byte[][] .
>
> But shouldn't it be Byte[] ? because java.io.InputStream reads to a byte[]?
> What is the point of having a byte [][]?
>
> This example also suggests this:
> http://forum.openoffice.org/en/forum/viewtopic.php?t=3801
>
> They copy the ans to buffer[0] in buffer[][].
>
> --
> 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


XInputStream

2013-06-18 Thread Rajath Shashidhara
Hello,

The methods readBytes and readSomeBytes have an argument Byte[][] .

But shouldn't it be Byte[] ? because java.io.InputStream reads to a byte[]?
What is the point of having a byte [][]?

This example also suggests this:
http://forum.openoffice.org/en/forum/viewtopic.php?t=3801

They copy the ans to buffer[0] in buffer[][].

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


DataSink Object

2013-06-18 Thread Rajath Shashidhara
Hello,
http://www.openoffice.org/ucb/docs/ucb-api-usage.html#GetDataStream
There are two types of datasinks:
1. XActiveDataSink
2. XOutputStream

Which one to use in my ucp? the active one or the passive one?
or implement both like file ucp?
code from file ucp:
Reference< io::XOutputStream > outputStream(
aCommandArgument.Sink,UNO_QUERY );
if( outputStream.is() )
{
m_pMyShell->page( nMyCommandIdentifier,
  m_aUncPath,
  outputStream );
}

sal_Bool bLock = ( aCommandArgument.Mode !=
OpenMode::DOCUMENT_SHARE_DENY_NONE );

Reference< io::XActiveDataSink > activeDataSink(
aCommandArgument.Sink,UNO_QUERY );
if( activeDataSink.is() )
{
activeDataSink->setInputStream( m_pMyShell->open(
nMyCommandIdentifier,

m_aUncPath,
  bLock ) );
}

Reference< io::XActiveDataStreamer > activeDataStreamer(
aCommandArgument.Sink,UNO_QUERY );
if( activeDataStreamer.is() )
{
activeDataStreamer->setStream( m_pMyShell->open_rw(
nMyCommandIdentifier,

m_aUncPath,
bLock )
);
}

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


Review of my code

2013-06-18 Thread Rajath Shashidhara
Hello,

The coding phase of GSoC started on 17th.
So It would be nice if I get a review of the code written till today.
git Repository of my code:
https://github.com/rajaths589/CMISContentProvider.git
git Repository of my test client code:
https://github.com/rajaths589/CMISContentProviderTest.git

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


XRowUpdate interface in service ResultSet

2013-06-17 Thread Rajath Shashidhara
Hello,

I have a few questions here:

XRowUpdate has a few methods like update(int columnindex, 
variable).

This is similar to "setPropertyValues" command. Should these command be
linked to the execute() - "setPropertyValues" command?
Or should this even be implemented?

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


Re: MIMEType of folder

2013-06-16 Thread Rajath Shashidhara
Hello Ariel,

I'm debugging the client application using breakpoints and step-by-step
execution.
I'm using Log statements in the UNO component.

Is there a way to use stpe-by-step executions for the UNO Component as well?


On Mon, Jun 17, 2013 at 1:28 AM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Ariel,
>
> I'm debugging with the help of Log Statements.
> Is there any other way?
>
>
> On Mon, Jun 17, 2013 at 12:09 AM, Ariel Constenla-Haile <
> arie...@apache.org> wrote:
>
>> On Sun, Jun 16, 2013 at 11:10:56PM +0530, Rajath Shashidhara wrote:
>> > Hello,
>> >
>> > I created a new UNO project with some modified code and renamed it to
>> > CMISContentProvider and deleted my old project. I created the .oxt for
>> new
>> > project and installed it in the extension manager. But, the error stack
>> > trace printed by my test client application still points to my previous
>> > CMISContentProvider. My stack trace shows error from
>> connectToRepository()
>> > which is not there any more in my new project.
>> >
>> > How do I resolve this?
>>
>> I don't understand what you've done, but it looks like you have the two
>> versions installed at the same time; the obvious: did you restart the
>> application completely? If restarting does not work, remove the user
>> profile with all the extensions.
>>
>> By the way, how are you debugging all this? You should debug both the
>> client application and the UNO component, at the same time.
>>
>>
>> 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: MIMEType of folder

2013-06-16 Thread Rajath Shashidhara
Hello Ariel,

I'm debugging with the help of Log Statements.
Is there any other way?


On Mon, Jun 17, 2013 at 12:09 AM, Ariel Constenla-Haile
wrote:

> On Sun, Jun 16, 2013 at 11:10:56PM +0530, Rajath Shashidhara wrote:
> > Hello,
> >
> > I created a new UNO project with some modified code and renamed it to
> > CMISContentProvider and deleted my old project. I created the .oxt for
> new
> > project and installed it in the extension manager. But, the error stack
> > trace printed by my test client application still points to my previous
> > CMISContentProvider. My stack trace shows error from
> connectToRepository()
> > which is not there any more in my new project.
> >
> > How do I resolve this?
>
> I don't understand what you've done, but it looks like you have the two
> versions installed at the same time; the obvious: did you restart the
> application completely? If restarting does not work, remove the user
> profile with all the extensions.
>
> By the way, how are you debugging all this? You should debug both the
> client application and the UNO component, at the same time.
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>



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


Re: MIMEType of folder

2013-06-16 Thread Rajath Shashidhara
Hello,

I created a new UNO project with some modified code and renamed it to
CMISContentProvider and deleted my old project. I created the .oxt for new
project and installed it in the extension manager. But, the error stack
trace printed by my test client application still points to my previous
CMISContentProvider. My stack trace shows error from connectToRepository()
which is not there any more in my new project.

How do I resolve this?


Re: MIMEType of folder

2013-06-16 Thread Rajath Shashidhara
Hello,
description of getContentType():
returns a type string, which is unique for that type of content (e.g.
"application/vnd.sun.star.hierarchy-folder").

is a folder's unique content type application/vnd.sun.star.hierarchy-folder?


On Sun, Jun 16, 2013 at 1:07 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
>
> When requested for MIMEType/ContentType for a folder, what should be the
> result?
>
>
> --
> 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


MIMEType of folder

2013-06-16 Thread Rajath Shashidhara
Hello,

When requested for MIMEType/ContentType for a folder, what should be the
result?


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


Re: service ResultSet

2013-06-14 Thread Rajath Shashidhara
Hello Ariel,

Can you help me with the OpenOffice Logger.
Where can I open the Log?
I'm using Logger log = Logger.getAnonymousLogger();
log.log(Level.XXX,"XXX");

Where can I check the access the log?



On Fri, Jun 14, 2013 at 11:47 AM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Ariel,
>
> I went through the XContent implementation in webdav ucp. I think my code
> is very similar to it when the structure is considered. But, I'm facing
> problem when I'm writing the client application to test it. The problem is
> that, the dyanmicresultset returns an static resultset which is an object
> of my CMISResutset service implementation. Now, In my client I'm storing
> that in a XResultSet object. But, I'm unable to access the methods like
> getString(index) from that object. But, these methods are defined in my
> CMISResultSet.
>
> How do i resolve this syntax error?
>
>
> On Fri, Jun 14, 2013 at 12:00 AM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Hello Ariel,
>>
>> for making the ucp return the same single component factory object, shall
>> I create a static single component factory object and return it if it is
>> not null and create a new one if it is null? By this way we can return the
>> same single component factory object.
>>
>>
>> Although, one thing I have not understood is what is the consequences of
>> returning different single component factory objects?
>>
>>
>> Thanks for ur support.
>>
>>
>> On Thu, Jun 13, 2013 at 2:03 PM, Rajath Shashidhara <
>> rajaths.raja...@gmail.com> wrote:
>>
>>> Hello Ariel,
>>>
>>>
>>>
>>> On Thu, Jun 13, 2013 at 1:22 PM, Ariel Constenla-Haile <
>>> arie...@apache.org> wrote:
>>>
>>>> On Thu, Jun 13, 2013 at 11:01:50AM +0530, Rajath Shashidhara wrote:
>>>> > Hello Ariel,
>>>> >
>>>> > I changed:
>>>> >
>>>> registration.classname=org.apache.aoo.ucp.cmisucp.ucp.CMISContentProvider
>>>> >
>>>> central.registration.class=org.apache.aoo.ucp.cmisucp.ucp.CentralRegistrationClass
>>>> >
>>>> >
>>>> > I created the .oxt. Reinstalled. Still have the same problem.!
>>>>
>>>> Are you getting the error when installing, or you can install it but it
>>>> does not work?
>>>>
>>>> If the later, you also need to change the implementation name in the
>>>> configuration file to reflect the changes in the package name, as long
>>>> as
>>>>
>>>> private static final String m_implementationName =
>>>> CMISContentProvider.class.getName();
>>>>
>>>> the implementation name of your component is bound to the package name
>>>> of the class implementing it.
>>>>
>>>>
>>>>
>>>
>>> I clean built the project. Now the problem is solved. The problem was
>>> that the project-uno.properties was not being compiled after changes. After
>>> a clean, the changes were compiled.
>>>
>>>
>>>> > Also, I did not understand what you mean by component factory
>>>> > implementation. I have not implemented any component factory! Please
>>>> > clarify.
>>>>
>>>> In CMISContentProvider you have
>>>>
>>>>
>>>> public static XSingleComponentFactory __getComponentFactory( String
>>>> sImplementationName ) {
>>>> XSingleComponentFactory xFactory = null;
>>>>
>>>> if ( sImplementationName.equals( m_implementationName ) )
>>>> xFactory =
>>>> Factory.createComponentFactory(CMISContentProvider.class, m_serviceNames);
>>>> return xFactory;
>>>> }
>>>>
>>>> com.sun.star.lib.uno.helper.Factory is
>>>> main/javaunohelper/com/sun/star/lib/uno/helper/Factory.java
>>>>
>>>> It is a factory helper to create instances of your component (set
>>>> a break point there and in
>>>> CentralRegistrationClass.__getComponentFactory() to see how things work
>>>> when your component is instantiated).
>>>>
>>>> The problem is that this factory helper creates a new instance of your
>>>> component every time; it should create only one instance and return it
>>>> on later calls, mainly because you need to cache UCB contents. Try with
>>>> the following Basic code:
&g

Re: service ResultSet

2013-06-13 Thread Rajath Shashidhara
Hello Ariel,

I went through the XContent implementation in webdav ucp. I think my code
is very similar to it when the structure is considered. But, I'm facing
problem when I'm writing the client application to test it. The problem is
that, the dyanmicresultset returns an static resultset which is an object
of my CMISResutset service implementation. Now, In my client I'm storing
that in a XResultSet object. But, I'm unable to access the methods like
getString(index) from that object. But, these methods are defined in my
CMISResultSet.

How do i resolve this syntax error?


On Fri, Jun 14, 2013 at 12:00 AM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Ariel,
>
> for making the ucp return the same single component factory object, shall
> I create a static single component factory object and return it if it is
> not null and create a new one if it is null? By this way we can return the
> same single component factory object.
>
>
> Although, one thing I have not understood is what is the consequences of
> returning different single component factory objects?
>
>
> Thanks for ur support.
>
>
> On Thu, Jun 13, 2013 at 2:03 PM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Hello Ariel,
>>
>>
>>
>> On Thu, Jun 13, 2013 at 1:22 PM, Ariel Constenla-Haile <
>> arie...@apache.org> wrote:
>>
>>> On Thu, Jun 13, 2013 at 11:01:50AM +0530, Rajath Shashidhara wrote:
>>> > Hello Ariel,
>>> >
>>> > I changed:
>>> >
>>> registration.classname=org.apache.aoo.ucp.cmisucp.ucp.CMISContentProvider
>>> >
>>> central.registration.class=org.apache.aoo.ucp.cmisucp.ucp.CentralRegistrationClass
>>> >
>>> >
>>> > I created the .oxt. Reinstalled. Still have the same problem.!
>>>
>>> Are you getting the error when installing, or you can install it but it
>>> does not work?
>>>
>>> If the later, you also need to change the implementation name in the
>>> configuration file to reflect the changes in the package name, as long
>>> as
>>>
>>> private static final String m_implementationName =
>>> CMISContentProvider.class.getName();
>>>
>>> the implementation name of your component is bound to the package name
>>> of the class implementing it.
>>>
>>>
>>>
>>
>> I clean built the project. Now the problem is solved. The problem was
>> that the project-uno.properties was not being compiled after changes. After
>> a clean, the changes were compiled.
>>
>>
>>> > Also, I did not understand what you mean by component factory
>>> > implementation. I have not implemented any component factory! Please
>>> > clarify.
>>>
>>> In CMISContentProvider you have
>>>
>>>
>>> public static XSingleComponentFactory __getComponentFactory( String
>>> sImplementationName ) {
>>> XSingleComponentFactory xFactory = null;
>>>
>>> if ( sImplementationName.equals( m_implementationName ) )
>>> xFactory =
>>> Factory.createComponentFactory(CMISContentProvider.class, m_serviceNames);
>>> return xFactory;
>>> }
>>>
>>> com.sun.star.lib.uno.helper.Factory is
>>> main/javaunohelper/com/sun/star/lib/uno/helper/Factory.java
>>>
>>> It is a factory helper to create instances of your component (set
>>> a break point there and in
>>> CentralRegistrationClass.__getComponentFactory() to see how things work
>>> when your component is instantiated).
>>>
>>> The problem is that this factory helper creates a new instance of your
>>> component every time; it should create only one instance and return it
>>> on later calls, mainly because you need to cache UCB contents. Try with
>>> the following Basic code:
>>>
>>>
>>> Sub Main
>>> Dim o1, o2, o3, o4
>>> o1 =
>>> CreateUnoService("org.apache.aoo.ucp.cmisucp.ucp.CMISContentProvider")
>>> o2 =
>>> CreateUnoService("org.apache.aoo.ucp.cmisucp.ucp.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
>>>
>>> CreateUnoService will create an instance of the given component, given
>>> its impleme

Re: service ResultSet

2013-06-13 Thread Rajath Shashidhara
Hello Ariel,

for making the ucp return the same single component factory object, shall I
create a static single component factory object and return it if it is not
null and create a new one if it is null? By this way we can return the same
single component factory object.


Although, one thing I have not understood is what is the consequences of
returning different single component factory objects?


Thanks for ur support.


On Thu, Jun 13, 2013 at 2:03 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Ariel,
>
>
>
> On Thu, Jun 13, 2013 at 1:22 PM, Ariel Constenla-Haile  > wrote:
>
>> On Thu, Jun 13, 2013 at 11:01:50AM +0530, Rajath Shashidhara wrote:
>> > Hello Ariel,
>> >
>> > I changed:
>> >
>> registration.classname=org.apache.aoo.ucp.cmisucp.ucp.CMISContentProvider
>> >
>> central.registration.class=org.apache.aoo.ucp.cmisucp.ucp.CentralRegistrationClass
>> >
>> >
>> > I created the .oxt. Reinstalled. Still have the same problem.!
>>
>> Are you getting the error when installing, or you can install it but it
>> does not work?
>>
>> If the later, you also need to change the implementation name in the
>> configuration file to reflect the changes in the package name, as long
>> as
>>
>> private static final String m_implementationName =
>> CMISContentProvider.class.getName();
>>
>> the implementation name of your component is bound to the package name
>> of the class implementing it.
>>
>>
>>
>
> I clean built the project. Now the problem is solved. The problem was that
> the project-uno.properties was not being compiled after changes. After a
> clean, the changes were compiled.
>
>
>> > Also, I did not understand what you mean by component factory
>> > implementation. I have not implemented any component factory! Please
>> > clarify.
>>
>> In CMISContentProvider you have
>>
>>
>> public static XSingleComponentFactory __getComponentFactory( String
>> sImplementationName ) {
>> XSingleComponentFactory xFactory = null;
>>
>> if ( sImplementationName.equals( m_implementationName ) )
>> xFactory =
>> Factory.createComponentFactory(CMISContentProvider.class, m_serviceNames);
>> return xFactory;
>> }
>>
>> com.sun.star.lib.uno.helper.Factory is
>> main/javaunohelper/com/sun/star/lib/uno/helper/Factory.java
>>
>> It is a factory helper to create instances of your component (set
>> a break point there and in
>> CentralRegistrationClass.__getComponentFactory() to see how things work
>> when your component is instantiated).
>>
>> The problem is that this factory helper creates a new instance of your
>> component every time; it should create only one instance and return it
>> on later calls, mainly because you need to cache UCB contents. Try with
>> the following Basic code:
>>
>>
>> Sub Main
>> Dim o1, o2, o3, o4
>> o1 =
>> CreateUnoService("org.apache.aoo.ucp.cmisucp.ucp.CMISContentProvider")
>> o2 =
>> CreateUnoService("org.apache.aoo.ucp.cmisucp.ucp.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
>>
>> CreateUnoService will create an instance of the given component, given
>> its implementation/service name.
>>
>> With your current implementation, you get a new instance every time.
>> Compare with the FTP content provider implementation: both objects
>> are the same instance.
>>
>>
> I ran the basic code that you have given. I understand what you were
> trying to explain.
> But is it very important now? How do I approach to solve this problem? Is
> this a nice to have problem or a high riorty problem?
>
>
>> Note that you could implement UCB contents caching by other means, but
>> a "createOneInstanceComponentFactory()" or the like is a nice to have.
>>
>>
>> Another nice-to-have: you are using
>> CMISContentProvider.__writeRegistryServiceInfo( XRegistryKey
>> xRegistryKey), this is obsolete, you can use the "Passive Component
>> Registration"
>> http://wiki.openoffice.org/wiki/Passive_Component_Registration
>>
>>
>> Leave nice-to-have things for the final touches, right now you have
>> other priorities, like implementing the CMIS UCB content.
>>
>>
>> Now I have completed the basic service ResultSet implementation. I tried
> to test it and I have a problem. I have pushed the error test code(client
> application) - to this repo:
> https://github.com/rajaths589/CMISContentProviderTest.git
>
> I have see the implementation of result set of other ucps. they use helper
> classes which I'm not using. I need help. I need to know where I'm going
> wrong. Thanks.!
>
>
>
>>  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: service ResultSet

2013-06-13 Thread Rajath Shashidhara
Hello Ariel,



On Thu, Jun 13, 2013 at 1:22 PM, Ariel Constenla-Haile
wrote:

> On Thu, Jun 13, 2013 at 11:01:50AM +0530, Rajath Shashidhara wrote:
> > Hello Ariel,
> >
> > I changed:
> > registration.classname=org.apache.aoo.ucp.cmisucp.ucp.CMISContentProvider
> >
> central.registration.class=org.apache.aoo.ucp.cmisucp.ucp.CentralRegistrationClass
> >
> >
> > I created the .oxt. Reinstalled. Still have the same problem.!
>
> Are you getting the error when installing, or you can install it but it
> does not work?
>
> If the later, you also need to change the implementation name in the
> configuration file to reflect the changes in the package name, as long
> as
>
> private static final String m_implementationName =
> CMISContentProvider.class.getName();
>
> the implementation name of your component is bound to the package name
> of the class implementing it.
>
>
>

I clean built the project. Now the problem is solved. The problem was that
the project-uno.properties was not being compiled after changes. After a
clean, the changes were compiled.


> > Also, I did not understand what you mean by component factory
> > implementation. I have not implemented any component factory! Please
> > clarify.
>
> In CMISContentProvider you have
>
>
> public static XSingleComponentFactory __getComponentFactory( String
> sImplementationName ) {
> XSingleComponentFactory xFactory = null;
>
> if ( sImplementationName.equals( m_implementationName ) )
> xFactory =
> Factory.createComponentFactory(CMISContentProvider.class, m_serviceNames);
> return xFactory;
> }
>
> com.sun.star.lib.uno.helper.Factory is
> main/javaunohelper/com/sun/star/lib/uno/helper/Factory.java
>
> It is a factory helper to create instances of your component (set
> a break point there and in
> CentralRegistrationClass.__getComponentFactory() to see how things work
> when your component is instantiated).
>
> The problem is that this factory helper creates a new instance of your
> component every time; it should create only one instance and return it
> on later calls, mainly because you need to cache UCB contents. Try with
> the following Basic code:
>
>
> Sub Main
> Dim o1, o2, o3, o4
> o1 =
> CreateUnoService("org.apache.aoo.ucp.cmisucp.ucp.CMISContentProvider")
> o2 =
> CreateUnoService("org.apache.aoo.ucp.cmisucp.ucp.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
>
> CreateUnoService will create an instance of the given component, given
> its implementation/service name.
>
> With your current implementation, you get a new instance every time.
> Compare with the FTP content provider implementation: both objects
> are the same instance.
>
>
I ran the basic code that you have given. I understand what you were trying
to explain.
But is it very important now? How do I approach to solve this problem? Is
this a nice to have problem or a high riorty problem?


> Note that you could implement UCB contents caching by other means, but
> a "createOneInstanceComponentFactory()" or the like is a nice to have.
>
>
> Another nice-to-have: you are using
> CMISContentProvider.__writeRegistryServiceInfo( XRegistryKey
> xRegistryKey), this is obsolete, you can use the "Passive Component
> Registration"
> http://wiki.openoffice.org/wiki/Passive_Component_Registration
>
>
> Leave nice-to-have things for the final touches, right now you have
> other priorities, like implementing the CMIS UCB content.
>
>
> Now I have completed the basic service ResultSet implementation. I tried
to test it and I have a problem. I have pushed the error test code(client
application) - to this repo:
https://github.com/rajaths589/CMISContentProviderTest.git

I have see the implementation of result set of other ucps. they use helper
classes which I'm not using. I need help. I need to know where I'm going
wrong. Thanks.!



> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>



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


Re: service ResultSet

2013-06-13 Thread Rajath Shashidhara
Hello Juergen,
U suggested me org.apache.aoo.ucp.cmis.
But, I had a package structure which had a subpackaage called ucp which
contained the central registration class and the ucp.
So, I modified it myself to this.
I have other sub folders like: org.apache.aoo.cmisucp.unoobjects.
org.apache.aoo.cmisucp.cmis .
I can change this anytime I want. :)

I clean-built it to solve the problem of .oxt.


On Thu, Jun 13, 2013 at 1:15 PM, Jürgen Schmidt wrote:

> On 6/13/13 6:00 AM, Rajath Shashidhara wrote:
> > Hello Ariel,
> >
> > Thanks for your input.
> > Lately, I'm experiencing an error with installing .oxt.
> > As per the suggestion of Juergen, I changed the package name of my code
> for
> > apache.ooffice.gsoc.cmisucp.ucp. to org.apache.aoo.cmisucp.ucp.
>
> did I really suggest this org.apache.aoo.cmisucp.ucp?
>
> I believe it was more org.apache.aoo.ucp.cmis ;-) But I haven't checked
> what I told you exactly.
>
> cmisucp + ucp seems to be too much
>
> Juergen
>
> > I deleted the previously installed extension and installed the new one.
> > after installation it shows an error dialog with both the package names
> and
> > exits.
> >
> > How do i resolve this?
> >
> > The data sink thing is clear from the api reference for
> XCommandProcessor.
> > But, thanks for clarifying my wrong concept of document. Now I'll check
> if
> > the basetype of object stored in the cmis repository is a
> "cmis:document".
> >
> > My previous question is unanswered. In the implementation of service
> > ResultSet, the method m_RowCount can take values from 0.X+1 where X
> is
> > the number of rows . Is this right? or the next() just increases the
> value
> > of m_RowCount by 1 without checking if it is in this range?
> >
> >
> >
> > On Thu, Jun 13, 2013 at 9:05 AM, Ariel Constenla-Haile
> > wrote:
> >
> >> On Wed, Jun 12, 2013 at 09:01:51AM +0200, Jürgen Schmidt wrote:
> >>> On 6/12/13 8:45 AM, Rajath Shashidhara wrote:
> >>>> Hello Juergen,
> >>>>
> >>>> I'm following this:
> >>>>
> >>
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
> >>>>  .
> >>>> Is there any other revised source that I have to follow?
> >>>
> >>> ok, I see what you mean. You have to implement simply a UNO object
> >>> implementing the XRow interface. And yes the docu say it is similar to
> a
> >>> ResultSet.
> >>
> >> An XRow is the return type of the command "getPropertyValues", but when
> >> the command is "open" and OpenCommandArgument::Mode: is OpenMode::ALL or
> >> OpenMode::FOLDERS or OpenMode::DOCUMENTS the return type must be
> >> an XDynamicResultSet:
> >>
> >>
> >>
> http://svn.apache.org/viewvc/openoffice/trunk/main/ucb/source/ucp/ftp/ftpcontent.cxx?revision=1413471&view=markup#l551
> >>
> >>
> http://svn.apache.org/viewvc/openoffice/trunk/main/ucb/source/ucp/package/pkgcontent.cxx?revision=1413471&view=markup#l1525
> >>
> >>
> http://svn.apache.org/viewvc/openoffice/trunk/main/ucb/source/ucp/tdoc/tdoc_content.cxx?revision=1413471&view=markup#l1504
> >>
> >>
> http://svn.apache.org/viewvc/openoffice/trunk/main/ucb/source/ucp/webdav/webdavcontent.cxx?revision=1460359&view=markup#l2168
> >>
> >>>>> But the return datatype of Open Command is a dynamic result set. So,
> a
> >>>>> result set service must be implemented right?
> >>
> >> yes, when OpenCommandArgument::Mode: is OpenMode::ALL or
> OpenMode::FOLDERS
> >> or OpenMode::DOCUMENTS.
> >>
> >> When the "open" command tries to open a document, you must put the
> >> document stream into OpenCommandArgument::Sink.
> >>
> >> Please note that you are handling a wrong concept of "document". In the
> >> UCB context, a document is any content that "can dump itself into a data
> >> sink"; you are handling this as if documents were only AOO documents:
> >>
> >> in private Object obtainProperties():
> >>else if(p.Name.equals("IsDocument"))
> >>
> >>
> result.add(content.getType().getDisplayName().equals("openDocument")?"True":"False");
> >>
> >>
> >> Besides, you shouldn't rely on the display name, use instead
> >>
> >>
> http://chemistry.apache.org/java/0.8.0/maven/apidocs/org/apache/chemistry/opencmis/client/api/ObjectType.html
> >>
> >> There are 4 type of CMIS objects: document, folder, policy,
> >> relationship; the first two can be mapped to the UCB properties
> >> IsDocument and IsFolder, respectively.
> >>
> >>
> >> 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: service ResultSet

2013-06-12 Thread Rajath Shashidhara
Hello Ariel,

I changed:
registration.classname=org.apache.aoo.ucp.cmisucp.ucp.CMISContentProvider
central.registration.class=org.apache.aoo.ucp.cmisucp.ucp.CentralRegistrationClass


I created the .oxt. Reinstalled. Still have the same problem.!

Also, I did not understand what you mean by component factory
implementation. I have not implemented any component factory! Please
clarify. Sorry, for repeated questions!


On Thu, Jun 13, 2013 at 10:48 AM, Ariel Constenla-Haile
wrote:

> On Thu, Jun 13, 2013 at 09:30:58AM +0530, Rajath Shashidhara wrote:
> > Hello Ariel,
> >
> > Thanks for your input.
> > Lately, I'm experiencing an error with installing .oxt.
> > As per the suggestion of Juergen, I changed the package name of my code
> for
> > apache.ooffice.gsoc.cmisucp.ucp. to org.apache.aoo.cmisucp.ucp.
> > I deleted the previously installed extension and installed the new one.
> > after installation it shows an error dialog with both the package names
> and
> > exits.
> >
> > How do i resolve this?
>
> You have to adapt a properties file named project-uno.properties,
> located inside the nbproject folder (Ctrl-2, window "Files"):
>
>
> central.registration.class=apache.ooffice.gsoc.cmisucp.ucp.CentralRegistrationClass
> registration.classname=apache.ooffice.gsoc.cmisucp.ucp.CMISContentProvider
> org.apache.aoo.ucp.cmisucp.cmis.ucp.unoobjects.CMISDynamicResultSet
> org.apache.aoo.ucp.cmisucp.cmis.ucp.unoobjects.CMISResultSet
> org.apache.aoo.ucp.cmisucp.cmis.ucp.unoobjects.CMISDynamicResultSet
> org.CMISResultSet
>
> you have the old names. Note that in registration.classname you put all
> the UNO components in your project that you want to register in the
> office. The only one that is really needed is the provider, you don't
> need to make a component out of all the UNO object you are implementing.
>
> You also need to fix the component factory implementation: it must
> return always the same instance.
>
>
> > My previous question is unanswered.
>
> I leave this to Jürgen :) (or I'll answer later in the morning, it's
> 2 AM here, I'm going to sleep).
>
>
> > In the implementation of service
> > ResultSet, the method m_RowCount can take values from 0.X+1 where X
> is
> > the number of rows . Is this right? or the next() just increases the
> value
> > of m_RowCount by 1 without checking if it is in this range?
>
> Just in case you want to dive into the C++ implementation:
>
> The implementation of the service
> com.sun.star.ucb.ContentResultSet is ucbhelper::ResultSet
>
> main/ucbhelper/inc/ucbhelper/resultset.hxx
> main/ucbhelper/source/provider/resultset.cxx
>
> It works with a data supplier, implemented in the respective UCPs, see
> for example
>
> main/ucb/source/ucp/webdav/webdavdatasupplier.hxx
> main/ucb/source/ucp/webdav/webdavdatasupplier.cxx
>
> Search how ResultSet::next(), ResultSet::isBeforeFirst(),
> ResultSet::first(), call the supplier's getResult() with an index, which
> calls getData() - the function that actually retrieves the data.
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>



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


Re: service ResultSet

2013-06-12 Thread Rajath Shashidhara
Hello Ariel,

Thanks for your input.
Lately, I'm experiencing an error with installing .oxt.
As per the suggestion of Juergen, I changed the package name of my code for
apache.ooffice.gsoc.cmisucp.ucp. to org.apache.aoo.cmisucp.ucp.
I deleted the previously installed extension and installed the new one.
after installation it shows an error dialog with both the package names and
exits.

How do i resolve this?

The data sink thing is clear from the api reference for XCommandProcessor.
But, thanks for clarifying my wrong concept of document. Now I'll check if
the basetype of object stored in the cmis repository is a "cmis:document".

My previous question is unanswered. In the implementation of service
ResultSet, the method m_RowCount can take values from 0.X+1 where X is
the number of rows . Is this right? or the next() just increases the value
of m_RowCount by 1 without checking if it is in this range?



On Thu, Jun 13, 2013 at 9:05 AM, Ariel Constenla-Haile
wrote:

> On Wed, Jun 12, 2013 at 09:01:51AM +0200, Jürgen Schmidt wrote:
> > On 6/12/13 8:45 AM, Rajath Shashidhara wrote:
> > > Hello Juergen,
> > >
> > > I'm following this:
> > >
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
> > >  .
> > > Is there any other revised source that I have to follow?
> >
> > ok, I see what you mean. You have to implement simply a UNO object
> > implementing the XRow interface. And yes the docu say it is similar to a
> > ResultSet.
>
> An XRow is the return type of the command "getPropertyValues", but when
> the command is "open" and OpenCommandArgument::Mode: is OpenMode::ALL or
> OpenMode::FOLDERS or OpenMode::DOCUMENTS the return type must be
> an XDynamicResultSet:
>
>
> http://svn.apache.org/viewvc/openoffice/trunk/main/ucb/source/ucp/ftp/ftpcontent.cxx?revision=1413471&view=markup#l551
>
> http://svn.apache.org/viewvc/openoffice/trunk/main/ucb/source/ucp/package/pkgcontent.cxx?revision=1413471&view=markup#l1525
>
> http://svn.apache.org/viewvc/openoffice/trunk/main/ucb/source/ucp/tdoc/tdoc_content.cxx?revision=1413471&view=markup#l1504
>
> http://svn.apache.org/viewvc/openoffice/trunk/main/ucb/source/ucp/webdav/webdavcontent.cxx?revision=1460359&view=markup#l2168
>
> > >> But the return datatype of Open Command is a dynamic result set. So, a
> > >> result set service must be implemented right?
>
> yes, when OpenCommandArgument::Mode: is OpenMode::ALL or OpenMode::FOLDERS
> or OpenMode::DOCUMENTS.
>
> When the "open" command tries to open a document, you must put the
> document stream into OpenCommandArgument::Sink.
>
> Please note that you are handling a wrong concept of "document". In the
> UCB context, a document is any content that "can dump itself into a data
> sink"; you are handling this as if documents were only AOO documents:
>
> in private Object obtainProperties():
>else if(p.Name.equals("IsDocument"))
>
> result.add(content.getType().getDisplayName().equals("openDocument")?"True":"False");
>
>
> Besides, you shouldn't rely on the display name, use instead
>
> http://chemistry.apache.org/java/0.8.0/maven/apidocs/org/apache/chemistry/opencmis/client/api/ObjectType.html
>
> There are 4 type of CMIS objects: document, folder, policy,
> relationship; the first two can be mapped to the UCB properties
> IsDocument and IsFolder, respectively.
>
>
> Regards
> --
> Ariel Constenla-Haile
> La Plata, Argentina
>



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


Re: service ResultSet

2013-06-12 Thread Rajath Shashidhara
Hello,

When I install the new .oxt created by me, I get an error:
apache.ooffice.gsoc.cmisucp.ucp.CentralRegistrationClass;org.apache.aoo.ucp.cmisucp.ucp,CentralRegistrationClass.

These are my previous package names and new package name.

I have uninstalled the previous extension.
It was working previously.

Please help.
I rebuilt openoffice and tried again. It didnt work.


On Wed, Jun 12, 2013 at 7:26 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
>
> service resultSet implements XResultSetUpdate.
>
> I don't understand the purpose of "void insertRow()" and "void
> deleteRow()".
>
> Will calling deleteRow() delete the child object itself?(Actually I dont
> think it should be like that. I'm just verifying).
>
> I'm not understanding when to update the properties of a row? Should I
> create event listeners for each value in XRow or update the row only when
> some function is called?
>
>
>
>
> On Wed, Jun 12, 2013 at 12:43 PM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Yes. I have done that. :)
>>
>>
>> On Wed, Jun 12, 2013 at 12:42 PM, Jürgen Schmidt 
>> wrote:
>>
>>> On 6/12/13 9:04 AM, Rajath Shashidhara wrote:
>>> > Hello Juergen,
>>> >
>>> > I have already implemented my own XRow. I'm implementing the result set
>>> > service by defining a List with each XRow containing the
>>> information
>>> > of a child object in case of a folder.
>>>
>>> good, keep in mind to return only the properties that the cmd ask for
>>>
>>> Juergen
>>>
>>>
>>> >
>>> >
>>> > On Wed, Jun 12, 2013 at 12:31 PM, Jürgen Schmidt <
>>> jogischm...@gmail.com>wrote:
>>> >
>>> >> On 6/12/13 8:45 AM, Rajath Shashidhara wrote:
>>> >>> Hello Juergen,
>>> >>>
>>> >>> I'm following this:
>>> >>>
>>> >>
>>> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
>>> >>>  .
>>> >>> Is there any other revised source that I have to follow?
>>> >>
>>> >> ok, I see what you mean. You have to implement simply a UNO object
>>> >> implementing the XRow interface. And yes the docu say it is similar
>>> to a
>>> >> ResultSet.
>>> >>
>>> >> But is much easier than you expect, I have done this before and have
>>> to
>>> >> find the code ... will take some time, probably I can send you an
>>> >> example in the evening.
>>> >>
>>> >> Or you can implement an object supporting the XRow interface on your
>>> >> your own.
>>> >>
>>> >> See also the DevGuide
>>> >>
>>> >>
>>> http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Obtaining_Content_Properties
>>> >>
>>> >> And please don't ask me why it was designed this way ;-)
>>> >>
>>> >> Juergen
>>> >>
>>> >>
>>> >>>
>>> >>>
>>> >>> On Wed, Jun 12, 2013 at 12:10 PM, Rajath Shashidhara <
>>> >>> rajaths.raja...@gmail.com> wrote:
>>> >>>
>>> >>>> Hello Juergen,
>>> >>>>
>>> >>>> But the return datatype of Open Command is a dynamic result set.
>>> So, a
>>> >>>> result set service must be implemented right?
>>> >>>>
>>> >>>>
>>> >>>> On Wed, Jun 12, 2013 at 11:44 AM, Jürgen Schmidt <
>>> jogischm...@gmail.com
>>> >>> wrote:
>>> >>>>
>>> >>>>> On 6/12/13 6:55 AM, Rajath Shashidhara wrote:
>>> >>>>>> Hello,
>>> >>>>>> Just a small doubt.
>>> >>>>>> I was looking at the methods to be implemented in ResultSet.
>>> >>>>>> m_RowCount stores the current row being accessed.
>>> >>>>>> I have a doubt in the following methods.
>>> >>>>>> Methods:
>>> >>>>>> next(),previous(),beforeFirst(),afterLast() .
>>> >>>>>>
>>> >>>>>> Initially when the resultset is co

Problem with openoffice4

2013-06-12 Thread Rajath Shashidhara
Hello,

I'm trying to install an extension manager on Openoffice4.
When I click "Add" on the extension manager dialog, ooffice exits by
throwing an instance of
'com::sun::star::lang::WrappedTargetRuntimeException'.

It was working till today. It stopped working unexpectedly. I cant report
any triggering action which started this error.

Please help.

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


Re: service ResultSet

2013-06-12 Thread Rajath Shashidhara
Hello,

service resultSet implements XResultSetUpdate.

I don't understand the purpose of "void insertRow()" and "void deleteRow()".

Will calling deleteRow() delete the child object itself?(Actually I dont
think it should be like that. I'm just verifying).

I'm not understanding when to update the properties of a row? Should I
create event listeners for each value in XRow or update the row only when
some function is called?




On Wed, Jun 12, 2013 at 12:43 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Yes. I have done that. :)
>
>
> On Wed, Jun 12, 2013 at 12:42 PM, Jürgen Schmidt wrote:
>
>> On 6/12/13 9:04 AM, Rajath Shashidhara wrote:
>> > Hello Juergen,
>> >
>> > I have already implemented my own XRow. I'm implementing the result set
>> > service by defining a List with each XRow containing the
>> information
>> > of a child object in case of a folder.
>>
>> good, keep in mind to return only the properties that the cmd ask for
>>
>> Juergen
>>
>>
>> >
>> >
>> > On Wed, Jun 12, 2013 at 12:31 PM, Jürgen Schmidt > >wrote:
>> >
>> >> On 6/12/13 8:45 AM, Rajath Shashidhara wrote:
>> >>> Hello Juergen,
>> >>>
>> >>> I'm following this:
>> >>>
>> >>
>> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
>> >>>  .
>> >>> Is there any other revised source that I have to follow?
>> >>
>> >> ok, I see what you mean. You have to implement simply a UNO object
>> >> implementing the XRow interface. And yes the docu say it is similar to
>> a
>> >> ResultSet.
>> >>
>> >> But is much easier than you expect, I have done this before and have to
>> >> find the code ... will take some time, probably I can send you an
>> >> example in the evening.
>> >>
>> >> Or you can implement an object supporting the XRow interface on your
>> >> your own.
>> >>
>> >> See also the DevGuide
>> >>
>> >>
>> http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Obtaining_Content_Properties
>> >>
>> >> And please don't ask me why it was designed this way ;-)
>> >>
>> >> Juergen
>> >>
>> >>
>> >>>
>> >>>
>> >>> On Wed, Jun 12, 2013 at 12:10 PM, Rajath Shashidhara <
>> >>> rajaths.raja...@gmail.com> wrote:
>> >>>
>> >>>> Hello Juergen,
>> >>>>
>> >>>> But the return datatype of Open Command is a dynamic result set. So,
>> a
>> >>>> result set service must be implemented right?
>> >>>>
>> >>>>
>> >>>> On Wed, Jun 12, 2013 at 11:44 AM, Jürgen Schmidt <
>> jogischm...@gmail.com
>> >>> wrote:
>> >>>>
>> >>>>> On 6/12/13 6:55 AM, Rajath Shashidhara wrote:
>> >>>>>> Hello,
>> >>>>>> Just a small doubt.
>> >>>>>> I was looking at the methods to be implemented in ResultSet.
>> >>>>>> m_RowCount stores the current row being accessed.
>> >>>>>> I have a doubt in the following methods.
>> >>>>>> Methods:
>> >>>>>> next(),previous(),beforeFirst(),afterLast() .
>> >>>>>>
>> >>>>>> Initially when the resultset is constructed, m_RowCount will be
>> zero
>> >>>>>> according to the api reference.
>> >>>>>> If there are 'X' Rows.
>> >>>>>> So, m_RowCount can take 0,1,..,X,X+1 values only or can it take
>> >> any
>> >>>>>> value?
>> >>>>>>
>> >>>>>> Because even X+2 is afterLast() and -1 is beforeFirst().
>> >>>>>>
>> >>>>>
>> >>>>> I would not use ResultSet in this context, it was mainly designed
>> and
>> >>>>> used in the context of databases.
>> >>>>>
>> >>>>> Internally you can use whatever you want and the return via the API
>> is
>> >>>>> just a property sequence. Use whatever you want and ensure that it
>> can
>> >>>>> be fast converted in a sequence (in Java array) of properties.
>> >>>>>
>> >>>>> 2 open commands have to update the values anyway because in the time
>> >>>>> between both commands the values could have changed anyway, e.g. a
>> file
>> >>>>> got written/updated from somewhere else.
>> >>>>>
>> >>>>> 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
>> >>>>
>> >>>
>> >>>
>> >>>
>> >>
>> >>
>> >> -
>> >> 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
>



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


Re: service ResultSet

2013-06-12 Thread Rajath Shashidhara
Yes. I have done that. :)


On Wed, Jun 12, 2013 at 12:42 PM, Jürgen Schmidt wrote:

> On 6/12/13 9:04 AM, Rajath Shashidhara wrote:
> > Hello Juergen,
> >
> > I have already implemented my own XRow. I'm implementing the result set
> > service by defining a List with each XRow containing the
> information
> > of a child object in case of a folder.
>
> good, keep in mind to return only the properties that the cmd ask for
>
> Juergen
>
>
> >
> >
> > On Wed, Jun 12, 2013 at 12:31 PM, Jürgen Schmidt  >wrote:
> >
> >> On 6/12/13 8:45 AM, Rajath Shashidhara wrote:
> >>> Hello Juergen,
> >>>
> >>> I'm following this:
> >>>
> >>
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
> >>>  .
> >>> Is there any other revised source that I have to follow?
> >>
> >> ok, I see what you mean. You have to implement simply a UNO object
> >> implementing the XRow interface. And yes the docu say it is similar to a
> >> ResultSet.
> >>
> >> But is much easier than you expect, I have done this before and have to
> >> find the code ... will take some time, probably I can send you an
> >> example in the evening.
> >>
> >> Or you can implement an object supporting the XRow interface on your
> >> your own.
> >>
> >> See also the DevGuide
> >>
> >>
> http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Obtaining_Content_Properties
> >>
> >> And please don't ask me why it was designed this way ;-)
> >>
> >> Juergen
> >>
> >>
> >>>
> >>>
> >>> On Wed, Jun 12, 2013 at 12:10 PM, Rajath Shashidhara <
> >>> rajaths.raja...@gmail.com> wrote:
> >>>
> >>>> Hello Juergen,
> >>>>
> >>>> But the return datatype of Open Command is a dynamic result set. So, a
> >>>> result set service must be implemented right?
> >>>>
> >>>>
> >>>> On Wed, Jun 12, 2013 at 11:44 AM, Jürgen Schmidt <
> jogischm...@gmail.com
> >>> wrote:
> >>>>
> >>>>> On 6/12/13 6:55 AM, Rajath Shashidhara wrote:
> >>>>>> Hello,
> >>>>>> Just a small doubt.
> >>>>>> I was looking at the methods to be implemented in ResultSet.
> >>>>>> m_RowCount stores the current row being accessed.
> >>>>>> I have a doubt in the following methods.
> >>>>>> Methods:
> >>>>>> next(),previous(),beforeFirst(),afterLast() .
> >>>>>>
> >>>>>> Initially when the resultset is constructed, m_RowCount will be zero
> >>>>>> according to the api reference.
> >>>>>> If there are 'X' Rows.
> >>>>>> So, m_RowCount can take 0,1,..,X,X+1 values only or can it take
> >> any
> >>>>>> value?
> >>>>>>
> >>>>>> Because even X+2 is afterLast() and -1 is beforeFirst().
> >>>>>>
> >>>>>
> >>>>> I would not use ResultSet in this context, it was mainly designed and
> >>>>> used in the context of databases.
> >>>>>
> >>>>> Internally you can use whatever you want and the return via the API
> is
> >>>>> just a property sequence. Use whatever you want and ensure that it
> can
> >>>>> be fast converted in a sequence (in Java array) of properties.
> >>>>>
> >>>>> 2 open commands have to update the values anyway because in the time
> >>>>> between both commands the values could have changed anyway, e.g. a
> file
> >>>>> got written/updated from somewhere else.
> >>>>>
> >>>>> 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
> >>>>
> >>>
> >>>
> >>>
> >>
> >>
> >> -
> >> 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: service ResultSet

2013-06-12 Thread Rajath Shashidhara
Hello Juergen,

I have already implemented my own XRow. I'm implementing the result set
service by defining a List with each XRow containing the information
of a child object in case of a folder.


On Wed, Jun 12, 2013 at 12:31 PM, Jürgen Schmidt wrote:

> On 6/12/13 8:45 AM, Rajath Shashidhara wrote:
> > Hello Juergen,
> >
> > I'm following this:
> >
> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
> >  .
> > Is there any other revised source that I have to follow?
>
> ok, I see what you mean. You have to implement simply a UNO object
> implementing the XRow interface. And yes the docu say it is similar to a
> ResultSet.
>
> But is much easier than you expect, I have done this before and have to
> find the code ... will take some time, probably I can send you an
> example in the evening.
>
> Or you can implement an object supporting the XRow interface on your
> your own.
>
> See also the DevGuide
>
> http://wiki.openoffice.org/wiki/Documentation/DevGuide/UCB/Obtaining_Content_Properties
>
> And please don't ask me why it was designed this way ;-)
>
> Juergen
>
>
> >
> >
> > On Wed, Jun 12, 2013 at 12:10 PM, Rajath Shashidhara <
> > rajaths.raja...@gmail.com> wrote:
> >
> >> Hello Juergen,
> >>
> >> But the return datatype of Open Command is a dynamic result set. So, a
> >> result set service must be implemented right?
> >>
> >>
> >> On Wed, Jun 12, 2013 at 11:44 AM, Jürgen Schmidt  >wrote:
> >>
> >>> On 6/12/13 6:55 AM, Rajath Shashidhara wrote:
> >>>> Hello,
> >>>> Just a small doubt.
> >>>> I was looking at the methods to be implemented in ResultSet.
> >>>> m_RowCount stores the current row being accessed.
> >>>> I have a doubt in the following methods.
> >>>> Methods:
> >>>> next(),previous(),beforeFirst(),afterLast() .
> >>>>
> >>>> Initially when the resultset is constructed, m_RowCount will be zero
> >>>> according to the api reference.
> >>>> If there are 'X' Rows.
> >>>> So, m_RowCount can take 0,1,..,X,X+1 values only or can it take
> any
> >>>> value?
> >>>>
> >>>> Because even X+2 is afterLast() and -1 is beforeFirst().
> >>>>
> >>>
> >>> I would not use ResultSet in this context, it was mainly designed and
> >>> used in the context of databases.
> >>>
> >>> Internally you can use whatever you want and the return via the API is
> >>> just a property sequence. Use whatever you want and ensure that it can
> >>> be fast converted in a sequence (in Java array) of properties.
> >>>
> >>> 2 open commands have to update the values anyway because in the time
> >>> between both commands the values could have changed anyway, e.g. a file
> >>> got written/updated from somewhere else.
> >>>
> >>> 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
> >>
> >
> >
> >
>
>
> -
> 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: service ResultSet

2013-06-11 Thread Rajath Shashidhara
Hello Juergen,

I'm following this:
http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
 .
Is there any other revised source that I have to follow?


On Wed, Jun 12, 2013 at 12:10 PM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello Juergen,
>
> But the return datatype of Open Command is a dynamic result set. So, a
> result set service must be implemented right?
>
>
> On Wed, Jun 12, 2013 at 11:44 AM, Jürgen Schmidt wrote:
>
>> On 6/12/13 6:55 AM, Rajath Shashidhara wrote:
>> > Hello,
>> > Just a small doubt.
>> > I was looking at the methods to be implemented in ResultSet.
>> > m_RowCount stores the current row being accessed.
>> > I have a doubt in the following methods.
>> > Methods:
>> > next(),previous(),beforeFirst(),afterLast() .
>> >
>> > Initially when the resultset is constructed, m_RowCount will be zero
>> > according to the api reference.
>> > If there are 'X' Rows.
>> > So, m_RowCount can take 0,1,..,X,X+1 values only or can it take any
>> > value?
>> >
>> > Because even X+2 is afterLast() and -1 is beforeFirst().
>> >
>>
>> I would not use ResultSet in this context, it was mainly designed and
>> used in the context of databases.
>>
>> Internally you can use whatever you want and the return via the API is
>> just a property sequence. Use whatever you want and ensure that it can
>> be fast converted in a sequence (in Java array) of properties.
>>
>> 2 open commands have to update the values anyway because in the time
>> between both commands the values could have changed anyway, e.g. a file
>> got written/updated from somewhere else.
>>
>> 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: service ResultSet

2013-06-11 Thread Rajath Shashidhara
Hello Juergen,

But the return datatype of Open Command is a dynamic result set. So, a
result set service must be implemented right?


On Wed, Jun 12, 2013 at 11:44 AM, Jürgen Schmidt wrote:

> On 6/12/13 6:55 AM, Rajath Shashidhara wrote:
> > Hello,
> > Just a small doubt.
> > I was looking at the methods to be implemented in ResultSet.
> > m_RowCount stores the current row being accessed.
> > I have a doubt in the following methods.
> > Methods:
> > next(),previous(),beforeFirst(),afterLast() .
> >
> > Initially when the resultset is constructed, m_RowCount will be zero
> > according to the api reference.
> > If there are 'X' Rows.
> > So, m_RowCount can take 0,1,..,X,X+1 values only or can it take any
> > value?
> >
> > Because even X+2 is afterLast() and -1 is beforeFirst().
> >
>
> I would not use ResultSet in this context, it was mainly designed and
> used in the context of databases.
>
> Internally you can use whatever you want and the return via the API is
> just a property sequence. Use whatever you want and ensure that it can
> be fast converted in a sequence (in Java array) of properties.
>
> 2 open commands have to update the values anyway because in the time
> between both commands the values could have changed anyway, e.g. a file
> got written/updated from somewhere else.
>
> 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


service ResultSet

2013-06-11 Thread Rajath Shashidhara
Hello,
Just a small doubt.
I was looking at the methods to be implemented in ResultSet.
m_RowCount stores the current row being accessed.
I have a doubt in the following methods.
Methods:
next(),previous(),beforeFirst(),afterLast() .

Initially when the resultset is constructed, m_RowCount will be zero
according to the api reference.
If there are 'X' Rows.
So, m_RowCount can take 0,1,..,X,X+1 values only or can it take any
value?

Because even X+2 is afterLast() and -1 is beforeFirst().
-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


Service com.sun.star.sdbc.ResultSet

2013-06-08 Thread Rajath Shashidhara
Hello,

I was trying to implement the "open" command for my ucp.
I was reading through the implementation of this service.

My question is:
Is there a standard way to store the properties of the folder children?
As in, is there any data structure defined in the api to store the property
values in a tabulated form or is it upto me to store it and return it when
queried by getXXX() methods?



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

Is there any enumeration for different modes for OpenCommandArgument2 in
"open" command implementation?
Or is the mode implementation specific?


On Wed, Jun 5, 2013 at 7:35 PM, Jürgen Schmidt wrote:

> On 6/5/13 10:07 AM, Rajath Shashidhara wrote:
> > Ok. I'll document the milestones.
> >
> >
>
> Hi Rajath,
>
> I started to look in your code...
>
> Just some ideas
> - you can create a further project, a NetBeans Modules - Library Wrapper
> Module. In this project you add all Chemistry related jars.
> - your CMIS project get a new dependency to the new ChemistryWrapper
> project. I hope the plugin will include the jar later on when the oxt is
> packaged
> - your UCB.xcu config file is in a flat hierarchy "../registry/UCB.xcu".
> I personally always prefer a structure similar to the config path. Means
> ".../registry/data/org/openoffice/ucb/ContentProvider.xcu". But is not
> important as long as it doesn't conflict.
> - your package structure is currently "apache.ooffice.gsoc.cmisucp.ucp".
> I would suggest that you change it to something that we can and want use
> later on when we integrate the code in our repo. I suggest something like
>
> "org.apache.aoo.ucp.cmis" or
> "org.openoffice.ucp.cmis"
>
> - please add an Apache license header to all files
> /**
>  *
>  * Licensed to the Apache Software Foundation (ASF) under one
>  * or more contributor license agreements.  See the NOTICE file
>  * distributed with this work for additional information
>  * regarding copyright ownership.  The ASF licenses this file
>  * to you under the Apache License, Version 2.0 (the
>  * "License"); you may not use this file except in compliance
>  * with the License.  You may obtain a copy of the License at
>  *
>  *   http://www.apache.org/licenses/LICENSE-2.0
>  *
>  * Unless required by applicable law or agreed to in writing,
>  * software distributed under the License is distributed on an
>  * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
>  * KIND, either express or implied.  See the License for the
>  * specific language governing permissions and limitations
>  * under the License.
>  *
>  */
>
> Hint: the NetBeans plugin provides a code template "oohd" that can be
> used by typing oohd in a new line and press tab to expand. disadvantage
> it is not yet changed to the ALv2 header :-( You can change it once in
> your environment under Options -> Editor -> Code Templates -> oohd
>
> There is at least one more useful code template -> urqi, it expand to
> UnoRuntime.queryInterface
>
> You use it by typing urqi -> and press tab -> in the expanded code you
> can type the interface name and the code is changed accordingly. But
> here as well it works ont 100% in my NB 7.2.1
>
> It seems that the NB plugin needs more cleanup and polishing
>
> More feedback later...
>
> Juergen
>
>
> > On Wed, Jun 5, 2013 at 1:35 PM, Jürgen Schmidt  >wrote:
> >
> >> 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  >>> 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

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

> 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  >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 sequence .
> >>>>
> >>>>
> >>>> 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 conte

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


XPropertySetInfo implementation

2013-06-04 Thread Rajath Shashidhara
Hello everyone,

I was implementing XPropertySetInfo interface to return an object for it
when "getPropertySetInfo" command is executed.

I had a doubt about setting the attribute of Property as READONLY.

I have set Some properties like
"DateCreated","Size","IsFolder","IsDocument","ContentType","DateModified"
to READONLY.

Is it right?

Please provide feedback about code, so that I can revert back at this point
only if I have to. I'm coding "setPropertyValue" command also. If READONLY
type is requested for change, I'll have to add a IllegalAccessException to
Any[] that I return. So, that code also depends on this.
-- 
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 sequence .
>
>
> 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 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
>



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


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


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


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: Openoffice API - UCP

2013-06-03 Thread Rajath Shashidhara
Hello,

I wrote my own openoffice client application to test my ucp.
Code:
try {
// get the remote office component context
XComponentContext xContext = Bootstrap.bootstrap();
if (xContext == null) {
System.err.println("ERROR: Could not bootstrap default
Office.");
}
XMultiComponentFactory xmcf = xContext.getServiceManager();
//XMultiServiceFactory xServiceFactory = (XMultiServiceFactory)
xContext.getServiceManager();
XInterface xUCB;

String keys[] = new String[2];
keys[0] = "Local";
keys[1] = "Office";

xUCB = (XInterface)
xmcf.createInstanceWithArgumentsAndContext("com.sun.star.ucb.UniversalContentBroker",
keys,xContext);
XContentIdentifierFactory xIDFactory =
(XContentIdentifierFactory)UnoRuntime.queryInterface(XContentIdentifierFactory.class,
xUCB);
XContentProvider ucp =
(XContentProvider)UnoRuntime.queryInterface(XContentProvider.class, xUCB);
XContentIdentifier id =
xIDFactory.createContentIdentifier("cmis:///CMISUpload.odt");
XContent cmisContent = ucp.queryContent(id);
XCommandProcessor xcp =
(XCommandProcessor)UnoRuntime.queryInterface(XCommandProcessor.class,
cmisContent);
System.out.println(cmisContent.getContentType());
Command cmd = new Command();
cmd.Name = "haha";
cmd.Handle = 0;
cmd.Argument = null;
xcp.execute(cmd, 0, null);



cmd- "haha" was a test command.
I obtained the expected result.
Also getContentType() also produced the expected output.!


On Tue, Jun 4, 2013 at 1:39 AM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
>
> My print statements were not shown because .xcu configuration file was
> missing.
>
>
> On Tue, Jun 4, 2013 at 1:06 AM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Hello,
>> when macro security button is clicked this exception is raised:
>>
>> terminate called after throwing an instance of 
>> 'com::sun::star::loader::CannotActivateFactoryException'
>>
>>
>>
>>
>>
>> On Tue, Jun 4, 2013 at 12:40 AM, Rajath Shashidhara <
>> rajaths.raja...@gmail.com> wrote:
>>
>>> Hello,
>>>
>>> After so much discussion, questions and effort, I have decided to
>>> approach this in a more systematic manner.
>>>
>>> Now, Before asking any more questions I'll read the documentation
>>> properly starting from now.
>>>
>>> My first question:
>>> How to test my ucp?
>>> How do I know if my ucp is called?
>>> I added some dummy debug statements like System.out.println("***) in my
>>> queryContent() method. I tried to access a file through open dialog with
>>> address starting cmis://,
>>> but nothing appeared on my terminal.
>>> Also,
>>> I built my office with --enable-category-b switch.
>>> I'm not able to run the macro.
>>> I dont know what is there in the Ariel's macro.
>>>
>>> Sorry, for troubling with too many questions.
>>> I want to get this properly.
>>> Please help.
>>>  --
>>> 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: Openoffice API - UCP

2013-06-03 Thread Rajath Shashidhara
Hello,

My print statements were not shown because .xcu configuration file was
missing.


On Tue, Jun 4, 2013 at 1:06 AM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
> when macro security button is clicked this exception is raised:
>
> terminate called after throwing an instance of 
> 'com::sun::star::loader::CannotActivateFactoryException'
>
>
>
>
> On Tue, Jun 4, 2013 at 12:40 AM, Rajath Shashidhara <
> rajaths.raja...@gmail.com> wrote:
>
>> Hello,
>>
>> After so much discussion, questions and effort, I have decided to
>> approach this in a more systematic manner.
>>
>> Now, Before asking any more questions I'll read the documentation
>> properly starting from now.
>>
>> My first question:
>> How to test my ucp?
>> How do I know if my ucp is called?
>> I added some dummy debug statements like System.out.println("***) in my
>> queryContent() method. I tried to access a file through open dialog with
>> address starting cmis://,
>> but nothing appeared on my terminal.
>> Also,
>> I built my office with --enable-category-b switch.
>> I'm not able to run the macro.
>> I dont know what is there in the Ariel's macro.
>>
>> Sorry, for troubling with too many questions.
>> I want to get this properly.
>> Please help.
>>  --
>> 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: Openoffice API - UCP

2013-06-03 Thread Rajath Shashidhara
Hello,
when macro security button is clicked this exception is raised:

terminate called after throwing an instance of
'com::sun::star::loader::CannotActivateFactoryException'




On Tue, Jun 4, 2013 at 12:40 AM, Rajath Shashidhara <
rajaths.raja...@gmail.com> wrote:

> Hello,
>
> After so much discussion, questions and effort, I have decided to approach
> this in a more systematic manner.
>
> Now, Before asking any more questions I'll read the documentation properly
> starting from now.
>
> My first question:
> How to test my ucp?
> How do I know if my ucp is called?
> I added some dummy debug statements like System.out.println("***) in my
> queryContent() method. I tried to access a file through open dialog with
> address starting cmis://,
> but nothing appeared on my terminal.
> Also,
> I built my office with --enable-category-b switch.
> I'm not able to run the macro.
> I dont know what is there in the Ariel's macro.
>
> Sorry, for troubling with too many questions.
> I want to get this properly.
> Please help.
> --
> 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


Openoffice API - UCP

2013-06-03 Thread Rajath Shashidhara
Hello,

After so much discussion, questions and effort, I have decided to approach
this in a more systematic manner.

Now, Before asking any more questions I'll read the documentation properly
starting from now.

My first question:
How to test my ucp?
How do I know if my ucp is called?
I added some dummy debug statements like System.out.println("***) in my
queryContent() method. I tried to access a file through open dialog with
address starting cmis://,
but nothing appeared on my terminal.
Also,
I built my office with --enable-category-b switch.
I'm not able to run the macro.
I dont know what is there in the Ariel's macro.

Sorry, for troubling with too many questions.
I want to get this properly.
Please help.
-- 
Rajath S,
M.Sc(Hons.) Physics,
Birla Institute of Technology and Science - Pilani,
Pilani


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 wrote:
>
>> On 6/3/13 8:06 PM, Rajath Shashidhara wrote:
>> > Hello Juergen,
>> >
>> > I have type casted it to Property[].
>> > This page says that the argument for getPropertyValues is
>> > sequence type.
>> >
>> http://www.openoffice.org/api/docs/common/ref/com/sun/star/ucb/Content.html
>> >
>> > I'm not able to define such a variable type  .
>> > I'll test my code with the macro sent by Ariel.
>> > 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 > >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 > >>> 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 wi

  1   2   >