1
22
23 package com.liferay.portal.service;
24
25 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
26
27
47 public class WebsiteServiceUtil {
48 public static com.liferay.portal.model.Website addWebsite(
49 java.lang.String className, long classPK, java.lang.String url,
50 int typeId, boolean primary)
51 throws com.liferay.portal.PortalException,
52 com.liferay.portal.SystemException {
53 return getService().addWebsite(className, classPK, url, typeId, primary);
54 }
55
56 public static void deleteWebsite(long websiteId)
57 throws com.liferay.portal.PortalException,
58 com.liferay.portal.SystemException {
59 getService().deleteWebsite(websiteId);
60 }
61
62 public static com.liferay.portal.model.Website getWebsite(long websiteId)
63 throws com.liferay.portal.PortalException,
64 com.liferay.portal.SystemException {
65 return getService().getWebsite(websiteId);
66 }
67
68 public static java.util.List<com.liferay.portal.model.Website> getWebsites(
69 java.lang.String className, long classPK)
70 throws com.liferay.portal.PortalException,
71 com.liferay.portal.SystemException {
72 return getService().getWebsites(className, classPK);
73 }
74
75 public static com.liferay.portal.model.Website updateWebsite(
76 long websiteId, java.lang.String url, int typeId, boolean primary)
77 throws com.liferay.portal.PortalException,
78 com.liferay.portal.SystemException {
79 return getService().updateWebsite(websiteId, url, typeId, primary);
80 }
81
82 public static WebsiteService getService() {
83 if (_service == null) {
84 _service = (WebsiteService)PortalBeanLocatorUtil.locate(WebsiteService.class.getName());
85 }
86
87 return _service;
88 }
89
90 public void setService(WebsiteService service) {
91 _service = service;
92 }
93
94 private static WebsiteService _service;
95 }