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