Example usage for com.liferay.portal.kernel.webdav.methods Method LOCK

List of usage examples for com.liferay.portal.kernel.webdav.methods Method LOCK

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.webdav.methods Method LOCK.

Prototype

String LOCK

To view the source code for com.liferay.portal.kernel.webdav.methods Method LOCK.

Click Source Link

Usage

From source file:com.liferay.document.library.webdav.test.BaseWebDAVTestCase.java

License:Open Source License

public Tuple serviceLock(String path, Map<String, String> headers, int depth) {

    if (headers == null) {
        headers = new HashMap<>();
    }//from  ww  w. ja v  a2s. c  o  m

    headers.put("Depth", getDepth(depth));
    headers.put("Timeout", "Second-" + 3600);

    return service(Method.LOCK, path, headers, _LOCK_XML.getBytes());
}