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

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

Introduction

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

Prototype

public FileEntry getFileEntry(long fileEntryId) throws PortalException;

Source Link

Usage

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

License:Open Source License

@Override
public void deleteTrashEntry(long classPK) throws PortalException {
    DocumentRepository documentRepository = getDocumentRepository(classPK);

    TrashCapability trashCapability = documentRepository.getCapability(TrashCapability.class);

    trashCapability.deleteFileEntry(documentRepository.getFileEntry(classPK));
}