1
14
15 package com.liferay.portal.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18 import com.liferay.portal.kernel.util.MethodCache;
19 import com.liferay.portal.kernel.util.ReferenceRegistry;
20
21
41 public class WebsiteLocalServiceUtil {
42 public static com.liferay.portal.model.Website addWebsite(
43 com.liferay.portal.model.Website website)
44 throws com.liferay.portal.SystemException {
45 return getService().addWebsite(website);
46 }
47
48 public static com.liferay.portal.model.Website createWebsite(long websiteId) {
49 return getService().createWebsite(websiteId);
50 }
51
52 public static void deleteWebsite(long websiteId)
53 throws com.liferay.portal.PortalException,
54 com.liferay.portal.SystemException {
55 getService().deleteWebsite(websiteId);
56 }
57
58 public static void deleteWebsite(com.liferay.portal.model.Website website)
59 throws com.liferay.portal.SystemException {
60 getService().deleteWebsite(website);
61 }
62
63 @SuppressWarnings("rawtypes")
64 public static java.util.List dynamicQuery(
65 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
66 throws com.liferay.portal.SystemException {
67 return getService().dynamicQuery(dynamicQuery);
68 }
69
70 @SuppressWarnings("rawtypes")
71 public static java.util.List dynamicQuery(
72 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
73 int end) throws com.liferay.portal.SystemException {
74 return getService().dynamicQuery(dynamicQuery, start, end);
75 }
76
77 @SuppressWarnings("rawtypes")
78 public static java.util.List dynamicQuery(
79 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
80 int end,
81 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
82 throws com.liferay.portal.SystemException {
83 return getService()
84 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
85 }
86
87 public static int dynamicQueryCount(
88 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
89 throws com.liferay.portal.SystemException {
90 return getService().dynamicQueryCount(dynamicQuery);
91 }
92
93 public static com.liferay.portal.model.Website getWebsite(long websiteId)
94 throws com.liferay.portal.PortalException,
95 com.liferay.portal.SystemException {
96 return getService().getWebsite(websiteId);
97 }
98
99 public static java.util.List<com.liferay.portal.model.Website> getWebsites(
100 int start, int end) throws com.liferay.portal.SystemException {
101 return getService().getWebsites(start, end);
102 }
103
104 public static int getWebsitesCount()
105 throws com.liferay.portal.SystemException {
106 return getService().getWebsitesCount();
107 }
108
109 public static com.liferay.portal.model.Website updateWebsite(
110 com.liferay.portal.model.Website website)
111 throws com.liferay.portal.SystemException {
112 return getService().updateWebsite(website);
113 }
114
115 public static com.liferay.portal.model.Website updateWebsite(
116 com.liferay.portal.model.Website website, boolean merge)
117 throws com.liferay.portal.SystemException {
118 return getService().updateWebsite(website, merge);
119 }
120
121 public static com.liferay.portal.model.Website addWebsite(long userId,
122 java.lang.String className, long classPK, java.lang.String url,
123 int typeId, boolean primary)
124 throws com.liferay.portal.PortalException,
125 com.liferay.portal.SystemException {
126 return getService()
127 .addWebsite(userId, className, classPK, url, typeId, primary);
128 }
129
130 public static void deleteWebsites(long companyId,
131 java.lang.String className, long classPK)
132 throws com.liferay.portal.SystemException {
133 getService().deleteWebsites(companyId, className, classPK);
134 }
135
136 public static java.util.List<com.liferay.portal.model.Website> getWebsites()
137 throws com.liferay.portal.SystemException {
138 return getService().getWebsites();
139 }
140
141 public static java.util.List<com.liferay.portal.model.Website> getWebsites(
142 long companyId, java.lang.String className, long classPK)
143 throws com.liferay.portal.SystemException {
144 return getService().getWebsites(companyId, className, classPK);
145 }
146
147 public static com.liferay.portal.model.Website updateWebsite(
148 long websiteId, java.lang.String url, int typeId, boolean primary)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException {
151 return getService().updateWebsite(websiteId, url, typeId, primary);
152 }
153
154 public static WebsiteLocalService getService() {
155 if (_service == null) {
156 _service = (WebsiteLocalService)PortalBeanLocatorUtil.locate(WebsiteLocalService.class.getName());
157
158 ReferenceRegistry.registerReference(WebsiteLocalServiceUtil.class,
159 "_service");
160 MethodCache.remove(WebsiteLocalService.class);
161 }
162
163 return _service;
164 }
165
166 public void setService(WebsiteLocalService service) {
167 MethodCache.remove(WebsiteLocalService.class);
168
169 _service = service;
170
171 ReferenceRegistry.registerReference(WebsiteLocalServiceUtil.class,
172 "_service");
173 MethodCache.remove(WebsiteLocalService.class);
174 }
175
176 private static WebsiteLocalService _service;
177 }