XContentProvider.queryContent

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|

XContentProvider.queryContent

Dan Corneanu
Hi,
what should an implementation of
XContentProvider.queryContent(identifier) return if the specified object
does not exist?
If I return an instance of XContent with "Exists" set to false, I still
do not know if this should be a folder or a document.

Best regards,
Dan.

--
Dan Corneanu
Sava Technologies SRL
Eroilor de la Tisa nr. 33
300553 Timisoara
Romania

Phone: +40 256 201269, +40 356 101412
Mobile: +40 721 723604
E-mail: [hidden email]
http://www.savatech.ro


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: XContentProvider.queryContent

Kai Sommerfeld
Hi Dan,

On 06.07.10 15:36, Dan Corneanu wrote:
> Hi,
> what should an implementation of
> XContentProvider.queryContent(identifier) return if the specified object
> does not exist?
> If I return an instance of XContent with "Exists" set to false, I still
> do not know if this should be a folder or a document.
>
  Well, this is one of the dark sides of UCB that definitely needs to
reworked if we find the time:

  <http://qa.openoffice.org/issues/show_bug.cgi?id=40397>

- Kai.


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: XContentProvider.queryContent

Dan Corneanu
On 7/6/2010 4:51 PM, Kai Sommerfeld wrote:

> Hi Dan,
>
> On 06.07.10 15:36, Dan Corneanu wrote:
>> Hi,
>> what should an implementation of
>> XContentProvider.queryContent(identifier) return if the specified object
>> does not exist?
>> If I return an instance of XContent with "Exists" set to false, I still
>> do not know if this should be a folder or a document.
>>
>  Well, this is one of the dark sides of UCB that definitely needs to
> reworked if we find the time:
>
>  <http://qa.openoffice.org/issues/show_bug.cgi?id=40397>
>
> - Kai.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [hidden email]
> For additional commands, e-mail: [hidden email]
>
>
>
I just want to be able to execute the following UC:
1. Ctrl - N create a new text document
2. Write some content
3. Ctrl - S open OpenOffice's "Save As" dialog
4. enter
"cmis://http:%2F%2Fadmin:[hidden email]:8080%2Falfresco%2Fcmis/foo.odt"
as file name

--

Dan Corneanu
Sava Technologies SRL
Eroilor de la Tisa nr. 33
300553 Timisoara
Romania

Phone: +40 256 201269, +40 356 101412
Mobile: +40 721 723604
E-mail: [hidden email]
http://www.savatech.ro


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: XContentProvider.queryContent

Dan Corneanu
In reply to this post by Kai Sommerfeld
On 7/6/2010 4:51 PM, Kai Sommerfeld wrote:
> Well, this is one of the dark sides of UCB that definitely needs to
> reworked if we find the time:
>
>  <http://qa.openoffice.org/issues/show_bug.cgi?id=40397>
>
> - Kai.
I have choose to implement queryContent in such a way that if it gets
called with an identifier of an not existing document, to return an
instance of XContent that has "Exists" set to false and is of type
document (by default).

When I try to save a new document to
cmis://http:%2F%2Fadmin:[hidden email]:8080%2Falfresco%2Fcmis/FooBar.odt,
after queryContent gets called with this URI.The next thing is that the
UCB tries to execute a "transfer" with
SourceURL:
cmis://http:%2F%2Fadmin:[hidden email]:8080%2Falfresco%2Fcmis/FooBar.odt
NewTitle: FooBar0.odt
MoveData: false
NameClash: 1

What should this command do?

Best regards,
Dan.

--
Dan Corneanu
Sava Technologies SRL
Eroilor de la Tisa nr. 33
300553 Timisoara
Romania

Phone: +40 256 201269, +40 356 101412
Mobile: +40 721 723604
E-mail: [hidden email]
http://www.savatech.ro


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: XContentProvider.queryContent

Kai Sommerfeld
Hi Dan,

On 07.07.10 10:27, Dan Corneanu wrote:

> On 7/6/2010 4:51 PM, Kai Sommerfeld wrote:
>> Well, this is one of the dark sides of UCB that definitely needs to
>> reworked if we find the time:
>>
>>   <http://qa.openoffice.org/issues/show_bug.cgi?id=40397>
>>
>> - Kai.
> I have choose to implement queryContent in such a way that if it gets
> called with an identifier of an not existing document, to return an
> instance of XContent that has "Exists" set to false and is of type
> document (by default).
>
> When I try to save a new document to
> cmis://http:%2F%2Fadmin:[hidden email]:8080%2Falfresco%2Fcmis/FooBar.odt,
> after queryContent gets called with this URI.The next thing is that the
> UCB tries to execute a "transfer" with
> SourceURL:
> cmis://http:%2F%2Fadmin:[hidden email]:8080%2Falfresco%2Fcmis/FooBar.odt
> NewTitle: FooBar0.odt
> MoveData: false
> NameClash: 1
>
> What should this command do?

<http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/Content.html> Look
for "This command transfers".

- Kai.

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view
|

Re: XContentProvider.queryContent

Dan Corneanu
On 7/7/2010 1:03 PM, Kai Sommerfeld wrote:

> Hi Dan,
>
> On 07.07.10 10:27, Dan Corneanu wrote:
>> On 7/6/2010 4:51 PM, Kai Sommerfeld wrote:
>>> Well, this is one of the dark sides of UCB that definitely needs to
>>> reworked if we find the time:
>>>
>>>   <http://qa.openoffice.org/issues/show_bug.cgi?id=40397>
>>>
>>> - Kai.
>> I have choose to implement queryContent in such a way that if it gets
>> called with an identifier of an not existing document, to return an
>> instance of XContent that has "Exists" set to false and is of type
>> document (by default).
>>
>> When I try to save a new document to
>> cmis://http:%2F%2Fadmin:[hidden email]:8080%2Falfresco%2Fcmis/FooBar.odt,
>>
>> after queryContent gets called with this URI.The next thing is that the
>> UCB tries to execute a "transfer" with
>> SourceURL:
>> cmis://http:%2F%2Fadmin:[hidden email]:8080%2Falfresco%2Fcmis/FooBar.odt
>>
>> NewTitle: FooBar0.odt
>> MoveData: false
>> NameClash: 1
>>
>> What should this command do?
>
> <http://api.openoffice.org/docs/common/ref/com/sun/star/ucb/Content.html>
> Look for "This command transfers".
>
> - Kai.
Ok, maybe I was not clear enough.
I have red the specs for the transfer command but I do not understand
why is the UCB trying a "transfer" with a SourceURL that does not yet
exists and what content can be transferred in this case?

Best regards,
dan.

--
Dan Corneanu
Sava Technologies SRL
Eroilor de la Tisa nr. 33
300553 Timisoara
Romania

Phone: +40 256 201269, +40 356 101412
Mobile: +40 721 723604
E-mail: [hidden email]
http://www.savatech.ro


---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]