001
014
015 package com.liferay.portal.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class LayoutSetPrototypeServiceUtil {
038
043
044
048 @Deprecated
049 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
050 java.util.Map<java.util.Locale, java.lang.String> nameMap,
051 java.lang.String description, boolean active,
052 boolean layoutsUpdateable,
053 com.liferay.portal.service.ServiceContext serviceContext)
054 throws com.liferay.portal.kernel.exception.PortalException {
055 return getService()
056 .addLayoutSetPrototype(nameMap, description, active,
057 layoutsUpdateable, serviceContext);
058 }
059
060 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
061 java.util.Map<java.util.Locale, java.lang.String> nameMap,
062 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
063 boolean active, boolean layoutsUpdateable,
064 com.liferay.portal.service.ServiceContext serviceContext)
065 throws com.liferay.portal.kernel.exception.PortalException {
066 return getService()
067 .addLayoutSetPrototype(nameMap, descriptionMap, active,
068 layoutsUpdateable, serviceContext);
069 }
070
071 public static void deleteLayoutSetPrototype(long layoutSetPrototypeId)
072 throws com.liferay.portal.kernel.exception.PortalException {
073 getService().deleteLayoutSetPrototype(layoutSetPrototypeId);
074 }
075
076
081 public static java.lang.String getBeanIdentifier() {
082 return getService().getBeanIdentifier();
083 }
084
085 public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
086 long layoutSetPrototypeId)
087 throws com.liferay.portal.kernel.exception.PortalException {
088 return getService().getLayoutSetPrototype(layoutSetPrototypeId);
089 }
090
091 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
092 long companyId, java.lang.Boolean active,
093 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutSetPrototype> obc)
094 throws com.liferay.portal.kernel.exception.PortalException {
095 return getService().search(companyId, active, obc);
096 }
097
098
103 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
104 getService().setBeanIdentifier(beanIdentifier);
105 }
106
107
112 @Deprecated
113 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
114 long layoutSetPrototypeId,
115 java.util.Map<java.util.Locale, java.lang.String> nameMap,
116 java.lang.String description, boolean active,
117 boolean layoutsUpdateable,
118 com.liferay.portal.service.ServiceContext serviceContext)
119 throws com.liferay.portal.kernel.exception.PortalException {
120 return getService()
121 .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
122 description, active, layoutsUpdateable, serviceContext);
123 }
124
125 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
126 long layoutSetPrototypeId,
127 java.util.Map<java.util.Locale, java.lang.String> nameMap,
128 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
129 boolean active, boolean layoutsUpdateable,
130 com.liferay.portal.service.ServiceContext serviceContext)
131 throws com.liferay.portal.kernel.exception.PortalException {
132 return getService()
133 .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
134 descriptionMap, active, layoutsUpdateable, serviceContext);
135 }
136
137 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
138 long layoutSetPrototypeId, java.lang.String settings)
139 throws com.liferay.portal.kernel.exception.PortalException {
140 return getService()
141 .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
142 }
143
144 public static LayoutSetPrototypeService getService() {
145 if (_service == null) {
146 _service = (LayoutSetPrototypeService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeService.class.getName());
147
148 ReferenceRegistry.registerReference(LayoutSetPrototypeServiceUtil.class,
149 "_service");
150 }
151
152 return _service;
153 }
154
155
158 @Deprecated
159 public void setService(LayoutSetPrototypeService service) {
160 }
161
162 private static LayoutSetPrototypeService _service;
163 }