List of usage examples for com.liferay.portal.kernel.portletfilerepository PortletFileRepositoryUtil getPortletFileEntriesCount
public static int getPortletFileEntriesCount(long groupId, long folderId, int status) throws PortalException
From source file:com.bemis.portal.report.model.impl.ReportRequestImpl.java
License:Open Source License
@Override public int getAttachmentsFileEntriesCount() throws PortalException { int attachmentsFileEntriesCount = 0; long attachmentsFolderId = getAttachmentsFolderId(); if (attachmentsFolderId != DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) { attachmentsFileEntriesCount = PortletFileRepositoryUtil.getPortletFileEntriesCount(getGroupId(), attachmentsFolderId, WorkflowConstants.STATUS_APPROVED); }// www . j a va 2 s .c om return attachmentsFileEntriesCount; }
From source file:com.liferay.journal.model.impl.JournalArticleImpl.java
License:Open Source License
@Override public int getImagesFileEntriesCount() throws PortalException { long imagesFolderId = getImagesFolderId(); if (imagesFolderId == DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) { return 0; }/*from www .j a v a2 s .c o m*/ return PortletFileRepositoryUtil.getPortletFileEntriesCount(getGroupId(), imagesFolderId, WorkflowConstants.STATUS_APPROVED); }
From source file:com.liferay.wiki.model.impl.WikiPageImpl.java
License:Open Source License
@Override public int getDeletedAttachmentsFileEntriesCount() throws PortalException { int deletedAttachmentsFileEntriesCount = 0; long attachmentsFolderId = getAttachmentsFolderId(); if (attachmentsFolderId != DLFolderConstants.DEFAULT_PARENT_FOLDER_ID) { return PortletFileRepositoryUtil.getPortletFileEntriesCount(getGroupId(), attachmentsFolderId, WorkflowConstants.STATUS_IN_TRASH); }/*from www . ja v a 2 s . co m*/ return deletedAttachmentsFileEntriesCount; }