public class KBTemplateServiceUtil
extends java.lang.Object
com.liferay.knowledge.base.service.impl.KBTemplateServiceImpl
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.KBTemplateService
Constructor and Description |
---|
KBTemplateServiceUtil() |
Modifier and Type | Method and Description |
---|---|
static KBTemplate |
addKBTemplate(java.lang.String portletId,
java.lang.String title,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
static KBTemplate |
deleteKBTemplate(long kbTemplateId) |
static void |
deleteKBTemplates(long groupId,
long[] kbTemplateIds) |
static java.util.List<KBTemplate> |
getGroupKBTemplates(long groupId,
int start,
int end,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) |
static int |
getGroupKBTemplatesCount(long groupId) |
static KBTemplate |
getKBTemplate(long kbTemplateId) |
static KBTemplateSearchDisplay |
getKBTemplateSearchDisplay(long groupId,
java.lang.String title,
java.lang.String content,
java.util.Date startDate,
java.util.Date endDate,
boolean andOperator,
int[] curStartValues,
int cur,
int delta,
com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) |
static java.lang.String |
getOSGiServiceIdentifier()
Returns the OSGi service identifier.
|
static KBTemplateService |
getService() |
static KBTemplate |
updateKBTemplate(long kbTemplateId,
java.lang.String title,
java.lang.String content,
com.liferay.portal.kernel.service.ServiceContext serviceContext) |
public static KBTemplate addKBTemplate(java.lang.String portletId, java.lang.String title, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static KBTemplate deleteKBTemplate(long kbTemplateId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static void deleteKBTemplates(long groupId, long[] kbTemplateIds) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.util.List<KBTemplate> getGroupKBTemplates(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator)
public static int getGroupKBTemplatesCount(long groupId)
public static KBTemplate getKBTemplate(long kbTemplateId) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static KBTemplateSearchDisplay getKBTemplateSearchDisplay(long groupId, java.lang.String title, java.lang.String content, java.util.Date startDate, java.util.Date endDate, boolean andOperator, int[] curStartValues, int cur, int delta, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static java.lang.String getOSGiServiceIdentifier()
public static KBTemplate updateKBTemplate(long kbTemplateId, java.lang.String title, java.lang.String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException
com.liferay.portal.kernel.exception.PortalException
public static KBTemplateService getService()