List of usage examples for com.liferay.portal.kernel.repository LocalRepository getFoldersCount
public int getFoldersCount(long parentFolderId, boolean includeMountfolders) throws PortalException;
From source file:com.liferay.portlet.documentlibrary.service.impl.DLAppLocalServiceImpl.java
License:Open Source License
/** * Returns the number of immediate subfolders of the parent folder, * optionally including mount folders for third-party repositories. * * @param repositoryId the primary key of the folder's repository * @param parentFolderId the primary key of the folder's parent folder * @param includeMountFolders whether to include mount folders for * third-party repositories//from w w w .jav a2s. c o m * @return the number of immediate subfolders of the parent folder * @throws PortalException if the parent folder could not be found * @throws SystemException if a system exception occurred */ public int getFoldersCount(long repositoryId, long parentFolderId, boolean includeMountFolders) throws PortalException, SystemException { LocalRepository localRepository = getLocalRepository(repositoryId); return localRepository.getFoldersCount(parentFolderId, includeMountFolders); }