[Yanel-dev] New published interface ""WebDAVable"

Michael Wechner michael.wechner at wyona.com
Tue Jan 9 01:09:06 CET 2007


Michael Wechner wrote:

> Michael Wechner wrote:
>
>> Michael Wechner wrote:
>>
>>> Hi
>>>
>>> In order to implement WebDAV, we need an interface with methods like
>>>
>>> isCollection()
>>> isResource()
>>> getChildren()
>>>
>>> getSize()
>>> getDisplayName()
>>>
>>> I wonder how we best enhance the current interfaces
>>>
>>> http://yanel.wyona.org/javadoc/org/wyona/yanel/core/api/attributes/package-summary.html 
>>>
>>>
>>> resp. introduce a new one?
>>
>>
>>
>>
>> the following names come to my mind:
>>
>> - PropFindable
>> - Browsable
>> - Explorable
>> - Traversable (which might be a more appropriate name replacement for 
>> DirectoryResource: TraversableResource. Also NodeResource instead 
>> FileResource)
>
>
>
>
> I think Traversable would be best with the following methods:
>
> isResource()
> isCollection()
> getChildren()


after thinking about it once more, I do not think it's a good idea to
create the traversable interface for resources, but rather introduce the 
"navigation framework" which will be needed anyway and decouples the 
navigation from the resources.

Cheers

Michi

>
> Cheers
>
> Michi
>
>>
>> WDYT?
>>
>> Thanks
>>
>> Michi
>>
>>>
>>> WDYT?
>>>
>>> Thanks
>>>
>>> Michi
>>>
>>
>>
>
>


-- 
Michael Wechner
Wyona      -   Open Source Content Management   -    Apache Lenya
http://www.wyona.com                      http://lenya.apache.org
michael.wechner at wyona.com                        michi at apache.org
+41 44 272 91 61




More information about the Yanel-development mailing list