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