List of usage examples for com.liferay.portal.kernel.portletfilerepository PortletFileRepositoryUtil getPortletFileEntries
public static List<FileEntry> getPortletFileEntries(long groupId, long folderId, int status, int start, int end, OrderByComparator<FileEntry> obc) throws PortalException
From source file:com.bemis.portal.report.model.impl.ReportRequestImpl.java
License:Open Source License
@Override public List<FileEntry> getAttachmentsFileEntries(int start, int end) throws PortalException { List<FileEntry> fileEntries = new ArrayList<>(); long attachmentsFolderId = getAttachmentsFolderId(); if (attachmentsFolderId != DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) { fileEntries = PortletFileRepositoryUtil.getPortletFileEntries(getGroupId(), attachmentsFolderId, WorkflowConstants.STATUS_APPROVED, start, end, null); }/*from w w w.j av a2 s . c o m*/ return fileEntries; }
From source file:com.liferay.journal.model.impl.JournalArticleImpl.java
License:Open Source License
@Override public List<FileEntry> getImagesFileEntries(int start, int end, OrderByComparator obc) throws PortalException { long imagesFolderId = getImagesFolderId(); if (imagesFolderId == DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) { return new ArrayList<>(); }//from w ww . j ava2 s.c o m return PortletFileRepositoryUtil.getPortletFileEntries(getGroupId(), imagesFolderId, WorkflowConstants.STATUS_APPROVED, start, end, obc); }
From source file:com.liferay.wiki.model.impl.WikiPageImpl.java
License:Open Source License
@Override public List<FileEntry> getAttachmentsFileEntries(int start, int end, OrderByComparator obc) throws PortalException { List<FileEntry> fileEntries = new ArrayList<>(); long attachmentsFolderId = getAttachmentsFolderId(); if (attachmentsFolderId != DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) { fileEntries = PortletFileRepositoryUtil.getPortletFileEntries(getGroupId(), attachmentsFolderId, WorkflowConstants.STATUS_APPROVED, start, end, obc); }//from w ww . j ava2 s . c om return fileEntries; }
From source file:com.liferay.wiki.model.impl.WikiPageImpl.java
License:Open Source License
@Override public List<FileEntry> getDeletedAttachmentsFileEntries(int start, int end) throws PortalException { List<FileEntry> fileEntries = new ArrayList<>(); long attachmentsFolderId = getAttachmentsFolderId(); if (attachmentsFolderId != 0) { fileEntries = PortletFileRepositoryUtil.getPortletFileEntries(getGroupId(), attachmentsFolderId, WorkflowConstants.STATUS_IN_TRASH, start, end, null); }/* ww w. ja v a 2 s . c o m*/ return fileEntries; }