RE: Newbee: Understanding question WebDAV-Protocoll

2007-09-14 Thread Miguel Figueiredo
Hello mate,

 If you need to do change the lastModified time of a resource, I would
consider that an hacker wish ;)
 No way you're going to be able to that, especially if you are using the
client API. You would need to change server behavior, and in a way that the
server would not follow webdav specification directives. The reason is
pretty straightforward: webdav specification states that resources have
live and dead properties, being the dead properties the ones we can
PROPPATCH, that is, we can create, update and remove them from the resource.
The live properties values, like lastModified, creationDate, contentLength,
contentType, are calculated in real time (maybe stored afterwards) with
server information. For that reason, they are protected, and can't be
changed by the user (I'll just copy paste and excerpt from rfc4918):

   Live Property - A property whose semantics and syntax are enforced by
   the server.  For example, the live property DAV:getcontentlength has
   its value, the length of the entity returned by a GET request,
   automatically calculated by the server.


 I believe that the protected method setGetLastModified purpose is to set
the date value on the local image of a remote resource. So overriding won't
help you on your intention.

 I don't know why you must change lastModified value, but if it is a
business decision, I would suggest you to create a new property for storing
the value that you want (ex: insert your namespace here:getLastModified).

Hope this helps,
Miguel Figueiredo

-Original Message-
From: pk_jsp [mailto:[EMAIL PROTECTED] 
Sent: quinta-feira, 13 de Setembro de 2007 22:16
To: slide-user@jakarta.apache.org
Subject: RE: Newbee: Understanding question WebDAV-Protocoll


Hi Miguel,

I was wandering into this list and read this thread in whole. 
A very brief introduction: I am using Webdav to programatically (Java) bulk
import text files from local drive into EMC eRoom Server. This line explains
all my environment. I am using Slide client library. 

Can you help me in this specific question: By default the lastModified time
of imported file is the current time when it is imported. Can I override
this behaviour and retain the original time from source location.

The 'WebdavFile' class has no such method. But 'WebdavResource' has a method
setGetLastModified but it is protected. I think if I extend it in my custom
class I can achieve this. 

Any comments on this.

-- 
View this message in context:
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf41
02995.html#a12663741
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


-
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: Newbee: Understanding question WebDAV-Protocoll

2007-09-14 Thread Julian Reschke

Miguel Figueiredo wrote:

Hello mate,

 If you need to do change the lastModified time of a resource, I would
consider that an hacker wish ;)
 No way you're going to be able to that, especially if you are using the
client API. You would need to change server behavior, and in a way that the
server would not follow webdav specification directives. The reason is
pretty straightforward: webdav specification states that resources have
live and dead properties, being the dead properties the ones we can
PROPPATCH, that is, we can create, update and remove them from the resource.
The live properties values, like lastModified, creationDate, contentLength,
contentType, are calculated in real time (maybe stored afterwards) with
server information. For that reason, they are protected, and can't be
changed by the user (I'll just copy paste and excerpt from rfc4918):

   Live Property - A property whose semantics and syntax are enforced by
   the server.  For example, the live property DAV:getcontentlength has
   its value, the length of the entity returned by a GET request,
   automatically calculated by the server.

...


Well.

This means that a server is *allowed* to reject a request setting 
DAV:getlastmodified. But it doesn't have to.


Best regards, Julian

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



RE: Newbee: Understanding question WebDAV-Protocoll

2007-09-13 Thread pk_jsp

Hi Miguel,

I was wandering into this list and read this thread in whole. 
A very brief introduction: I am using Webdav to programatically (Java) bulk
import text files from local drive into EMC eRoom Server. This line explains
all my environment. I am using Slide client library. 

Can you help me in this specific question: By default the lastModified time
of imported file is the current time when it is imported. Can I override
this behaviour and retain the original time from source location.

The 'WebdavFile' class has no such method. But 'WebdavResource' has a method
setGetLastModified but it is protected. I think if I extend it in my custom
class I can achieve this. 

Any comments on this.

-- 
View this message in context: 
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf4102995.html#a12663741
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


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



RE: Newbee: Understanding question WebDAV-Protocoll

2007-07-26 Thread Mario Becker-Reinhold

Hello Miguel,

thanks, this hint helps me very much. Now it is all a little bit clear to
me. So I have downloaded the client api and tried to send data from the
pdm-system to the centera and also from the pdm-system to a simple
filesystem - it works all very fine and like expected.
So now I can try to test all required functions to step more and more into
the webdav world. And if I have any further questions, I know, where I find
competent help ;-)

Thank you very much.

Regards
Mario 


Miguel Figueiredo wrote:
 
 Hello Mario,
 
  You dont need Slide Server to use ECM Centera, just the slide client API.
 It is available from jackarta downloads site, at
 http://jakarta.apache.org/site/downloads/downloads_slide.cgi -
 2.1_client.zip (for example). Then it's all about using the containing jar
 (or source if u prefer) on your eclipse pdm-system project.
 
 If you like, it would be great to test the webdav client API against the
 Centera server, just to see webdav protocol working.
 
  Best Regards,
  Miguel Figueiredo
 

-- 
View this message in context: 
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf4102995.html#a11805990
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


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



RE: Newbee: Understanding question WebDAV-Protocoll

2007-07-23 Thread Mario Becker-Reinhold

Hello once again Miguel,

so I  prefer to use the webdav protocol as interface to the repository,
okay, I understand there is no other way excepting slide.
So what I have tried: I followed the steps to install Slide at 
http://wiki.apache.org/jakarta-slide/WckQuickStart
http://wiki.apache.org/jakarta-slide/WckQuickStart 
After checkout from CVS I goto Eclipse and start a new project Java project
from existing ant buildfile but there are some errors after project build.
That means there went something wrong with some JAR files? If you can have a
look at the screenshot below please (jaxp.jar,xmlapi.jar?)? I don't know,
what could have happened and how to fix it?
And another question is: Do you know for what exactly I will need this
patch described in 3) of the requirements of wck?

Thanks,
Mario

http://web42.bces-1445.de/computerhilfen/slide_eclipse_errors.jpg 


Miguel Figueiredo wrote:
 
 Hello Mario,
 
 If the ECM Centera reporitory is remote to the pdm-system, there is no
 doubt
 you will want to use slide's webdav client API. You could use ECM Centera
 API if the pdm-system would be in the same app server, but since you
 prefer
 to use the webdav protocol as interface to the repository (I would too, if
 communication overhead isn't very critical), slide's webdav client API is
 still the way to go.
 
 Best regards,
 Miguel Figueiredo
 

-- 
View this message in context: 
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf4102995.html#a11738836
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


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



RE: Newbee: Understanding question WebDAV-Protocoll

2007-07-23 Thread Miguel Figueiredo
Hello Mario,

 You dont need Slide Server to use ECM Centera, just the slide client API.
It is available from jackarta downloads site, at
http://jakarta.apache.org/site/downloads/downloads_slide.cgi -
2.1_client.zip (for example). Then it's all about using the containing jar
(or source if u prefer) on your eclipse pdm-system project.

If you like, it would be great to test the webdav client API against the
Centera server, just to see webdav protocol working.

 Best Regards,
 Miguel Figueiredo


-Original Message-
From: Mario Becker-Reinhold [mailto:[EMAIL PROTECTED] 
Sent: segunda-feira, 23 de Julho de 2007 8:07
To: slide-user@jakarta.apache.org
Subject: RE: Newbee: Understanding question WebDAV-Protocoll


Hello once again Miguel,

so I  prefer to use the webdav protocol as interface to the repository,
okay, I understand there is no other way excepting slide.
So what I have tried: I followed the steps to install Slide at 
http://wiki.apache.org/jakarta-slide/WckQuickStart
http://wiki.apache.org/jakarta-slide/WckQuickStart 
After checkout from CVS I goto Eclipse and start a new project Java project
from existing ant buildfile but there are some errors after project build.
That means there went something wrong with some JAR files? If you can have a
look at the screenshot below please (jaxp.jar,xmlapi.jar?)? I don't know,
what could have happened and how to fix it?
And another question is: Do you know for what exactly I will need this
patch described in 3) of the requirements of wck?

Thanks,
Mario

http://web42.bces-1445.de/computerhilfen/slide_eclipse_errors.jpg 


Miguel Figueiredo wrote:
 
 Hello Mario,
 
 If the ECM Centera reporitory is remote to the pdm-system, there is no
 doubt
 you will want to use slide's webdav client API. You could use ECM Centera
 API if the pdm-system would be in the same app server, but since you
 prefer
 to use the webdav protocol as interface to the repository (I would too, if
 communication overhead isn't very critical), slide's webdav client API is
 still the way to go.
 
 Best regards,
 Miguel Figueiredo
 

-- 
View this message in context:
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf41
02995.html#a11738836
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


-
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: Newbee: Understanding question WebDAV-Protocoll

2007-07-20 Thread Mario Becker-Reinhold

Hello Miguel,

thanks for you answer, but if I understood you correctly then there are 3
ways to use WebDAV.
1st) using it with the Slide (complexest way)
2nd) using it with the wck framework
3rd) using it directly (simplest way)

So the 3rd alternative is the best for me, that means that I can use the
servlets api to create the objects directly in my java code, but now I'm
searching for a simple example. I'm hanging in eclipse library imports,
there is the message that a type cannot be resolved, because the type is
indirectly referenced by a class file. But which are the correct imports for
it? I added the %tomcat%\server\lib as external librarys to the project,
now I can make a instance from the WebdavServlet but if I want to call now a
method of the object I will get always this indirectly referenced error.

Regards
Mario Becker-Reinhold


Miguel Figueiredo wrote:
 
 
 Hello Mario,
 
  For accessing the webdav server programmatically, I recommend using
 slide's
 webdav client api - there is no problem using it in a eclipse project.
 
 Hope this helps,
 Miguel Figueiredo
 
 

-- 
View this message in context: 
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf4102995.html#a11703120
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


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



RE: Newbee: Understanding question WebDAV-Protocoll

2007-07-20 Thread Miguel Figueiredo
Hello Mario,

 Are you are planning to develop a server side application that integrates
webdav functionalities? If that is the case, I'm sorry to mislead you in my
last email recommending the use of slide's webdav client api. Never done
what you are attempting to do, but from what I have read, WCK is the way to
go.

 Also, the indirectly referenced error is a common java error that occurs
when some needed dependency is not available. When that happens write down
the needed class and google it until you finds the corresponding jar file.
Finally add that jar to your classpath. Repeat until no such error occurs.

Hope this helps,
Miguel Figueiredo

-Original Message-
From: Mario Becker-Reinhold [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 20 de Julho de 2007 8:00
To: slide-user@jakarta.apache.org
Subject: RE: Newbee: Understanding question WebDAV-Protocoll


Hello Miguel,

thanks for you answer, but if I understood you correctly then there are 3
ways to use WebDAV.
1st) using it with the Slide (complexest way)
2nd) using it with the wck framework
3rd) using it directly (simplest way)

So the 3rd alternative is the best for me, that means that I can use the
servlets api to create the objects directly in my java code, but now I'm
searching for a simple example. I'm hanging in eclipse library imports,
there is the message that a type cannot be resolved, because the type is
indirectly referenced by a class file. But which are the correct imports for
it? I added the %tomcat%\server\lib as external librarys to the project,
now I can make a instance from the WebdavServlet but if I want to call now a
method of the object I will get always this indirectly referenced error.

Regards
Mario Becker-Reinhold


Miguel Figueiredo wrote:
 
 
 Hello Mario,
 
  For accessing the webdav server programmatically, I recommend using
 slide's
 webdav client api - there is no problem using it in a eclipse project.
 
 Hope this helps,
 Miguel Figueiredo
 
 

-- 
View this message in context:
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf41
02995.html#a11703120
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


-
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: Newbee: Understanding question WebDAV-Protocoll

2007-07-20 Thread Mario Becker-Reinhold

Hello Miguel,

it does'nt matter, let me explain it in a little bit more detail:
the goal of the project should be, that we are able to store engineering
data from an pdm-system in an archive (save + find).
The simplest way we wanne start is that a user of the pdm-system push a
button (label like Archive Construction) which starts a workflow
(collecting physical file of the construction(s) and collect + save all
metadatas in an xml-file). Both we want to transmit into the archive (e.g.
EMC's Centera - if you know about that). The archive system does support
WebDAV too, and now we (better I) try to evaluate if its generally possible
to send this data with WebDAV-protocoll and now I'm right on this point. It
is possible, and it is also the best way, because WebDAV is very abstract
(so that we are able to connect to any other system too) and its a common
standard, so that we dont need a proprietary implementation (which is better
for our customers and better for our sales to argue :-) ).
And now I'm still at this point to get the simplest way to send the data due
to webdav-protocoll. In my opinion I would say very, very simplified that we
only have to send a request!? So I dont need special functionallity which
comes with Slide, the core functions of webdav are already enough for us.
(Error and user handling will be done in the pdm-system)
I hope you understood my bad english... and you can help me once more.

Regards
Mario Becker-Reinhold


Miguel Figueiredo wrote:
 
 Hello Mario,
 
  Are you are planning to develop a server side application that integrates
 webdav functionalities? If that is the case, I'm sorry to mislead you in
 my
 last email recommending the use of slide's webdav client api. Never done
 what you are attempting to do, but from what I have read, WCK is the way
 to
 go.
 
  Also, the indirectly referenced error is a common java error that
 occurs
 when some needed dependency is not available. When that happens write down
 the needed class and google it until you finds the corresponding jar file.
 Finally add that jar to your classpath. Repeat until no such error occurs.
 
 Hope this helps,
 Miguel Figueiredo
 

-- 
View this message in context: 
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf4102995.html#a11704952
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


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



RE: Newbee: Understanding question WebDAV-Protocoll

2007-07-20 Thread Miguel Figueiredo
Hello Mario,

If the ECM Centera reporitory is remote to the pdm-system, there is no doubt
you will want to use slide's webdav client API. You could use ECM Centera
API if the pdm-system would be in the same app server, but since you prefer
to use the webdav protocol as interface to the repository (I would too, if
communication overhead isn't very critical), slide's webdav client API is
still the way to go.

Best regards,
Miguel Figueiredo

-Original Message-
From: Mario Becker-Reinhold [mailto:[EMAIL PROTECTED] 
Sent: sexta-feira, 20 de Julho de 2007 10:29
To: slide-user@jakarta.apache.org
Subject: RE: Newbee: Understanding question WebDAV-Protocoll


Hello Miguel,

it does'nt matter, let me explain it in a little bit more detail:
the goal of the project should be, that we are able to store engineering
data from an pdm-system in an archive (save + find).
The simplest way we wanne start is that a user of the pdm-system push a
button (label like Archive Construction) which starts a workflow
(collecting physical file of the construction(s) and collect + save all
metadatas in an xml-file). Both we want to transmit into the archive (e.g.
EMC's Centera - if you know about that). The archive system does support
WebDAV too, and now we (better I) try to evaluate if its generally possible
to send this data with WebDAV-protocoll and now I'm right on this point. It
is possible, and it is also the best way, because WebDAV is very abstract
(so that we are able to connect to any other system too) and its a common
standard, so that we dont need a proprietary implementation (which is better
for our customers and better for our sales to argue :-) ).
And now I'm still at this point to get the simplest way to send the data due
to webdav-protocoll. In my opinion I would say very, very simplified that we
only have to send a request!? So I dont need special functionallity which
comes with Slide, the core functions of webdav are already enough for us.
(Error and user handling will be done in the pdm-system)
I hope you understood my bad english... and you can help me once more.

Regards
Mario Becker-Reinhold


Miguel Figueiredo wrote:
 
 Hello Mario,
 
  Are you are planning to develop a server side application that integrates
 webdav functionalities? If that is the case, I'm sorry to mislead you in
 my
 last email recommending the use of slide's webdav client api. Never done
 what you are attempting to do, but from what I have read, WCK is the way
 to
 go.
 
  Also, the indirectly referenced error is a common java error that
 occurs
 when some needed dependency is not available. When that happens write down
 the needed class and google it until you finds the corresponding jar file.
 Finally add that jar to your classpath. Repeat until no such error occurs.
 
 Hope this helps,
 Miguel Figueiredo
 

-- 
View this message in context:
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf41
02995.html#a11704952
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


-
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: Newbee: Understanding question WebDAV-Protocoll

2007-07-19 Thread Mario Becker-Reinhold

Hi Miguel,

thanks for the quick respopnse. Actually I think that the webdav-servlet
which comes with tomcat is the best method of resolution for my problem too.
So I try starting more to deal with this one. But, does anybody knows a
simple example, how to use/how to access this webdav functionality in java?
I know there is an API but my problem is to implement the resources correct
in eclipse to use it!?

Regards,
Mario Becker-Reinhold



Miguel Figueiredo wrote:
 
 
 Hello Mário,
 
  Slide implements most of the webdav protocol stack, which is defined in
 various RFCs. The complete RFCs list, and more, is in
 http://www.webdav.org/specs/ (slide implemented features list is in
 http://jakarta.apache.org/slide/).
 
  If you don’t want to implement code that enforces access control lists on
 resources (files, directories), you will need Slide. If you don’t need
 that,
 that is, if you just need to browse/create/upload/download resources,
 which
 seems your case, default Tomcat WebDAV servlet should be enough.
  WCK provides more features than Tomcat's dav servlet (like transactions),
 but less than Slide - it could be used also.
  Of course, Slide is more complete than the other options.
 
 Hope this helps,
 Miguel Figueiredo
 

-- 
View this message in context: 
http://www.nabble.com/Newbee%3A-Understanding-question-WebDAV-Protocoll-tf4102995.html#a11686117
Sent from the Jakarta Slide - User mailing list archive at Nabble.com.


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