Example usage for com.liferay.portal.kernel.portletfilerepository PortletFileRepositoryUtil deletePortletFileEntries

List of usage examples for com.liferay.portal.kernel.portletfilerepository PortletFileRepositoryUtil deletePortletFileEntries

Introduction

In this page you can find the example usage for com.liferay.portal.kernel.portletfilerepository PortletFileRepositoryUtil deletePortletFileEntries.

Prototype

public static void deletePortletFileEntries(long groupId, long folderId, int status) throws PortalException 

Source Link

Usage

From source file:com.liferay.wiki.service.impl.WikiPageLocalServiceImpl.java

License:Open Source License

@Override
public void deleteTrashPageAttachments(long nodeId, String title) throws PortalException {

    WikiPage page = getPage(nodeId, title);

    long folderId = page.getAttachmentsFolderId();

    if (folderId == DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) {
        return;/*from w w  w .  j ava2s. c o m*/
    }

    PortletFileRepositoryUtil.deletePortletFileEntries(page.getGroupId(), folderId,
            WorkflowConstants.STATUS_IN_TRASH);
}