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
169 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstance(
170 long ruleGroupInstanceId)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getService().getMDRRuleGroupInstance(ruleGroupInstanceId);
174 }
175
176 public static com.liferay.portal.model.PersistedModel getPersistedModel(
177 java.io.Serializable primaryKeyObj)
178 throws com.liferay.portal.kernel.exception.PortalException,
179 com.liferay.portal.kernel.exception.SystemException {
180 return getService().getPersistedModel(primaryKeyObj);
181 }
182
183
192 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getMDRRuleGroupInstanceByUuidAndGroupId(
193 java.lang.String uuid, long groupId)
194 throws com.liferay.portal.kernel.exception.PortalException,
195 com.liferay.portal.kernel.exception.SystemException {
196 return getService()
197 .getMDRRuleGroupInstanceByUuidAndGroupId(uuid, groupId);
198 }
199
200
212 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getMDRRuleGroupInstances(
213 int start, int end)
214 throws com.liferay.portal.kernel.exception.SystemException {
215 return getService().getMDRRuleGroupInstances(start, end);
216 }
217
218
224 public static int getMDRRuleGroupInstancesCount()
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getMDRRuleGroupInstancesCount();
227 }
228
229
236 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateMDRRuleGroupInstance(
237 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance)
238 throws com.liferay.portal.kernel.exception.SystemException {
239 return getService().updateMDRRuleGroupInstance(mdrRuleGroupInstance);
240 }
241
242
250 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateMDRRuleGroupInstance(
251 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance mdrRuleGroupInstance,
252 boolean merge)
253 throws com.liferay.portal.kernel.exception.SystemException {
254 return getService()
255 .updateMDRRuleGroupInstance(mdrRuleGroupInstance, merge);
256 }
257
258
263 public static java.lang.String getBeanIdentifier() {
264 return getService().getBeanIdentifier();
265 }
266
267
272 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
273 getService().setBeanIdentifier(beanIdentifier);
274 }
275
276 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
277 long groupId, java.lang.String className, long classPK,
278 long ruleGroupId, int priority,
279 com.liferay.portal.service.ServiceContext serviceContext)
280 throws com.liferay.portal.kernel.exception.PortalException,
281 com.liferay.portal.kernel.exception.SystemException {
282 return getService()
283 .addRuleGroupInstance(groupId, className, classPK,
284 ruleGroupId, priority, serviceContext);
285 }
286
287 public static void deleteRuleGroupInstance(long ruleGroupInstanceId)
288 throws com.liferay.portal.kernel.exception.SystemException {
289 getService().deleteRuleGroupInstance(ruleGroupInstanceId);
290 }
291
292 public static void deleteRuleGroupInstance(
293 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance ruleGroupInstance)
294 throws com.liferay.portal.kernel.exception.SystemException {
295 getService().deleteRuleGroupInstance(ruleGroupInstance);
296 }
297
298 public static void deleteRuleGroupInstances(long ruleGroupId)
299 throws com.liferay.portal.kernel.exception.SystemException {
300 getService().deleteRuleGroupInstances(ruleGroupId);
301 }
302
303 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance(
304 long ruleGroupInstanceId)
305 throws com.liferay.portal.kernel.exception.SystemException {
306 return getService().fetchRuleGroupInstance(ruleGroupInstanceId);
307 }
308
309 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance fetchRuleGroupInstance(
310 java.lang.String className, long classPK, long ruleGroupId)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getService()
313 .fetchRuleGroupInstance(className, classPK, ruleGroupId);
314 }
315
316 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance getRuleGroupInstance(
317 java.lang.String className, long classPK, long ruleGroupId)
318 throws com.liferay.portal.kernel.exception.SystemException,
319 com.liferay.portlet.mobiledevicerules.NoSuchRuleGroupInstanceException {
320 return getService().getRuleGroupInstance(className, classPK, ruleGroupId);
321 }
322
323 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
324 long ruleGroupId)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 return getService().getRuleGroupInstances(ruleGroupId);
327 }
328
329 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
330 long ruleGroupId, int start, int end)
331 throws com.liferay.portal.kernel.exception.SystemException {
332 return getService().getRuleGroupInstances(ruleGroupId, start, end);
333 }
334
335 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
336 java.lang.String className, long classPK)
337 throws com.liferay.portal.kernel.exception.SystemException {
338 return getService().getRuleGroupInstances(className, classPK);
339 }
340
341 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
342 java.lang.String className, long classPK, int start, int end,
343 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
344 throws com.liferay.portal.kernel.exception.SystemException {
345 return getService()
346 .getRuleGroupInstances(className, classPK, start, end,
347 orderByComparator);
348 }
349
350 public static int getRuleGroupInstancesCount(long ruleGroupId)
351 throws com.liferay.portal.kernel.exception.SystemException {
352 return getService().getRuleGroupInstancesCount(ruleGroupId);
353 }
354
355 public static int getRuleGroupInstancesCount(java.lang.String className,
356 long classPK)
357 throws com.liferay.portal.kernel.exception.SystemException {
358 return getService().getRuleGroupInstancesCount(className, classPK);
359 }
360
361 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateRuleGroupInstance(
362 long ruleGroupInstanceId, int priority)
363 throws com.liferay.portal.kernel.exception.PortalException,
364 com.liferay.portal.kernel.exception.SystemException {
365 return getService()
366 .updateRuleGroupInstance(ruleGroupInstanceId, priority);
367 }
368
369 public static MDRRuleGroupInstanceLocalService getService() {
370 if (_service == null) {
371 _service = (MDRRuleGroupInstanceLocalService)PortalBeanLocatorUtil.locate(MDRRuleGroupInstanceLocalService.class.getName());
372
373 ReferenceRegistry.registerReference(MDRRuleGroupInstanceLocalServiceUtil.class,
374 "_service");
375 MethodCache.remove(MDRRuleGroupInstanceLocalService.class);
376 }
377
378 return _service;
379 }
380
381 public void setService(MDRRuleGroupInstanceLocalService service) {
382 MethodCache.remove(MDRRuleGroupInstanceLocalService.class);
383
384 _service = service;
385
386 ReferenceRegistry.registerReference(MDRRuleGroupInstanceLocalServiceUtil.class,
387 "_service");
388 MethodCache.remove(MDRRuleGroupInstanceLocalService.class);
389 }
390
391 private static MDRRuleGroupInstanceLocalService _service;
392 }