Class KBArticleServiceWrapper

java.lang.Object
com.liferay.knowledge.base.service.KBArticleServiceWrapper
All Implemented Interfaces:
KBArticleService, com.liferay.portal.kernel.service.BaseService, com.liferay.portal.kernel.service.ServiceWrapper<KBArticleService>

public class KBArticleServiceWrapper extends Object implements KBArticleService, com.liferay.portal.kernel.service.ServiceWrapper<KBArticleService>
Provides a wrapper for KBArticleService.
See Also:
Generated:
  • Constructor Details

    • KBArticleServiceWrapper

      public KBArticleServiceWrapper()
    • KBArticleServiceWrapper

      public KBArticleServiceWrapper(KBArticleService kbArticleService)
  • Method Details

    • addKBArticle

      public KBArticle addKBArticle(String externalReferenceCode, String portletId, long parentResourceClassNameId, long parentResourcePrimKey, String title, String urlTitle, String content, String description, String[] sections, String sourceURL, Date displayDate, Date expirationDate, Date reviewDate, String[] selectedFileNames, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addKBArticlesMarkdown

      public int addKBArticlesMarkdown(long groupId, long parentKBFolderId, String fileName, boolean prioritizeByNumericalPrefix, InputStream inputStream, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addKBArticlesMarkdown in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • addTempAttachment

      public void addTempAttachment(long groupId, long resourcePrimKey, String fileName, String tempFolderName, InputStream inputStream, String mimeType) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      addTempAttachment in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • countKBArticlesByKeywords

      public int countKBArticlesByKeywords(long groupId, String keywords, int status)
      Specified by:
      countKBArticlesByKeywords in interface KBArticleService
    • deleteKBArticle

      public KBArticle deleteKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteKBArticles

      public void deleteKBArticles(long groupId, long[] resourcePrimKeys) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteKBArticles in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • deleteTempAttachment

      public void deleteTempAttachment(long groupId, long resourcePrimKey, String fileName, String tempFolderName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      deleteTempAttachment in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • expireKBArticle

      public KBArticle expireKBArticle(long resourcePrimKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      expireKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchFirstChildKBArticle

      public KBArticle fetchFirstChildKBArticle(long groupId, long parentResourcePrimKey)
      Specified by:
      fetchFirstChildKBArticle in interface KBArticleService
    • fetchFirstChildKBArticle

      public KBArticle fetchFirstChildKBArticle(long groupId, long parentResourcePrimKey, int status)
      Specified by:
      fetchFirstChildKBArticle in interface KBArticleService
    • fetchKBArticleByUrlTitle

      public KBArticle fetchKBArticleByUrlTitle(long groupId, long kbFolderId, String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchKBArticleByUrlTitle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchLatestKBArticle

      public KBArticle fetchLatestKBArticle(long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchLatestKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchLatestKBArticleByExternalReferenceCode

      public KBArticle fetchLatestKBArticleByExternalReferenceCode(long groupId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchLatestKBArticleByExternalReferenceCode in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • fetchLatestKBArticleByUrlTitle

      public KBArticle fetchLatestKBArticleByUrlTitle(long groupId, long kbFolderId, String urlTitle, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      fetchLatestKBArticleByUrlTitle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • forceLockKBArticle

      public com.liferay.portal.kernel.lock.Lock forceLockKBArticle(long groupId, long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      forceLockKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getAllDescendantKBArticles

      public List<KBArticle> getAllDescendantKBArticles(long groupId, long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getAllDescendantKBArticles in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getGroupKBArticles

      public List<KBArticle> getGroupKBArticles(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
      Specified by:
      getGroupKBArticles in interface KBArticleService
    • getGroupKBArticlesCount

      public int getGroupKBArticlesCount(long groupId, int status)
      Specified by:
      getGroupKBArticlesCount in interface KBArticleService
    • getGroupKBArticlesRSS

      public String getGroupKBArticlesRSS(int status, int max, String type, double version, String displayStyle, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getGroupKBArticlesRSS in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBArticle

      public KBArticle getKBArticle(long resourcePrimKey, int version) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBArticleAndAllDescendantKBArticles

      public List<KBArticle> getKBArticleAndAllDescendantKBArticles(long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKBArticleAndAllDescendantKBArticles in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBArticleRSS

      public String getKBArticleRSS(long resourcePrimKey, int status, int max, String type, double version, String displayStyle, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKBArticleRSS in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBArticles

      public List<KBArticle> getKBArticles(long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
      Specified by:
      getKBArticles in interface KBArticleService
    • getKBArticles

      public List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
      Specified by:
      getKBArticles in interface KBArticleService
    • getKBArticles

      public List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
      Specified by:
      getKBArticles in interface KBArticleService
    • getKBArticlesByKeywords

      public List<KBArticle> getKBArticlesByKeywords(long groupId, String keywords, int status, int start, int end)
      Specified by:
      getKBArticlesByKeywords in interface KBArticleService
    • getKBArticlesCount

      public int getKBArticlesCount(long groupId, long parentResourcePrimKey, int status)
      Specified by:
      getKBArticlesCount in interface KBArticleService
    • getKBArticlesCount

      public int getKBArticlesCount(long groupId, long[] resourcePrimKeys, int status)
      Specified by:
      getKBArticlesCount in interface KBArticleService
    • getKBArticleSearchDisplay

      public KBArticleSearchDisplay getKBArticleSearchDisplay(long groupId, String title, String content, int status, Date startDate, Date endDate, boolean andOperator, int[] curStartValues, int cur, int delta, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getKBArticleSearchDisplay in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getKBArticleVersions

      public List<KBArticle> getKBArticleVersions(long groupId, long resourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
      Specified by:
      getKBArticleVersions in interface KBArticleService
    • getKBArticleVersionsCount

      public int getKBArticleVersionsCount(long groupId, long resourcePrimKey, int status)
      Specified by:
      getKBArticleVersionsCount in interface KBArticleService
    • getLatestKBArticle

      public KBArticle getLatestKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getLatestKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestKBArticle

      public KBArticle getLatestKBArticle(long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getLatestKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getLatestKBArticleByExternalReferenceCode

      public KBArticle getLatestKBArticleByExternalReferenceCode(long groupId, String externalReferenceCode) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getLatestKBArticleByExternalReferenceCode in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getOSGiServiceIdentifier

      public String getOSGiServiceIdentifier()
      Returns the OSGi service identifier.
      Specified by:
      getOSGiServiceIdentifier in interface KBArticleService
      Returns:
      the OSGi service identifier
    • getPreviousAndNextKBArticles

      public KBArticle[] getPreviousAndNextKBArticles(long kbArticleId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getPreviousAndNextKBArticles in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getSectionsKBArticles

      public List<KBArticle> getSectionsKBArticles(long groupId, String[] sections, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
      Specified by:
      getSectionsKBArticles in interface KBArticleService
    • getSectionsKBArticlesCount

      public int getSectionsKBArticlesCount(long groupId, String[] sections, int status)
      Specified by:
      getSectionsKBArticlesCount in interface KBArticleService
    • getTempAttachmentNames

      public String[] getTempAttachmentNames(long groupId, String tempFolderName) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      getTempAttachmentNames in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • lockKBArticle

      public com.liferay.portal.kernel.lock.Lock lockKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      lockKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveKBArticle

      public void moveKBArticle(long resourcePrimKey, long parentResourceClassNameId, long parentResourcePrimKey, double priority) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • moveKBArticleToTrash

      public KBArticle moveKBArticleToTrash(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      moveKBArticleToTrash in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • revertKBArticle

      public KBArticle revertKBArticle(long resourcePrimKey, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      revertKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • subscribeGroupKBArticles

      public void subscribeGroupKBArticles(long groupId, String portletId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      subscribeGroupKBArticles in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • subscribeKBArticle

      public void subscribeKBArticle(long groupId, long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      subscribeKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unlockKBArticle

      public void unlockKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      unlockKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unsubscribeGroupKBArticles

      public void unsubscribeGroupKBArticles(long groupId, String portletId) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      unsubscribeGroupKBArticles in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • unsubscribeKBArticle

      public void unsubscribeKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      unsubscribeKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateAndUnlockKBArticle

      public KBArticle updateAndUnlockKBArticle(long resourcePrimKey, String title, String content, String description, String[] sections, String sourceURL, Date displayDate, Date expirationDate, Date reviewDate, String[] selectedFileNames, long[] removeFileEntryIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateAndUnlockKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateKBArticle

      public KBArticle updateKBArticle(long resourcePrimKey, String title, String content, String description, String[] sections, String sourceURL, Date displayDate, Date expirationDate, Date reviewDate, String[] selectedFileNames, long[] removeFileEntryIds, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateKBArticle in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • updateKBArticlesPriorities

      public void updateKBArticlesPriorities(long groupId, Map<Long,Double> resourcePrimKeyToPriorityMap) throws com.liferay.portal.kernel.exception.PortalException
      Specified by:
      updateKBArticlesPriorities in interface KBArticleService
      Throws:
      com.liferay.portal.kernel.exception.PortalException
    • getWrappedService

      public KBArticleService getWrappedService()
      Specified by:
      getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<KBArticleService>
    • setWrappedService

      public void setWrappedService(KBArticleService kbArticleService)
      Specified by:
      setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<KBArticleService>