コード例 #1
0
  @Override
  public int getContainerModelsCount(long classPK, long parentContainerModelId)
      throws PortalException, SystemException {

    return JournalFolderLocalServiceUtil.getFoldersCount(
        getGroupId(classPK), parentContainerModelId);
  }
コード例 #2
0
  @Override
  public int getTrashContainerModelsCount(long classPK) throws PortalException, SystemException {

    JournalFolder folder = JournalFolderLocalServiceUtil.getFolder(classPK);

    return JournalFolderLocalServiceUtil.getFoldersCount(
        folder.getGroupId(), classPK, WorkflowConstants.STATUS_IN_TRASH);
  }