Hi Ludovic,
I have added PUT / MKCOL support for xwiki-webdav but MKCOL support is
limited at this point. Users can add spaces, pages (into spaces), edit /
write changes into pages. But i've hit a wall trying to implement
prent-child relationships (adding child pages).
At this point i have to emphasize that we need to refactor our code base
before moving any further, because XWikiDavResourceImpl is really huge and
it's complexity drives me nuts at some points (sooo many if-else switches).
At a first glance i see following class structure,
DavResource
|
+ - XWikiDavResource (abstract)
|
+ - XWikiRootDavResource (for views)
|
+ - XWikiSpaceDavResource
|
+ - XWikiPageDavResource
|
+ - XWikiAttachmentDavResource
I've almost hit a dead-end with the current code base (because i was trying
to stick with it) and i seriously believe we have to refactor.
I can complete this refactoring within a week's time so that it won't affect
my time line.
Ludovic, what so you think ?
If any of you have comments about the design i propose, please let me know.
Thanks.
- Asiri