RE: Create a webdav resource on the server side

2005-03-08 Thread Evan Kracoff
I am doing something similar, I am dropping in an excel sheet and
loading up its contents as objects, then writing out a log to show what
was loaded and what failed. I catch the event in the EventCollection guy
and pass in the slideToken to this method.  

Heres my code

private void createOutput(String file_uri, SlideToken
slideToken, String report, String userId) {
String uri = file_uri + .log;

NamespaceAccessToken nat =
Domain.accessNamespace(new SecurityToken(), slide);
Structure struct = nat.getStructureHelper();
Content content = nat.getContentHelper();

struct.create(slideToken, new SubjectNode(uri),
uri);

NodeRevisionDescriptor revisionDescriptor = new
NodeRevisionDescriptor(0);

NodeRevisionContent rc = new
NodeRevisionContent();
rc.setContent(report.toCharArray());

revisionDescriptor.setProperty(revision, 1);
revisionDescriptor.setResourceType();

revisionDescriptor.setContentLength(report.length());

content.create(slideToken, uri,
revisionDescriptor, rc);

Hope this helps

Evan Kracoff

-Original Message-
From: Miguel Figueiredo [mailto:[EMAIL PROTECTED] 
Sent: Friday, March 04, 2005 12:51 PM
To: 'Slide Users Mailing List'
Subject: RE: Create a webdav resource on the server side



Hello David,

 From your response I believe that you can use my suggestion. The
property can be modified, of course. You can't index the property using
only slide, but there are some initiatives to integrate Lucene. I didn't
tried it yet, but from what I've listened it's not trivial: you must get
your hands dirty.

 The proppatch command is done in the client side, that is correct,
using Slide's client API. You will notice that in the API you have a
'startTransaction' and a 'commitTransaction', witch means you can
aggregate several commands in a single go. It's not difficult to use,
just observe the WebdavResource class javadocs and you can start doing
your stuff :)

Best regards,
Miguel Figueiredo

__

Hello Miguel,

Thanks for the quick replies.

I can reply yes certainly to the 2 first questions. I think the reply of

the third question is yes also. By WITH you mean store the XML data in a

property associated with this Webdav JPEG resource ?
The reply is yes if this property could be modified and indexed, that's 
exactly what we want to do !

I think making a PROPPATCH dav command is to be done on the client side,

isn't it ?

What do you mean by or atomically by using Slide's transaction
features ?

Where could I find some examples ? I've search in the mailing list and 
in documentation, but I've find nothing.

David

Miguel Figueiredo wrote:

Hello David,

 That is an interesting question. In response I ask you other questions

 ;)
:

 * Do you have software that produces that desired Jpeg 
 metainformation?
 * If so, does it produce XML data?
 * If so, is it ok to save that XML data WITH the Jpeg file?

 If these entire questions are true, I would give you a suggestion: 
When saving a jpeg file into the webdav repository, make a PROPPATCH 
dav command in sequence (or atomically by using Slide's transaction 
features) to a property of the file like

   UR.NS:JpegMeta

and making the its value the XML metainfo obtained from your metadata 
producer.

 Hope this helps,
 Miguel

___

Hello,

Like many others I'm new on Slide/Webdav, so I discover his fabulous 
capabilities step by step.

We are trying to do a content management system for JPeg images. While 
putting a new file on the server I would like to extract metadata 
information contained in the image file and store this in a separate 
XML file also in the server repository. I've search in the 
documentation, API and source code but without success for the moment. 
I can trigger event on the PUT method, extract the data with an 
extractor, but I don't how to inject my data in the repository.

How can I do this ?  Is it the right way for doing this ?

Thanks,

David



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED

Re: Create a webdav resource on the server side

2005-03-04 Thread Thomas Bellembois
Hello,
It does not seem to be an easy task, but you could perhaps do that 
modifying the store you have choosen to store your content.
What is the final goal of your project ?

Thomas
--
BELLEMBOIS Thomas
CRI, Université de Rennes 1
Campus de beaulieu
Avenue du Général Leclerc
35042 RENNES Cedex
Tél.: 02.23.23.69.60
Mail: [EMAIL PROTECTED]

David Courtin wrote:
Hello,
Like many others I'm new on Slide/Webdav, so I discover his fabulous
capabilities step by step.
We are trying to do a content management system for JPeg images. While
putting a new file on the server I would like to extract metadata
information contained in the image file and store this in a separate XML
file also in the server repository. I've search in the documentation,
API and source code but without success for the moment. I can trigger
event on the PUT method, extract the data with an extractor, but I don't
how to inject my data in the repository.
How can I do this ?  Is it the right way for doing this ?
Thanks,
David

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Create a webdav resource on the server side

2005-03-04 Thread Miguel Figueiredo

Hello David,

 That is an interesting question. In response I ask you other questions ;) :

 * Do you have software that produces that desired Jpeg metainformation?
 * If so, does it produce XML data?
 * If so, is it ok to save that XML data WITH the Jpeg file?

 If these entire questions are true, I would give you a suggestion: When
saving a jpeg file into the webdav repository, make a PROPPATCH dav command
in sequence (or atomically by using Slide's transaction features) to a
property of the file like

UR.NS:JpegMeta

and making the its value the XML metainfo obtained from your metadata
producer.

 Hope this helps,
 Miguel

___

Hello,

Like many others I'm new on Slide/Webdav, so I discover his fabulous
capabilities step by step.

We are trying to do a content management system for JPeg images. While
putting a new file on the server I would like to extract metadata
information contained in the image file and store this in a separate XML
file also in the server repository. I've search in the documentation,
API and source code but without success for the moment. I can trigger
event on the PUT method, extract the data with an extractor, but I don't
how to inject my data in the repository.

How can I do this ?  Is it the right way for doing this ?

Thanks,

David



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Create a webdav resource on the server side

2005-03-04 Thread David Courtin
Hello Miguel,
Thanks for the quick replies.
I can reply yes certainly to the 2 first questions. I think the reply of 
the third question is yes also. By WITH you mean store the XML data in a 
property associated with this Webdav JPEG resource ?
The reply is yes if this property could be modified and indexed, that's 
exactly what we want to do !

I think making a PROPPATCH dav command is to be done on the client side, 
isn't it ?

What do you mean by or atomically by using Slide's transaction features ?
Where could I find some examples ? I've search in the mailing list and 
in documentation, but I've find nothing.

David
Miguel Figueiredo wrote:
Hello David,
That is an interesting question. In response I ask you other questions ;) :
* Do you have software that produces that desired Jpeg metainformation?
* If so, does it produce XML data?
* If so, is it ok to save that XML data WITH the Jpeg file?
If these entire questions are true, I would give you a suggestion: When
saving a jpeg file into the webdav repository, make a PROPPATCH dav command
in sequence (or atomically by using Slide's transaction features) to a
property of the file like
UR.NS:JpegMeta
and making the its value the XML metainfo obtained from your metadata
producer.
Hope this helps,
Miguel
___
Hello,
Like many others I'm new on Slide/Webdav, so I discover his fabulous
capabilities step by step.
We are trying to do a content management system for JPeg images. While
putting a new file on the server I would like to extract metadata
information contained in the image file and store this in a separate XML
file also in the server repository. I've search in the documentation,
API and source code but without success for the moment. I can trigger
event on the PUT method, extract the data with an extractor, but I don't
how to inject my data in the repository.
How can I do this ?  Is it the right way for doing this ?
Thanks,
David

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Create a webdav resource on the server side

2005-03-04 Thread Miguel Figueiredo

Hello David,

 From your response I believe that you can use my suggestion. The property
can be modified, of course. You can't index the property using only slide,
but there are some initiatives to integrate Lucene. I didn't tried it yet,
but from what I've listened it's not trivial: you must get your hands dirty.

 The proppatch command is done in the client side, that is correct, using
Slide's client API. You will notice that in the API you have a
'startTransaction' and a 'commitTransaction', witch means you can aggregate
several commands in a single go. It's not difficult to use, just observe the
WebdavResource class javadocs and you can start doing your stuff :)

Best regards,
Miguel Figueiredo

__

Hello Miguel,

Thanks for the quick replies.

I can reply yes certainly to the 2 first questions. I think the reply of 
the third question is yes also. By WITH you mean store the XML data in a 
property associated with this Webdav JPEG resource ?
The reply is yes if this property could be modified and indexed, that's 
exactly what we want to do !

I think making a PROPPATCH dav command is to be done on the client side, 
isn't it ?

What do you mean by or atomically by using Slide's transaction features ?

Where could I find some examples ? I've search in the mailing list and 
in documentation, but I've find nothing.

David

Miguel Figueiredo wrote:

Hello David,

 That is an interesting question. In response I ask you other questions ;)
:

 * Do you have software that produces that desired Jpeg metainformation?
 * If so, does it produce XML data?
 * If so, is it ok to save that XML data WITH the Jpeg file?

 If these entire questions are true, I would give you a suggestion: When
saving a jpeg file into the webdav repository, make a PROPPATCH dav command
in sequence (or atomically by using Slide's transaction features) to a
property of the file like

   UR.NS:JpegMeta

and making the its value the XML metainfo obtained from your metadata
producer.

 Hope this helps,
 Miguel

___

Hello,

Like many others I'm new on Slide/Webdav, so I discover his fabulous
capabilities step by step.

We are trying to do a content management system for JPeg images. While
putting a new file on the server I would like to extract metadata
information contained in the image file and store this in a separate XML
file also in the server repository. I've search in the documentation,
API and source code but without success for the moment. I can trigger
event on the PUT method, extract the data with an extractor, but I don't
how to inject my data in the repository.

How can I do this ?  Is it the right way for doing this ?

Thanks,

David



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]