List of usage examples for com.liferay.portal.kernel.repository Repository getRepositoryFileEntriesCount
public int getRepositoryFileEntriesCount(long userId, long rootFolderId) throws PortalException;
From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppServiceImpl.java
License:Open Source License
/** * Returns the number of file entries in a group starting at the root folder * that are stored within the Liferay repository. This method is primarily * used to search for recently modified file entries. It can be limited to * the file entries modified by a given user. * * @param groupId the primary key of the group * @param userId the primary key of the user who created the file * (optionally <code>0</code>) * @param rootFolderId the primary key of the root folder to begin the * search/* w w w . j a v a 2s . com*/ * @return the number of matching file entries * @throws PortalException if the group could not be found * @throws SystemException if a system exception occurred */ public int getGroupFileEntriesCount(long groupId, long userId, long rootFolderId) throws PortalException, SystemException { Repository repository = getRepository(groupId); return repository.getRepositoryFileEntriesCount(userId, rootFolderId); }