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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddKBArticle
(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) int
addKBArticlesMarkdown
(long groupId, long parentKBFolderId, String fileName, boolean prioritizeByNumericalPrefix, InputStream inputStream, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
addTempAttachment
(long groupId, long resourcePrimKey, String fileName, String tempFolderName, InputStream inputStream, String mimeType) int
countKBArticlesByKeywords
(long groupId, String keywords, int status) deleteKBArticle
(long resourcePrimKey) void
deleteKBArticles
(long groupId, long[] resourcePrimKeys) void
deleteTempAttachment
(long groupId, long resourcePrimKey, String fileName, String tempFolderName) expireKBArticle
(long resourcePrimKey, com.liferay.portal.kernel.service.ServiceContext serviceContext) fetchFirstChildKBArticle
(long groupId, long parentResourcePrimKey) fetchFirstChildKBArticle
(long groupId, long parentResourcePrimKey, int status) fetchKBArticleByUrlTitle
(long groupId, long kbFolderId, String urlTitle) fetchLatestKBArticle
(long resourcePrimKey, int status) fetchLatestKBArticleByExternalReferenceCode
(long groupId, String externalReferenceCode) fetchLatestKBArticleByUrlTitle
(long groupId, long kbFolderId, String urlTitle, int status) com.liferay.portal.kernel.lock.Lock
forceLockKBArticle
(long groupId, long resourcePrimKey) getAllDescendantKBArticles
(long groupId, long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) getGroupKBArticles
(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) int
getGroupKBArticlesCount
(long groupId, int status) getGroupKBArticlesRSS
(int status, int max, String type, double version, String displayStyle, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getKBArticle
(long resourcePrimKey, int version) getKBArticleAndAllDescendantKBArticles
(long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) getKBArticleRSS
(long resourcePrimKey, int status, int max, String type, double version, String displayStyle, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) getKBArticles
(long groupId, long[] resourcePrimKeys, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) getKBArticles
(long groupId, long[] resourcePrimKeys, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) getKBArticles
(long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) getKBArticlesByKeywords
(long groupId, String keywords, int status, int start, int end) int
getKBArticlesCount
(long groupId, long[] resourcePrimKeys, int status) int
getKBArticlesCount
(long groupId, long parentResourcePrimKey, int status) 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) getKBArticleVersions
(long groupId, long resourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) int
getKBArticleVersionsCount
(long groupId, long resourcePrimKey, int status) getLatestKBArticle
(long resourcePrimKey) getLatestKBArticle
(long resourcePrimKey, int status) getLatestKBArticleByExternalReferenceCode
(long groupId, String externalReferenceCode) Returns the OSGi service identifier.getPreviousAndNextKBArticles
(long kbArticleId) getSectionsKBArticles
(long groupId, String[] sections, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) int
getSectionsKBArticlesCount
(long groupId, String[] sections, int status) String[]
getTempAttachmentNames
(long groupId, String tempFolderName) com.liferay.portal.kernel.lock.Lock
lockKBArticle
(long resourcePrimKey) void
moveKBArticle
(long resourcePrimKey, long parentResourceClassNameId, long parentResourcePrimKey, double priority) moveKBArticleToTrash
(long resourcePrimKey) revertKBArticle
(long resourcePrimKey, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) void
setWrappedService
(KBArticleService kbArticleService) void
subscribeGroupKBArticles
(long groupId, String portletId) void
subscribeKBArticle
(long groupId, long resourcePrimKey) void
unlockKBArticle
(long resourcePrimKey) void
unsubscribeGroupKBArticles
(long groupId, String portletId) void
unsubscribeKBArticle
(long resourcePrimKey) 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) 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) void
updateKBArticlesPriorities
(long groupId, Map<Long, Double> resourcePrimKeyToPriorityMap)
-
Constructor Details
-
KBArticleServiceWrapper
public KBArticleServiceWrapper() -
KBArticleServiceWrapper
-
-
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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
countKBArticlesByKeywords
- Specified by:
countKBArticlesByKeywords
in interfaceKBArticleService
-
deleteKBArticle
public KBArticle deleteKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
deleteKBArticle
in interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
fetchFirstChildKBArticle
- Specified by:
fetchFirstChildKBArticle
in interfaceKBArticleService
-
fetchFirstChildKBArticle
- Specified by:
fetchFirstChildKBArticle
in interfaceKBArticleService
-
fetchKBArticleByUrlTitle
public KBArticle fetchKBArticleByUrlTitle(long groupId, long kbFolderId, String urlTitle) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
fetchKBArticleByUrlTitle
in interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
-
getGroupKBArticlesCount
public int getGroupKBArticlesCount(long groupId, int status) - Specified by:
getGroupKBArticlesCount
in interfaceKBArticleService
-
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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
-
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 interfaceKBArticleService
-
getKBArticles
public List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) - Specified by:
getKBArticles
in interfaceKBArticleService
-
getKBArticlesByKeywords
public List<KBArticle> getKBArticlesByKeywords(long groupId, String keywords, int status, int start, int end) - Specified by:
getKBArticlesByKeywords
in interfaceKBArticleService
-
getKBArticlesCount
public int getKBArticlesCount(long groupId, long parentResourcePrimKey, int status) - Specified by:
getKBArticlesCount
in interfaceKBArticleService
-
getKBArticlesCount
public int getKBArticlesCount(long groupId, long[] resourcePrimKeys, int status) - Specified by:
getKBArticlesCount
in interfaceKBArticleService
-
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 interfaceKBArticleService
- 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 interfaceKBArticleService
-
getKBArticleVersionsCount
public int getKBArticleVersionsCount(long groupId, long resourcePrimKey, int status) - Specified by:
getKBArticleVersionsCount
in interfaceKBArticleService
-
getLatestKBArticle
public KBArticle getLatestKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getLatestKBArticle
in interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Specified by:
getOSGiServiceIdentifier
in interfaceKBArticleService
- Returns:
- the OSGi service identifier
-
getPreviousAndNextKBArticles
public KBArticle[] getPreviousAndNextKBArticles(long kbArticleId) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getPreviousAndNextKBArticles
in interfaceKBArticleService
- 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 interfaceKBArticleService
-
getSectionsKBArticlesCount
- Specified by:
getSectionsKBArticlesCount
in interfaceKBArticleService
-
getTempAttachmentNames
public String[] getTempAttachmentNames(long groupId, String tempFolderName) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
getTempAttachmentNames
in interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
moveKBArticleToTrash
public KBArticle moveKBArticleToTrash(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
moveKBArticleToTrash
in interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
unlockKBArticle
public void unlockKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
unlockKBArticle
in interfaceKBArticleService
- 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 interfaceKBArticleService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
unsubscribeKBArticle
public void unsubscribeKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException - Specified by:
unsubscribeKBArticle
in interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- 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 interfaceKBArticleService
- Throws:
com.liferay.portal.kernel.exception.PortalException
-
getWrappedService
- Specified by:
getWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<KBArticleService>
-
setWrappedService
- Specified by:
setWrappedService
in interfacecom.liferay.portal.kernel.service.ServiceWrapper<KBArticleService>
-