Example usage for com.liferay.portal.kernel.webdav WebDAVStorage getResources

List of usage examples for com.liferay.portal.kernel.webdav WebDAVStorage getResources

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.webdav WebDAVStorage getResources.

Prototype

public List<Resource> getResources(WebDAVRequest webDAVRequest) throws WebDAVException;

Source Link

Usage

From source file:it.smc.calendar.sync.caldav.methods.BasePropMethodImpl.java

License:Open Source License

protected void addResponse(WebDAVStorage storage, WebDAVRequest webDAVRequest, Resource resource,
        Set<QName> props, Element multistatusElement, long depth) throws Exception {

    addResponse(webDAVRequest, resource, multistatusElement, props);

    if (resource.isCollection() && (depth != 0)) {
        List<Resource> calendarResources = storage.getResources(webDAVRequest);

        for (Resource calendarResource : calendarResources) {
            addResponse(webDAVRequest, calendarResource, multistatusElement, props);
        }//w ww  . ja  v  a  2 s  .  c  o m
    }
}