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 MDRRuleGroupLocalServiceUtil {
038
043
044
050 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup addMDRRuleGroup(
051 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup) {
052 return getService().addMDRRuleGroup(mdrRuleGroup);
053 }
054
055 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup addRuleGroup(
056 long groupId,
057 java.util.Map<java.util.Locale, java.lang.String> nameMap,
058 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
059 com.liferay.portal.service.ServiceContext serviceContext)
060 throws com.liferay.portal.kernel.exception.PortalException {
061 return getService()
062 .addRuleGroup(groupId, nameMap, descriptionMap,
063 serviceContext);
064 }
065
066 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
067 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup ruleGroup,
068 long groupId, com.liferay.portal.service.ServiceContext serviceContext)
069 throws com.liferay.portal.kernel.exception.PortalException {
070 return getService().copyRuleGroup(ruleGroup, groupId, serviceContext);
071 }
072
073 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
074 long ruleGroupId, long groupId,
075 com.liferay.portal.service.ServiceContext serviceContext)
076 throws com.liferay.portal.kernel.exception.PortalException {
077 return getService().copyRuleGroup(ruleGroupId, groupId, serviceContext);
078 }
079
080
086 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup createMDRRuleGroup(
087 long ruleGroupId) {
088 return getService().createMDRRuleGroup(ruleGroupId);
089 }
090
091
097 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup deleteMDRRuleGroup(
098 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup) {
099 return getService().deleteMDRRuleGroup(mdrRuleGroup);
100 }
101
102
109 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup deleteMDRRuleGroup(
110 long ruleGroupId)
111 throws com.liferay.portal.kernel.exception.PortalException {
112 return getService().deleteMDRRuleGroup(ruleGroupId);
113 }
114
115
118 public static com.liferay.portal.model.PersistedModel deletePersistedModel(
119 com.liferay.portal.model.PersistedModel persistedModel)
120 throws com.liferay.portal.kernel.exception.PortalException {
121 return getService().deletePersistedModel(persistedModel);
122 }
123
124 public static void deleteRuleGroup(
125 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup ruleGroup) {
126 getService().deleteRuleGroup(ruleGroup);
127 }
128
129 public static void deleteRuleGroup(long ruleGroupId) {
130 getService().deleteRuleGroup(ruleGroupId);
131 }
132
133 public static void deleteRuleGroups(long groupId) {
134 getService().deleteRuleGroups(groupId);
135 }
136
137 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
138 return getService().dynamicQuery();
139 }
140
141
147 public static <T> java.util.List<T> dynamicQuery(
148 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
149 return getService().dynamicQuery(dynamicQuery);
150 }
151
152
164 public static <T> java.util.List<T> dynamicQuery(
165 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
166 int end) {
167 return getService().dynamicQuery(dynamicQuery, start, end);
168 }
169
170
183 public static <T> java.util.List<T> dynamicQuery(
184 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
185 int end,
186 com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
187 return getService()
188 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
189 }
190
191
197 public static long dynamicQueryCount(
198 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
199 return getService().dynamicQueryCount(dynamicQuery);
200 }
201
202
209 public static long dynamicQueryCount(
210 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
211 com.liferay.portal.kernel.dao.orm.Projection projection) {
212 return getService().dynamicQueryCount(dynamicQuery, projection);
213 }
214
215 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchMDRRuleGroup(
216 long ruleGroupId) {
217 return getService().fetchMDRRuleGroup(ruleGroupId);
218 }
219
220
227 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchMDRRuleGroupByUuidAndGroupId(
228 java.lang.String uuid, long groupId) {
229 return getService().fetchMDRRuleGroupByUuidAndGroupId(uuid, groupId);
230 }
231
232 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchRuleGroup(
233 long ruleGroupId) {
234 return getService().fetchRuleGroup(ruleGroupId);
235 }
236
237 public static com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
238 return getService().getActionableDynamicQuery();
239 }
240
241
246 public static java.lang.String getBeanIdentifier() {
247 return getService().getBeanIdentifier();
248 }
249
250 public static com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
251 com.liferay.portal.kernel.lar.PortletDataContext portletDataContext) {
252 return getService().getExportActionableDynamicQuery(portletDataContext);
253 }
254
255
262 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getMDRRuleGroup(
263 long ruleGroupId)
264 throws com.liferay.portal.kernel.exception.PortalException {
265 return getService().getMDRRuleGroup(ruleGroupId);
266 }
267
268
276 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getMDRRuleGroupByUuidAndGroupId(
277 java.lang.String uuid, long groupId)
278 throws com.liferay.portal.kernel.exception.PortalException {
279 return getService().getMDRRuleGroupByUuidAndGroupId(uuid, groupId);
280 }
281
282
293 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroups(
294 int start, int end) {
295 return getService().getMDRRuleGroups(start, end);
296 }
297
298
305 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroupsByUuidAndCompanyId(
306 java.lang.String uuid, long companyId) {
307 return getService().getMDRRuleGroupsByUuidAndCompanyId(uuid, companyId);
308 }
309
310
320 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroupsByUuidAndCompanyId(
321 java.lang.String uuid, long companyId, int start, int end,
322 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> orderByComparator) {
323 return getService()
324 .getMDRRuleGroupsByUuidAndCompanyId(uuid, companyId, start,
325 end, orderByComparator);
326 }
327
328
333 public static int getMDRRuleGroupsCount() {
334 return getService().getMDRRuleGroupsCount();
335 }
336
337 public static com.liferay.portal.model.PersistedModel getPersistedModel(
338 java.io.Serializable primaryKeyObj)
339 throws com.liferay.portal.kernel.exception.PortalException {
340 return getService().getPersistedModel(primaryKeyObj);
341 }
342
343 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getRuleGroup(
344 long ruleGroupId)
345 throws com.liferay.portal.kernel.exception.PortalException {
346 return getService().getRuleGroup(ruleGroupId);
347 }
348
349 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
350 long groupId) {
351 return getService().getRuleGroups(groupId);
352 }
353
354 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
355 long groupId, int start, int end) {
356 return getService().getRuleGroups(groupId, start, end);
357 }
358
359 public static int getRuleGroupsCount(long groupId) {
360 return getService().getRuleGroupsCount(groupId);
361 }
362
363
367 @Deprecated
368 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> search(
369 long groupId, java.lang.String name, boolean andOperator, int start,
370 int end) {
371 return getService().search(groupId, name, andOperator, start, end);
372 }
373
374 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> search(
375 long groupId, java.lang.String name,
376 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
377 boolean andOperator, int start, int end) {
378 return getService()
379 .search(groupId, name, params, andOperator, start, end);
380 }
381
382
386 @Deprecated
387 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> searchByKeywords(
388 long groupId, java.lang.String keywords, boolean andOperator,
389 int start, int end) {
390 return getService()
391 .searchByKeywords(groupId, keywords, andOperator, start, end);
392 }
393
394 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> searchByKeywords(
395 long groupId, java.lang.String keywords,
396 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
397 boolean andOperator, int start, int end) {
398 return getService()
399 .searchByKeywords(groupId, keywords, params, andOperator,
400 start, end);
401 }
402
403
407 @Deprecated
408 public static int searchByKeywordsCount(long groupId,
409 java.lang.String keywords, boolean andOperator) {
410 return getService().searchByKeywordsCount(groupId, keywords, andOperator);
411 }
412
413 public static int searchByKeywordsCount(long groupId,
414 java.lang.String keywords,
415 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
416 boolean andOperator) {
417 return getService()
418 .searchByKeywordsCount(groupId, keywords, params, andOperator);
419 }
420
421
425 @Deprecated
426 public static int searchCount(long groupId, java.lang.String name,
427 boolean andOperator) {
428 return getService().searchCount(groupId, name, andOperator);
429 }
430
431 public static int searchCount(long groupId, java.lang.String name,
432 java.util.LinkedHashMap<java.lang.String, java.lang.Object> params,
433 boolean andOperator) {
434 return getService().searchCount(groupId, name, params, andOperator);
435 }
436
437
442 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
443 getService().setBeanIdentifier(beanIdentifier);
444 }
445
446
452 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateMDRRuleGroup(
453 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup) {
454 return getService().updateMDRRuleGroup(mdrRuleGroup);
455 }
456
457 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
458 long ruleGroupId,
459 java.util.Map<java.util.Locale, java.lang.String> nameMap,
460 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
461 com.liferay.portal.service.ServiceContext serviceContext)
462 throws com.liferay.portal.kernel.exception.PortalException {
463 return getService()
464 .updateRuleGroup(ruleGroupId, nameMap, descriptionMap,
465 serviceContext);
466 }
467
468 public static MDRRuleGroupLocalService getService() {
469 if (_service == null) {
470 _service = (MDRRuleGroupLocalService)PortalBeanLocatorUtil.locate(MDRRuleGroupLocalService.class.getName());
471
472 ReferenceRegistry.registerReference(MDRRuleGroupLocalServiceUtil.class,
473 "_service");
474 }
475
476 return _service;
477 }
478
479
482 @Deprecated
483 public void setService(MDRRuleGroupLocalService service) {
484 }
485
486 private static MDRRuleGroupLocalService _service;
487 }