001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
033 public class LayoutSetLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.LayoutSet addLayoutSet(
048 com.liferay.portal.model.LayoutSet layoutSet)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addLayoutSet(layoutSet);
051 }
052
053
059 public static com.liferay.portal.model.LayoutSet createLayoutSet(
060 long layoutSetId) {
061 return getService().createLayoutSet(layoutSetId);
062 }
063
064
072 public static com.liferay.portal.model.LayoutSet deleteLayoutSet(
073 long layoutSetId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteLayoutSet(layoutSetId);
077 }
078
079
086 public static com.liferay.portal.model.LayoutSet deleteLayoutSet(
087 com.liferay.portal.model.LayoutSet layoutSet)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteLayoutSet(layoutSet);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portal.model.LayoutSet fetchLayoutSet(
168 long layoutSetId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchLayoutSet(layoutSetId);
171 }
172
173
181 public static com.liferay.portal.model.LayoutSet getLayoutSet(
182 long layoutSetId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getLayoutSet(layoutSetId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
207 public static java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSets(
208 int start, int end)
209 throws com.liferay.portal.kernel.exception.SystemException {
210 return getService().getLayoutSets(start, end);
211 }
212
213
219 public static int getLayoutSetsCount()
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getLayoutSetsCount();
222 }
223
224
231 public static com.liferay.portal.model.LayoutSet updateLayoutSet(
232 com.liferay.portal.model.LayoutSet layoutSet)
233 throws com.liferay.portal.kernel.exception.SystemException {
234 return getService().updateLayoutSet(layoutSet);
235 }
236
237
245 public static com.liferay.portal.model.LayoutSet updateLayoutSet(
246 com.liferay.portal.model.LayoutSet layoutSet, boolean merge)
247 throws com.liferay.portal.kernel.exception.SystemException {
248 return getService().updateLayoutSet(layoutSet, merge);
249 }
250
251
256 public static java.lang.String getBeanIdentifier() {
257 return getService().getBeanIdentifier();
258 }
259
260
265 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
266 getService().setBeanIdentifier(beanIdentifier);
267 }
268
269 public static com.liferay.portal.model.LayoutSet addLayoutSet(
270 long groupId, boolean privateLayout)
271 throws com.liferay.portal.kernel.exception.PortalException,
272 com.liferay.portal.kernel.exception.SystemException {
273 return getService().addLayoutSet(groupId, privateLayout);
274 }
275
276 public static void deleteLayoutSet(long groupId, boolean privateLayout,
277 com.liferay.portal.service.ServiceContext serviceContext)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException {
280 getService().deleteLayoutSet(groupId, privateLayout, serviceContext);
281 }
282
283 public static com.liferay.portal.model.LayoutSet fetchLayoutSet(
284 java.lang.String virtualHostname)
285 throws com.liferay.portal.kernel.exception.SystemException {
286 return getService().fetchLayoutSet(virtualHostname);
287 }
288
289 public static com.liferay.portal.model.LayoutSet getLayoutSet(
290 long groupId, boolean privateLayout)
291 throws com.liferay.portal.kernel.exception.PortalException,
292 com.liferay.portal.kernel.exception.SystemException {
293 return getService().getLayoutSet(groupId, privateLayout);
294 }
295
296 public static com.liferay.portal.model.LayoutSet getLayoutSet(
297 java.lang.String virtualHostname)
298 throws com.liferay.portal.kernel.exception.PortalException,
299 com.liferay.portal.kernel.exception.SystemException {
300 return getService().getLayoutSet(virtualHostname);
301 }
302
303 public static java.util.List<com.liferay.portal.model.LayoutSet> getLayoutSetsByLayoutSetPrototypeUuid(
304 java.lang.String layoutSetPrototypeUuid)
305 throws com.liferay.portal.kernel.exception.SystemException {
306 return getService()
307 .getLayoutSetsByLayoutSetPrototypeUuid(layoutSetPrototypeUuid);
308 }
309
310
333 public static void updateLayoutSetPrototypeLinkEnabled(long groupId,
334 boolean privateLayout, boolean layoutSetPrototypeLinkEnabled)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException {
337 getService()
338 .updateLayoutSetPrototypeLinkEnabled(groupId, privateLayout,
339 layoutSetPrototypeLinkEnabled);
340 }
341
342
354 public static void updateLayoutSetPrototypeLinkEnabled(long groupId,
355 boolean privateLayout, boolean layoutSetPrototypeLinkEnabled,
356 java.lang.String layoutSetPrototypeUuid)
357 throws com.liferay.portal.kernel.exception.PortalException,
358 com.liferay.portal.kernel.exception.SystemException {
359 getService()
360 .updateLayoutSetPrototypeLinkEnabled(groupId, privateLayout,
361 layoutSetPrototypeLinkEnabled, layoutSetPrototypeUuid);
362 }
363
364 public static com.liferay.portal.model.LayoutSet updateLogo(long groupId,
365 boolean privateLayout, boolean logo, java.io.File file)
366 throws com.liferay.portal.kernel.exception.PortalException,
367 com.liferay.portal.kernel.exception.SystemException {
368 return getService().updateLogo(groupId, privateLayout, logo, file);
369 }
370
371 public static com.liferay.portal.model.LayoutSet updateLogo(long groupId,
372 boolean privateLayout, boolean logo, java.io.InputStream is)
373 throws com.liferay.portal.kernel.exception.PortalException,
374 com.liferay.portal.kernel.exception.SystemException {
375 return getService().updateLogo(groupId, privateLayout, logo, is);
376 }
377
378 public static com.liferay.portal.model.LayoutSet updateLogo(long groupId,
379 boolean privateLayout, boolean logo, java.io.InputStream is,
380 boolean cleanUpStream)
381 throws com.liferay.portal.kernel.exception.PortalException,
382 com.liferay.portal.kernel.exception.SystemException {
383 return getService()
384 .updateLogo(groupId, privateLayout, logo, is, cleanUpStream);
385 }
386
387 public static com.liferay.portal.model.LayoutSet updateLookAndFeel(
388 long groupId, boolean privateLayout, java.lang.String themeId,
389 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
390 throws com.liferay.portal.kernel.exception.PortalException,
391 com.liferay.portal.kernel.exception.SystemException {
392 return getService()
393 .updateLookAndFeel(groupId, privateLayout, themeId,
394 colorSchemeId, css, wapTheme);
395 }
396
397 public static void updateLookAndFeel(long groupId,
398 java.lang.String themeId, java.lang.String colorSchemeId,
399 java.lang.String css, boolean wapTheme)
400 throws com.liferay.portal.kernel.exception.PortalException,
401 com.liferay.portal.kernel.exception.SystemException {
402 getService()
403 .updateLookAndFeel(groupId, themeId, colorSchemeId, css, wapTheme);
404 }
405
406 public static com.liferay.portal.model.LayoutSet updatePageCount(
407 long groupId, boolean privateLayout)
408 throws com.liferay.portal.kernel.exception.PortalException,
409 com.liferay.portal.kernel.exception.SystemException {
410 return getService().updatePageCount(groupId, privateLayout);
411 }
412
413 public static com.liferay.portal.model.LayoutSet updateSettings(
414 long groupId, boolean privateLayout, java.lang.String settings)
415 throws com.liferay.portal.kernel.exception.PortalException,
416 com.liferay.portal.kernel.exception.SystemException {
417 return getService().updateSettings(groupId, privateLayout, settings);
418 }
419
420 public static com.liferay.portal.model.LayoutSet updateVirtualHost(
421 long groupId, boolean privateLayout, java.lang.String virtualHostname)
422 throws com.liferay.portal.kernel.exception.PortalException,
423 com.liferay.portal.kernel.exception.SystemException {
424 return getService()
425 .updateVirtualHost(groupId, privateLayout, virtualHostname);
426 }
427
428 public static LayoutSetLocalService getService() {
429 if (_service == null) {
430 _service = (LayoutSetLocalService)PortalBeanLocatorUtil.locate(LayoutSetLocalService.class.getName());
431
432 ReferenceRegistry.registerReference(LayoutSetLocalServiceUtil.class,
433 "_service");
434 }
435
436 return _service;
437 }
438
439
442 public void setService(LayoutSetLocalService service) {
443 }
444
445 private static LayoutSetLocalService _service;
446 }