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 
>> <jogischm...@gmail.com>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

Reply via email to