Example usage for com.liferay.portal.kernel.repository Repository unlockFolder

List of usage examples for com.liferay.portal.kernel.repository Repository unlockFolder

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.repository Repository unlockFolder.

Prototype

public void unlockFolder(long parentFolderId, String name, String lockUuid) throws PortalException;

Source Link

Usage

From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.java

License:Open Source License

/**
 * Unlocks the folder. This method is primarily used by WebDAV.
 *
 * @param  repositoryId the primary key of the repository
 * @param  parentFolderId the primary key of the parent folder
 * @param  name the folder's name//from w ww  .  j  a  v a2s. co m
 * @param  lockUuid the lock's universally unique identifier
 * @throws PortalException if the repository or folder could not be found
 * @throws SystemException if a system exception occurred
 */
public void unlockFolder(long repositoryId, long parentFolderId, String name, String lockUuid)
        throws PortalException, SystemException {

    Repository repository = getRepository(repositoryId);

    repository.unlockFolder(parentFolderId, name, lockUuid);
}