Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance. Project price only 1 $
You can buy this project and download/modify it how often you want.
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.knowledge.base.service;
import aQute.bnd.annotation.ProviderType;
import org.osgi.framework.Bundle;
import org.osgi.framework.FrameworkUtil;
import org.osgi.util.tracker.ServiceTracker;
/**
* Provides the remote service utility for KBArticle. This utility wraps
* 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.
*
* @author Brian Wing Shun Chan
* @see KBArticleService
* @generated
*/
@ProviderType
public class KBArticleServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to com.liferay.knowledge.base.service.impl.KBArticleServiceImpl and rerun ServiceBuilder to regenerate this class.
*/
public static com.liferay.knowledge.base.model.KBArticle addKBArticle(
String portletId, long parentResourceClassNameId,
long parentResourcePrimKey, String title, String urlTitle,
String content, String description, String sourceURL,
String[] sections, String[] selectedFileNames,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().addKBArticle(
portletId, parentResourceClassNameId, parentResourcePrimKey, title,
urlTitle, content, description, sourceURL, sections,
selectedFileNames, serviceContext);
}
public static int addKBArticlesMarkdown(
long groupId, long parentKBFolderId, String fileName,
boolean prioritizeByNumericalPrefix,
java.io.InputStream inputStream,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().addKBArticlesMarkdown(
groupId, parentKBFolderId, fileName, prioritizeByNumericalPrefix,
inputStream, serviceContext);
}
public static void addTempAttachment(
long groupId, long resourcePrimKey, String fileName,
String tempFolderName, java.io.InputStream inputStream,
String mimeType)
throws com.liferay.portal.kernel.exception.PortalException {
getService().addTempAttachment(
groupId, resourcePrimKey, fileName, tempFolderName, inputStream,
mimeType);
}
public static com.liferay.knowledge.base.model.KBArticle deleteKBArticle(
long resourcePrimKey)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().deleteKBArticle(resourcePrimKey);
}
public static void deleteKBArticles(long groupId, long[] resourcePrimKeys)
throws com.liferay.portal.kernel.exception.PortalException {
getService().deleteKBArticles(groupId, resourcePrimKeys);
}
public static void deleteTempAttachment(
long groupId, long resourcePrimKey, String fileName,
String tempFolderName)
throws com.liferay.portal.kernel.exception.PortalException {
getService().deleteTempAttachment(
groupId, resourcePrimKey, fileName, tempFolderName);
}
public static com.liferay.knowledge.base.model.KBArticle
fetchFirstChildKBArticle(long groupId, long parentResourcePrimKey) {
return getService().fetchFirstChildKBArticle(
groupId, parentResourcePrimKey);
}
public static com.liferay.knowledge.base.model.KBArticle
fetchFirstChildKBArticle(
long groupId, long parentResourcePrimKey, int status) {
return getService().fetchFirstChildKBArticle(
groupId, parentResourcePrimKey, status);
}
public static com.liferay.knowledge.base.model.KBArticle
fetchKBArticleByUrlTitle(
long groupId, long kbFolderId, String urlTitle)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().fetchKBArticleByUrlTitle(
groupId, kbFolderId, urlTitle);
}
public static com.liferay.knowledge.base.model.KBArticle
fetchLatestKBArticle(long resourcePrimKey, int status)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().fetchLatestKBArticle(resourcePrimKey, status);
}
public static com.liferay.knowledge.base.model.KBArticle
fetchLatestKBArticleByUrlTitle(
long groupId, long kbFolderId, String urlTitle, int status)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().fetchLatestKBArticleByUrlTitle(
groupId, kbFolderId, urlTitle, status);
}
/**
* @deprecated As of Judson (7.1.x), replaced by {@link
#getAllDescendantKBArticles(long, long, int,
OrderByComparator)}
*/
@Deprecated
public static java.util.List
getAllDescendantKBArticles(
long resourcePrimKey, int status,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getAllDescendantKBArticles(
resourcePrimKey, status, orderByComparator);
}
public static java.util.List
getAllDescendantKBArticles(
long groupId, long resourcePrimKey, int status,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getAllDescendantKBArticles(
groupId, resourcePrimKey, status, orderByComparator);
}
public static java.util.List
getGroupKBArticles(
long groupId, int status, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return getService().getGroupKBArticles(
groupId, status, start, end, orderByComparator);
}
public static int getGroupKBArticlesCount(long groupId, int status) {
return getService().getGroupKBArticlesCount(groupId, status);
}
public static String getGroupKBArticlesRSS(
int status, int rssDelta, String rssDisplayStyle, String rssFormat,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getGroupKBArticlesRSS(
status, rssDelta, rssDisplayStyle, rssFormat, themeDisplay);
}
public static com.liferay.knowledge.base.model.KBArticle getKBArticle(
long resourcePrimKey, int version)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getKBArticle(resourcePrimKey, version);
}
public static java.util.List
getKBArticleAndAllDescendantKBArticles(
long resourcePrimKey, int status,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getKBArticleAndAllDescendantKBArticles(
resourcePrimKey, status, orderByComparator);
}
/**
* @deprecated As of Judson (7.1.x), replaced by {@link
#getKBArticleAndAllDescendantKBArticles(long, int,
OrderByComparator)}
*/
@Deprecated
public static java.util.List
getKBArticleAndAllDescendants(
long groupId, long resourcePrimKey, int status,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return getService().getKBArticleAndAllDescendants(
groupId, resourcePrimKey, status, orderByComparator);
}
public static String getKBArticleRSS(
long resourcePrimKey, int status, int rssDelta,
String rssDisplayStyle, String rssFormat,
com.liferay.portal.kernel.theme.ThemeDisplay themeDisplay)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getKBArticleRSS(
resourcePrimKey, status, rssDelta, rssDisplayStyle, rssFormat,
themeDisplay);
}
public static java.util.List
getKBArticles(
long groupId, long parentResourcePrimKey, int status, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return getService().getKBArticles(
groupId, parentResourcePrimKey, status, start, end,
orderByComparator);
}
public static java.util.List
getKBArticles(
long groupId, long[] resourcePrimKeys, int status, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return getService().getKBArticles(
groupId, resourcePrimKeys, status, start, end, orderByComparator);
}
public static java.util.List
getKBArticles(
long groupId, long[] resourcePrimKeys, int status,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return getService().getKBArticles(
groupId, resourcePrimKeys, status, orderByComparator);
}
public static int getKBArticlesCount(
long groupId, long parentResourcePrimKey, int status) {
return getService().getKBArticlesCount(
groupId, parentResourcePrimKey, status);
}
public static int getKBArticlesCount(
long groupId, long[] resourcePrimKeys, int status) {
return getService().getKBArticlesCount(
groupId, resourcePrimKeys, status);
}
public static com.liferay.knowledge.base.model.KBArticleSearchDisplay
getKBArticleSearchDisplay(
long groupId, String title, 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
orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getKBArticleSearchDisplay(
groupId, title, content, status, startDate, endDate, andOperator,
curStartValues, cur, delta, orderByComparator);
}
public static java.util.List
getKBArticleVersions(
long groupId, long resourcePrimKey, int status, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return getService().getKBArticleVersions(
groupId, resourcePrimKey, status, start, end, orderByComparator);
}
public static int getKBArticleVersionsCount(
long groupId, long resourcePrimKey, int status) {
return getService().getKBArticleVersionsCount(
groupId, resourcePrimKey, status);
}
public static com.liferay.knowledge.base.model.KBArticle getLatestKBArticle(
long resourcePrimKey, int status)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getLatestKBArticle(resourcePrimKey, status);
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public static String getOSGiServiceIdentifier() {
return getService().getOSGiServiceIdentifier();
}
public static com.liferay.knowledge.base.model.KBArticle[]
getPreviousAndNextKBArticles(long kbArticleId)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getPreviousAndNextKBArticles(kbArticleId);
}
public static java.util.List
getSectionsKBArticles(
long groupId, String[] sections, int status, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return getService().getSectionsKBArticles(
groupId, sections, status, start, end, orderByComparator);
}
public static int getSectionsKBArticlesCount(
long groupId, String[] sections, int status) {
return getService().getSectionsKBArticlesCount(
groupId, sections, status);
}
/**
* @deprecated As of Judson (7.1.x), replaced by {@link #getKBArticles(long,
long, int, int, int, OrderByComparator)}
*/
@Deprecated
public static java.util.List
getSiblingKBArticles(
long groupId, long parentResourcePrimKey, int status, int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator
orderByComparator) {
return getService().getSiblingKBArticles(
groupId, parentResourcePrimKey, status, start, end,
orderByComparator);
}
/**
* @deprecated As of Judson (7.1.x), replaced by {@link
#getKBArticlesCount(long, long, int)}
*/
@Deprecated
public static int getSiblingKBArticlesCount(
long groupId, long parentResourcePrimKey, int status) {
return getService().getSiblingKBArticlesCount(
groupId, parentResourcePrimKey, status);
}
public static String[] getTempAttachmentNames(
long groupId, String tempFolderName)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getTempAttachmentNames(groupId, tempFolderName);
}
public static void moveKBArticle(
long resourcePrimKey, long parentResourceClassNameId,
long parentResourcePrimKey, double priority)
throws com.liferay.portal.kernel.exception.PortalException {
getService().moveKBArticle(
resourcePrimKey, parentResourceClassNameId, parentResourcePrimKey,
priority);
}
public static com.liferay.knowledge.base.model.KBArticle revertKBArticle(
long resourcePrimKey, int version,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().revertKBArticle(
resourcePrimKey, version, serviceContext);
}
public static void subscribeGroupKBArticles(long groupId, String portletId)
throws com.liferay.portal.kernel.exception.PortalException {
getService().subscribeGroupKBArticles(groupId, portletId);
}
public static void subscribeKBArticle(long groupId, long resourcePrimKey)
throws com.liferay.portal.kernel.exception.PortalException {
getService().subscribeKBArticle(groupId, resourcePrimKey);
}
public static void unsubscribeGroupKBArticles(
long groupId, String portletId)
throws com.liferay.portal.kernel.exception.PortalException {
getService().unsubscribeGroupKBArticles(groupId, portletId);
}
public static void unsubscribeKBArticle(long resourcePrimKey)
throws com.liferay.portal.kernel.exception.PortalException {
getService().unsubscribeKBArticle(resourcePrimKey);
}
public static com.liferay.knowledge.base.model.KBArticle updateKBArticle(
long resourcePrimKey, String title, String content,
String description, String sourceURL, String[] sections,
String[] selectedFileNames, long[] removeFileEntryIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().updateKBArticle(
resourcePrimKey, title, content, description, sourceURL, sections,
selectedFileNames, removeFileEntryIds, serviceContext);
}
public static void updateKBArticlesPriorities(
long groupId,
java.util.Map resourcePrimKeyToPriorityMap)
throws com.liferay.portal.kernel.exception.PortalException {
getService().updateKBArticlesPriorities(
groupId, resourcePrimKeyToPriorityMap);
}
public static KBArticleService getService() {
return _serviceTracker.getService();
}
private static ServiceTracker
_serviceTracker;
static {
Bundle bundle = FrameworkUtil.getBundle(KBArticleService.class);
ServiceTracker serviceTracker =
new ServiceTracker(
bundle.getBundleContext(), KBArticleService.class, null);
serviceTracker.open();
_serviceTracker = serviceTracker;
}
}