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