コード例 #1
0
  @Test
  public void testDeleteAttachmentsWhenDeletingWikiPage() throws Exception {
    int initialFileEntriesCount = DLFileEntryLocalServiceUtil.getFileEntriesCount();

    addWikiPageAttachment();

    Assert.assertEquals(
        initialFileEntriesCount + 1, DLFileEntryLocalServiceUtil.getFileEntriesCount());

    WikiPageLocalServiceUtil.deletePage(_page.getNodeId(), _page.getTitle());

    Assert.assertEquals(initialFileEntriesCount, DLFileEntryLocalServiceUtil.getFileEntriesCount());
  }
コード例 #2
0
  @Override
  public int getPortletFileEntriesCount(long groupId, long folderId, int status)
      throws SystemException {

    return DLFileEntryLocalServiceUtil.getFileEntriesCount(groupId, folderId, status);
  }