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