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

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

Introduction

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

Prototype

public int getFileEntriesCount(long folderId) throws PortalException;

Source Link

Usage

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

License:Open Source License

/**
 * Returns the number of file entries in the folder.
 *
 * @param  repositoryId the primary key of the file entry's repository
 * @param  folderId the primary key of the file entry's folder
 * @return the number of file entries in the folder
 * @throws PortalException if the folder could not be found
 * @throws SystemException if a system exception occurred
 *///ww w .  j av a 2s .  co  m
public int getFileEntriesCount(long repositoryId, long folderId) throws PortalException, SystemException {

    LocalRepository localRepository = getLocalRepository(repositoryId);

    return localRepository.getFileEntriesCount(folderId);
}