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