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 getBeanIdentifier() {
077 return getService().getBeanIdentifier();
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
096 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
097 getService().setBeanIdentifier(beanIdentifier);
098 }
099
100 public static com.liferay.portal.model.Website updateWebsite(
101 long websiteId, java.lang.String url, long typeId, boolean primary)
102 throws com.liferay.portal.kernel.exception.PortalException {
103 return getService().updateWebsite(websiteId, url, typeId, primary);
104 }
105
106 public static WebsiteService getService() {
107 if (_service == null) {
108 _service = (WebsiteService)PortalBeanLocatorUtil.locate(WebsiteService.class.getName());
109
110 ReferenceRegistry.registerReference(WebsiteServiceUtil.class,
111 "_service");
112 }
113
114 return _service;
115 }
116
117
120 @Deprecated
121 public void setService(WebsiteService service) {
122 }
123
124 private static WebsiteService _service;
125 }