List of usage examples for com.liferay.portal.kernel.repository Repository getFileEntriesCount
public int getFileEntriesCount(long folderId) throws PortalException;
From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.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 *//*from ww w.j a va 2s . c o m*/ public int getFileEntriesCount(long repositoryId, long folderId) throws PortalException, SystemException { Repository repository = getRepository(repositoryId); return repository.getFileEntriesCount(folderId); }