001
014
015 package com.liferay.portlet.mobiledevicerules.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.MethodHandler;
020 import com.liferay.portal.kernel.util.MethodKey;
021 import com.liferay.portal.security.auth.HttpPrincipal;
022 import com.liferay.portal.service.http.TunnelUtil;
023
024 import com.liferay.portlet.mobiledevicerules.service.MDRActionServiceUtil;
025
026
054 public class MDRActionServiceHttp {
055 public static com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
056 HttpPrincipal httpPrincipal, 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, java.lang.String typeSettings,
060 com.liferay.portal.service.ServiceContext serviceContext)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 try {
064 MethodKey methodKey = new MethodKey(MDRActionServiceUtil.class,
065 "addAction", _addActionParameterTypes0);
066
067 MethodHandler methodHandler = new MethodHandler(methodKey,
068 ruleGroupInstanceId, nameMap, descriptionMap, type,
069 typeSettings, serviceContext);
070
071 Object returnObj = null;
072
073 try {
074 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
075 }
076 catch (Exception e) {
077 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
078 throw (com.liferay.portal.kernel.exception.PortalException)e;
079 }
080
081 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
082 throw (com.liferay.portal.kernel.exception.SystemException)e;
083 }
084
085 throw new com.liferay.portal.kernel.exception.SystemException(e);
086 }
087
088 return (com.liferay.portlet.mobiledevicerules.model.MDRAction)returnObj;
089 }
090 catch (com.liferay.portal.kernel.exception.SystemException se) {
091 _log.error(se, se);
092
093 throw se;
094 }
095 }
096
097 public static com.liferay.portlet.mobiledevicerules.model.MDRAction addAction(
098 HttpPrincipal httpPrincipal, long ruleGroupInstanceId,
099 java.util.Map<java.util.Locale, java.lang.String> nameMap,
100 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
101 java.lang.String type,
102 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
103 com.liferay.portal.service.ServiceContext serviceContext)
104 throws com.liferay.portal.kernel.exception.PortalException,
105 com.liferay.portal.kernel.exception.SystemException {
106 try {
107 MethodKey methodKey = new MethodKey(MDRActionServiceUtil.class,
108 "addAction", _addActionParameterTypes1);
109
110 MethodHandler methodHandler = new MethodHandler(methodKey,
111 ruleGroupInstanceId, nameMap, descriptionMap, type,
112 typeSettingsProperties, serviceContext);
113
114 Object returnObj = null;
115
116 try {
117 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
118 }
119 catch (Exception e) {
120 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
121 throw (com.liferay.portal.kernel.exception.PortalException)e;
122 }
123
124 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
125 throw (com.liferay.portal.kernel.exception.SystemException)e;
126 }
127
128 throw new com.liferay.portal.kernel.exception.SystemException(e);
129 }
130
131 return (com.liferay.portlet.mobiledevicerules.model.MDRAction)returnObj;
132 }
133 catch (com.liferay.portal.kernel.exception.SystemException se) {
134 _log.error(se, se);
135
136 throw se;
137 }
138 }
139
140 public static void deleteAction(HttpPrincipal httpPrincipal, long actionId)
141 throws com.liferay.portal.kernel.exception.PortalException,
142 com.liferay.portal.kernel.exception.SystemException {
143 try {
144 MethodKey methodKey = new MethodKey(MDRActionServiceUtil.class,
145 "deleteAction", _deleteActionParameterTypes2);
146
147 MethodHandler methodHandler = new MethodHandler(methodKey, actionId);
148
149 try {
150 TunnelUtil.invoke(httpPrincipal, methodHandler);
151 }
152 catch (Exception e) {
153 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
154 throw (com.liferay.portal.kernel.exception.PortalException)e;
155 }
156
157 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
158 throw (com.liferay.portal.kernel.exception.SystemException)e;
159 }
160
161 throw new com.liferay.portal.kernel.exception.SystemException(e);
162 }
163 }
164 catch (com.liferay.portal.kernel.exception.SystemException se) {
165 _log.error(se, se);
166
167 throw se;
168 }
169 }
170
171 public static com.liferay.portlet.mobiledevicerules.model.MDRAction fetchAction(
172 HttpPrincipal httpPrincipal, long actionId)
173 throws com.liferay.portal.kernel.exception.PortalException,
174 com.liferay.portal.kernel.exception.SystemException {
175 try {
176 MethodKey methodKey = new MethodKey(MDRActionServiceUtil.class,
177 "fetchAction", _fetchActionParameterTypes3);
178
179 MethodHandler methodHandler = new MethodHandler(methodKey, actionId);
180
181 Object returnObj = null;
182
183 try {
184 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
185 }
186 catch (Exception e) {
187 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
188 throw (com.liferay.portal.kernel.exception.PortalException)e;
189 }
190
191 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
192 throw (com.liferay.portal.kernel.exception.SystemException)e;
193 }
194
195 throw new com.liferay.portal.kernel.exception.SystemException(e);
196 }
197
198 return (com.liferay.portlet.mobiledevicerules.model.MDRAction)returnObj;
199 }
200 catch (com.liferay.portal.kernel.exception.SystemException se) {
201 _log.error(se, se);
202
203 throw se;
204 }
205 }
206
207 public static com.liferay.portlet.mobiledevicerules.model.MDRAction getAction(
208 HttpPrincipal httpPrincipal, long actionId)
209 throws com.liferay.portal.kernel.exception.PortalException,
210 com.liferay.portal.kernel.exception.SystemException {
211 try {
212 MethodKey methodKey = new MethodKey(MDRActionServiceUtil.class,
213 "getAction", _getActionParameterTypes4);
214
215 MethodHandler methodHandler = new MethodHandler(methodKey, actionId);
216
217 Object returnObj = null;
218
219 try {
220 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
221 }
222 catch (Exception e) {
223 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
224 throw (com.liferay.portal.kernel.exception.PortalException)e;
225 }
226
227 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
228 throw (com.liferay.portal.kernel.exception.SystemException)e;
229 }
230
231 throw new com.liferay.portal.kernel.exception.SystemException(e);
232 }
233
234 return (com.liferay.portlet.mobiledevicerules.model.MDRAction)returnObj;
235 }
236 catch (com.liferay.portal.kernel.exception.SystemException se) {
237 _log.error(se, se);
238
239 throw se;
240 }
241 }
242
243 public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
244 HttpPrincipal httpPrincipal, long actionId,
245 java.util.Map<java.util.Locale, java.lang.String> nameMap,
246 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
247 java.lang.String type, java.lang.String typeSettings,
248 com.liferay.portal.service.ServiceContext serviceContext)
249 throws com.liferay.portal.kernel.exception.PortalException,
250 com.liferay.portal.kernel.exception.SystemException {
251 try {
252 MethodKey methodKey = new MethodKey(MDRActionServiceUtil.class,
253 "updateAction", _updateActionParameterTypes5);
254
255 MethodHandler methodHandler = new MethodHandler(methodKey,
256 actionId, nameMap, descriptionMap, type, typeSettings,
257 serviceContext);
258
259 Object returnObj = null;
260
261 try {
262 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
263 }
264 catch (Exception e) {
265 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
266 throw (com.liferay.portal.kernel.exception.PortalException)e;
267 }
268
269 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
270 throw (com.liferay.portal.kernel.exception.SystemException)e;
271 }
272
273 throw new com.liferay.portal.kernel.exception.SystemException(e);
274 }
275
276 return (com.liferay.portlet.mobiledevicerules.model.MDRAction)returnObj;
277 }
278 catch (com.liferay.portal.kernel.exception.SystemException se) {
279 _log.error(se, se);
280
281 throw se;
282 }
283 }
284
285 public static com.liferay.portlet.mobiledevicerules.model.MDRAction updateAction(
286 HttpPrincipal httpPrincipal, long actionId,
287 java.util.Map<java.util.Locale, java.lang.String> nameMap,
288 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
289 java.lang.String type,
290 com.liferay.portal.kernel.util.UnicodeProperties typeSettingsProperties,
291 com.liferay.portal.service.ServiceContext serviceContext)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException {
294 try {
295 MethodKey methodKey = new MethodKey(MDRActionServiceUtil.class,
296 "updateAction", _updateActionParameterTypes6);
297
298 MethodHandler methodHandler = new MethodHandler(methodKey,
299 actionId, nameMap, descriptionMap, type,
300 typeSettingsProperties, serviceContext);
301
302 Object returnObj = null;
303
304 try {
305 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
306 }
307 catch (Exception e) {
308 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
309 throw (com.liferay.portal.kernel.exception.PortalException)e;
310 }
311
312 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
313 throw (com.liferay.portal.kernel.exception.SystemException)e;
314 }
315
316 throw new com.liferay.portal.kernel.exception.SystemException(e);
317 }
318
319 return (com.liferay.portlet.mobiledevicerules.model.MDRAction)returnObj;
320 }
321 catch (com.liferay.portal.kernel.exception.SystemException se) {
322 _log.error(se, se);
323
324 throw se;
325 }
326 }
327
328 private static Log _log = LogFactoryUtil.getLog(MDRActionServiceHttp.class);
329 private static final Class<?>[] _addActionParameterTypes0 = new Class[] {
330 long.class, java.util.Map.class, java.util.Map.class,
331 java.lang.String.class, java.lang.String.class,
332 com.liferay.portal.service.ServiceContext.class
333 };
334 private static final Class<?>[] _addActionParameterTypes1 = new Class[] {
335 long.class, java.util.Map.class, java.util.Map.class,
336 java.lang.String.class,
337 com.liferay.portal.kernel.util.UnicodeProperties.class,
338 com.liferay.portal.service.ServiceContext.class
339 };
340 private static final Class<?>[] _deleteActionParameterTypes2 = new Class[] {
341 long.class
342 };
343 private static final Class<?>[] _fetchActionParameterTypes3 = new Class[] {
344 long.class
345 };
346 private static final Class<?>[] _getActionParameterTypes4 = new Class[] {
347 long.class
348 };
349 private static final Class<?>[] _updateActionParameterTypes5 = new Class[] {
350 long.class, java.util.Map.class, java.util.Map.class,
351 java.lang.String.class, java.lang.String.class,
352 com.liferay.portal.service.ServiceContext.class
353 };
354 private static final Class<?>[] _updateActionParameterTypes6 = new Class[] {
355 long.class, java.util.Map.class, java.util.Map.class,
356 java.lang.String.class,
357 com.liferay.portal.kernel.util.UnicodeProperties.class,
358 com.liferay.portal.service.ServiceContext.class
359 };
360 }