List of usage examples for com.liferay.portal.kernel.repository Repository getFileEntriesAndFileShortcutsCount
public int getFileEntriesAndFileShortcutsCount(long folderId, int status, 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 and shortcuts in the folder. * * @param repositoryId the primary key of the repository * @param folderId the primary key of the folder * @param status the workflow status/*from ww w . jav a 2 s. c o m*/ * @param mimeTypes allowed media types * @return the number of file entries and shortcuts in the folder * @throws PortalException if the folder ould not be found * @throws SystemException if a system exception occurred */ public int getFileEntriesAndFileShortcutsCount(long repositoryId, long folderId, int status, String[] mimeTypes) throws PortalException, SystemException { Repository repository = getRepository(repositoryId); return repository.getFileEntriesAndFileShortcutsCount(folderId, status, mimeTypes); }