public class KBArticleServiceUtil
extends java.lang.Object
com.liferay.knowledge.base.service.impl.KBArticleServiceImpl and is an
access point for service operations in application layer code running on a
remote server. Methods of this service are expected to have security checks
based on the propagated JAAS credentials because this service can be
accessed remotely.KBArticleService| Constructor and Description |
|---|
KBArticleServiceUtil() |
| Modifier and Type | Method and Description |
|---|---|
static 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) |
static int |
addKBArticlesMarkdown(long groupId,
long parentKBFolderId,
java.lang.String fileName,
boolean prioritizeByNumericalPrefix,
java.io.InputStream inputStream,
ServiceContext serviceContext) |
static void |
addTempAttachment(long groupId,
long resourcePrimKey,
java.lang.String fileName,
java.lang.String tempFolderName,
java.io.InputStream inputStream,
java.lang.String mimeType) |
static KBArticle |
deleteKBArticle(long resourcePrimKey) |
static void |
deleteKBArticles(long groupId,
long[] resourcePrimKeys) |
static void |
deleteTempAttachment(long groupId,
long resourcePrimKey,
java.lang.String fileName,
java.lang.String tempFolderName) |
static KBArticle |
fetchFirstChildKBArticle(long groupId,
long parentResourcePrimKey) |
static KBArticle |
fetchFirstChildKBArticle(long groupId,
long parentResourcePrimKey,
int status) |
static KBArticle |
fetchKBArticleByUrlTitle(long groupId,
long kbFolderId,
java.lang.String urlTitle) |
static KBArticle |
fetchLatestKBArticle(long resourcePrimKey,
int status) |
static KBArticle |
fetchLatestKBArticleByUrlTitle(long groupId,
long kbFolderId,
java.lang.String urlTitle,
int status) |
static java.util.List<KBArticle> |
getAllDescendantKBArticles(long groupId,
long resourcePrimKey,
int status,
OrderByComparator<KBArticle> orderByComparator) |
static java.util.List<KBArticle> |
getGroupKBArticles(long groupId,
int status,
int start,
int end,
OrderByComparator<KBArticle> orderByComparator) |
static int |
getGroupKBArticlesCount(long groupId,
int status) |
static java.lang.String |
getGroupKBArticlesRSS(int status,
int rssDelta,
java.lang.String rssDisplayStyle,
java.lang.String rssFormat,
ThemeDisplay themeDisplay) |
static KBArticle |
getKBArticle(long resourcePrimKey,
int version) |
static java.util.List<KBArticle> |
getKBArticleAndAllDescendantKBArticles(long resourcePrimKey,
int status,
OrderByComparator<KBArticle> orderByComparator) |
static java.lang.String |
getKBArticleRSS(long resourcePrimKey,
int status,
int rssDelta,
java.lang.String rssDisplayStyle,
java.lang.String rssFormat,
ThemeDisplay themeDisplay) |
static java.util.List<KBArticle> |
getKBArticles(long groupId,
long[] resourcePrimKeys,
int status,
int start,
int end,
OrderByComparator<KBArticle> orderByComparator) |
static java.util.List<KBArticle> |
getKBArticles(long groupId,
long[] resourcePrimKeys,
int status,
OrderByComparator<KBArticle> orderByComparator) |
static java.util.List<KBArticle> |
getKBArticles(long groupId,
long parentResourcePrimKey,
int status,
int start,
int end,
OrderByComparator<KBArticle> orderByComparator) |
static int |
getKBArticlesCount(long groupId,
long[] resourcePrimKeys,
int status) |
static int |
getKBArticlesCount(long groupId,
long parentResourcePrimKey,
int status) |
static 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) |
static java.util.List<KBArticle> |
getKBArticleVersions(long groupId,
long resourcePrimKey,
int status,
int start,
int end,
OrderByComparator<KBArticle> orderByComparator) |
static int |
getKBArticleVersionsCount(long groupId,
long resourcePrimKey,
int status) |
static KBArticle |
getLatestKBArticle(long resourcePrimKey,
int status) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static KBArticle[] |
getPreviousAndNextKBArticles(long kbArticleId) |
static java.util.List<KBArticle> |
getSectionsKBArticles(long groupId,
java.lang.String[] sections,
int status,
int start,
int end,
OrderByComparator<KBArticle> orderByComparator) |
static int |
getSectionsKBArticlesCount(long groupId,
java.lang.String[] sections,
int status) |
static KBArticleService |
getService() |
static java.lang.String[] |
getTempAttachmentNames(long groupId,
java.lang.String tempFolderName) |
static void |
moveKBArticle(long resourcePrimKey,
long parentResourceClassNameId,
long parentResourcePrimKey,
double priority) |
static KBArticle |
revertKBArticle(long resourcePrimKey,
int version,
ServiceContext serviceContext) |
static void |
subscribeGroupKBArticles(long groupId,
java.lang.String portletId) |
static void |
subscribeKBArticle(long groupId,
long resourcePrimKey) |
static void |
unsubscribeGroupKBArticles(long groupId,
java.lang.String portletId) |
static void |
unsubscribeKBArticle(long resourcePrimKey) |
static 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) |
static void |
updateKBArticlesPriorities(long groupId,
java.util.Map<java.lang.Long,java.lang.Double> resourcePrimKeyToPriorityMap) |
public static 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
PortalExceptionpublic static int addKBArticlesMarkdown(long groupId,
long parentKBFolderId,
java.lang.String fileName,
boolean prioritizeByNumericalPrefix,
java.io.InputStream inputStream,
ServiceContext serviceContext)
throws PortalException
PortalExceptionpublic static void addTempAttachment(long groupId,
long resourcePrimKey,
java.lang.String fileName,
java.lang.String tempFolderName,
java.io.InputStream inputStream,
java.lang.String mimeType)
throws PortalException
PortalExceptionpublic static KBArticle deleteKBArticle(long resourcePrimKey) throws PortalException
PortalExceptionpublic static void deleteKBArticles(long groupId,
long[] resourcePrimKeys)
throws PortalException
PortalExceptionpublic static void deleteTempAttachment(long groupId,
long resourcePrimKey,
java.lang.String fileName,
java.lang.String tempFolderName)
throws PortalException
PortalExceptionpublic static KBArticle fetchFirstChildKBArticle(long groupId, long parentResourcePrimKey)
public static KBArticle fetchFirstChildKBArticle(long groupId, long parentResourcePrimKey, int status)
public static KBArticle fetchKBArticleByUrlTitle(long groupId, long kbFolderId, java.lang.String urlTitle) throws PortalException
PortalExceptionpublic static KBArticle fetchLatestKBArticle(long resourcePrimKey, int status) throws PortalException
PortalExceptionpublic static KBArticle fetchLatestKBArticleByUrlTitle(long groupId, long kbFolderId, java.lang.String urlTitle, int status) throws PortalException
PortalExceptionpublic static java.util.List<KBArticle> getAllDescendantKBArticles(long groupId, long resourcePrimKey, int status, OrderByComparator<KBArticle> orderByComparator) throws PortalException
PortalExceptionpublic static java.util.List<KBArticle> getGroupKBArticles(long groupId, int status, int start, int end, OrderByComparator<KBArticle> orderByComparator)
public static int getGroupKBArticlesCount(long groupId,
int status)
public static java.lang.String getGroupKBArticlesRSS(int status,
int rssDelta,
java.lang.String rssDisplayStyle,
java.lang.String rssFormat,
ThemeDisplay themeDisplay)
throws PortalException
PortalExceptionpublic static KBArticle getKBArticle(long resourcePrimKey, int version) throws PortalException
PortalExceptionpublic static java.util.List<KBArticle> getKBArticleAndAllDescendantKBArticles(long resourcePrimKey, int status, OrderByComparator<KBArticle> orderByComparator) throws PortalException
PortalExceptionpublic static java.lang.String getKBArticleRSS(long resourcePrimKey,
int status,
int rssDelta,
java.lang.String rssDisplayStyle,
java.lang.String rssFormat,
ThemeDisplay themeDisplay)
throws PortalException
PortalExceptionpublic static java.util.List<KBArticle> getKBArticles(long groupId, long parentResourcePrimKey, int status, int start, int end, OrderByComparator<KBArticle> orderByComparator)
public static java.util.List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, int start, int end, OrderByComparator<KBArticle> orderByComparator)
public static java.util.List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, OrderByComparator<KBArticle> orderByComparator)
public static int getKBArticlesCount(long groupId,
long parentResourcePrimKey,
int status)
public static int getKBArticlesCount(long groupId,
long[] resourcePrimKeys,
int status)
public static 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
PortalExceptionpublic static java.util.List<KBArticle> getKBArticleVersions(long groupId, long resourcePrimKey, int status, int start, int end, OrderByComparator<KBArticle> orderByComparator)
public static int getKBArticleVersionsCount(long groupId,
long resourcePrimKey,
int status)
public static KBArticle getLatestKBArticle(long resourcePrimKey, int status) throws PortalException
PortalExceptionpublic static java.lang.String getOSGiServiceIdentifier()
public static KBArticle[] getPreviousAndNextKBArticles(long kbArticleId) throws PortalException
PortalExceptionpublic static java.util.List<KBArticle> getSectionsKBArticles(long groupId, java.lang.String[] sections, int status, int start, int end, OrderByComparator<KBArticle> orderByComparator)
public static int getSectionsKBArticlesCount(long groupId,
java.lang.String[] sections,
int status)
public static java.lang.String[] getTempAttachmentNames(long groupId,
java.lang.String tempFolderName)
throws PortalException
PortalExceptionpublic static void moveKBArticle(long resourcePrimKey,
long parentResourceClassNameId,
long parentResourcePrimKey,
double priority)
throws PortalException
PortalExceptionpublic static KBArticle revertKBArticle(long resourcePrimKey, int version, ServiceContext serviceContext) throws PortalException
PortalExceptionpublic static void subscribeGroupKBArticles(long groupId,
java.lang.String portletId)
throws PortalException
PortalExceptionpublic static void subscribeKBArticle(long groupId,
long resourcePrimKey)
throws PortalException
PortalExceptionpublic static void unsubscribeGroupKBArticles(long groupId,
java.lang.String portletId)
throws PortalException
PortalExceptionpublic static void unsubscribeKBArticle(long resourcePrimKey)
throws PortalException
PortalExceptionpublic static 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
PortalExceptionpublic static void updateKBArticlesPriorities(long groupId,
java.util.Map<java.lang.Long,java.lang.Double> resourcePrimKeyToPriorityMap)
throws PortalException
PortalExceptionpublic static KBArticleService getService()