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
244 public static java.lang.String getBeanIdentifier() {
245 return getService().getBeanIdentifier();
246 }
247
248
253 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
254 getService().setBeanIdentifier(beanIdentifier);
255 }
256
257 public static com.liferay.portal.model.LayoutSetPrototype addLayoutSetPrototype(
258 long userId, long companyId,
259 java.util.Map<java.util.Locale, java.lang.String> nameMap,
260 java.lang.String description, boolean active,
261 boolean layoutsUpdateable,
262 com.liferay.portal.service.ServiceContext serviceContext)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException {
265 return getService()
266 .addLayoutSetPrototype(userId, companyId, nameMap,
267 description, active, layoutsUpdateable, serviceContext);
268 }
269
270
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 com.liferay.portal.model.LayoutSetPrototype getLayoutSetPrototypeByUuidAndCompanyId(
282 java.lang.String uuid, long companyId)
283 throws com.liferay.portal.kernel.exception.PortalException,
284 com.liferay.portal.kernel.exception.SystemException {
285 return getService()
286 .getLayoutSetPrototypeByUuidAndCompanyId(uuid, companyId);
287 }
288
289 public static java.util.List<com.liferay.portal.model.LayoutSetPrototype> search(
290 long companyId, java.lang.Boolean active, int start, int end,
291 com.liferay.portal.kernel.util.OrderByComparator obc)
292 throws com.liferay.portal.kernel.exception.SystemException {
293 return getService().search(companyId, active, start, end, obc);
294 }
295
296 public static int searchCount(long companyId, java.lang.Boolean active)
297 throws com.liferay.portal.kernel.exception.SystemException {
298 return getService().searchCount(companyId, active);
299 }
300
301 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
302 long layoutSetPrototypeId,
303 java.util.Map<java.util.Locale, java.lang.String> nameMap,
304 java.lang.String description, boolean active,
305 boolean layoutsUpdateable,
306 com.liferay.portal.service.ServiceContext serviceContext)
307 throws com.liferay.portal.kernel.exception.PortalException,
308 com.liferay.portal.kernel.exception.SystemException {
309 return getService()
310 .updateLayoutSetPrototype(layoutSetPrototypeId, nameMap,
311 description, active, layoutsUpdateable, serviceContext);
312 }
313
314 public static com.liferay.portal.model.LayoutSetPrototype updateLayoutSetPrototype(
315 long layoutSetPrototypeId, java.lang.String settings)
316 throws com.liferay.portal.kernel.exception.PortalException,
317 com.liferay.portal.kernel.exception.SystemException {
318 return getService()
319 .updateLayoutSetPrototype(layoutSetPrototypeId, settings);
320 }
321
322 public static LayoutSetPrototypeLocalService getService() {
323 if (_service == null) {
324 _service = (LayoutSetPrototypeLocalService)PortalBeanLocatorUtil.locate(LayoutSetPrototypeLocalService.class.getName());
325
326 ReferenceRegistry.registerReference(LayoutSetPrototypeLocalServiceUtil.class,
327 "_service");
328 }
329
330 return _service;
331 }
332
333
336 public void setService(LayoutSetPrototypeLocalService service) {
337 }
338
339 private static LayoutSetPrototypeLocalService _service;
340 }