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

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

Introduction

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

Prototype

String UNLOCK

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

Click Source Link

Usage

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

License:Open Source License

public Tuple serviceUnlock(String path, String lock) {
    Map<String, String> headers = null;

    if (Validator.isNotNull(lock)) {
        headers = new HashMap<>();

        headers.put("Lock-Token", "<opaquelocktoken:" + lock + ">");
    }//  www.j a v  a2s  . com

    return service(Method.UNLOCK, path, headers, null);
}