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 MDRActionServiceUtil {
038
043 public static com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
044 long ruleGroupInstanceId,
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, java.lang.String typeSettings,
048 com.liferay.portal.service.ServiceContext serviceContext)
049 throws com.liferay.portal.kernel.exception.PortalException {
050 return getService()
051 .addAction(ruleGroupInstanceId, nameMap, descriptionMap,
052 type, typeSettings, serviceContext);
053 }
054
055 public static com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
056 long ruleGroupInstanceId,
057 java.util.Map<java.util.Locale, java.lang.String> nameMap,
058 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
059 java.lang.String type,
060 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
061 com.liferay.portal.service.ServiceContext serviceContext)
062 throws com.liferay.portal.kernel.exception.PortalException {
063 return getService()
064 .addAction(ruleGroupInstanceId, nameMap, descriptionMap,
065 type, typeSettingsProperties, serviceContext);
066 }
067
068 public static void deleteAction(long actionId)
069 throws com.liferay.portal.kernel.exception.PortalException {
070 getService().deleteAction(actionId);
071 }
072
073 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchAction(
074 long actionId)
075 throws com.liferay.portal.kernel.exception.PortalException {
076 return getService().fetchAction(actionId);
077 }
078
079 public static com.liferay.portlet.mobiledevicerules.model.MDRAction getAction(
080 long actionId)
081 throws com.liferay.portal.kernel.exception.PortalException {
082 return getService().getAction(actionId);
083 }
084
085
090 public static java.lang.String getBeanIdentifier() {
091 return getService().getBeanIdentifier();
092 }
093
094
099 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
100 getService().setBeanIdentifier(beanIdentifier);
101 }
102
103 public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
104 long actionId,
105 java.util.Map<java.util.Locale, java.lang.String> nameMap,
106 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
107 java.lang.String type, java.lang.String typeSettings,
108 com.liferay.portal.service.ServiceContext serviceContext)
109 throws com.liferay.portal.kernel.exception.PortalException {
110 return getService()
111 .updateAction(actionId, nameMap, descriptionMap, type,
112 typeSettings, serviceContext);
113 }
114
115 public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
116 long actionId,
117 java.util.Map<java.util.Locale, java.lang.String> nameMap,
118 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
119 java.lang.String type,
120 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
121 com.liferay.portal.service.ServiceContext serviceContext)
122 throws com.liferay.portal.kernel.exception.PortalException {
123 return getService()
124 .updateAction(actionId, nameMap, descriptionMap, type,
125 typeSettingsProperties, serviceContext);
126 }
127
128 public static MDRActionService getService() {
129 if (_service == null) {
130 _service = (MDRActionService)PortalBeanLocatorUtil.locate(MDRActionService.class.getName());
131
132 ReferenceRegistry.registerReference(MDRActionServiceUtil.class,
133 "_service");
134 }
135
136 return _service;
137 }
138
139
142 @Deprecated
143 public void setService(MDRActionService service) {
144 }
145
146 private static MDRActionService _service;
147 }