List of usage examples for com.liferay.portal.kernel.repository Repository getFileEntriesCount
public int getFileEntriesCount(long folderId, String[] mimeTypes) throws PortalException;
From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.java
License:Open Source License
/** * Returns the number of file entries with the file entry type in the * folder./*from w w w . jav a 2 s . c om*/ * * @param repositoryId the primary key of the file entry's repository * @param folderId the primary key of the file entry's folder * @param fileEntryTypeId the primary key of the file entry type * @return the number of file entries with the file entry type in the folder * @throws PortalException if the folder could not be found * @throws SystemException if a system exception occurred */ public int getFileEntriesCount(long repositoryId, long folderId, long fileEntryTypeId) throws PortalException, SystemException { Repository repository = getRepository(repositoryId); return repository.getFileEntriesCount(folderId, fileEntryTypeId); }