Example usage for com.liferay.portal.kernel.repository LocalRepository getFolder

List of usage examples for com.liferay.portal.kernel.repository LocalRepository getFolder

Introduction

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

Prototype

public Folder getFolder(long parentFolderId, String name) throws PortalException;

Source Link

Usage

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

License:Open Source License

/**
 * Returns the folder with the name in the parent folder.
 *
 * @param  repositoryId the primary key of the folder's repository
 * @param  parentFolderId the primary key of the folder's parent folder
 * @param  name the folder's name//from   w  ww  . j  a v  a 2 s .  c o m
 * @return the folder with the name in the parent folder
 * @throws PortalException if the folder could not be found
 * @throws SystemException if a system exception occurred
 */
public Folder getFolder(long repositoryId, long parentFolderId, String name)
        throws PortalException, SystemException {

    LocalRepository localRepository = getLocalRepository(repositoryId);

    return localRepository.getFolder(parentFolderId, name);
}