001
014
015 package com.liferay.portal.kernel.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class WebsiteServiceUtil {
038
043 public static com.liferay.portal.kernel.model.Website addWebsite(
044 java.lang.String className, long classPK, java.lang.String url,
045 long typeId, boolean primary, ServiceContext serviceContext)
046 throws com.liferay.portal.kernel.exception.PortalException {
047 return getService()
048 .addWebsite(className, classPK, url, typeId, primary,
049 serviceContext);
050 }
051
052 public static com.liferay.portal.kernel.model.Website getWebsite(
053 long websiteId)
054 throws com.liferay.portal.kernel.exception.PortalException {
055 return getService().getWebsite(websiteId);
056 }
057
058 public static com.liferay.portal.kernel.model.Website updateWebsite(
059 long websiteId, java.lang.String url, long typeId, boolean primary)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService().updateWebsite(websiteId, url, typeId, primary);
062 }
063
064
069 public static java.lang.String getOSGiServiceIdentifier() {
070 return getService().getOSGiServiceIdentifier();
071 }
072
073 public static java.util.List<com.liferay.portal.kernel.model.Website> getWebsites(
074 java.lang.String className, long classPK)
075 throws com.liferay.portal.kernel.exception.PortalException {
076 return getService().getWebsites(className, classPK);
077 }
078
079 public static void deleteWebsite(long websiteId)
080 throws com.liferay.portal.kernel.exception.PortalException {
081 getService().deleteWebsite(websiteId);
082 }
083
084 public static WebsiteService getService() {
085 if (_service == null) {
086 _service = (WebsiteService)PortalBeanLocatorUtil.locate(WebsiteService.class.getName());
087
088 ReferenceRegistry.registerReference(WebsiteServiceUtil.class,
089 "_service");
090 }
091
092 return _service;
093 }
094
095 private static WebsiteService _service;
096 }