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 MDRRuleLocalServiceUtil {
035
040
041
048 public static com.liferay.portlet.mobiledevicerules.model.MDRRule addMDRRule(
049 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
050 throws com.liferay.portal.kernel.exception.SystemException {
051 return getService().addMDRRule(mdrRule);
052 }
053
054
060 public static com.liferay.portlet.mobiledevicerules.model.MDRRule createMDRRule(
061 long ruleId) {
062 return getService().createMDRRule(ruleId);
063 }
064
065
072 public static void deleteMDRRule(long ruleId)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 getService().deleteMDRRule(ruleId);
076 }
077
078
084 public static void deleteMDRRule(
085 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 getService().deleteMDRRule(mdrRule);
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.MDRRule getMDRRule(
170 long ruleId)
171 throws com.liferay.portal.kernel.exception.PortalException,
172 com.liferay.portal.kernel.exception.SystemException {
173 return getService().getMDRRule(ruleId);
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.MDRRule getMDRRuleByUuidAndGroupId(
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().getMDRRuleByUuidAndGroupId(uuid, groupId);
197 }
198
199
211 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getMDRRules(
212 int start, int end)
213 throws com.liferay.portal.kernel.exception.SystemException {
214 return getService().getMDRRules(start, end);
215 }
216
217
223 public static int getMDRRulesCount()
224 throws com.liferay.portal.kernel.exception.SystemException {
225 return getService().getMDRRulesCount();
226 }
227
228
235 public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateMDRRule(
236 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule)
237 throws com.liferay.portal.kernel.exception.SystemException {
238 return getService().updateMDRRule(mdrRule);
239 }
240
241
249 public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateMDRRule(
250 com.liferay.portlet.mobiledevicerules.model.MDRRule mdrRule,
251 boolean merge)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 return getService().updateMDRRule(mdrRule, merge);
254 }
255
256
261 public static java.lang.String getBeanIdentifier() {
262 return getService().getBeanIdentifier();
263 }
264
265
270 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
271 getService().setBeanIdentifier(beanIdentifier);
272 }
273
274 public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
275 long ruleGroupId,
276 java.util.Map<java.util.Locale, java.lang.String> nameMap,
277 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
278 java.lang.String type, java.lang.String typeSettings,
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 .addRule(ruleGroupId, nameMap, descriptionMap, type,
284 typeSettings, serviceContext);
285 }
286
287 public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
288 long ruleGroupId,
289 java.util.Map<java.util.Locale, java.lang.String> nameMap,
290 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
291 java.lang.String type,
292 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
293 com.liferay.portal.service.ServiceContext serviceContext)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException {
296 return getService()
297 .addRule(ruleGroupId, nameMap, descriptionMap, type,
298 typeSettingsProperties, serviceContext);
299 }
300
301 public static com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
302 long ruleId, long ruleGroupId,
303 com.liferay.portal.service.ServiceContext serviceContext)
304 throws com.liferay.portal.kernel.exception.PortalException,
305 com.liferay.portal.kernel.exception.SystemException {
306 return getService().copyRule(ruleId, ruleGroupId, serviceContext);
307 }
308
309 public static com.liferay.portlet.mobiledevicerules.model.MDRRule copyRule(
310 com.liferay.portlet.mobiledevicerules.model.MDRRule rule,
311 long ruleGroupId,
312 com.liferay.portal.service.ServiceContext serviceContext)
313 throws com.liferay.portal.kernel.exception.PortalException,
314 com.liferay.portal.kernel.exception.SystemException {
315 return getService().copyRule(rule, ruleGroupId, serviceContext);
316 }
317
318 public static void deleteRule(long ruleId)
319 throws com.liferay.portal.kernel.exception.SystemException {
320 getService().deleteRule(ruleId);
321 }
322
323 public static void deleteRule(
324 com.liferay.portlet.mobiledevicerules.model.MDRRule rule)
325 throws com.liferay.portal.kernel.exception.SystemException {
326 getService().deleteRule(rule);
327 }
328
329 public static void deleteRules(long ruleGroupId)
330 throws com.liferay.portal.kernel.exception.SystemException {
331 getService().deleteRules(ruleGroupId);
332 }
333
334 public static com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
335 long ruleId) throws com.liferay.portal.kernel.exception.SystemException {
336 return getService().fetchRule(ruleId);
337 }
338
339 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
340 long ruleGroupId)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getService().getRules(ruleGroupId);
343 }
344
345 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRule> getRules(
346 long ruleGroupId, int start, int end)
347 throws com.liferay.portal.kernel.exception.SystemException {
348 return getService().getRules(ruleGroupId, start, end);
349 }
350
351 public static int getRulesCount(long ruleGroupId)
352 throws com.liferay.portal.kernel.exception.SystemException {
353 return getService().getRulesCount(ruleGroupId);
354 }
355
356 public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
357 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
358 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
359 java.lang.String type, java.lang.String typeSettings,
360 com.liferay.portal.service.ServiceContext serviceContext)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException {
363 return getService()
364 .updateRule(ruleId, nameMap, descriptionMap, type,
365 typeSettings, serviceContext);
366 }
367
368 public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
369 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
370 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
371 java.lang.String type,
372 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
373 com.liferay.portal.service.ServiceContext serviceContext)
374 throws com.liferay.portal.kernel.exception.PortalException,
375 com.liferay.portal.kernel.exception.SystemException {
376 return getService()
377 .updateRule(ruleId, nameMap, descriptionMap, type,
378 typeSettingsProperties, serviceContext);
379 }
380
381 public static MDRRuleLocalService getService() {
382 if (_service == null) {
383 _service = (MDRRuleLocalService)PortalBeanLocatorUtil.locate(MDRRuleLocalService.class.getName());
384
385 ReferenceRegistry.registerReference(MDRRuleLocalServiceUtil.class,
386 "_service");
387 MethodCache.remove(MDRRuleLocalService.class);
388 }
389
390 return _service;
391 }
392
393 public void setService(MDRRuleLocalService service) {
394 MethodCache.remove(MDRRuleLocalService.class);
395
396 _service = service;
397
398 ReferenceRegistry.registerReference(MDRRuleLocalServiceUtil.class,
399 "_service");
400 MethodCache.remove(MDRRuleLocalService.class);
401 }
402
403 private static MDRRuleLocalService _service;
404 }