001
014
015 package com.liferay.portlet.mobiledevicerules.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 MDRRuleGroupInstanceLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addMDRRuleGroupInstance(
049 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addMDRRuleGroupInstance(mdrRuleGroupInstance);
052 }
053
054
060 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance createMDRRuleGroupInstance(
061 long ruleGroupInstanceId) {
062 return getService().createMDRRuleGroupInstance(ruleGroupInstanceId);
063 }
064
065
072 public static void deleteMDRRuleGroupInstance(long ruleGroupInstanceId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteMDRRuleGroupInstance(ruleGroupInstanceId);
076 }
077
078
084 public static void deleteMDRRuleGroupInstance(
085 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteMDRRuleGroupInstance(mdrRuleGroupInstance);
088 }
089
090
097 @SuppressWarnings("rawtypes")
098 public static java.util.List dynamicQuery(
099 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
100 throws com.liferay.portal.kernel.exception.SystemException {
101 return getService().dynamicQuery(dynamicQuery);
102 }
103
104
117 @SuppressWarnings("rawtypes")
118 public static java.util.List dynamicQuery(
119 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
120 int end) throws com.liferay.portal.kernel.exception.SystemException {
121 return getService().dynamicQuery(dynamicQuery, start, end);
122 }
123
124
138 @SuppressWarnings("rawtypes")
139 public static java.util.List dynamicQuery(
140 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
141 int end,
142 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
143 throws com.liferay.portal.kernel.exception.SystemException {
144 return getService()
145 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
146 }
147
148
155 public static long dynamicQueryCount(
156 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
157 throws com.liferay.portal.kernel.exception.SystemException {
158 return getService().dynamicQueryCount(dynamicQuery);
159 }
160
161 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchMDRRuleGroupInstance(
162 long ruleGroupInstanceId)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().fetchMDRRuleGroupInstance(ruleGroupInstanceId);
165 }
166
167
175 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstance(
176 long ruleGroupInstanceId)
177 throws com.liferay.portal.kernel.exception.PortalException,
178 com.liferay.portal.kernel.exception.SystemException {
179 return getService().getMDRRuleGroupInstance(ruleGroupInstanceId);
180 }
181
182 public static com.liferay.portal.model.PersistedModel getPersistedModel(
183 java.io.Serializable primaryKeyObj)
184 throws com.liferay.portal.kernel.exception.PortalException,
185 com.liferay.portal.kernel.exception.SystemException {
186 return getService().getPersistedModel(primaryKeyObj);
187 }
188
189
198 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstanceByUuidAndGroupId(
199 java.lang.String uuid, long groupId)
200 throws com.liferay.portal.kernel.exception.PortalException,
201 com.liferay.portal.kernel.exception.SystemException {
202 return getService()
203 .getMDRRuleGroupInstanceByUuidAndGroupId(uuid, groupId);
204 }
205
206
218 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstances(
219 int start, int end)
220 throws com.liferay.portal.kernel.exception.SystemException {
221 return getService().getMDRRuleGroupInstances(start, end);
222 }
223
224
230 public static int getMDRRuleGroupInstancesCount()
231 throws com.liferay.portal.kernel.exception.SystemException {
232 return getService().getMDRRuleGroupInstancesCount();
233 }
234
235
242 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateMDRRuleGroupInstance(
243 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance)
244 throws com.liferay.portal.kernel.exception.SystemException {
245 return getService().updateMDRRuleGroupInstance(mdrRuleGroupInstance);
246 }
247
248
256 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateMDRRuleGroupInstance(
257 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance,
258 boolean merge)
259 throws com.liferay.portal.kernel.exception.SystemException {
260 return getService()
261 .updateMDRRuleGroupInstance(mdrRuleGroupInstance, merge);
262 }
263
264
269 public static java.lang.String getBeanIdentifier() {
270 return getService().getBeanIdentifier();
271 }
272
273
278 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
279 getService().setBeanIdentifier(beanIdentifier);
280 }
281
282 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
283 long groupId, java.lang.String className, long classPK,
284 long ruleGroupId, int priority,
285 com.liferay.portal.service.ServiceContext serviceContext)
286 throws com.liferay.portal.kernel.exception.PortalException,
287 com.liferay.portal.kernel.exception.SystemException {
288 return getService()
289 .addRuleGroupInstance(groupId, className, classPK,
290 ruleGroupId, priority, serviceContext);
291 }
292
293 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
294 long groupId, java.lang.String className, long classPK,
295 long ruleGroupId,
296 com.liferay.portal.service.ServiceContext serviceContext)
297 throws com.liferay.portal.kernel.exception.PortalException,
298 com.liferay.portal.kernel.exception.SystemException {
299 return getService()
300 .addRuleGroupInstance(groupId, className, classPK,
301 ruleGroupId, serviceContext);
302 }
303
304 public static void deleteRuleGroupInstance(long ruleGroupInstanceId)
305 throws com.liferay.portal.kernel.exception.SystemException {
306 getService().deleteRuleGroupInstance(ruleGroupInstanceId);
307 }
308
309 public static void deleteRuleGroupInstance(
310 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance ruleGroupInstance)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 getService().deleteRuleGroupInstance(ruleGroupInstance);
313 }
314
315 public static void deleteRuleGroupInstances(long ruleGroupId)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 getService().deleteRuleGroupInstances(ruleGroupId);
318 }
319
320 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance(
321 long ruleGroupInstanceId)
322 throws com.liferay.portal.kernel.exception.SystemException {
323 return getService().fetchRuleGroupInstance(ruleGroupInstanceId);
324 }
325
326 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance(
327 java.lang.String className, long classPK, long ruleGroupId)
328 throws com.liferay.portal.kernel.exception.SystemException {
329 return getService()
330 .fetchRuleGroupInstance(className, classPK, ruleGroupId);
331 }
332
333 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance(
334 long ruleGroupInstanceId)
335 throws com.liferay.portal.kernel.exception.PortalException,
336 com.liferay.portal.kernel.exception.SystemException {
337 return getService().getRuleGroupInstance(ruleGroupInstanceId);
338 }
339
340 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance(
341 java.lang.String className, long classPK, long ruleGroupId)
342 throws com.liferay.portal.kernel.exception.PortalException,
343 com.liferay.portal.kernel.exception.SystemException {
344 return getService().getRuleGroupInstance(className, classPK, ruleGroupId);
345 }
346
347 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
348 long ruleGroupId)
349 throws com.liferay.portal.kernel.exception.SystemException {
350 return getService().getRuleGroupInstances(ruleGroupId);
351 }
352
353 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
354 long ruleGroupId, int start, int end)
355 throws com.liferay.portal.kernel.exception.SystemException {
356 return getService().getRuleGroupInstances(ruleGroupId, start, end);
357 }
358
359 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
360 java.lang.String className, long classPK)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getService().getRuleGroupInstances(className, classPK);
363 }
364
365 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
366 java.lang.String className, long classPK, int start, int end,
367 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
368 throws com.liferay.portal.kernel.exception.SystemException {
369 return getService()
370 .getRuleGroupInstances(className, classPK, start, end,
371 orderByComparator);
372 }
373
374 public static int getRuleGroupInstancesCount(long ruleGroupId)
375 throws com.liferay.portal.kernel.exception.SystemException {
376 return getService().getRuleGroupInstancesCount(ruleGroupId);
377 }
378
379 public static int getRuleGroupInstancesCount(java.lang.String className,
380 long classPK)
381 throws com.liferay.portal.kernel.exception.SystemException {
382 return getService().getRuleGroupInstancesCount(className, classPK);
383 }
384
385 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateRuleGroupInstance(
386 long ruleGroupInstanceId, int priority)
387 throws com.liferay.portal.kernel.exception.PortalException,
388 com.liferay.portal.kernel.exception.SystemException {
389 return getService()
390 .updateRuleGroupInstance(ruleGroupInstanceId, priority);
391 }
392
393 public static MDRRuleGroupInstanceLocalService getService() {
394 if (_service == null) {
395 _service = (MDRRuleGroupInstanceLocalService)PortalBeanLocatorUtil.locate(MDRRuleGroupInstanceLocalService.class.getName());
396
397 ReferenceRegistry.registerReference(MDRRuleGroupInstanceLocalServiceUtil.class,
398 "_service");
399 MethodCache.remove(MDRRuleGroupInstanceLocalService.class);
400 }
401
402 return _service;
403 }
404
405 public void setService(MDRRuleGroupInstanceLocalService service) {
406 MethodCache.remove(MDRRuleGroupInstanceLocalService.class);
407
408 _service = service;
409
410 ReferenceRegistry.registerReference(MDRRuleGroupInstanceLocalServiceUtil.class,
411 "_service");
412 MethodCache.remove(MDRRuleGroupInstanceLocalService.class);
413 }
414
415 private static MDRRuleGroupInstanceLocalService _service;
416 }