@ProviderType public class KBArticleLocalServiceWrapper extends java.lang.Object implements KBArticleLocalService, com.liferay.portal.kernel.service.ServiceWrapper<KBArticleLocalService>
KBArticleLocalService.KBArticleLocalService| Constructor and Description |
|---|
KBArticleLocalServiceWrapper(KBArticleLocalService kbArticleLocalService) |
| Modifier and Type | Method and Description |
|---|---|
com.liferay.portal.kernel.repository.model.FileEntry |
addAttachment(long userId,
long resourcePrimKey,
java.lang.String fileName,
java.io.InputStream inputStream,
java.lang.String mimeType) |
KBArticle |
addKBArticle(KBArticle kbArticle)
Adds the k b article to the database.
|
KBArticle |
addKBArticle(long userId,
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) |
void |
addKBArticleResources(KBArticle kbArticle,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addKBArticleResources(KBArticle kbArticle,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
void |
addKBArticleResources(long kbArticleId,
boolean addGroupPermissions,
boolean addGuestPermissions) |
void |
addKBArticleResources(long kbArticleId,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
int |
addKBArticlesMarkdown(long userId,
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 userId,
java.lang.String fileName,
java.lang.String tempFolderName,
java.io.InputStream inputStream,
java.lang.String mimeType) |
KBArticle |
createKBArticle(long kbArticleId)
Creates a new k b article with the primary key.
|
void |
deleteGroupKBArticles(long groupId) |
KBArticle |
deleteKBArticle(KBArticle kbArticle)
Deletes the k b article from the database.
|
KBArticle |
deleteKBArticle(long kbArticleId)
Deletes the k b article with the primary key from the database.
|
void |
deleteKBArticles(long[] resourcePrimKeys) |
void |
deleteKBArticles(long groupId,
long parentResourcePrimKey) |
com.liferay.portal.kernel.model.PersistedModel |
deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel) |
void |
deleteTempAttachment(long groupId,
long userId,
java.lang.String fileName,
java.lang.String tempFolderName) |
com.liferay.portal.kernel.dao.orm.DynamicQuery |
dynamicQuery() |
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Performs a dynamic query on the database and returns the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Performs a dynamic query on the database and returns a range of the matching rows.
|
<T> java.util.List<T> |
dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Performs a dynamic query on the database and returns an ordered range of the matching rows.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
Returns the number of rows matching the dynamic query.
|
long |
dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
Returns the number of rows matching the dynamic query.
|
KBArticle |
fetchFirstChildKBArticle(long groupId,
long parentResourcePrimKey) |
KBArticle |
fetchKBArticle(long kbArticleId) |
KBArticle |
fetchKBArticleByUrlTitle(long groupId,
long kbFolderId,
java.lang.String urlTitle) |
KBArticle |
fetchKBArticleByUrlTitle(long groupId,
java.lang.String kbFolderUrlTitle,
java.lang.String urlTitle) |
KBArticle |
fetchKBArticleByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the k b article matching the UUID and group.
|
KBArticle |
fetchLatestKBArticle(long resourcePrimKey,
int status) |
KBArticle |
fetchLatestKBArticleByUrlTitle(long groupId,
long kbFolderId,
java.lang.String urlTitle,
int status) |
com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery |
getActionableDynamicQuery() |
java.util.List<KBArticle> |
getAllDescendantKBArticles(long resourcePrimKey,
int status,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
java.util.List<KBArticle> |
getCompanyKBArticles(long companyId,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
int |
getCompanyKBArticlesCount(long companyId,
int status) |
com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery |
getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext) |
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) |
com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery |
getIndexableActionableDynamicQuery() |
KBArticle |
getKBArticle(long kbArticleId)
Returns the k b article with the primary key.
|
KBArticle |
getKBArticle(long resourcePrimKey,
int version) |
java.util.List<KBArticle> |
getKBArticleAndAllDescendantKBArticles(long resourcePrimKey,
int status,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
java.util.List<KBArticle> |
getKBArticleAndAllDescendants(long resourcePrimKey,
int status,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
Deprecated.
As of 7.0.0, replaced by
getKBArticleAndAllDescendantKBArticles(long, int,
OrderByComparator) |
KBArticle |
getKBArticleByUrlTitle(long groupId,
long kbFolderId,
java.lang.String urlTitle) |
KBArticle |
getKBArticleByUrlTitle(long groupId,
java.lang.String kbFolderUrlTitle,
java.lang.String urlTitle) |
KBArticle |
getKBArticleByUuidAndGroupId(java.lang.String uuid,
long groupId)
Returns the k b article matching the UUID and group.
|
java.util.List<KBArticle> |
getKBArticles(int start,
int end)
Returns a range of all the k b articles.
|
java.util.List<KBArticle> |
getKBArticles(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) |
java.util.List<KBArticle> |
getKBArticlesByUuidAndCompanyId(java.lang.String uuid,
long companyId)
Returns all the k b articles matching the UUID and company.
|
java.util.List<KBArticle> |
getKBArticlesByUuidAndCompanyId(java.lang.String uuid,
long companyId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
Returns a range of k b articles matching the UUID and company.
|
int |
getKBArticlesCount()
Returns the number of k b articles.
|
int |
getKBArticlesCount(long groupId,
long parentResourcePrimKey,
int status) |
java.util.List<KBArticle> |
getKBArticleVersions(long resourcePrimKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
int |
getKBArticleVersionsCount(long resourcePrimKey,
int status) |
java.util.List<KBArticle> |
getKBFolderKBArticles(long groupId,
long kbFolderId) |
int |
getKBFolderKBArticlesCount(long groupId,
long kbFolderId,
int status) |
KBArticle |
getLatestKBArticle(long resourcePrimKey,
int status) |
KBArticle |
getLatestKBArticleByUrlTitle(long groupId,
long kbFolderId,
java.lang.String urlTitle,
int status) |
java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
com.liferay.portal.kernel.model.PersistedModel |
getPersistedModel(java.io.Serializable primaryKeyObj) |
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.util.List<KBArticle> |
getSiblingKBArticles(long groupId,
long parentResourcePrimKey,
int status,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
Deprecated.
As of 7.0.0, replaced by
getKBArticles(long, long,
int, int, int,
OrderByComparator) |
int |
getSiblingKBArticlesCount(long groupId,
long parentResourcePrimKey,
int status)
Deprecated.
As of 7.0.0, replaced by
getKBArticlesCount(long,
long, int) |
java.lang.String[] |
getTempAttachmentNames(long groupId,
long userId,
java.lang.String tempFolderName) |
KBArticleLocalService |
getWrappedService() |
void |
moveKBArticle(long userId,
long resourcePrimKey,
long parentResourceClassNameId,
long parentResourcePrimKey,
double priority) |
KBArticle |
revertKBArticle(long userId,
long resourcePrimKey,
int version,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
java.util.List<KBArticle> |
search(long groupId,
java.lang.String title,
java.lang.String content,
int status,
java.util.Date startDate,
java.util.Date endDate,
boolean andOperator,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator) |
void |
setWrappedService(KBArticleLocalService kbArticleLocalService) |
void |
subscribeGroupKBArticles(long userId,
long groupId) |
void |
subscribeKBArticle(long userId,
long groupId,
long resourcePrimKey) |
void |
unsubscribeGroupKBArticles(long userId,
long groupId) |
void |
unsubscribeKBArticle(long userId,
long resourcePrimKey) |
KBArticle |
updateKBArticle(KBArticle kbArticle)
Updates the k b article in the database or adds it if it does not yet exist.
|
KBArticle |
updateKBArticle(long userId,
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 |
updateKBArticleAsset(long userId,
KBArticle kbArticle,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds) |
void |
updateKBArticleResources(KBArticle kbArticle,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions) |
void |
updateKBArticlesPriorities(java.util.Map<java.lang.Long,java.lang.Double> resourcePrimKeyToPriorityMap) |
void |
updatePriority(long resourcePrimKey,
double priority) |
KBArticle |
updateStatus(long userId,
long resourcePrimKey,
int status,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
void |
updateViewCount(long userId,
long resourcePrimKey,
int viewCount) |
public KBArticleLocalServiceWrapper(KBArticleLocalService kbArticleLocalService)
public KBArticle addKBArticle(KBArticle kbArticle)
addKBArticle in interface KBArticleLocalServicekbArticle - the k b articlepublic KBArticle addKBArticle(long userId, 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
addKBArticle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticle createKBArticle(long kbArticleId)
createKBArticle in interface KBArticleLocalServicekbArticleId - the primary key for the new k b articlepublic KBArticle deleteKBArticle(KBArticle kbArticle) throws com.liferay.portal.kernel.exception.PortalException
deleteKBArticle in interface KBArticleLocalServicekbArticle - the k b articlePortalExceptionpublic KBArticle deleteKBArticle(long kbArticleId) throws com.liferay.portal.kernel.exception.PortalException
deleteKBArticle in interface KBArticleLocalServicekbArticleId - the primary key of the k b articlePortalException - if a k b article with the primary key could not be foundpublic KBArticle fetchFirstChildKBArticle(long groupId, long parentResourcePrimKey)
fetchFirstChildKBArticle in interface KBArticleLocalServicepublic KBArticle fetchKBArticle(long kbArticleId)
fetchKBArticle in interface KBArticleLocalServicepublic KBArticle fetchKBArticleByUrlTitle(long groupId, java.lang.String kbFolderUrlTitle, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
fetchKBArticleByUrlTitle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticle fetchKBArticleByUrlTitle(long groupId, long kbFolderId, java.lang.String urlTitle)
fetchKBArticleByUrlTitle in interface KBArticleLocalServicepublic KBArticle fetchKBArticleByUuidAndGroupId(java.lang.String uuid, long groupId)
fetchKBArticleByUuidAndGroupId in interface KBArticleLocalServiceuuid - the k b article's UUIDgroupId - the primary key of the groupnull if a matching k b article could not be foundpublic KBArticle fetchLatestKBArticle(long resourcePrimKey, int status)
fetchLatestKBArticle in interface KBArticleLocalServicepublic KBArticle fetchLatestKBArticleByUrlTitle(long groupId, long kbFolderId, java.lang.String urlTitle, int status)
fetchLatestKBArticleByUrlTitle in interface KBArticleLocalServicepublic KBArticle getKBArticle(long kbArticleId) throws com.liferay.portal.kernel.exception.PortalException
getKBArticle in interface KBArticleLocalServicekbArticleId - the primary key of the k b articlePortalException - if a k b article with the primary key could not be foundpublic KBArticle getKBArticle(long resourcePrimKey, int version) throws com.liferay.portal.kernel.exception.PortalException
getKBArticle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticle getKBArticleByUrlTitle(long groupId, java.lang.String kbFolderUrlTitle, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
getKBArticleByUrlTitle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticle getKBArticleByUrlTitle(long groupId, long kbFolderId, java.lang.String urlTitle) throws com.liferay.portal.kernel.exception.PortalException
getKBArticleByUrlTitle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticle getKBArticleByUuidAndGroupId(java.lang.String uuid, long groupId) throws com.liferay.portal.kernel.exception.PortalException
getKBArticleByUuidAndGroupId in interface KBArticleLocalServiceuuid - the k b article's UUIDgroupId - the primary key of the groupPortalException - if a matching k b article could not be foundpublic KBArticle getLatestKBArticle(long resourcePrimKey, int status) throws com.liferay.portal.kernel.exception.PortalException
getLatestKBArticle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticle getLatestKBArticleByUrlTitle(long groupId, long kbFolderId, java.lang.String urlTitle, int status) throws com.liferay.portal.kernel.exception.PortalException
getLatestKBArticleByUrlTitle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticle revertKBArticle(long userId, long resourcePrimKey, int version, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
revertKBArticle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticle updateKBArticle(KBArticle kbArticle)
updateKBArticle in interface KBArticleLocalServicekbArticle - the k b articlepublic KBArticle updateKBArticle(long userId, 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
updateKBArticle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticle updateStatus(long userId, long resourcePrimKey, int status, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
updateStatus in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticle[] getPreviousAndNextKBArticles(long kbArticleId) throws com.liferay.portal.kernel.exception.PortalException
getPreviousAndNextKBArticles in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery()
getActionableDynamicQuery in interface KBArticleLocalServicepublic com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery()
dynamicQuery in interface KBArticleLocalServicepublic com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(com.liferay.exportimport.kernel.lar.PortletDataContext portletDataContext)
getExportActionableDynamicQuery in interface KBArticleLocalServicepublic com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery()
getIndexableActionableDynamicQuery in interface KBArticleLocalServicepublic com.liferay.portal.kernel.model.PersistedModel deletePersistedModel(com.liferay.portal.kernel.model.PersistedModel persistedModel)
throws com.liferay.portal.kernel.exception.PortalException
deletePersistedModel in interface KBArticleLocalServicedeletePersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicePortalExceptionpublic com.liferay.portal.kernel.model.PersistedModel getPersistedModel(java.io.Serializable primaryKeyObj)
throws com.liferay.portal.kernel.exception.PortalException
getPersistedModel in interface KBArticleLocalServicegetPersistedModel in interface com.liferay.portal.kernel.service.PersistedModelLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic com.liferay.portal.kernel.repository.model.FileEntry addAttachment(long userId,
long resourcePrimKey,
java.lang.String fileName,
java.io.InputStream inputStream,
java.lang.String mimeType)
throws com.liferay.portal.kernel.exception.PortalException
addAttachment in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic int addKBArticlesMarkdown(long userId,
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
addKBArticlesMarkdown in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic int getCompanyKBArticlesCount(long companyId,
int status)
getCompanyKBArticlesCount in interface KBArticleLocalServicepublic int getGroupKBArticlesCount(long groupId,
int status)
getGroupKBArticlesCount in interface KBArticleLocalServicepublic int getKBArticleVersionsCount(long resourcePrimKey,
int status)
getKBArticleVersionsCount in interface KBArticleLocalServicepublic int getKBArticlesCount()
getKBArticlesCount in interface KBArticleLocalServicepublic int getKBArticlesCount(long groupId,
long parentResourcePrimKey,
int status)
getKBArticlesCount in interface KBArticleLocalServicepublic int getKBFolderKBArticlesCount(long groupId,
long kbFolderId,
int status)
getKBFolderKBArticlesCount in interface KBArticleLocalServicepublic int getSectionsKBArticlesCount(long groupId,
java.lang.String[] sections,
int status)
getSectionsKBArticlesCount in interface KBArticleLocalService@Deprecated
public int getSiblingKBArticlesCount(long groupId,
long parentResourcePrimKey,
int status)
getKBArticlesCount(long,
long, int)getSiblingKBArticlesCount in interface KBArticleLocalServicepublic java.lang.String getOSGiServiceIdentifier()
getOSGiServiceIdentifier in interface KBArticleLocalServicepublic java.lang.String[] getTempAttachmentNames(long groupId,
long userId,
java.lang.String tempFolderName)
throws com.liferay.portal.kernel.exception.PortalException
getTempAttachmentNames in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQuery in interface KBArticleLocalServicedynamicQuery - the dynamic querypublic <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.knowledge.base.model.impl.KBArticleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface KBArticleLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)public <T> java.util.List<T> dynamicQuery(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.knowledge.base.model.impl.KBArticleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
dynamicQuery in interface KBArticleLocalServicedynamicQuery - the dynamic querystart - the lower bound of the range of model instancesend - the upper bound of the range of model instances (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public java.util.List<KBArticle> getAllDescendantKBArticles(long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
getAllDescendantKBArticles in interface KBArticleLocalServicepublic java.util.List<KBArticle> getCompanyKBArticles(long companyId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
getCompanyKBArticles in interface KBArticleLocalServicepublic java.util.List<KBArticle> getGroupKBArticles(long groupId, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
getGroupKBArticles in interface KBArticleLocalServicepublic java.util.List<KBArticle> getKBArticleAndAllDescendantKBArticles(long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
getKBArticleAndAllDescendantKBArticles in interface KBArticleLocalService@Deprecated public java.util.List<KBArticle> getKBArticleAndAllDescendants(long resourcePrimKey, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
getKBArticleAndAllDescendantKBArticles(long, int,
OrderByComparator)getKBArticleAndAllDescendants in interface KBArticleLocalServicepublic java.util.List<KBArticle> getKBArticleVersions(long resourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
getKBArticleVersions in interface KBArticleLocalServicepublic java.util.List<KBArticle> getKBArticles(int start, int end)
Useful when paginating results. Returns a maximum of end - start instances. start and end are not primary keys, they are indexes in the result set. Thus, 0 refers to the first result in the set. Setting both start and end to QueryUtil.ALL_POS will return the full result set. If orderByComparator is specified, then the query will include the given ORDER BY logic. If orderByComparator is absent and pagination is required (start and end are not QueryUtil.ALL_POS), then the query will include the default ORDER BY logic from com.liferay.knowledge.base.model.impl.KBArticleModelImpl. If both orderByComparator and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
getKBArticles in interface KBArticleLocalServicestart - the lower bound of the range of k b articlesend - the upper bound of the range of k b articles (not inclusive)public java.util.List<KBArticle> getKBArticles(long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
getKBArticles in interface KBArticleLocalServicepublic java.util.List<KBArticle> getKBArticles(long[] resourcePrimKeys, int status, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
getKBArticles in interface KBArticleLocalServicepublic java.util.List<KBArticle> getKBArticlesByUuidAndCompanyId(java.lang.String uuid, long companyId)
getKBArticlesByUuidAndCompanyId in interface KBArticleLocalServiceuuid - the UUID of the k b articlescompanyId - the primary key of the companypublic java.util.List<KBArticle> getKBArticlesByUuidAndCompanyId(java.lang.String uuid, long companyId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
getKBArticlesByUuidAndCompanyId in interface KBArticleLocalServiceuuid - the UUID of the k b articlescompanyId - the primary key of the companystart - the lower bound of the range of k b articlesend - the upper bound of the range of k b articles (not inclusive)orderByComparator - the comparator to order the results by (optionally null)public java.util.List<KBArticle> getKBFolderKBArticles(long groupId, long kbFolderId)
getKBFolderKBArticles in interface KBArticleLocalServicepublic 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)
getSectionsKBArticles in interface KBArticleLocalService@Deprecated public java.util.List<KBArticle> getSiblingKBArticles(long groupId, long parentResourcePrimKey, int status, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
getKBArticles(long, long,
int, int, int,
OrderByComparator)getSiblingKBArticles in interface KBArticleLocalServicepublic java.util.List<KBArticle> search(long groupId, java.lang.String title, java.lang.String content, int status, java.util.Date startDate, java.util.Date endDate, boolean andOperator, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBArticle> orderByComparator)
search in interface KBArticleLocalServicepublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
dynamicQueryCount in interface KBArticleLocalServicedynamicQuery - the dynamic querypublic long dynamicQueryCount(com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
com.liferay.portal.kernel.dao.orm.Projection projection)
dynamicQueryCount in interface KBArticleLocalServicedynamicQuery - the dynamic queryprojection - the projection to apply to the querypublic void addKBArticleResources(KBArticle kbArticle, boolean addGroupPermissions, boolean addGuestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addKBArticleResources in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addKBArticleResources(KBArticle kbArticle, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) throws com.liferay.portal.kernel.exception.PortalException
addKBArticleResources in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addKBArticleResources(long kbArticleId,
boolean addGroupPermissions,
boolean addGuestPermissions)
throws com.liferay.portal.kernel.exception.PortalException
addKBArticleResources in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addKBArticleResources(long kbArticleId,
java.lang.String[] groupPermissions,
java.lang.String[] guestPermissions)
throws com.liferay.portal.kernel.exception.PortalException
addKBArticleResources in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void addTempAttachment(long groupId,
long userId,
java.lang.String fileName,
java.lang.String tempFolderName,
java.io.InputStream inputStream,
java.lang.String mimeType)
throws com.liferay.portal.kernel.exception.PortalException
addTempAttachment in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteGroupKBArticles(long groupId)
throws com.liferay.portal.kernel.exception.PortalException
deleteGroupKBArticles in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteKBArticles(long groupId,
long parentResourcePrimKey)
throws com.liferay.portal.kernel.exception.PortalException
deleteKBArticles in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteKBArticles(long[] resourcePrimKeys)
throws com.liferay.portal.kernel.exception.PortalException
deleteKBArticles in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void deleteTempAttachment(long groupId,
long userId,
java.lang.String fileName,
java.lang.String tempFolderName)
throws com.liferay.portal.kernel.exception.PortalException
deleteTempAttachment in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void moveKBArticle(long userId,
long resourcePrimKey,
long parentResourceClassNameId,
long parentResourcePrimKey,
double priority)
throws com.liferay.portal.kernel.exception.PortalException
moveKBArticle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void subscribeGroupKBArticles(long userId,
long groupId)
throws com.liferay.portal.kernel.exception.PortalException
subscribeGroupKBArticles in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void subscribeKBArticle(long userId,
long groupId,
long resourcePrimKey)
throws com.liferay.portal.kernel.exception.PortalException
subscribeKBArticle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void unsubscribeGroupKBArticles(long userId,
long groupId)
throws com.liferay.portal.kernel.exception.PortalException
unsubscribeGroupKBArticles in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void unsubscribeKBArticle(long userId,
long resourcePrimKey)
throws com.liferay.portal.kernel.exception.PortalException
unsubscribeKBArticle in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void updateKBArticleAsset(long userId,
KBArticle kbArticle,
long[] assetCategoryIds,
java.lang.String[] assetTagNames,
long[] assetLinkEntryIds)
throws com.liferay.portal.kernel.exception.PortalException
updateKBArticleAsset in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void updateKBArticleResources(KBArticle kbArticle, java.lang.String[] groupPermissions, java.lang.String[] guestPermissions) throws com.liferay.portal.kernel.exception.PortalException
updateKBArticleResources in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void updateKBArticlesPriorities(java.util.Map<java.lang.Long,java.lang.Double> resourcePrimKeyToPriorityMap)
throws com.liferay.portal.kernel.exception.PortalException
updateKBArticlesPriorities in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic void updatePriority(long resourcePrimKey,
double priority)
updatePriority in interface KBArticleLocalServicepublic void updateViewCount(long userId,
long resourcePrimKey,
int viewCount)
throws com.liferay.portal.kernel.exception.PortalException
updateViewCount in interface KBArticleLocalServicecom.liferay.portal.kernel.exception.PortalExceptionpublic KBArticleLocalService getWrappedService()
getWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<KBArticleLocalService>public void setWrappedService(KBArticleLocalService kbArticleLocalService)
setWrappedService in interface com.liferay.portal.kernel.service.ServiceWrapper<KBArticleLocalService>