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);
}
}
Aggregations