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

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

Introduction

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

Prototype

public int getFileEntriesAndFileShortcutsCount(long folderId, int status) throws PortalException;

Source Link

Usage

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

License:Open Source License

@Override
public int getTrashContainedModelsCount(long classPK) throws PortalException {

    DocumentRepository documentRepository = getDocumentRepository(classPK);

    return documentRepository.getFileEntriesAndFileShortcutsCount(classPK, WorkflowConstants.STATUS_IN_TRASH);
}

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

License:Open Source License

@Override
public int getTrashModelsCount(long classPK) throws PortalException {
    DocumentRepository documentRepository = getDocumentRepository(classPK);

    return documentRepository.getFileEntriesAndFileShortcutsCount(classPK, WorkflowConstants.STATUS_IN_TRASH);
}