Class KBTemplateServiceUtil
java.lang.Object
com.liferay.knowledge.base.service.KBTemplateServiceUtil
Provides the remote service utility for KBTemplate. This utility wraps
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.- See Also:
- Generated:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic KBTemplateaddKBTemplate(String portletId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) static KBTemplatedeleteKBTemplate(long kbTemplateId) static voiddeleteKBTemplates(long groupId, long[] kbTemplateIds) static List<KBTemplate>getGroupKBTemplates(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) static intgetGroupKBTemplatesCount(long groupId) static KBTemplategetKBTemplate(long kbTemplateId) static KBTemplateSearchDisplaygetKBTemplateSearchDisplay(long groupId, String title, String content, Date startDate, Date endDate, boolean andOperator, int[] curStartValues, int cur, int delta, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) static StringReturns the OSGi service identifier.static KBTemplateServicestatic KBTemplateupdateKBTemplate(long kbTemplateId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext)
-
Constructor Details
-
KBTemplateServiceUtil
public KBTemplateServiceUtil()
-
-
Method Details
-
addKBTemplate
public static KBTemplate addKBTemplate(String portletId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteKBTemplate
public static KBTemplate deleteKBTemplate(long kbTemplateId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
deleteKBTemplates
public static void deleteKBTemplates(long groupId, long[] kbTemplateIds) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getGroupKBTemplates
public static List<KBTemplate> getGroupKBTemplates(long groupId, int start, int end, com.liferay.portal.kernel.util.OrderByComparator<KBTemplate> orderByComparator) -
getGroupKBTemplatesCount
public static int getGroupKBTemplatesCount(long groupId) -
getKBTemplate
public static KBTemplate getKBTemplate(long kbTemplateId) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getKBTemplateSearchDisplay
public static KBTemplateSearchDisplay getKBTemplateSearchDisplay(long groupId, String title, String content, Date startDate, 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 - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getOSGiServiceIdentifier
Returns the OSGi service identifier.- Returns:
- the OSGi service identifier
-
updateKBTemplate
public static KBTemplate updateKBTemplate(long kbTemplateId, String title, String content, com.liferay.portal.kernel.service.ServiceContext serviceContext) throws com.liferay.portal.kernel.exception.PortalException - Throws:
com.liferay.portal.kernel.exception.PortalException
-
getService
-