[Bedework-commit] dumprestore r206 -
trunk/src/org/bedework/dumprestore/restore/rules
svnadmin at bedework.org
svnadmin at bedework.org
Thu May 29 10:21:32 EDT 2008
Author: douglm
Date: 2008-05-29 10:21:32 -0400 (Thu, 29 May 2008)
New Revision: 206
Modified:
trunk/src/org/bedework/dumprestore/restore/rules/CalendarRule.java
Log:
Implement resources folders which can be created within a calendar collection. This follows the approach outlined in RFC 4791 and will provide a place to store shareable attachments while ensuring access restrictions are applied.
In addition, implement support for creating and retrieving 'file' resources which may be stored in any non-calendar collection. This will probably be useful when creating an image repository for example, but is also required for full implementation of shared attachments.
Currently, there is no ui support fo any of this, files may be uploaded with DAV explorer and viewed via a browser accessing the caldav server.
Modified: trunk/src/org/bedework/dumprestore/restore/rules/CalendarRule.java
===================================================================
--- trunk/src/org/bedework/dumprestore/restore/rules/CalendarRule.java 2008-05-21 18:54:51 UTC (rev 205)
+++ trunk/src/org/bedework/dumprestore/restore/rules/CalendarRule.java 2008-05-29 14:21:32 UTC (rev 206)
@@ -93,9 +93,11 @@
String[] pes = calpath.split("/");
int pathLength = pes.length - 1; // First element is empty string
+ /* XXX This no longer works
if (entity.getCalendarCollection()) {
entity.setCalType(BwCalendar.calTypeCollection);
}
+ */
if ((pathLength == 3) &&
sys.getUserCalendarRoot().equals(pes[1])) {
More information about the Bedework-commit
mailing list