001
014
015 package com.liferay.portal.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
044
048 @Deprecated
049 public static com.liferay.portal.model.Website addWebsite(
050 java.lang.String className, long classPK, java.lang.String url,
051 long typeId, boolean primary)
052 throws com.liferay.portal.kernel.exception.PortalException {
053 return getService().addWebsite(className, classPK, url, typeId, primary);
054 }
055
056 public static com.liferay.portal.model.Website addWebsite(
057 java.lang.String className, long classPK, java.lang.String url,
058 long typeId, boolean primary,
059 com.liferay.portal.service.ServiceContext serviceContext)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService()
062 .addWebsite(className, classPK, url, typeId, primary,
063 serviceContext);
064 }
065
066 public static void deleteWebsite(long websiteId)
067 throws com.liferay.portal.kernel.exception.PortalException {
068 getService().deleteWebsite(websiteId);
069 }
070
071
076 public static java.lang.String getOSGiServiceIdentifier() {
077 return getService().getOSGiServiceIdentifier();
078 }
079
080 public static com.liferay.portal.model.Website getWebsite(long websiteId)
081 throws com.liferay.portal.kernel.exception.PortalException {
082 return getService().getWebsite(websiteId);
083 }
084
085 public static java.util.List<com.liferay.portal.model.Website> getWebsites(
086 java.lang.String className, long classPK)
087 throws com.liferay.portal.kernel.exception.PortalException {
088 return getService().getWebsites(className, classPK);
089 }
090
091 public static com.liferay.portal.model.Website updateWebsite(
092 long websiteId, java.lang.String url, long typeId, boolean primary)
093 throws com.liferay.portal.kernel.exception.PortalException {
094 return getService().updateWebsite(websiteId, url, typeId, primary);
095 }
096
097 public static WebsiteService getService() {
098 if (_service == null) {
099 _service = (WebsiteService)PortalBeanLocatorUtil.locate(WebsiteService.class.getName());
100
101 ReferenceRegistry.registerReference(WebsiteServiceUtil.class,
102 "_service");
103 }
104
105 return _service;
106 }
107
108 private static WebsiteService _service;
109 }