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 MDRRuleGroupInstanceServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
059 long groupId, java.lang.String className, long classPK,
060 long ruleGroupId, int priority,
061 com.liferay.portal.service.ServiceContext serviceContext)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException {
064 return getService()
065 .addRuleGroupInstance(groupId, className, classPK,
066 ruleGroupId, priority, serviceContext);
067 }
068
069 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance addRuleGroupInstance(
070 long groupId, java.lang.String className, long classPK,
071 long ruleGroupId,
072 com.liferay.portal.service.ServiceContext serviceContext)
073 throws com.liferay.portal.kernel.exception.PortalException,
074 com.liferay.portal.kernel.exception.SystemException {
075 return getService()
076 .addRuleGroupInstance(groupId, className, classPK,
077 ruleGroupId, serviceContext);
078 }
079
080 public static void deleteRuleGroupInstance(long ruleGroupInstanceId)
081 throws com.liferay.portal.kernel.exception.PortalException,
082 com.liferay.portal.kernel.exception.SystemException {
083 getService().deleteRuleGroupInstance(ruleGroupInstanceId);
084 }
085
086 public static java.util.List<com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance> getRuleGroupInstances(
087 java.lang.String className, long classPK, int start, int end,
088 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
089 throws com.liferay.portal.kernel.exception.SystemException {
090 return getService()
091 .getRuleGroupInstances(className, classPK, start, end,
092 orderByComparator);
093 }
094
095 public static int getRuleGroupInstancesCount(java.lang.String className,
096 long classPK)
097 throws com.liferay.portal.kernel.exception.SystemException {
098 return getService().getRuleGroupInstancesCount(className, classPK);
099 }
100
101 public static com.liferay.portlet.mobiledevicerules.model.MDRRuleGroupInstance updateRuleGroupInstance(
102 long ruleGroupInstanceId, int priority)
103 throws com.liferay.portal.kernel.exception.PortalException,
104 com.liferay.portal.kernel.exception.SystemException {
105 return getService()
106 .updateRuleGroupInstance(ruleGroupInstanceId, priority);
107 }
108
109 public static MDRRuleGroupInstanceService getService() {
110 if (_service == null) {
111 _service = (MDRRuleGroupInstanceService)PortalBeanLocatorUtil.locate(MDRRuleGroupInstanceService.class.getName());
112
113 ReferenceRegistry.registerReference(MDRRuleGroupInstanceServiceUtil.class,
114 "_service");
115 }
116
117 return _service;
118 }
119
120
123 public void setService(MDRRuleGroupInstanceService service) {
124 }
125
126 private static MDRRuleGroupInstanceService _service;
127 }