List of usage examples for com.liferay.portal.kernel.repository Repository lockFolder
public Lock lockFolder(long folderId) throws PortalException;
From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.java
License:Open Source License
/** * Locks the folder. This method is primarily used by WebDAV. * * @param repositoryId the primary key of the repository * @param folderId the primary key of the folder * @return the lock object/*www . j a v a2s. c o m*/ * @throws PortalException if the repository or folder could not be found * @throws SystemException if a system exception occurred */ public Lock lockFolder(long repositoryId, long folderId) throws PortalException, SystemException { Repository repository = getRepository(repositoryId); return repository.lockFolder(folderId); }