You are viewing a plain text version of this content. The canonical link for it is here.
Posted to slide-user@jakarta.apache.org by Eric Hodges <er...@mongoosetech.com> on 2002/05/23 17:28:56 UTC

WebdavResource and Creation Date

I figured out why WebdavResource always returns a bogus creation date.  It
never asks the server for it.

In setBasicProperties(), add this line to make it ask the server for creation
date:

		properties.addElement(CREATIONDATE);

Committers:

Can someone make this change in CVS?  I've seen a few other posts asking why
this value was always bogus.

--
To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>


Re: WebdavResource and Creation Date

Posted by Sung-Gu <jericho at apache.org>.
>
> ----- Original Message ----- 
> From: "Eric Hodges" <er...@mongoosetech.com>
> To: <sl...@jakarta.apache.org>
> Cc: <sl...@jakarta.apache.org>
> Sent: Friday, May 24, 2002 12:28 AM
> Subject: WebdavResource and Creation Date
> 
> 
> I figured out why WebdavResource always returns a bogus creation date.  It
> never asks the server for it.

For right now, you can use the setDefaultAction method with a action of ALL.

> In setBasicProperties(), add this line to make it ask the server for creation
> date:

The setBasicProperties is made for consideration of network traffic... 
If there were many resources, that would be some troubles...
You can notice that there is a last modified date as one of the very basic 6 properties.

> 
> properties.addElement(CREATIONDATE);
> 

I think it's time to utilize the default... probably the method named setDefaultProperties...
We can set the properties mostly used.
It will have somewhat the different function distinguishing in between setting
basicProperties and DefaultProperties.

BTW, if you need to consider the network traffic seriously, 
you can set the action of the setProperties methods with the argument as setting name only...
That gathers only names for resources....  ;)

> Committers:
> 
> Can someone make this change in CVS?  I've seen a few other posts asking why
> this value was always bogus.

Could you please RECOMMEND those attributes of a WebDAV resource mostly used...
Just like createdate and some more?  Those what you need will be 'DEFAULT'.... 

What do you think of it?   It's ok?  ;)

> 
> --
> To unsubscribe, e-mail:   <ma...@jakarta.apache.org>
> For additional commands, e-mail: <ma...@jakarta.apache.org>
> 
>