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.ReferenceRegistry;
019
020
033 public class MDRRuleGroupLocalServiceUtil {
034
039
040
047 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup addMDRRuleGroup(
048 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup)
049 throws com.liferay.portal.kernel.exception.SystemException {
050 return getService().addMDRRuleGroup(mdrRuleGroup);
051 }
052
053
059 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup createMDRRuleGroup(
060 long ruleGroupId) {
061 return getService().createMDRRuleGroup(ruleGroupId);
062 }
063
064
072 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup deleteMDRRuleGroup(
073 long ruleGroupId)
074 throws com.liferay.portal.kernel.exception.PortalException,
075 com.liferay.portal.kernel.exception.SystemException {
076 return getService().deleteMDRRuleGroup(ruleGroupId);
077 }
078
079
086 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup deleteMDRRuleGroup(
087 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup)
088 throws com.liferay.portal.kernel.exception.SystemException {
089 return getService().deleteMDRRuleGroup(mdrRuleGroup);
090 }
091
092 public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
093 return getService().dynamicQuery();
094 }
095
096
103 @SuppressWarnings("rawtypes")
104 public static java.util.List dynamicQuery(
105 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
106 throws com.liferay.portal.kernel.exception.SystemException {
107 return getService().dynamicQuery(dynamicQuery);
108 }
109
110
123 @SuppressWarnings("rawtypes")
124 public static java.util.List dynamicQuery(
125 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126 int end) throws com.liferay.portal.kernel.exception.SystemException {
127 return getService().dynamicQuery(dynamicQuery, start, end);
128 }
129
130
144 @SuppressWarnings("rawtypes")
145 public static java.util.List dynamicQuery(
146 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
147 int end,
148 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
149 throws com.liferay.portal.kernel.exception.SystemException {
150 return getService()
151 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
152 }
153
154
161 public static long dynamicQueryCount(
162 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
163 throws com.liferay.portal.kernel.exception.SystemException {
164 return getService().dynamicQueryCount(dynamicQuery);
165 }
166
167 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchMDRRuleGroup(
168 long ruleGroupId)
169 throws com.liferay.portal.kernel.exception.SystemException {
170 return getService().fetchMDRRuleGroup(ruleGroupId);
171 }
172
173
181 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getMDRRuleGroup(
182 long ruleGroupId)
183 throws com.liferay.portal.kernel.exception.PortalException,
184 com.liferay.portal.kernel.exception.SystemException {
185 return getService().getMDRRuleGroup(ruleGroupId);
186 }
187
188 public static com.liferay.portal.model.PersistedModel getPersistedModel(
189 java.io.Serializable primaryKeyObj)
190 throws com.liferay.portal.kernel.exception.PortalException,
191 com.liferay.portal.kernel.exception.SystemException {
192 return getService().getPersistedModel(primaryKeyObj);
193 }
194
195
204 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getMDRRuleGroupByUuidAndGroupId(
205 java.lang.String uuid, long groupId)
206 throws com.liferay.portal.kernel.exception.PortalException,
207 com.liferay.portal.kernel.exception.SystemException {
208 return getService().getMDRRuleGroupByUuidAndGroupId(uuid, groupId);
209 }
210
211
223 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getMDRRuleGroups(
224 int start, int end)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().getMDRRuleGroups(start, end);
227 }
228
229
235 public static int getMDRRuleGroupsCount()
236 throws com.liferay.portal.kernel.exception.SystemException {
237 return getService().getMDRRuleGroupsCount();
238 }
239
240
247 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateMDRRuleGroup(
248 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup mdrRuleGroup)
249 throws com.liferay.portal.kernel.exception.SystemException {
250 return getService().updateMDRRuleGroup(mdrRuleGroup);
251 }
252
253
258 public static java.lang.String getBeanIdentifier() {
259 return getService().getBeanIdentifier();
260 }
261
262
267 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
268 getService().setBeanIdentifier(beanIdentifier);
269 }
270
271 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup addRuleGroup(
272 long groupId,
273 java.util.Map<java.util.Locale, java.lang.String> nameMap,
274 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
275 com.liferay.portal.service.ServiceContext serviceContext)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException {
278 return getService()
279 .addRuleGroup(groupId, nameMap, descriptionMap,
280 serviceContext);
281 }
282
283 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
284 long ruleGroupId, long groupId,
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().copyRuleGroup(ruleGroupId, groupId, serviceContext);
289 }
290
291 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup copyRuleGroup(
292 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup ruleGroup,
293 long groupId, com.liferay.portal.service.ServiceContext serviceContext)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException {
296 return getService().copyRuleGroup(ruleGroup, groupId, serviceContext);
297 }
298
299 public static void deleteRuleGroup(long ruleGroupId)
300 throws com.liferay.portal.kernel.exception.SystemException {
301 getService().deleteRuleGroup(ruleGroupId);
302 }
303
304 public static void deleteRuleGroup(
305 com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup ruleGroup)
306 throws com.liferay.portal.kernel.exception.SystemException {
307 getService().deleteRuleGroup(ruleGroup);
308 }
309
310 public static void deleteRuleGroups(long groupId)
311 throws com.liferay.portal.kernel.exception.SystemException {
312 getService().deleteRuleGroups(groupId);
313 }
314
315 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup fetchRuleGroup(
316 long ruleGroupId)
317 throws com.liferay.portal.kernel.exception.SystemException {
318 return getService().fetchRuleGroup(ruleGroupId);
319 }
320
321 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup getRuleGroup(
322 long ruleGroupId)
323 throws com.liferay.portal.kernel.exception.PortalException,
324 com.liferay.portal.kernel.exception.SystemException {
325 return getService().getRuleGroup(ruleGroupId);
326 }
327
328 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
329 long groupId)
330 throws com.liferay.portal.kernel.exception.SystemException {
331 return getService().getRuleGroups(groupId);
332 }
333
334 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> getRuleGroups(
335 long groupId, int start, int end)
336 throws com.liferay.portal.kernel.exception.SystemException {
337 return getService().getRuleGroups(groupId, start, end);
338 }
339
340 public static int getRuleGroupsCount(long groupId)
341 throws com.liferay.portal.kernel.exception.SystemException {
342 return getService().getRuleGroupsCount(groupId);
343 }
344
345 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> search(
346 long groupId, java.lang.String name, boolean andOperator, int start,
347 int end) throws com.liferay.portal.kernel.exception.SystemException {
348 return getService().search(groupId, name, andOperator, start, end);
349 }
350
351 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup> searchByKeywords(
352 long groupId, java.lang.String keywords, boolean andOperator,
353 int start, int end)
354 throws com.liferay.portal.kernel.exception.SystemException {
355 return getService()
356 .searchByKeywords(groupId, keywords, andOperator, start, end);
357 }
358
359 public static int searchByKeywordsCount(long groupId,
360 java.lang.String keywords, boolean andOperator)
361 throws com.liferay.portal.kernel.exception.SystemException {
362 return getService().searchByKeywordsCount(groupId, keywords, andOperator);
363 }
364
365 public static int searchCount(long groupId, java.lang.String name,
366 boolean andOperator)
367 throws com.liferay.portal.kernel.exception.SystemException {
368 return getService().searchCount(groupId, name, andOperator);
369 }
370
371 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroup updateRuleGroup(
372 long ruleGroupId,
373 java.util.Map<java.util.Locale, java.lang.String> nameMap,
374 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
375 com.liferay.portal.service.ServiceContext serviceContext)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException {
378 return getService()
379 .updateRuleGroup(ruleGroupId, nameMap, descriptionMap,
380 serviceContext);
381 }
382
383 public static MDRRuleGroupLocalService getService() {
384 if (_service == null) {
385 _service = (MDRRuleGroupLocalService)PortalBeanLocatorUtil.locate(MDRRuleGroupLocalService.class.getName());
386
387 ReferenceRegistry.registerReference(MDRRuleGroupLocalServiceUtil.class,
388 "_service");
389 }
390
391 return _service;
392 }
393
394
397 public void setService(MDRRuleGroupLocalService service) {
398 }
399
400 private static MDRRuleGroupLocalService _service;
401 }