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