Search in sources :

Example 1 with CalendarObject

use of com.zimbra.cs.dav.resource.CalendarObject in project zm-mailbox by Zimbra.

the class CalendarQuery method handleCalendarItem.

private void handleCalendarItem(QueryContext ctxt, DavResource calItem) {
    if (!(calItem instanceof CalendarObject))
        return;
    try {
        CalendarObject calobj = (CalendarObject) calItem;
        if (!calobj.match(ctxt.componentFilter)) {
            return;
        }
        DavResponse resp = ctxt.davCtxt.getDavResponse();
        if (ctxt.expandRange != null) {
            calobj.expand(ctxt.expandRange);
        }
        resp.addResource(ctxt.davCtxt, calItem, ctxt.props, false);
    } catch (DavException de) {
        ZimbraLog.dav.error("can't get calendar item data", de);
    }
}
Also used : DavResponse(com.zimbra.cs.dav.service.DavResponse) DavException(com.zimbra.cs.dav.DavException) CalendarObject(com.zimbra.cs.dav.resource.CalendarObject)

Aggregations

DavException (com.zimbra.cs.dav.DavException)1 CalendarObject (com.zimbra.cs.dav.resource.CalendarObject)1 DavResponse (com.zimbra.cs.dav.service.DavResponse)1