/**
* 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 com.liferay.osgi.util.ServiceTrackerFactory;
import org.osgi.util.tracker.ServiceTracker;
/**
* Provides the remote service utility for KBTemplate. This utility wraps
* {@link com.liferay.knowledge.base.service.impl.KBTemplateServiceImpl} and is the
* primary 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 KBTemplateService
* @see com.liferay.knowledge.base.service.base.KBTemplateServiceBaseImpl
* @see com.liferay.knowledge.base.service.impl.KBTemplateServiceImpl
* @generated
*/
@ProviderType
public class KBTemplateServiceUtil {
/*
* NOTE FOR DEVELOPERS:
*
* Never modify this class directly. Add custom service methods to {@link com.liferay.knowledge.base.service.impl.KBTemplateServiceImpl} and rerun ServiceBuilder to regenerate this class.
*/
public static com.liferay.knowledge.base.model.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 {
return getService()
.addKBTemplate(portletId, title, content, serviceContext);
}
public static com.liferay.knowledge.base.model.KBTemplate deleteKBTemplate(
long kbTemplateId)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().deleteKBTemplate(kbTemplateId);
}
public static com.liferay.knowledge.base.model.KBTemplate getKBTemplate(
long kbTemplateId)
throws com.liferay.portal.kernel.exception.PortalException {
return getService().getKBTemplate(kbTemplateId);
}
public static com.liferay.knowledge.base.model.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 {
return getService()
.updateKBTemplate(kbTemplateId, title, content,
serviceContext);
}
public static com.liferay.knowledge.base.model.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<com.liferay.knowledge.base.model.KBTemplate> orderByComparator)
throws com.liferay.portal.kernel.exception.PortalException {
return getService()
.getKBTemplateSearchDisplay(groupId, title, content,
startDate, endDate, andOperator, curStartValues, cur, delta,
orderByComparator);
}
public static int getGroupKBTemplatesCount(long groupId) {
return getService().getGroupKBTemplatesCount(groupId);
}
/**
* Returns the OSGi service identifier.
*
* @return the OSGi service identifier
*/
public static java.lang.String getOSGiServiceIdentifier() {
return getService().getOSGiServiceIdentifier();
}
public static java.util.List<com.liferay.knowledge.base.model.KBTemplate> getGroupKBTemplates(
long groupId, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator<com.liferay.knowledge.base.model.KBTemplate> orderByComparator) {
return getService()
.getGroupKBTemplates(groupId, start, end, orderByComparator);
}
public static void deleteKBTemplates(long groupId, long[] kbTemplateIds)
throws com.liferay.portal.kernel.exception.PortalException {
getService().deleteKBTemplates(groupId, kbTemplateIds);
}
public static KBTemplateService getService() {
return _serviceTracker.getService();
}
private static ServiceTracker<KBTemplateService, KBTemplateService> _serviceTracker =
ServiceTrackerFactory.open(KBTemplateService.class);
}