public class KBArticleServiceWrapper extends java.lang.Object implements KBArticleService, ServiceWrapper<KBArticleService>
KBArticleService.KBArticleService| Constructor and Description |
|---|
KBArticleServiceWrapper(KBArticleService kbArticleService) |
| Modifier and Type | Method and Description |
|---|---|
KBArticle |
addKBArticle(java.lang.String portletId,
long parentResourceClassNameId,
long parentResourcePrimKey,
java.lang.String title,
java.lang.String urlTitle,
java.lang.String content,
java.lang.String description,
java.lang.String sourceURL,
java.lang.String[] sections,
java.lang.String[] selectedFileNames,
ServiceContext serviceContext) |
int |
addKBArticlesMarkdown(long groupId,
long parentKBFolderId,
java.lang.String fileName,
boolean prioritizeByNumericalPrefix,
java.io.InputStream inputStream,
ServiceContext serviceContext) |
void |
addTempAttachment(long groupId,
long resourcePrimKey,
java.lang.String fileName,
java.lang.String tempFolderName,
java.io.InputStream inputStream,
java.lang.String mimeType) |
KBArticle |
deleteKBArticle(long resourcePrimKey) |
void |
deleteKBArticles(long groupId,
long[] resourcePrimKeys) |
void |
deleteTempAttachment(long groupId,
long resourcePrimKey,
java.lang.String fileName,
java.lang.String tempFolderName) |
KBArticle |
fetchFirstChildKBArticle(long groupId,
long parentResourcePrimKey) |
KBArticle |
fetchFirstChildKBArticle(long groupId,
long parentResourcePrimKey,
int status) |
KBArticle |
fetchKBArticleByUrlTitle(long groupId,
long kbFolderId,
java.lang.String urlTitle) |
KBArticle |
fetchLatestKBArticle(long resourcePrimKey,
int status) |
KBArticle |
fetchLatestKBArticleByUrlTitle(long groupId,
long kbFolderId,
java.lang.String urlTitle,
int status) |
java.util.List<KBArticle> |
getAllDescendantKBArticles(long groupId,
long resourcePrimKey,
int status,
OrderByComparator<KBArticle> orderByComparator) |
java.util.List<KBArticle> |
getGroupKBArticles(long groupId,
int status,
int start,
int end,
OrderByComparator<KBArticle> orderByComparator) |
int |
getGroupKBArticlesCount(long groupId,
int status) |
java.lang.String |
getGroupKBArticlesRSS(int status,
int rssDelta,
java.lang.String rssDisplayStyle,
java.lang.String rssFormat,
ThemeDisplay themeDisplay) |
KBArticle |
getKBArticle(long resourcePrimKey,
int version) |
java.util.List<KBArticle> |
getKBArticleAndAllDescendantKBArticles(long resourcePrimKey,
int status,
OrderByComparator<KBArticle> orderByComparator) |
java.lang.String |
getKBArticleRSS(long resourcePrimKey,
int status,
int rssDelta,
java.lang.String rssDisplayStyle,
java.lang.String rssFormat,
ThemeDisplay themeDisplay) |
java.util.List<KBArticle> |
getKBArticles(long groupId,
long[] resourcePrimKeys,
int status,
int start,
int end,
OrderByComparator<KBArticle> orderByComparator) |
java.util.List<KBArticle> |
getKBArticles(long groupId,
long[] resourcePrimKeys,
int status,
OrderByComparator<KBArticle> orderByComparator) |
java.util.List<KBArticle> |
getKBArticles(long groupId,
long parentResourcePrimKey,
int status,
int start,
int end,
OrderByComparator<KBArticle> orderByComparator) |
int |
getKBArticlesCount(long groupId,
long[] resourcePrimKeys,
int status) |
int |
getKBArticlesCount(long groupId,
long parentResourcePrimKey,
int status) |
KBArticleSearchDisplay |
getKBArticleSearchDisplay(long groupId,
java.lang.String title,
java.lang.String content,
int status,
java.util.Date startDate,
java.util.Date endDate,
boolean andOperator,
int[] curStartValues,
int cur,
int delta,
OrderByComparator<KBArticle> orderByComparator) |
java.util.List<KBArticle> |
getKBArticleVersions(long groupId,
long resourcePrimKey,
int status,
int start,
int end,
OrderByComparator<KBArticle> orderByComparator) |
int |
getKBArticleVersionsCount(long groupId,
long resourcePrimKey,
int status) |
KBArticle |
getLatestKBArticle(long resourcePrimKey,
int status) |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
KBArticle[] |
getPreviousAndNextKBArticles(long kbArticleId) |
java.util.List<KBArticle> |
getSectionsKBArticles(long groupId,
java.lang.String[] sections,
int status,
int start,
int end,
OrderByComparator<KBArticle> orderByComparator) |
int |
getSectionsKBArticlesCount(long groupId,
java.lang.String[] sections,
int status) |
java.lang.String[] |
getTempAttachmentNames(long groupId,
java.lang.String tempFolderName) |
KBArticleService |
getWrappedService() |
void |
moveKBArticle(long resourcePrimKey,
long parentResourceClassNameId,
long parentResourcePrimKey,
double priority) |
KBArticle |
revertKBArticle(long resourcePrimKey,
int version,
ServiceContext serviceContext) |
void |
setWrappedService(KBArticleService kbArticleService) |
void |
subscribeGroupKBArticles(long groupId,
java.lang.String portletId) |
void |
subscribeKBArticle(long groupId,
long resourcePrimKey) |
void |
unsubscribeGroupKBArticles(long groupId,
java.lang.String portletId) |
void |
unsubscribeKBArticle(long resourcePrimKey) |
KBArticle |
updateKBArticle(long resourcePrimKey,
java.lang.String title,
java.lang.String content,
java.lang.String description,
java.lang.String sourceURL,
java.lang.String[] sections,
java.lang.String[] selectedFileNames,
long[] removeFileEntryIds,
ServiceContext serviceContext) |
void |
updateKBArticlesPriorities(long groupId,
java.util.Map<java.lang.Long,java.lang.Double> resourcePrimKeyToPriorityMap) |
public KBArticleServiceWrapper(KBArticleService kbArticleService)
public KBArticle addKBArticle(java.lang.String portletId, long parentResourceClassNameId, long parentResourcePrimKey, java.lang.String title, java.lang.String urlTitle, java.lang.String content, java.lang.String description, java.lang.String sourceURL, java.lang.String[] sections, java.lang.String[] selectedFileNames, ServiceContext serviceContext) throws PortalException
addKBArticle in interface KBArticleServicePortalExceptionpublic int addKBArticlesMarkdown(long groupId,
long parentKBFolderId,
java.lang.String fileName,
boolean prioritizeByNumericalPrefix,
java.io.InputStream inputStream,
ServiceContext serviceContext)
throws PortalException
addKBArticlesMarkdown in interface KBArticleServicePortalExceptionpublic void addTempAttachment(long groupId,
long resourcePrimKey,
java.lang.String fileName,
java.lang.String tempFolderName,
java.io.InputStream inputStream,
java.lang.String mimeType)
throws PortalException
addTempAttachment in interface KBArticleServicePortalExceptionpublic KBArticle deleteKBArticle(long resourcePrimKey) throws PortalException
deleteKBArticle in interface KBArticleServicePortalExceptionpublic void deleteKBArticles(long groupId,
long[] resourcePrimKeys)
throws PortalException
deleteKBArticles in interface KBArticleServicePortalExceptionpublic void deleteTempAttachment(long groupId,
long resourcePrimKey,
java.lang.String fileName,
java.lang.String tempFolderName)
throws PortalException
deleteTempAttachment in interface KBArticleServicePortalExceptionpublic KBArticle fetchFirstChildKBArticle(long groupId, long parentResourcePrimKey)
fetchFirstChildKBArticle in interface KBArticleServicepublic KBArticle fetchFirstChildKBArticle(long groupId, long parentResourcePrimKey, int status)
fetchFirstChildKBArticle in interface KBArticleServicepublic KBArticle fetchKBArticleByUrlTitle(long groupId, long kbFolderId, java.lang.String urlTitle) throws PortalException
fetchKBArticleByUrlTitle in interface KBArticleServicePortalExceptionpublic KBArticle fetchLatestKBArticle(long resourcePrimKey, int status) throws PortalException
fetchLatestKBArticle in interface KBArticleServicePortalExceptionpublic KBArticle fetchLatestKBArticleByUrlTitle(long groupId, long kbFolderId, java.lang.String urlTitle, int status) throws PortalException
fetchLatestKBArticleByUrlTitle in interface KBArticleServicePortalExceptionpublic java.util.List<KBArticle> getAllDescendantKBArticles(long groupId, long resourcePrimKey, int status, OrderByComparator<KBArticle> orderByComparator) throws PortalException
getAllDescendantKBArticles in interface KBArticleServicePortalExceptionpublic java.util.List<KBArticle> getGroupKBArticles(long groupId, int status, int start, int end, OrderByComparator<KBArticle> orderByComparator)
getGroupKBArticles in interface KBArticleServicepublic int getGroupKBArticlesCount(long groupId,
int status)
getGroupKBArticlesCount in interface KBArticleServicepublic java.lang.String getGroupKBArticlesRSS(int status,
int rssDelta,
java.lang.String rssDisplayStyle,
java.lang.String rssFormat,
ThemeDisplay themeDisplay)
throws PortalException
getGroupKBArticlesRSS in interface KBArticleServicePortalExceptionpublic KBArticle getKBArticle(long resourcePrimKey, int version) throws PortalException
getKBArticle in interface KBArticleServicePortalExceptionpublic java.util.List<KBArticle> getKBArticleAndAllDescendantKBArticles(long resourcePrimKey, int status, OrderByComparator<KBArticle> orderByComparator) throws PortalException
getKBArticleAndAllDescendantKBArticles in interface KBArticleServicePortalExceptionpublic java.lang.String getKBArticleRSS(long resourcePrimKey,
int status,
int rssDelta,
java.lang.String rssDisplayStyle,
java.lang.String rssFormat,
ThemeDisplay themeDisplay)
throws PortalException
getKBArticleRSS in interface KBArticleServicePortalExceptionpublic java.util.List<KBArticle> getKBArticles(long groupId, long parentResourcePrimKey, int status, int start, int end, OrderByComparator<KBArticle> orderByComparator)
getKBArticles in interface KBArticleServicepublic java.util.List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, int start, int end, OrderByComparator<KBArticle> orderByComparator)
getKBArticles in interface KBArticleServicepublic java.util.List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, OrderByComparator<KBArticle> orderByComparator)
getKBArticles in interface KBArticleServicepublic int getKBArticlesCount(long groupId,
long parentResourcePrimKey,
int status)
getKBArticlesCount in interface KBArticleServicepublic int getKBArticlesCount(long groupId,
long[] resourcePrimKeys,
int status)
getKBArticlesCount in interface KBArticleServicepublic KBArticleSearchDisplay getKBArticleSearchDisplay(long groupId, java.lang.String title, java.lang.String content, int status, java.util.Date startDate, java.util.Date endDate, boolean andOperator, int[] curStartValues, int cur, int delta, OrderByComparator<KBArticle> orderByComparator) throws PortalException
getKBArticleSearchDisplay in interface KBArticleServicePortalExceptionpublic java.util.List<KBArticle> getKBArticleVersions(long groupId, long resourcePrimKey, int status, int start, int end, OrderByComparator<KBArticle> orderByComparator)
getKBArticleVersions in interface KBArticleServicepublic int getKBArticleVersionsCount(long groupId,
long resourcePrimKey,
int status)
getKBArticleVersionsCount in interface KBArticleServicepublic KBArticle getLatestKBArticle(long resourcePrimKey, int status) throws PortalException
getLatestKBArticle in interface KBArticleServicePortalExceptionpublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface KBArticleServicepublic KBArticle[] getPreviousAndNextKBArticles(long kbArticleId) throws PortalException
getPreviousAndNextKBArticles in interface KBArticleServicePortalExceptionpublic java.util.List<KBArticle> getSectionsKBArticles(long groupId, java.lang.String[] sections, int status, int start, int end, OrderByComparator<KBArticle> orderByComparator)
getSectionsKBArticles in interface KBArticleServicepublic int getSectionsKBArticlesCount(long groupId,
java.lang.String[] sections,
int status)
getSectionsKBArticlesCount in interface KBArticleServicepublic java.lang.String[] getTempAttachmentNames(long groupId,
java.lang.String tempFolderName)
throws PortalException
getTempAttachmentNames in interface KBArticleServicePortalExceptionpublic void moveKBArticle(long resourcePrimKey,
long parentResourceClassNameId,
long parentResourcePrimKey,
double priority)
throws PortalException
moveKBArticle in interface KBArticleServicePortalExceptionpublic KBArticle revertKBArticle(long resourcePrimKey, int version, ServiceContext serviceContext) throws PortalException
revertKBArticle in interface KBArticleServicePortalExceptionpublic void subscribeGroupKBArticles(long groupId,
java.lang.String portletId)
throws PortalException
subscribeGroupKBArticles in interface KBArticleServicePortalExceptionpublic void subscribeKBArticle(long groupId,
long resourcePrimKey)
throws PortalException
subscribeKBArticle in interface KBArticleServicePortalExceptionpublic void unsubscribeGroupKBArticles(long groupId,
java.lang.String portletId)
throws PortalException
unsubscribeGroupKBArticles in interface KBArticleServicePortalExceptionpublic void unsubscribeKBArticle(long resourcePrimKey)
throws PortalException
unsubscribeKBArticle in interface KBArticleServicePortalExceptionpublic KBArticle updateKBArticle(long resourcePrimKey, java.lang.String title, java.lang.String content, java.lang.String description, java.lang.String sourceURL, java.lang.String[] sections, java.lang.String[] selectedFileNames, long[] removeFileEntryIds, ServiceContext serviceContext) throws PortalException
updateKBArticle in interface KBArticleServicePortalExceptionpublic void updateKBArticlesPriorities(long groupId,
java.util.Map<java.lang.Long,java.lang.Double> resourcePrimKeyToPriorityMap)
throws PortalException
updateKBArticlesPriorities in interface KBArticleServicePortalExceptionpublic KBArticleService getWrappedService()
getWrappedService in interface ServiceWrapper<KBArticleService>public void setWrappedService(KBArticleService kbArticleService)
setWrappedService in interface ServiceWrapper<KBArticleService>