working report requests with jackrabbit ;)

101 views
Skip to first unread message

Roberto Polli

unread,
Feb 17, 2011, 1:27:36 PM2/17/11
to cald...@googlegroups.com
Hi all,

after playing around with jackrabbit, I found that the GenerateQuery
class allowed me to create Report requests with jackrabbit
ReportMethod ;)

That's *cool* ;)

The code is easy even if not really functional as the old one (hey,
I'm just playing):

//query for vevents
CalendarQuery cq = new GenerateQuery("VEVENT",
"").generateQuery();
//convert the stuff for jackrabbit
Document document = cq.createNewDocument(XMLUtils
.getDOMImplementation());
Element e = cq.outputDOM(document);

// create a jackrabbit report request
ReportInfo reportinfo = new ReportInfo(e,
DepthHeader.DEPTH_INFINITY);
ReportMethod report = new
ReportMethod("http://hub.chandlerproject.org/dav/caldav4j/",
reportinfo);

// execute it
int status = client.executeMethod(report);


Peace,
R.

Santosh Guptha

unread,
Oct 1, 2013, 8:16:10 AM10/1/13
to cald...@googlegroups.com
Hi Roberto,

I am also trying to develop this Report method, Could you share any update on this.
Reply all
Reply to author
Forward
0 new messages