001
014
015 package com.liferay.portlet.mobiledevicerules.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class MDRRuleLocalServiceUtil {
038
043
044
051 public static com.liferay.portlet.mobiledevicerules.model.MDRRule addMDRRule(
052 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
053 throws com.liferay.portal.kernel.exception.SystemException {
054 return getService().addMDRRule(mdrRule);
055 }
056
057
063 public static com.liferay.portlet.mobiledevicerules.model.MDRRule createMDRRule(
064 long ruleId) {
065 return getService().createMDRRule(ruleId);
066 }
067
068
076 public static com.liferay.portlet.mobiledevicerules.model.MDRRule deleteMDRRule(
077 long ruleId)
078 throws com.liferay.portal.kernel.exception.PortalException,
079 com.liferay.portal.kernel.exception.SystemException {
080 return getService().deleteMDRRule(ruleId);
081 }
082
083
090 public static com.liferay.portlet.mobiledevicerules.model.MDRRule deleteMDRRule(
091 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
092 throws com.liferay.portal.kernel.exception.SystemException {
093 return getService().deleteMDRRule(mdrRule);
094 }
095
096 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
097 return getService().dynamicQuery();
098 }
099
100
107 @SuppressWarnings("rawtypes")
108 public static java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
110 throws com.liferay.portal.kernel.exception.SystemException {
111 return getService().dynamicQuery(dynamicQuery);
112 }
113
114
127 @SuppressWarnings("rawtypes")
128 public static java.util.List dynamicQuery(
129 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130 int end) throws com.liferay.portal.kernel.exception.SystemException {
131 return getService().dynamicQuery(dynamicQuery, start, end);
132 }
133
134
148 @SuppressWarnings("rawtypes")
149 public static java.util.List dynamicQuery(
150 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
151 int end,
152 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService()
155 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
156 }
157
158
165 public static long dynamicQueryCount(
166 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
167 throws com.liferay.portal.kernel.exception.SystemException {
168 return getService().dynamicQueryCount(dynamicQuery);
169 }
170
171
179 public static long dynamicQueryCount(
180 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
181 com.liferay.portal.kernel.dao.orm.Projection projection)
182 throws com.liferay.portal.kernel.exception.SystemException {
183 return getService().dynamicQueryCount(dynamicQuery, projection);
184 }
185
186 public static com.liferay.portlet.mobiledevicerules.model.MDRRule fetchMDRRule(
187 long ruleId) throws com.liferay.portal.kernel.exception.SystemException {
188 return getService().fetchMDRRule(ruleId);
189 }
190
191
199 public static com.liferay.portlet.mobiledevicerules.model.MDRRule fetchMDRRuleByUuidAndCompanyId(
200 java.lang.String uuid, long companyId)
201 throws com.liferay.portal.kernel.exception.SystemException {
202 return getService().fetchMDRRuleByUuidAndCompanyId(uuid, companyId);
203 }
204
205
213 public static com.liferay.portlet.mobiledevicerules.model.MDRRule fetchMDRRuleByUuidAndGroupId(
214 java.lang.String uuid, long groupId)
215 throws com.liferay.portal.kernel.exception.SystemException {
216 return getService().fetchMDRRuleByUuidAndGroupId(uuid, groupId);
217 }
218
219
227 public static com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRule(
228 long ruleId)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException {
231 return getService().getMDRRule(ruleId);
232 }
233
234 public static com.liferay.portal.model.PersistedModel getPersistedModel(
235 java.io.Serializable primaryKeyObj)
236 throws com.liferay.portal.kernel.exception.PortalException,
237 com.liferay.portal.kernel.exception.SystemException {
238 return getService().getPersistedModel(primaryKeyObj);
239 }
240
241
250 public static com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRuleByUuidAndCompanyId(
251 java.lang.String uuid, long companyId)
252 throws com.liferay.portal.kernel.exception.PortalException,
253 com.liferay.portal.kernel.exception.SystemException {
254 return getService().getMDRRuleByUuidAndCompanyId(uuid, companyId);
255 }
256
257
266 public static com.liferay.portlet.mobiledevicerules.model.MDRRule getMDRRuleByUuidAndGroupId(
267 java.lang.String uuid, long groupId)
268 throws com.liferay.portal.kernel.exception.PortalException,
269 com.liferay.portal.kernel.exception.SystemException {
270 return getService().getMDRRuleByUuidAndGroupId(uuid, groupId);
271 }
272
273
285 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getMDRRules(
286 int start, int end)
287 throws com.liferay.portal.kernel.exception.SystemException {
288 return getService().getMDRRules(start, end);
289 }
290
291
297 public static int getMDRRulesCount()
298 throws com.liferay.portal.kernel.exception.SystemException {
299 return getService().getMDRRulesCount();
300 }
301
302
309 public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateMDRRule(
310 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 return getService().updateMDRRule(mdrRule);
313 }
314
315
320 public static java.lang.String getBeanIdentifier() {
321 return getService().getBeanIdentifier();
322 }
323
324
329 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
330 getService().setBeanIdentifier(beanIdentifier);
331 }
332
333 public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
334 long ruleGroupId,
335 java.util.Map<java.util.Locale, java.lang.String> nameMap,
336 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
337 java.lang.String type, java.lang.String typeSettings,
338 com.liferay.portal.service.ServiceContext serviceContext)
339 throws com.liferay.portal.kernel.exception.PortalException,
340 com.liferay.portal.kernel.exception.SystemException {
341 return getService()
342 .addRule(ruleGroupId, nameMap, descriptionMap, type,
343 typeSettings, serviceContext);
344 }
345
346 public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
347 long ruleGroupId,
348 java.util.Map<java.util.Locale, java.lang.String> nameMap,
349 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
350 java.lang.String type,
351 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
352 com.liferay.portal.service.ServiceContext serviceContext)
353 throws com.liferay.portal.kernel.exception.PortalException,
354 com.liferay.portal.kernel.exception.SystemException {
355 return getService()
356 .addRule(ruleGroupId, nameMap, descriptionMap, type,
357 typeSettingsProperties, serviceContext);
358 }
359
360 public static com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
361 long ruleId, long ruleGroupId,
362 com.liferay.portal.service.ServiceContext serviceContext)
363 throws com.liferay.portal.kernel.exception.PortalException,
364 com.liferay.portal.kernel.exception.SystemException {
365 return getService().copyRule(ruleId, ruleGroupId, serviceContext);
366 }
367
368 public static com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
369 com.liferay.portlet.mobiledevicerules.model.MDRRule rule,
370 long ruleGroupId,
371 com.liferay.portal.service.ServiceContext serviceContext)
372 throws com.liferay.portal.kernel.exception.PortalException,
373 com.liferay.portal.kernel.exception.SystemException {
374 return getService().copyRule(rule, ruleGroupId, serviceContext);
375 }
376
377 public static void deleteRule(long ruleId)
378 throws com.liferay.portal.kernel.exception.SystemException {
379 getService().deleteRule(ruleId);
380 }
381
382 public static void deleteRule(
383 com.liferay.portlet.mobiledevicerules.model.MDRRule rule)
384 throws com.liferay.portal.kernel.exception.SystemException {
385 getService().deleteRule(rule);
386 }
387
388 public static void deleteRules(long ruleGroupId)
389 throws com.liferay.portal.kernel.exception.SystemException {
390 getService().deleteRules(ruleGroupId);
391 }
392
393 public static com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
394 long ruleId) throws com.liferay.portal.kernel.exception.SystemException {
395 return getService().fetchRule(ruleId);
396 }
397
398 public static com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(
399 long ruleId)
400 throws com.liferay.portal.kernel.exception.PortalException,
401 com.liferay.portal.kernel.exception.SystemException {
402 return getService().getRule(ruleId);
403 }
404
405 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
406 long ruleGroupId)
407 throws com.liferay.portal.kernel.exception.SystemException {
408 return getService().getRules(ruleGroupId);
409 }
410
411 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
412 long ruleGroupId, int start, int end)
413 throws com.liferay.portal.kernel.exception.SystemException {
414 return getService().getRules(ruleGroupId, start, end);
415 }
416
417 public static int getRulesCount(long ruleGroupId)
418 throws com.liferay.portal.kernel.exception.SystemException {
419 return getService().getRulesCount(ruleGroupId);
420 }
421
422 public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
423 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
424 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
425 java.lang.String type, java.lang.String typeSettings,
426 com.liferay.portal.service.ServiceContext serviceContext)
427 throws com.liferay.portal.kernel.exception.PortalException,
428 com.liferay.portal.kernel.exception.SystemException {
429 return getService()
430 .updateRule(ruleId, nameMap, descriptionMap, type,
431 typeSettings, serviceContext);
432 }
433
434 public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
435 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
436 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
437 java.lang.String type,
438 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
439 com.liferay.portal.service.ServiceContext serviceContext)
440 throws com.liferay.portal.kernel.exception.PortalException,
441 com.liferay.portal.kernel.exception.SystemException {
442 return getService()
443 .updateRule(ruleId, nameMap, descriptionMap, type,
444 typeSettingsProperties, serviceContext);
445 }
446
447 public static MDRRuleLocalService getService() {
448 if (_service == null) {
449 _service = (MDRRuleLocalService)PortalBeanLocatorUtil.locate(MDRRuleLocalService.class.getName());
450
451 ReferenceRegistry.registerReference(MDRRuleLocalServiceUtil.class,
452 "_service");
453 }
454
455 return _service;
456 }
457
458
461 public void setService(MDRRuleLocalService service) {
462 }
463
464 private static MDRRuleLocalService _service;
465 }