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 LayoutSetPrototypeServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
059 java.util.Map<java.util.Locale, java.lang.String> nameMap,
060 java.lang.String description, boolean active,
061 boolean layoutsUpdateable,
062 com.liferay.portal.service.ServiceContext serviceContext)
063 throws com.liferay.portal.kernel.exception.PortalException,
064 com.liferay.portal.kernel.exception.SystemException {
065 return getService()
066 .addLayoutSetPrototype(nameMap, description, active,
067 layoutsUpdateable, serviceContext);
068 }
069
070 public static void deleteLayoutSetPrototype(long layoutSetPrototypeId)
071 throws com.liferay.portal.kernel.exception.PortalException,
072 com.liferay.portal.kernel.exception.SystemException {
073 getService().deleteLayoutSetPrototype(layoutSetPrototypeId);
074 }
075
076 public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
077 long layoutSetPrototypeId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().getLayoutSetPrototype(layoutSetPrototypeId);
081 }
082
083 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
084 long companyId, java.lang.Boolean active,
085 com.liferay.portal.kernel.util.OrderByComparator obc)
086 throws com.liferay.portal.kernel.exception.PortalException,
087 com.liferay.portal.kernel.exception.SystemException {
088 return getService().search(companyId, active, obc);
089 }
090
091 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
092 long layoutSetPrototypeId,
093 java.util.Map<java.util.Locale, java.lang.String> nameMap,
094 java.lang.String description, boolean active,
095 boolean layoutsUpdateable,
096 com.liferay.portal.service.ServiceContext serviceContext)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException {
099 return getService()
100 .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
101 description, active, layoutsUpdateable, serviceContext);
102 }
103
104 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
105 long layoutSetPrototypeId, java.lang.String settings)
106 throws com.liferay.portal.kernel.exception.PortalException,
107 com.liferay.portal.kernel.exception.SystemException {
108 return getService()
109 .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
110 }
111
112 public static LayoutSetPrototypeService getService() {
113 if (_service == null) {
114 _service = (LayoutSetPrototypeService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeService.class.getName());
115
116 ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
117 "_service");
118 }
119
120 return _service;
121 }
122
123
126 public void setService(LayoutSetPrototypeService service) {
127 }
128
129 private static LayoutSetPrototypeService _service;
130 }