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 MDRRuleServiceUtil {
038
043
044
049 public static java.lang.String getBeanIdentifier() {
050 return getService().getBeanIdentifier();
051 }
052
053
058 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
059 getService().setBeanIdentifier(beanIdentifier);
060 }
061
062 public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
063 long ruleGroupId,
064 java.util.Map<java.util.Locale, java.lang.String> nameMap,
065 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
066 java.lang.String type, java.lang.String typeSettings,
067 com.liferay.portal.service.ServiceContext serviceContext)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 return getService()
071 .addRule(ruleGroupId, nameMap, descriptionMap, type,
072 typeSettings, serviceContext);
073 }
074
075 public static com.liferay.portlet.mobiledevicerules.model.MDRRule addRule(
076 long ruleGroupId,
077 java.util.Map<java.util.Locale, java.lang.String> nameMap,
078 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
079 java.lang.String type,
080 com.liferay.portal.kernel.util.UnicodeProperties typeSettings,
081 com.liferay.portal.service.ServiceContext serviceContext)
082 throws com.liferay.portal.kernel.exception.PortalException,
083 com.liferay.portal.kernel.exception.SystemException {
084 return getService()
085 .addRule(ruleGroupId, nameMap, descriptionMap, type,
086 typeSettings, serviceContext);
087 }
088
089 public static void deleteRule(long ruleId)
090 throws com.liferay.portal.kernel.exception.PortalException,
091 com.liferay.portal.kernel.exception.SystemException {
092 getService().deleteRule(ruleId);
093 }
094
095 public static com.liferay.portlet.mobiledevicerules.model.MDRRule fetchRule(
096 long ruleId)
097 throws com.liferay.portal.kernel.exception.PortalException,
098 com.liferay.portal.kernel.exception.SystemException {
099 return getService().fetchRule(ruleId);
100 }
101
102 public static com.liferay.portlet.mobiledevicerules.model.MDRRule getRule(
103 long ruleId)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 return getService().getRule(ruleId);
107 }
108
109 public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
110 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
111 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
112 java.lang.String type, java.lang.String typeSettings,
113 com.liferay.portal.service.ServiceContext serviceContext)
114 throws com.liferay.portal.kernel.exception.PortalException,
115 com.liferay.portal.kernel.exception.SystemException {
116 return getService()
117 .updateRule(ruleId, nameMap, descriptionMap, type,
118 typeSettings, serviceContext);
119 }
120
121 public static com.liferay.portlet.mobiledevicerules.model.MDRRule updateRule(
122 long ruleId, java.util.Map<java.util.Locale, java.lang.String> nameMap,
123 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
124 java.lang.String type,
125 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
126 com.liferay.portal.service.ServiceContext serviceContext)
127 throws com.liferay.portal.kernel.exception.PortalException,
128 com.liferay.portal.kernel.exception.SystemException {
129 return getService()
130 .updateRule(ruleId, nameMap, descriptionMap, type,
131 typeSettingsProperties, serviceContext);
132 }
133
134 public static MDRRuleService getService() {
135 if (_service == null) {
136 _service = (MDRRuleService)PortalBeanLocatorUtil.locate(MDRRuleService.class.getName());
137
138 ReferenceRegistry.registerReference(MDRRuleServiceUtil.class,
139 "_service");
140 }
141
142 return _service;
143 }
144
145
148 public void setService(MDRRuleService service) {
149 }
150
151 private static MDRRuleService _service;
152 }