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
171 public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
172 long layoutSetPrototypeId)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException {
175 return getService().getLayoutSetPrototype(layoutSetPrototypeId);
176 }
177
178 public static com.liferay.portal.model.PersistedModel getPersistedModel(
179 java.io.Serializable primaryKeyObj)
180 throws com.liferay.portal.kernel.exception.PortalException,
181 com.liferay.portal.kernel.exception.SystemException {
182 return getService().getPersistedModel(primaryKeyObj);
183 }
184
185
197 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
198 int start, int end)
199 throws com.liferay.portal.kernel.exception.SystemException {
200 return getService().getLayoutSetPrototypes(start, end);
201 }
202
203
209 public static int getLayoutSetPrototypesCount()
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getService().getLayoutSetPrototypesCount();
212 }
213
214
221 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
222 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
223 throws com.liferay.portal.kernel.exception.SystemException {
224 return getService().updateLayoutSetPrototype(layoutSetPrototype);
225 }
226
227
235 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
236 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
237 boolean merge)
238 throws com.liferay.portal.kernel.exception.SystemException {
239 return getService().updateLayoutSetPrototype(layoutSetPrototype, merge);
240 }
241
242
247 public static java.lang.String getBeanIdentifier() {
248 return getService().getBeanIdentifier();
249 }
250
251
256 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
257 getService().setBeanIdentifier(beanIdentifier);
258 }
259
260 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
261 long userId, long companyId,
262 java.util.Map<java.util.Locale, java.lang.String> nameMap,
263 java.lang.String description, boolean active,
264 boolean allowModifications, boolean allowLayoutAddition,
265 com.liferay.portal.service.ServiceContext serviceContext)
266 throws com.liferay.portal.kernel.exception.PortalException,
267 com.liferay.portal.kernel.exception.SystemException {
268 return getService()
269 .addLayoutSetPrototype(userId, companyId, nameMap,
270 description, active, allowModifications, allowLayoutAddition,
271 serviceContext);
272 }
273
274 public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototypeByUuid(
275 java.lang.String uuid)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException {
278 return getService().getLayoutSetPrototypeByUuid(uuid);
279 }
280
281 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
282 long companyId, java.lang.Boolean active, int start, int end,
283 com.liferay.portal.kernel.util.OrderByComparator obc)
284 throws com.liferay.portal.kernel.exception.SystemException {
285 return getService().search(companyId, active, start, end, obc);
286 }
287
288 public static int searchCount(long companyId, java.lang.Boolean active)
289 throws com.liferay.portal.kernel.exception.SystemException {
290 return getService().searchCount(companyId, active);
291 }
292
293 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
294 long layoutSetPrototypeId,
295 java.util.Map<java.util.Locale, java.lang.String> nameMap,
296 java.lang.String description, boolean active,
297 boolean allowModifications, boolean allowLayoutAddition,
298 com.liferay.portal.service.ServiceContext serviceContext)
299 throws com.liferay.portal.kernel.exception.PortalException,
300 com.liferay.portal.kernel.exception.SystemException {
301 return getService()
302 .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
303 description, active, allowModifications, allowLayoutAddition,
304 serviceContext);
305 }
306
307 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
308 long layoutSetPrototypeId, java.lang.String settings)
309 throws com.liferay.portal.kernel.exception.PortalException,
310 com.liferay.portal.kernel.exception.SystemException {
311 return getService()
312 .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
313 }
314
315 public static LayoutSetPrototypeLocalService getService() {
316 if (_service == null) {
317 _service = (LayoutSetPrototypeLocalService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeLocalService.class.getName());
318
319 ReferenceRegistry.registerReference(LayoutSetPrototypeLocalServiceUtil.class,
320 "_service");
321 MethodCache.remove(LayoutSetPrototypeLocalService.class);
322 }
323
324 return _service;
325 }
326
327 public void setService(LayoutSetPrototypeLocalService service) {
328 MethodCache.remove(LayoutSetPrototypeLocalService.class);
329
330 _service = service;
331
332 ReferenceRegistry.registerReference(LayoutSetPrototypeLocalServiceUtil.class,
333 "_service");
334 MethodCache.remove(LayoutSetPrototypeLocalService.class);
335 }
336
337 private static LayoutSetPrototypeLocalService _service;
338 }