Search in sources :

Example 6 with CalendarsI

use of org.bedework.calsvci.CalendarsI in project bw-calendar-engine by Bedework.

the class DumpPublic method doDump.

/**
 * Dump everything owned by this principal
 *
 * @throws CalFacadeException on error
 */
public void doDump() throws CalFacadeException {
    dumpCategories(true);
    dumpContacts(true);
    dumpLocations(true);
    try {
        makeDir(Defs.collectionsDirName, false);
        final CalendarsI cols = getSvc().getCalendarsHandler();
        final BwCalendar pubcal = cols.getPublicCalendars();
        if (pubcal == null) {
            warn("Unable to fetch public calendar root");
            return;
        }
        dumpCol(pubcal, true);
    } finally {
        popPath();
    }
}
Also used : CalendarsI(org.bedework.calsvci.CalendarsI) BwCalendar(org.bedework.calfacade.BwCalendar)

Aggregations

BwCalendar (org.bedework.calfacade.BwCalendar)6 CalendarsI (org.bedework.calsvci.CalendarsI)6 ArrayList (java.util.ArrayList)2 CalFacadeAccessException (org.bedework.calfacade.exc.CalFacadeAccessException)2 EventInfo (org.bedework.calfacade.svc.EventInfo)2 File (java.io.File)1 Collection (java.util.Collection)1 TreeSet (java.util.TreeSet)1 Period (net.fortuna.ical4j.model.Period)1 CalDAVCollection (org.bedework.caldav.server.CalDAVCollection)1 FilterBase (org.bedework.caldav.util.filter.FilterBase)1 OrFilter (org.bedework.caldav.util.filter.OrFilter)1 BwAttendee (org.bedework.calfacade.BwAttendee)1 BwEvent (org.bedework.calfacade.BwEvent)1 BwEventObj (org.bedework.calfacade.BwEventObj)1 BwFreeBusyComponent (org.bedework.calfacade.BwFreeBusyComponent)1 RecurringRetrievalMode (org.bedework.calfacade.RecurringRetrievalMode)1 CalFacadeException (org.bedework.calfacade.exc.CalFacadeException)1 BwPreferences (org.bedework.calfacade.svc.BwPreferences)1 EventPeriods (org.bedework.calfacade.util.EventPeriods)1