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 LayoutSetPrototypeLocalServiceUtil {
034
039
040
047 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
048 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addLayoutSetPrototype(layoutSetPrototype);
051 }
052
053
059 public static com.liferay.portal.model.LayoutSetPrototype createLayoutSetPrototype(
060 long layoutSetPrototypeId) {
061 return getService().createLayoutSetPrototype(layoutSetPrototypeId);
062 }
063
064
072 public static com.liferay.portal.model.LayoutSetPrototype deleteLayoutSetPrototype(
073 long layoutSetPrototypeId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteLayoutSetPrototype(layoutSetPrototypeId);
077 }
078
079
087 public static com.liferay.portal.model.LayoutSetPrototype deleteLayoutSetPrototype(
088 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
089 throws com.liferay.portal.kernel.exception.PortalException,
090 com.liferay.portal.kernel.exception.SystemException {
091 return getService().deleteLayoutSetPrototype(layoutSetPrototype);
092 }
093
094 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
095 return getService().dynamicQuery();
096 }
097
098
105 @SuppressWarnings("rawtypes")
106 public static java.util.List dynamicQuery(
107 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
108 throws com.liferay.portal.kernel.exception.SystemException {
109 return getService().dynamicQuery(dynamicQuery);
110 }
111
112
125 @SuppressWarnings("rawtypes")
126 public static java.util.List dynamicQuery(
127 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
128 int end) throws com.liferay.portal.kernel.exception.SystemException {
129 return getService().dynamicQuery(dynamicQuery, start, end);
130 }
131
132
146 @SuppressWarnings("rawtypes")
147 public static java.util.List dynamicQuery(
148 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
149 int end,
150 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
151 throws com.liferay.portal.kernel.exception.SystemException {
152 return getService()
153 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
154 }
155
156
163 public static long dynamicQueryCount(
164 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165 throws com.liferay.portal.kernel.exception.SystemException {
166 return getService().dynamicQueryCount(dynamicQuery);
167 }
168
169 public static com.liferay.portal.model.LayoutSetPrototype fetchLayoutSetPrototype(
170 long layoutSetPrototypeId)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 return getService().fetchLayoutSetPrototype(layoutSetPrototypeId);
173 }
174
175
183 public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototype(
184 long layoutSetPrototypeId)
185 throws com.liferay.portal.kernel.exception.PortalException,
186 com.liferay.portal.kernel.exception.SystemException {
187 return getService().getLayoutSetPrototype(layoutSetPrototypeId);
188 }
189
190 public static com.liferay.portal.model.PersistedModel getPersistedModel(
191 java.io.Serializable primaryKeyObj)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 return getService().getPersistedModel(primaryKeyObj);
195 }
196
197
209 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
210 int start, int end)
211 throws com.liferay.portal.kernel.exception.SystemException {
212 return getService().getLayoutSetPrototypes(start, end);
213 }
214
215
221 public static int getLayoutSetPrototypesCount()
222 throws com.liferay.portal.kernel.exception.SystemException {
223 return getService().getLayoutSetPrototypesCount();
224 }
225
226
233 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
234 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype)
235 throws com.liferay.portal.kernel.exception.SystemException {
236 return getService().updateLayoutSetPrototype(layoutSetPrototype);
237 }
238
239
247 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
248 com.liferay.portal.model.LayoutSetPrototype layoutSetPrototype,
249 boolean merge)
250 throws com.liferay.portal.kernel.exception.SystemException {
251 return getService().updateLayoutSetPrototype(layoutSetPrototype, merge);
252 }
253
254
259 public static java.lang.String getBeanIdentifier() {
260 return getService().getBeanIdentifier();
261 }
262
263
268 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
269 getService().setBeanIdentifier(beanIdentifier);
270 }
271
272 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
273 long userId, long companyId,
274 java.util.Map<java.util.Locale, java.lang.String> nameMap,
275 java.lang.String description, boolean active,
276 boolean layoutsUpdateable,
277 com.liferay.portal.service.ServiceContext serviceContext)
278 throws com.liferay.portal.kernel.exception.PortalException,
279 com.liferay.portal.kernel.exception.SystemException {
280 return getService()
281 .addLayoutSetPrototype(userId, companyId, nameMap,
282 description, active, layoutsUpdateable, serviceContext);
283 }
284
285 public static com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototypeByUuid(
286 java.lang.String uuid)
287 throws com.liferay.portal.kernel.exception.PortalException,
288 com.liferay.portal.kernel.exception.SystemException {
289 return getService().getLayoutSetPrototypeByUuid(uuid);
290 }
291
292 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> getLayoutSetPrototypes(
293 long companyId)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 return getService().getLayoutSetPrototypes(companyId);
296 }
297
298 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
299 long companyId, java.lang.Boolean active, int start, int end,
300 com.liferay.portal.kernel.util.OrderByComparator obc)
301 throws com.liferay.portal.kernel.exception.SystemException {
302 return getService().search(companyId, active, start, end, obc);
303 }
304
305 public static int searchCount(long companyId, java.lang.Boolean active)
306 throws com.liferay.portal.kernel.exception.SystemException {
307 return getService().searchCount(companyId, active);
308 }
309
310 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
311 long layoutSetPrototypeId,
312 java.util.Map<java.util.Locale, java.lang.String> nameMap,
313 java.lang.String description, boolean active,
314 boolean layoutsUpdateable,
315 com.liferay.portal.service.ServiceContext serviceContext)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException {
318 return getService()
319 .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
320 description, active, layoutsUpdateable, serviceContext);
321 }
322
323 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
324 long layoutSetPrototypeId, java.lang.String settings)
325 throws com.liferay.portal.kernel.exception.PortalException,
326 com.liferay.portal.kernel.exception.SystemException {
327 return getService()
328 .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
329 }
330
331 public static LayoutSetPrototypeLocalService getService() {
332 if (_service == null) {
333 _service = (LayoutSetPrototypeLocalService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeLocalService.class.getName());
334
335 ReferenceRegistry.registerReference(LayoutSetPrototypeLocalServiceUtil.class,
336 "_service");
337 }
338
339 return _service;
340 }
341
342
345 public void setService(LayoutSetPrototypeLocalService service) {
346 }
347
348 private static LayoutSetPrototypeLocalService _service;
349 }