001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.MethodCache;
019 import com.liferay.portal.kernel.util.ReferenceRegistry;
020
021
034 public class LayoutSetPrototypeLocalServiceUtil {
035
040
041
048 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
049 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addLayoutSetPrototype(layoutSetPrototype);
052 }
053
054
060 public static com.liferay.portal.model.LayoutSetPrototype createLayoutSetPrototype(
061 long layoutSetPrototypeId) {
062 return getService().createLayoutSetPrototype(layoutSetPrototypeId);
063 }
064
065
072 public static void deleteLayoutSetPrototype(long layoutSetPrototypeId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteLayoutSetPrototype(layoutSetPrototypeId);
076 }
077
078
085 public static void deleteLayoutSetPrototype(
086 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
087 throws com.liferay.portal.kernel.exception.PortalException,
088 com.liferay.portal.kernel.exception.SystemException {
089 getService().deleteLayoutSetPrototype(layoutSetPrototype);
090 }
091
092
099 @SuppressWarnings("rawtypes")
100 public static java.util.List dynamicQuery(
101 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
102 throws com.liferay.portal.kernel.exception.SystemException {
103 return getService().dynamicQuery(dynamicQuery);
104 }
105
106
119 @SuppressWarnings("rawtypes")
120 public static java.util.List dynamicQuery(
121 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
122 int end) throws com.liferay.portal.kernel.exception.SystemException {
123 return getService().dynamicQuery(dynamicQuery, start, end);
124 }
125
126
140 @SuppressWarnings("rawtypes")
141 public static java.util.List dynamicQuery(
142 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
143 int end,
144 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
145 throws com.liferay.portal.kernel.exception.SystemException {
146 return getService()
147 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
148 }
149
150
157 public static long dynamicQueryCount(
158 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
159 throws com.liferay.portal.kernel.exception.SystemException {
160 return getService().dynamicQueryCount(dynamicQuery);
161 }
162
163 public static com.liferay.portal.model.LayoutSetPrototype fetchLayoutSetPrototype(
164 long layoutSetPrototypeId)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService().fetchLayoutSetPrototype(layoutSetPrototypeId);
167 }
168
169
177 public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
178 long layoutSetPrototypeId)
179 throws com.liferay.portal.kernel.exception.PortalException,
180 com.liferay.portal.kernel.exception.SystemException {
181 return getService().getLayoutSetPrototype(layoutSetPrototypeId);
182 }
183
184 public static com.liferay.portal.model.PersistedModel getPersistedModel(
185 java.io.Serializable primaryKeyObj)
186 throws com.liferay.portal.kernel.exception.PortalException,
187 com.liferay.portal.kernel.exception.SystemException {
188 return getService().getPersistedModel(primaryKeyObj);
189 }
190
191
203 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
204 int start, int end)
205 throws com.liferay.portal.kernel.exception.SystemException {
206 return getService().getLayoutSetPrototypes(start, end);
207 }
208
209
215 public static int getLayoutSetPrototypesCount()
216 throws com.liferay.portal.kernel.exception.SystemException {
217 return getService().getLayoutSetPrototypesCount();
218 }
219
220
227 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
228 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 return getService().updateLayoutSetPrototype(layoutSetPrototype);
231 }
232
233
241 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
242 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
243 boolean merge)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getService().updateLayoutSetPrototype(layoutSetPrototype, merge);
246 }
247
248
253 public static java.lang.String getBeanIdentifier() {
254 return getService().getBeanIdentifier();
255 }
256
257
262 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
263 getService().setBeanIdentifier(beanIdentifier);
264 }
265
266 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
267 long userId, long companyId,
268 java.util.Map<java.util.Locale, java.lang.String> nameMap,
269 java.lang.String description, boolean active,
270 boolean allowModifications, boolean allowLayoutAddition,
271 com.liferay.portal.service.ServiceContext serviceContext)
272 throws com.liferay.portal.kernel.exception.PortalException,
273 com.liferay.portal.kernel.exception.SystemException {
274 return getService()
275 .addLayoutSetPrototype(userId, companyId, nameMap,
276 description, active, allowModifications, allowLayoutAddition,
277 serviceContext);
278 }
279
280 public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototypeByUuid(
281 java.lang.String uuid)
282 throws com.liferay.portal.kernel.exception.PortalException,
283 com.liferay.portal.kernel.exception.SystemException {
284 return getService().getLayoutSetPrototypeByUuid(uuid);
285 }
286
287 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
288 long companyId, java.lang.Boolean active, int start, int end,
289 com.liferay.portal.kernel.util.OrderByComparator obc)
290 throws com.liferay.portal.kernel.exception.SystemException {
291 return getService().search(companyId, active, start, end, obc);
292 }
293
294 public static int searchCount(long companyId, java.lang.Boolean active)
295 throws com.liferay.portal.kernel.exception.SystemException {
296 return getService().searchCount(companyId, active);
297 }
298
299 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
300 long layoutSetPrototypeId,
301 java.util.Map<java.util.Locale, java.lang.String> nameMap,
302 java.lang.String description, boolean active,
303 boolean allowModifications, boolean allowLayoutAddition,
304 com.liferay.portal.service.ServiceContext serviceContext)
305 throws com.liferay.portal.kernel.exception.PortalException,
306 com.liferay.portal.kernel.exception.SystemException {
307 return getService()
308 .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
309 description, active, allowModifications, allowLayoutAddition,
310 serviceContext);
311 }
312
313 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
314 long layoutSetPrototypeId, java.lang.String settings)
315 throws com.liferay.portal.kernel.exception.PortalException,
316 com.liferay.portal.kernel.exception.SystemException {
317 return getService()
318 .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
319 }
320
321 public static LayoutSetPrototypeLocalService getService() {
322 if (_service == null) {
323 _service = (LayoutSetPrototypeLocalService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeLocalService.class.getName());
324
325 ReferenceRegistry.registerReference(LayoutSetPrototypeLocalServiceUtil.class,
326 "_service");
327 MethodCache.remove(LayoutSetPrototypeLocalService.class);
328 }
329
330 return _service;
331 }
332
333 public void setService(LayoutSetPrototypeLocalService service) {
334 MethodCache.remove(LayoutSetPrototypeLocalService.class);
335
336 _service = service;
337
338 ReferenceRegistry.registerReference(LayoutSetPrototypeLocalServiceUtil.class,
339 "_service");
340 MethodCache.remove(LayoutSetPrototypeLocalService.class);
341 }
342
343 private static LayoutSetPrototypeLocalService _service;
344 }