@AccessControlled
@JSONWebService
@ProviderType
@Transactional(isolation=PORTAL,
rollbackFor={com.liferay.portal.kernel.exception.PortalException.class,com.liferay.portal.kernel.exception.SystemException.class})
public interface KBArticleService
extends com.liferay.portal.kernel.service.BaseService
KBArticleServiceUtil
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,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
int |
addKBArticlesMarkdown(long groupId,
long parentKBFolderId,
java.lang.String fileName,
boolean prioritizeByNumericalPrefix,
java.io.InputStream inputStream,
com.liferay.portal.kernel.service.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,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
java.util.List<KBArticle> |
getGroupKBArticles(long groupId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.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,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay) |
KBArticle |
getKBArticle(long resourcePrimKey,
int version) |
java.util.List<KBArticle> |
getKBArticleAndAllDescendantKBArticles(long resourcePrimKey,
int status,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
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) |
java.util.List<KBArticle> |
getKBArticles(long groupId,
long[] resourcePrimKeys,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
java.util.List<KBArticle> |
getKBArticles(long groupId,
long[] resourcePrimKeys,
int status,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
java.util.List<KBArticle> |
getKBArticles(long groupId,
long parentResourcePrimKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.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,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
java.util.List<KBArticle> |
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) |
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,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
int |
getSectionsKBArticlesCount(long groupId,
java.lang.String[] sections,
int status) |
java.lang.String[] |
getTempAttachmentNames(long groupId,
java.lang.String tempFolderName) |
void |
moveKBArticle(long resourcePrimKey,
long parentResourceClassNameId,
long parentResourcePrimKey,
double priority) |
KBArticle |
revertKBArticle(long resourcePrimKey,
int version,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
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,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
updateKBArticlesPriorities(long groupId,
java.util.Map<java.lang.Long,java.lang.Double> resourcePrimKeyToPriorityMap) |
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
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
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
KBArticle deleteKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void deleteKBArticles(long groupId, long[] resourcePrimKeys) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
@Transactional(propagation=SUPPORTS, readOnly=true) KBArticle fetchFirstChildKBArticle(long groupId, long parentResourcePrimKey)
@Transactional(propagation=SUPPORTS, readOnly=true) KBArticle fetchFirstChildKBArticle(long groupId, long parentResourcePrimKey, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) KBArticle fetchKBArticleByUrlTitle(long groupId, long kbFolderId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) KBArticle fetchLatestKBArticle(long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<KBArticle> getGroupKBArticles(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getGroupKBArticlesCount(long groupId, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) KBArticle getKBArticle(long resourcePrimKey, int version) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<KBArticle> getKBArticles(long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<KBArticle> getKBArticles(long groupId, long[] resourcePrimKeys, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getKBArticlesCount(long groupId, long parentResourcePrimKey, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) int getKBArticlesCount(long groupId, long[] resourcePrimKeys, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) 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
@Transactional(propagation=SUPPORTS, readOnly=true) java.util.List<KBArticle> getKBArticleVersions(long groupId, long resourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
@Transactional(propagation=SUPPORTS, readOnly=true) int getKBArticleVersionsCount(long groupId, long resourcePrimKey, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) KBArticle getLatestKBArticle(long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
java.lang.String getOSGiServiceIdentifier()
@Transactional(propagation=SUPPORTS, readOnly=true) KBArticle[] getPreviousAndNextKBArticles(long kbArticleId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
@Transactional(propagation=SUPPORTS, readOnly=true) 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)
@Transactional(propagation=SUPPORTS, readOnly=true) int getSectionsKBArticlesCount(long groupId, java.lang.String[] sections, int status)
@Transactional(propagation=SUPPORTS, readOnly=true) java.lang.String[] getTempAttachmentNames(long groupId, java.lang.String tempFolderName) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void moveKBArticle(long resourcePrimKey, long parentResourceClassNameId, long parentResourcePrimKey, double priority) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
void subscribeGroupKBArticles(long groupId, java.lang.String portletId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void subscribeKBArticle(long groupId, long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void unsubscribeGroupKBArticles(long groupId, java.lang.String portletId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
void unsubscribeKBArticle(long resourcePrimKey) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
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
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