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 folderId) 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 primary key.
 *
 * @param  folderId the primary key of the folder
 * @return the folder with the primary key
 * @throws PortalException if the folder could not be found
 * @throws SystemException if a system exception occurred
 */// www .  j ava  2  s  . c o  m
public Folder getFolder(long folderId) throws PortalException, SystemException {

    LocalRepository localRepository = getLocalRepository(folderId, 0, 0);

    return localRepository.getFolder(folderId);
}