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

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

Introduction

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

Prototype

public boolean verifyFileEntryCheckOut(long fileEntryId, String lockUuid) throws PortalException;

Source Link

Usage

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

License:Open Source License

/**
 * Returns <code>true</code> if the file entry is checked out. This method
 * is primarily used by WebDAV./*  w ww.  j av a  2  s . c o  m*/
 *
 * @param  repositoryId the primary key for the repository
 * @param  fileEntryId the primary key for the file entry
 * @param  lockUuid the lock's universally unique identifier
 * @return <code>true</code> if the file entry is checked out;
 *         <code>false</code> otherwise
 * @throws PortalException if the file entry could not be found
 * @throws SystemException if a system exception occurred
 */
public boolean verifyFileEntryCheckOut(long repositoryId, long fileEntryId, String lockUuid)
        throws PortalException, SystemException {

    Repository repository = getRepository(repositoryId);

    return repository.verifyFileEntryCheckOut(fileEntryId, lockUuid);
}