Example usage for com.liferay.portal.kernel.lock Lock getLockId

List of usage examples for com.liferay.portal.kernel.lock Lock getLockId

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.lock Lock getLockId.

Prototype

public long getLockId();

Source Link

Usage

From source file:com.liferay.exportimport.controller.PortletExportController.java

License:Open Source License

protected String getLockPath(PortletDataContext portletDataContext, String className, String key, Lock lock) {

    StringBundler sb = new StringBundler(8);

    sb.append(ExportImportPathUtil.getRootPath(portletDataContext));
    sb.append("/locks/");
    sb.append(_portal.getClassNameId(className));
    sb.append(CharPool.FORWARD_SLASH);/*  www. ja v  a 2  s .  co m*/
    sb.append(key);
    sb.append(CharPool.FORWARD_SLASH);
    sb.append(lock.getLockId());
    sb.append(".xml");

    return sb.toString();
}