Example usage for com.liferay.portal.kernel.repository DocumentRepository getFoldersCount

List of usage examples for com.liferay.portal.kernel.repository DocumentRepository getFoldersCount

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.repository DocumentRepository getFoldersCount.

Prototype

public int getFoldersCount(long parentFolderId, boolean includeMountfolders) throws PortalException;

Source Link

Usage

From source file:com.liferay.document.library.internal.trash.DLBaseTrashHandler.java

License:Open Source License

@Override
public int getContainerModelsCount(long classPK, long parentContainerModelId) throws PortalException {

    DocumentRepository documentRepository = getDocumentRepository(classPK);

    return documentRepository.getFoldersCount(parentContainerModelId, false);
}