001
014
015 package com.liferay.portal.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.PortalServiceUtil;
023
024
052 public class PortalServiceHttp {
053 public static java.lang.String getAutoDeployDirectory(
054 HttpPrincipal httpPrincipal)
055 throws com.liferay.portal.kernel.exception.SystemException {
056 try {
057 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
058 "getAutoDeployDirectory",
059 _getAutoDeployDirectoryParameterTypes0);
060
061 MethodHandler methodHandler = new MethodHandler(methodKey);
062
063 Object returnObj = null;
064
065 try {
066 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
067 }
068 catch (Exception e) {
069 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
070 throw (com.liferay.portal.kernel.exception.SystemException)e;
071 }
072
073 throw new com.liferay.portal.kernel.exception.SystemException(e);
074 }
075
076 return (java.lang.String)returnObj;
077 }
078 catch (com.liferay.portal.kernel.exception.SystemException se) {
079 _log.error(se, se);
080
081 throw se;
082 }
083 }
084
085 public static int getBuildNumber(HttpPrincipal httpPrincipal)
086 throws com.liferay.portal.kernel.exception.SystemException {
087 try {
088 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
089 "getBuildNumber", _getBuildNumberParameterTypes1);
090
091 MethodHandler methodHandler = new MethodHandler(methodKey);
092
093 Object returnObj = null;
094
095 try {
096 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
097 }
098 catch (Exception e) {
099 throw new com.liferay.portal.kernel.exception.SystemException(e);
100 }
101
102 return ((Integer)returnObj).intValue();
103 }
104 catch (com.liferay.portal.kernel.exception.SystemException se) {
105 _log.error(se, se);
106
107 throw se;
108 }
109 }
110
111 public static void testAddClassName_Rollback(HttpPrincipal httpPrincipal,
112 java.lang.String classNameValue)
113 throws com.liferay.portal.kernel.exception.SystemException {
114 try {
115 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
116 "testAddClassName_Rollback",
117 _testAddClassName_RollbackParameterTypes2);
118
119 MethodHandler methodHandler = new MethodHandler(methodKey,
120 classNameValue);
121
122 try {
123 TunnelUtil.invoke(httpPrincipal, methodHandler);
124 }
125 catch (Exception e) {
126 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
127 throw (com.liferay.portal.kernel.exception.SystemException)e;
128 }
129
130 throw new com.liferay.portal.kernel.exception.SystemException(e);
131 }
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 testAddClassName_Success(HttpPrincipal httpPrincipal,
141 java.lang.String classNameValue)
142 throws com.liferay.portal.kernel.exception.SystemException {
143 try {
144 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
145 "testAddClassName_Success",
146 _testAddClassName_SuccessParameterTypes3);
147
148 MethodHandler methodHandler = new MethodHandler(methodKey,
149 classNameValue);
150
151 try {
152 TunnelUtil.invoke(httpPrincipal, methodHandler);
153 }
154 catch (Exception e) {
155 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
156 throw (com.liferay.portal.kernel.exception.SystemException)e;
157 }
158
159 throw new com.liferay.portal.kernel.exception.SystemException(e);
160 }
161 }
162 catch (com.liferay.portal.kernel.exception.SystemException se) {
163 _log.error(se, se);
164
165 throw se;
166 }
167 }
168
169 public static void testAddClassNameAndTestTransactionPortletBar_PortalRollback(
170 HttpPrincipal httpPrincipal, java.lang.String transactionPortletBarText)
171 throws com.liferay.portal.kernel.exception.SystemException {
172 try {
173 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
174 "testAddClassNameAndTestTransactionPortletBar_PortalRollback",
175 _testAddClassNameAndTestTransactionPortletBar_PortalRollbackParameterTypes4);
176
177 MethodHandler methodHandler = new MethodHandler(methodKey,
178 transactionPortletBarText);
179
180 try {
181 TunnelUtil.invoke(httpPrincipal, methodHandler);
182 }
183 catch (Exception e) {
184 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
185 throw (com.liferay.portal.kernel.exception.SystemException)e;
186 }
187
188 throw new com.liferay.portal.kernel.exception.SystemException(e);
189 }
190 }
191 catch (com.liferay.portal.kernel.exception.SystemException se) {
192 _log.error(se, se);
193
194 throw se;
195 }
196 }
197
198 public static void testAddClassNameAndTestTransactionPortletBar_PortletRollback(
199 HttpPrincipal httpPrincipal, java.lang.String transactionPortletBarText)
200 throws com.liferay.portal.kernel.exception.SystemException {
201 try {
202 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
203 "testAddClassNameAndTestTransactionPortletBar_PortletRollback",
204 _testAddClassNameAndTestTransactionPortletBar_PortletRollbackParameterTypes5);
205
206 MethodHandler methodHandler = new MethodHandler(methodKey,
207 transactionPortletBarText);
208
209 try {
210 TunnelUtil.invoke(httpPrincipal, methodHandler);
211 }
212 catch (Exception e) {
213 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
214 throw (com.liferay.portal.kernel.exception.SystemException)e;
215 }
216
217 throw new com.liferay.portal.kernel.exception.SystemException(e);
218 }
219 }
220 catch (com.liferay.portal.kernel.exception.SystemException se) {
221 _log.error(se, se);
222
223 throw se;
224 }
225 }
226
227 public static void testAddClassNameAndTestTransactionPortletBar_Success(
228 HttpPrincipal httpPrincipal, java.lang.String transactionPortletBarText)
229 throws com.liferay.portal.kernel.exception.SystemException {
230 try {
231 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
232 "testAddClassNameAndTestTransactionPortletBar_Success",
233 _testAddClassNameAndTestTransactionPortletBar_SuccessParameterTypes6);
234
235 MethodHandler methodHandler = new MethodHandler(methodKey,
236 transactionPortletBarText);
237
238 try {
239 TunnelUtil.invoke(httpPrincipal, methodHandler);
240 }
241 catch (Exception e) {
242 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
243 throw (com.liferay.portal.kernel.exception.SystemException)e;
244 }
245
246 throw new com.liferay.portal.kernel.exception.SystemException(e);
247 }
248 }
249 catch (com.liferay.portal.kernel.exception.SystemException se) {
250 _log.error(se, se);
251
252 throw se;
253 }
254 }
255
256 public static void testAutoSyncHibernateSessionStateOnTxCreation(
257 HttpPrincipal httpPrincipal)
258 throws com.liferay.portal.kernel.exception.SystemException {
259 try {
260 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
261 "testAutoSyncHibernateSessionStateOnTxCreation",
262 _testAutoSyncHibernateSessionStateOnTxCreationParameterTypes7);
263
264 MethodHandler methodHandler = new MethodHandler(methodKey);
265
266 try {
267 TunnelUtil.invoke(httpPrincipal, methodHandler);
268 }
269 catch (Exception e) {
270 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
271 throw (com.liferay.portal.kernel.exception.SystemException)e;
272 }
273
274 throw new com.liferay.portal.kernel.exception.SystemException(e);
275 }
276 }
277 catch (com.liferay.portal.kernel.exception.SystemException se) {
278 _log.error(se, se);
279
280 throw se;
281 }
282 }
283
284 public static void testDeleteClassName(HttpPrincipal httpPrincipal)
285 throws com.liferay.portal.kernel.exception.PortalException,
286 com.liferay.portal.kernel.exception.SystemException {
287 try {
288 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
289 "testDeleteClassName", _testDeleteClassNameParameterTypes8);
290
291 MethodHandler methodHandler = new MethodHandler(methodKey);
292
293 try {
294 TunnelUtil.invoke(httpPrincipal, methodHandler);
295 }
296 catch (Exception e) {
297 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
298 throw (com.liferay.portal.kernel.exception.PortalException)e;
299 }
300
301 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
302 throw (com.liferay.portal.kernel.exception.SystemException)e;
303 }
304
305 throw new com.liferay.portal.kernel.exception.SystemException(e);
306 }
307 }
308 catch (com.liferay.portal.kernel.exception.SystemException se) {
309 _log.error(se, se);
310
311 throw se;
312 }
313 }
314
315 public static int testGetBuildNumber(HttpPrincipal httpPrincipal)
316 throws com.liferay.portal.kernel.exception.SystemException {
317 try {
318 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
319 "testGetBuildNumber", _testGetBuildNumberParameterTypes9);
320
321 MethodHandler methodHandler = new MethodHandler(methodKey);
322
323 Object returnObj = null;
324
325 try {
326 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
327 }
328 catch (Exception e) {
329 throw new com.liferay.portal.kernel.exception.SystemException(e);
330 }
331
332 return ((Integer)returnObj).intValue();
333 }
334 catch (com.liferay.portal.kernel.exception.SystemException se) {
335 _log.error(se, se);
336
337 throw se;
338 }
339 }
340
341 public static void testGetUserId(HttpPrincipal httpPrincipal)
342 throws com.liferay.portal.kernel.exception.SystemException {
343 try {
344 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
345 "testGetUserId", _testGetUserIdParameterTypes10);
346
347 MethodHandler methodHandler = new MethodHandler(methodKey);
348
349 try {
350 TunnelUtil.invoke(httpPrincipal, methodHandler);
351 }
352 catch (Exception e) {
353 throw new com.liferay.portal.kernel.exception.SystemException(e);
354 }
355 }
356 catch (com.liferay.portal.kernel.exception.SystemException se) {
357 _log.error(se, se);
358
359 throw se;
360 }
361 }
362
363 public static boolean testHasClassName(HttpPrincipal httpPrincipal)
364 throws com.liferay.portal.kernel.exception.SystemException {
365 try {
366 MethodKey methodKey = new MethodKey(PortalServiceUtil.class,
367 "testHasClassName", _testHasClassNameParameterTypes11);
368
369 MethodHandler methodHandler = new MethodHandler(methodKey);
370
371 Object returnObj = null;
372
373 try {
374 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
375 }
376 catch (Exception e) {
377 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
378 throw (com.liferay.portal.kernel.exception.SystemException)e;
379 }
380
381 throw new com.liferay.portal.kernel.exception.SystemException(e);
382 }
383
384 return ((Boolean)returnObj).booleanValue();
385 }
386 catch (com.liferay.portal.kernel.exception.SystemException se) {
387 _log.error(se, se);
388
389 throw se;
390 }
391 }
392
393 private static Log _log = LogFactoryUtil.getLog(PortalServiceHttp.class);
394 private static final Class<?>[] _getAutoDeployDirectoryParameterTypes0 = new Class[] {
395
396 };
397 private static final Class<?>[] _getBuildNumberParameterTypes1 = new Class[] {
398
399 };
400 private static final Class<?>[] _testAddClassName_RollbackParameterTypes2 = new Class[] {
401 java.lang.String.class
402 };
403 private static final Class<?>[] _testAddClassName_SuccessParameterTypes3 = new Class[] {
404 java.lang.String.class
405 };
406 private static final Class<?>[] _testAddClassNameAndTestTransactionPortletBar_PortalRollbackParameterTypes4 =
407 new Class[] { java.lang.String.class };
408 private static final Class<?>[] _testAddClassNameAndTestTransactionPortletBar_PortletRollbackParameterTypes5 =
409 new Class[] { java.lang.String.class };
410 private static final Class<?>[] _testAddClassNameAndTestTransactionPortletBar_SuccessParameterTypes6 =
411 new Class[] { java.lang.String.class };
412 private static final Class<?>[] _testAutoSyncHibernateSessionStateOnTxCreationParameterTypes7 =
413 new Class[] { };
414 private static final Class<?>[] _testDeleteClassNameParameterTypes8 = new Class[] {
415
416 };
417 private static final Class<?>[] _testGetBuildNumberParameterTypes9 = new Class[] {
418
419 };
420 private static final Class<?>[] _testGetUserIdParameterTypes10 = new Class[] {
421
422 };
423 private static final Class<?>[] _testHasClassNameParameterTypes11 = new Class[] {
424
425 };
426 }