List of usage examples for com.liferay.portal.kernel.lock Lock getLockId
public long getLockId();
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(); }