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,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static int |
addKBArticlesMarkdown(long groupId,
long parentKBFolderId,
java.lang.String fileName,
boolean prioritizeByNumericalPrefix,
java.io.InputStream inputStream,
com.liferay.portal.kernel.service.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,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
static java.util.List<KBArticle> |
getGroupKBArticles(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.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,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static KBArticle |
getKBArticle(long resourcePrimKey,
int version) |
static java.util.List<KBArticle> |
getKBArticleAndAllDescendantKBArticles(long resourcePrimKey,
int status,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
static java.lang.String |
getKBArticleRSS(long resourcePrimKey,
int status,
int rssDelta,
java.lang.String rssDisplayStyle,
java.lang.String rssFormat,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
static java.util.List<KBArticle> |
getKBArticles(long groupId,
long[] resourcePrimKeys,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
static java.util.List<KBArticle> |
getKBArticles(long groupId,
long[] resourcePrimKeys,
int status,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
static java.util.List<KBArticle> |
getKBArticles(long groupId,
long parentResourcePrimKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.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,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
static java.util.List<KBArticle> |
getKBArticleVersions(long groupId,
long resourcePrimKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.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,
com.liferay.portal.kernel.util.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,
com.liferay.portal.kernel.service.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,
com.liferay.portal.kernel.service.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, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static int addKBArticlesMarkdown(long groupId, long parentKBFolderId, java.lang.String fileName, boolean prioritizeByNumericalPrefix, java.io.InputStream inputStream, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void addTempAttachment(long groupId, long resourcePrimKey, java.lang.String fileName, java.lang.String tempFolderName, java.io.InputStream inputStream, java.lang.String mimeType) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static KBArticle deleteKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteKBArticles(long groupId, long[] resourcePrimKeys) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteTempAttachment(long groupId, long resourcePrimKey, java.lang.String fileName, java.lang.String tempFolderName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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 com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static KBArticle fetchLatestKBArticle(long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static KBArticle fetchLatestKBArticleByUrlTitle(long groupId, long kbFolderId, java.lang.String urlTitle, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<KBArticle> getAllDescendantKBArticles(long groupId, long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<KBArticle> getGroupKBArticles(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.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, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static KBArticle getKBArticle(long resourcePrimKey, int version) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<KBArticle> getKBArticleAndAllDescendantKBArticles(long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getKBArticleRSS(long resourcePrimKey, int status, int rssDelta, java.lang.String rssDisplayStyle, java.lang.String rssFormat, com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<KBArticle> getKBArticles(long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
public static java.util.List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
public static java.util.List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, com.liferay.portal.kernel.util.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, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<KBArticle> getKBArticleVersions(long groupId, long resourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
public static int getKBArticleVersionsCount(long groupId, long resourcePrimKey, int status)
public static KBArticle getLatestKBArticle(long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static KBArticle[] getPreviousAndNextKBArticles(long kbArticleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<KBArticle> getSectionsKBArticles(long groupId, java.lang.String[] sections, int status, int start, int end, com.liferay.portal.kernel.util.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 com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void moveKBArticle(long resourcePrimKey, long parentResourceClassNameId, long parentResourcePrimKey, double priority) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static KBArticle revertKBArticle(long resourcePrimKey, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void subscribeGroupKBArticles(long groupId, java.lang.String portletId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void subscribeKBArticle(long groupId, long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unsubscribeGroupKBArticles(long groupId, java.lang.String portletId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void unsubscribeKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public 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, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void updateKBArticlesPriorities(long groupId, java.util.Map<java.lang.Long,java.lang.Double> resourcePrimKeyToPriorityMap) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static KBArticleService getService()