001
014
015 package com.liferay.portlet.dynamicdatamapping.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.dynamicdatamapping.service.DDMTemplateServiceUtil;
025
026
056 public class DDMTemplateServiceHttp {
057 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate(
058 HttpPrincipal httpPrincipal, long groupId, long classNameId,
059 long classPK,
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 mode,
063 java.lang.String language, java.lang.String script,
064 com.liferay.portal.service.ServiceContext serviceContext)
065 throws com.liferay.portal.kernel.exception.PortalException,
066 com.liferay.portal.kernel.exception.SystemException {
067 try {
068 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
069 "addTemplate", _addTemplateParameterTypes0);
070
071 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
072 classNameId, classPK, nameMap, descriptionMap, type, mode,
073 language, script, serviceContext);
074
075 Object returnObj = null;
076
077 try {
078 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
079 }
080 catch (Exception e) {
081 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
082 throw (com.liferay.portal.kernel.exception.PortalException)e;
083 }
084
085 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
086 throw (com.liferay.portal.kernel.exception.SystemException)e;
087 }
088
089 throw new com.liferay.portal.kernel.exception.SystemException(e);
090 }
091
092 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
093 }
094 catch (com.liferay.portal.kernel.exception.SystemException se) {
095 _log.error(se, se);
096
097 throw se;
098 }
099 }
100
101 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate addTemplate(
102 HttpPrincipal httpPrincipal, long groupId, long classNameId,
103 long classPK, java.lang.String templateKey,
104 java.util.Map<java.util.Locale, java.lang.String> nameMap,
105 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
106 java.lang.String type, java.lang.String mode,
107 java.lang.String language, java.lang.String script, boolean cacheable,
108 boolean smallImage, java.lang.String smallImageURL,
109 java.io.File smallImageFile,
110 com.liferay.portal.service.ServiceContext serviceContext)
111 throws com.liferay.portal.kernel.exception.PortalException,
112 com.liferay.portal.kernel.exception.SystemException {
113 try {
114 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
115 "addTemplate", _addTemplateParameterTypes1);
116
117 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
118 classNameId, classPK, templateKey, nameMap, descriptionMap,
119 type, mode, language, script, cacheable, smallImage,
120 smallImageURL, smallImageFile, serviceContext);
121
122 Object returnObj = null;
123
124 try {
125 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
126 }
127 catch (Exception e) {
128 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
129 throw (com.liferay.portal.kernel.exception.PortalException)e;
130 }
131
132 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
133 throw (com.liferay.portal.kernel.exception.SystemException)e;
134 }
135
136 throw new com.liferay.portal.kernel.exception.SystemException(e);
137 }
138
139 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
140 }
141 catch (com.liferay.portal.kernel.exception.SystemException se) {
142 _log.error(se, se);
143
144 throw se;
145 }
146 }
147
148 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate copyTemplate(
149 HttpPrincipal httpPrincipal, long templateId,
150 java.util.Map<java.util.Locale, java.lang.String> nameMap,
151 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
152 com.liferay.portal.service.ServiceContext serviceContext)
153 throws com.liferay.portal.kernel.exception.PortalException,
154 com.liferay.portal.kernel.exception.SystemException {
155 try {
156 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
157 "copyTemplate", _copyTemplateParameterTypes2);
158
159 MethodHandler methodHandler = new MethodHandler(methodKey,
160 templateId, nameMap, descriptionMap, serviceContext);
161
162 Object returnObj = null;
163
164 try {
165 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
166 }
167 catch (Exception e) {
168 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
169 throw (com.liferay.portal.kernel.exception.PortalException)e;
170 }
171
172 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
173 throw (com.liferay.portal.kernel.exception.SystemException)e;
174 }
175
176 throw new com.liferay.portal.kernel.exception.SystemException(e);
177 }
178
179 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
180 }
181 catch (com.liferay.portal.kernel.exception.SystemException se) {
182 _log.error(se, se);
183
184 throw se;
185 }
186 }
187
188 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate copyTemplate(
189 HttpPrincipal httpPrincipal, long templateId,
190 com.liferay.portal.service.ServiceContext serviceContext)
191 throws com.liferay.portal.kernel.exception.PortalException,
192 com.liferay.portal.kernel.exception.SystemException {
193 try {
194 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
195 "copyTemplate", _copyTemplateParameterTypes3);
196
197 MethodHandler methodHandler = new MethodHandler(methodKey,
198 templateId, serviceContext);
199
200 Object returnObj = null;
201
202 try {
203 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
204 }
205 catch (Exception e) {
206 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
207 throw (com.liferay.portal.kernel.exception.PortalException)e;
208 }
209
210 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
211 throw (com.liferay.portal.kernel.exception.SystemException)e;
212 }
213
214 throw new com.liferay.portal.kernel.exception.SystemException(e);
215 }
216
217 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
218 }
219 catch (com.liferay.portal.kernel.exception.SystemException se) {
220 _log.error(se, se);
221
222 throw se;
223 }
224 }
225
226 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates(
227 HttpPrincipal httpPrincipal, long classNameId, long classPK,
228 long newClassPK, java.lang.String type,
229 com.liferay.portal.service.ServiceContext serviceContext)
230 throws com.liferay.portal.kernel.exception.PortalException,
231 com.liferay.portal.kernel.exception.SystemException {
232 try {
233 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
234 "copyTemplates", _copyTemplatesParameterTypes4);
235
236 MethodHandler methodHandler = new MethodHandler(methodKey,
237 classNameId, classPK, newClassPK, type, serviceContext);
238
239 Object returnObj = null;
240
241 try {
242 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
243 }
244 catch (Exception e) {
245 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
246 throw (com.liferay.portal.kernel.exception.PortalException)e;
247 }
248
249 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
250 throw (com.liferay.portal.kernel.exception.SystemException)e;
251 }
252
253 throw new com.liferay.portal.kernel.exception.SystemException(e);
254 }
255
256 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
257 }
258 catch (com.liferay.portal.kernel.exception.SystemException se) {
259 _log.error(se, se);
260
261 throw se;
262 }
263 }
264
265 public static void deleteTemplate(HttpPrincipal httpPrincipal,
266 long templateId)
267 throws com.liferay.portal.kernel.exception.PortalException,
268 com.liferay.portal.kernel.exception.SystemException {
269 try {
270 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
271 "deleteTemplate", _deleteTemplateParameterTypes5);
272
273 MethodHandler methodHandler = new MethodHandler(methodKey,
274 templateId);
275
276 try {
277 TunnelUtil.invoke(httpPrincipal, methodHandler);
278 }
279 catch (Exception e) {
280 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
281 throw (com.liferay.portal.kernel.exception.PortalException)e;
282 }
283
284 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
285 throw (com.liferay.portal.kernel.exception.SystemException)e;
286 }
287
288 throw new com.liferay.portal.kernel.exception.SystemException(e);
289 }
290 }
291 catch (com.liferay.portal.kernel.exception.SystemException se) {
292 _log.error(se, se);
293
294 throw se;
295 }
296 }
297
298 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchTemplate(
299 HttpPrincipal httpPrincipal, long groupId, long classNameId,
300 java.lang.String templateKey)
301 throws com.liferay.portal.kernel.exception.PortalException,
302 com.liferay.portal.kernel.exception.SystemException {
303 try {
304 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
305 "fetchTemplate", _fetchTemplateParameterTypes6);
306
307 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
308 classNameId, templateKey);
309
310 Object returnObj = null;
311
312 try {
313 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
314 }
315 catch (Exception e) {
316 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
317 throw (com.liferay.portal.kernel.exception.PortalException)e;
318 }
319
320 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
321 throw (com.liferay.portal.kernel.exception.SystemException)e;
322 }
323
324 throw new com.liferay.portal.kernel.exception.SystemException(e);
325 }
326
327 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
328 }
329 catch (com.liferay.portal.kernel.exception.SystemException se) {
330 _log.error(se, se);
331
332 throw se;
333 }
334 }
335
336 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
337 HttpPrincipal httpPrincipal, long templateId)
338 throws com.liferay.portal.kernel.exception.PortalException,
339 com.liferay.portal.kernel.exception.SystemException {
340 try {
341 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
342 "getTemplate", _getTemplateParameterTypes7);
343
344 MethodHandler methodHandler = new MethodHandler(methodKey,
345 templateId);
346
347 Object returnObj = null;
348
349 try {
350 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
351 }
352 catch (Exception e) {
353 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
354 throw (com.liferay.portal.kernel.exception.PortalException)e;
355 }
356
357 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
358 throw (com.liferay.portal.kernel.exception.SystemException)e;
359 }
360
361 throw new com.liferay.portal.kernel.exception.SystemException(e);
362 }
363
364 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
365 }
366 catch (com.liferay.portal.kernel.exception.SystemException se) {
367 _log.error(se, se);
368
369 throw se;
370 }
371 }
372
373 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
374 HttpPrincipal httpPrincipal, long groupId, long classNameId,
375 java.lang.String templateKey)
376 throws com.liferay.portal.kernel.exception.PortalException,
377 com.liferay.portal.kernel.exception.SystemException {
378 try {
379 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
380 "getTemplate", _getTemplateParameterTypes8);
381
382 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
383 classNameId, templateKey);
384
385 Object returnObj = null;
386
387 try {
388 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
389 }
390 catch (Exception e) {
391 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
392 throw (com.liferay.portal.kernel.exception.PortalException)e;
393 }
394
395 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
396 throw (com.liferay.portal.kernel.exception.SystemException)e;
397 }
398
399 throw new com.liferay.portal.kernel.exception.SystemException(e);
400 }
401
402 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
403 }
404 catch (com.liferay.portal.kernel.exception.SystemException se) {
405 _log.error(se, se);
406
407 throw se;
408 }
409 }
410
411 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
412 HttpPrincipal httpPrincipal, long groupId, long classNameId,
413 java.lang.String templateKey, boolean includeGlobalTemplates)
414 throws com.liferay.portal.kernel.exception.PortalException,
415 com.liferay.portal.kernel.exception.SystemException {
416 try {
417 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
418 "getTemplate", _getTemplateParameterTypes9);
419
420 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
421 classNameId, templateKey, includeGlobalTemplates);
422
423 Object returnObj = null;
424
425 try {
426 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
427 }
428 catch (Exception e) {
429 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
430 throw (com.liferay.portal.kernel.exception.PortalException)e;
431 }
432
433 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
434 throw (com.liferay.portal.kernel.exception.SystemException)e;
435 }
436
437 throw new com.liferay.portal.kernel.exception.SystemException(e);
438 }
439
440 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
441 }
442 catch (com.liferay.portal.kernel.exception.SystemException se) {
443 _log.error(se, se);
444
445 throw se;
446 }
447 }
448
449 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
450 HttpPrincipal httpPrincipal, long groupId, long classNameId)
451 throws com.liferay.portal.kernel.exception.SystemException {
452 try {
453 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
454 "getTemplates", _getTemplatesParameterTypes10);
455
456 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
457 classNameId);
458
459 Object returnObj = null;
460
461 try {
462 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
463 }
464 catch (Exception e) {
465 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
466 throw (com.liferay.portal.kernel.exception.SystemException)e;
467 }
468
469 throw new com.liferay.portal.kernel.exception.SystemException(e);
470 }
471
472 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
473 }
474 catch (com.liferay.portal.kernel.exception.SystemException se) {
475 _log.error(se, se);
476
477 throw se;
478 }
479 }
480
481 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
482 HttpPrincipal httpPrincipal, long groupId, long classNameId,
483 long classPK)
484 throws com.liferay.portal.kernel.exception.SystemException {
485 try {
486 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
487 "getTemplates", _getTemplatesParameterTypes11);
488
489 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
490 classNameId, classPK);
491
492 Object returnObj = null;
493
494 try {
495 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
496 }
497 catch (Exception e) {
498 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
499 throw (com.liferay.portal.kernel.exception.SystemException)e;
500 }
501
502 throw new com.liferay.portal.kernel.exception.SystemException(e);
503 }
504
505 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
506 }
507 catch (com.liferay.portal.kernel.exception.SystemException se) {
508 _log.error(se, se);
509
510 throw se;
511 }
512 }
513
514 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
515 HttpPrincipal httpPrincipal, long groupId, long classNameId,
516 long classPK, java.lang.String type)
517 throws com.liferay.portal.kernel.exception.SystemException {
518 try {
519 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
520 "getTemplates", _getTemplatesParameterTypes12);
521
522 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
523 classNameId, classPK, type);
524
525 Object returnObj = null;
526
527 try {
528 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
529 }
530 catch (Exception e) {
531 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
532 throw (com.liferay.portal.kernel.exception.SystemException)e;
533 }
534
535 throw new com.liferay.portal.kernel.exception.SystemException(e);
536 }
537
538 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
539 }
540 catch (com.liferay.portal.kernel.exception.SystemException se) {
541 _log.error(se, se);
542
543 throw se;
544 }
545 }
546
547 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
548 HttpPrincipal httpPrincipal, long groupId, long classNameId,
549 long classPK, java.lang.String type, java.lang.String mode)
550 throws com.liferay.portal.kernel.exception.SystemException {
551 try {
552 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
553 "getTemplates", _getTemplatesParameterTypes13);
554
555 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
556 classNameId, classPK, type, mode);
557
558 Object returnObj = null;
559
560 try {
561 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
562 }
563 catch (Exception e) {
564 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
565 throw (com.liferay.portal.kernel.exception.SystemException)e;
566 }
567
568 throw new com.liferay.portal.kernel.exception.SystemException(e);
569 }
570
571 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
572 }
573 catch (com.liferay.portal.kernel.exception.SystemException se) {
574 _log.error(se, se);
575
576 throw se;
577 }
578 }
579
580 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
581 HttpPrincipal httpPrincipal, long companyId, long groupId,
582 long classNameId, long classPK, java.lang.String keywords,
583 java.lang.String type, java.lang.String mode, int start, int end,
584 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
585 throws com.liferay.portal.kernel.exception.SystemException {
586 try {
587 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
588 "search", _searchParameterTypes14);
589
590 MethodHandler methodHandler = new MethodHandler(methodKey,
591 companyId, groupId, classNameId, classPK, keywords, type,
592 mode, start, end, orderByComparator);
593
594 Object returnObj = null;
595
596 try {
597 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
598 }
599 catch (Exception e) {
600 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
601 throw (com.liferay.portal.kernel.exception.SystemException)e;
602 }
603
604 throw new com.liferay.portal.kernel.exception.SystemException(e);
605 }
606
607 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
608 }
609 catch (com.liferay.portal.kernel.exception.SystemException se) {
610 _log.error(se, se);
611
612 throw se;
613 }
614 }
615
616 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
617 HttpPrincipal httpPrincipal, long companyId, long groupId,
618 long classNameId, long classPK, java.lang.String name,
619 java.lang.String description, java.lang.String type,
620 java.lang.String mode, java.lang.String language, boolean andOperator,
621 int start, int end,
622 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
623 throws com.liferay.portal.kernel.exception.SystemException {
624 try {
625 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
626 "search", _searchParameterTypes15);
627
628 MethodHandler methodHandler = new MethodHandler(methodKey,
629 companyId, groupId, classNameId, classPK, name,
630 description, type, mode, language, andOperator, start, end,
631 orderByComparator);
632
633 Object returnObj = null;
634
635 try {
636 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
637 }
638 catch (Exception e) {
639 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
640 throw (com.liferay.portal.kernel.exception.SystemException)e;
641 }
642
643 throw new com.liferay.portal.kernel.exception.SystemException(e);
644 }
645
646 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
647 }
648 catch (com.liferay.portal.kernel.exception.SystemException se) {
649 _log.error(se, se);
650
651 throw se;
652 }
653 }
654
655 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
656 HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
657 long[] classNameIds, long classPK, java.lang.String keywords,
658 java.lang.String type, java.lang.String mode, int start, int end,
659 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
660 throws com.liferay.portal.kernel.exception.SystemException {
661 try {
662 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
663 "search", _searchParameterTypes16);
664
665 MethodHandler methodHandler = new MethodHandler(methodKey,
666 companyId, groupIds, classNameIds, classPK, keywords, type,
667 mode, start, end, orderByComparator);
668
669 Object returnObj = null;
670
671 try {
672 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
673 }
674 catch (Exception e) {
675 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
676 throw (com.liferay.portal.kernel.exception.SystemException)e;
677 }
678
679 throw new com.liferay.portal.kernel.exception.SystemException(e);
680 }
681
682 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
683 }
684 catch (com.liferay.portal.kernel.exception.SystemException se) {
685 _log.error(se, se);
686
687 throw se;
688 }
689 }
690
691 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
692 HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
693 long[] classNameIds, long classPK, java.lang.String name,
694 java.lang.String description, java.lang.String type,
695 java.lang.String mode, java.lang.String language, boolean andOperator,
696 int start, int end,
697 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
698 throws com.liferay.portal.kernel.exception.SystemException {
699 try {
700 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
701 "search", _searchParameterTypes17);
702
703 MethodHandler methodHandler = new MethodHandler(methodKey,
704 companyId, groupIds, classNameIds, classPK, name,
705 description, type, mode, language, andOperator, start, end,
706 orderByComparator);
707
708 Object returnObj = null;
709
710 try {
711 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
712 }
713 catch (Exception e) {
714 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
715 throw (com.liferay.portal.kernel.exception.SystemException)e;
716 }
717
718 throw new com.liferay.portal.kernel.exception.SystemException(e);
719 }
720
721 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
722 }
723 catch (com.liferay.portal.kernel.exception.SystemException se) {
724 _log.error(se, se);
725
726 throw se;
727 }
728 }
729
730 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
731 long groupId, long classNameId, long classPK,
732 java.lang.String keywords, java.lang.String type, java.lang.String mode)
733 throws com.liferay.portal.kernel.exception.SystemException {
734 try {
735 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
736 "searchCount", _searchCountParameterTypes18);
737
738 MethodHandler methodHandler = new MethodHandler(methodKey,
739 companyId, groupId, classNameId, classPK, keywords, type,
740 mode);
741
742 Object returnObj = null;
743
744 try {
745 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
746 }
747 catch (Exception e) {
748 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
749 throw (com.liferay.portal.kernel.exception.SystemException)e;
750 }
751
752 throw new com.liferay.portal.kernel.exception.SystemException(e);
753 }
754
755 return ((Integer)returnObj).intValue();
756 }
757 catch (com.liferay.portal.kernel.exception.SystemException se) {
758 _log.error(se, se);
759
760 throw se;
761 }
762 }
763
764 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
765 long groupId, long classNameId, long classPK, java.lang.String name,
766 java.lang.String description, java.lang.String type,
767 java.lang.String mode, java.lang.String language, boolean andOperator)
768 throws com.liferay.portal.kernel.exception.SystemException {
769 try {
770 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
771 "searchCount", _searchCountParameterTypes19);
772
773 MethodHandler methodHandler = new MethodHandler(methodKey,
774 companyId, groupId, classNameId, classPK, name,
775 description, type, mode, language, andOperator);
776
777 Object returnObj = null;
778
779 try {
780 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
781 }
782 catch (Exception e) {
783 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
784 throw (com.liferay.portal.kernel.exception.SystemException)e;
785 }
786
787 throw new com.liferay.portal.kernel.exception.SystemException(e);
788 }
789
790 return ((Integer)returnObj).intValue();
791 }
792 catch (com.liferay.portal.kernel.exception.SystemException se) {
793 _log.error(se, se);
794
795 throw se;
796 }
797 }
798
799 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
800 long[] groupIds, long[] classNameIds, long classPK,
801 java.lang.String keywords, java.lang.String type, java.lang.String mode)
802 throws com.liferay.portal.kernel.exception.SystemException {
803 try {
804 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
805 "searchCount", _searchCountParameterTypes20);
806
807 MethodHandler methodHandler = new MethodHandler(methodKey,
808 companyId, groupIds, classNameIds, classPK, keywords, type,
809 mode);
810
811 Object returnObj = null;
812
813 try {
814 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
815 }
816 catch (Exception e) {
817 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
818 throw (com.liferay.portal.kernel.exception.SystemException)e;
819 }
820
821 throw new com.liferay.portal.kernel.exception.SystemException(e);
822 }
823
824 return ((Integer)returnObj).intValue();
825 }
826 catch (com.liferay.portal.kernel.exception.SystemException se) {
827 _log.error(se, se);
828
829 throw se;
830 }
831 }
832
833 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
834 long[] groupIds, long[] classNameIds, long classPK,
835 java.lang.String name, java.lang.String description,
836 java.lang.String type, java.lang.String mode,
837 java.lang.String language, boolean andOperator)
838 throws com.liferay.portal.kernel.exception.SystemException {
839 try {
840 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
841 "searchCount", _searchCountParameterTypes21);
842
843 MethodHandler methodHandler = new MethodHandler(methodKey,
844 companyId, groupIds, classNameIds, classPK, name,
845 description, type, mode, language, andOperator);
846
847 Object returnObj = null;
848
849 try {
850 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
851 }
852 catch (Exception e) {
853 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
854 throw (com.liferay.portal.kernel.exception.SystemException)e;
855 }
856
857 throw new com.liferay.portal.kernel.exception.SystemException(e);
858 }
859
860 return ((Integer)returnObj).intValue();
861 }
862 catch (com.liferay.portal.kernel.exception.SystemException se) {
863 _log.error(se, se);
864
865 throw se;
866 }
867 }
868
869 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate(
870 HttpPrincipal httpPrincipal, long templateId,
871 java.util.Map<java.util.Locale, java.lang.String> nameMap,
872 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
873 java.lang.String type, java.lang.String mode,
874 java.lang.String language, java.lang.String script, boolean cacheable,
875 boolean smallImage, java.lang.String smallImageURL,
876 java.io.File smallImageFile,
877 com.liferay.portal.service.ServiceContext serviceContext)
878 throws com.liferay.portal.kernel.exception.PortalException,
879 com.liferay.portal.kernel.exception.SystemException {
880 try {
881 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
882 "updateTemplate", _updateTemplateParameterTypes22);
883
884 MethodHandler methodHandler = new MethodHandler(methodKey,
885 templateId, nameMap, descriptionMap, type, mode, language,
886 script, cacheable, smallImage, smallImageURL,
887 smallImageFile, serviceContext);
888
889 Object returnObj = null;
890
891 try {
892 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
893 }
894 catch (Exception e) {
895 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
896 throw (com.liferay.portal.kernel.exception.PortalException)e;
897 }
898
899 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
900 throw (com.liferay.portal.kernel.exception.SystemException)e;
901 }
902
903 throw new com.liferay.portal.kernel.exception.SystemException(e);
904 }
905
906 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
907 }
908 catch (com.liferay.portal.kernel.exception.SystemException se) {
909 _log.error(se, se);
910
911 throw se;
912 }
913 }
914
915 private static Log _log = LogFactoryUtil.getLog(DDMTemplateServiceHttp.class);
916 private static final Class<?>[] _addTemplateParameterTypes0 = new Class[] {
917 long.class, long.class, long.class, java.util.Map.class,
918 java.util.Map.class, java.lang.String.class, java.lang.String.class,
919 java.lang.String.class, java.lang.String.class,
920 com.liferay.portal.service.ServiceContext.class
921 };
922 private static final Class<?>[] _addTemplateParameterTypes1 = new Class[] {
923 long.class, long.class, long.class, java.lang.String.class,
924 java.util.Map.class, java.util.Map.class, java.lang.String.class,
925 java.lang.String.class, java.lang.String.class,
926 java.lang.String.class, boolean.class, boolean.class,
927 java.lang.String.class, java.io.File.class,
928 com.liferay.portal.service.ServiceContext.class
929 };
930 private static final Class<?>[] _copyTemplateParameterTypes2 = new Class[] {
931 long.class, java.util.Map.class, java.util.Map.class,
932 com.liferay.portal.service.ServiceContext.class
933 };
934 private static final Class<?>[] _copyTemplateParameterTypes3 = new Class[] {
935 long.class, com.liferay.portal.service.ServiceContext.class
936 };
937 private static final Class<?>[] _copyTemplatesParameterTypes4 = new Class[] {
938 long.class, long.class, long.class, java.lang.String.class,
939 com.liferay.portal.service.ServiceContext.class
940 };
941 private static final Class<?>[] _deleteTemplateParameterTypes5 = new Class[] {
942 long.class
943 };
944 private static final Class<?>[] _fetchTemplateParameterTypes6 = new Class[] {
945 long.class, long.class, java.lang.String.class
946 };
947 private static final Class<?>[] _getTemplateParameterTypes7 = new Class[] {
948 long.class
949 };
950 private static final Class<?>[] _getTemplateParameterTypes8 = new Class[] {
951 long.class, long.class, java.lang.String.class
952 };
953 private static final Class<?>[] _getTemplateParameterTypes9 = new Class[] {
954 long.class, long.class, java.lang.String.class, boolean.class
955 };
956 private static final Class<?>[] _getTemplatesParameterTypes10 = new Class[] {
957 long.class, long.class
958 };
959 private static final Class<?>[] _getTemplatesParameterTypes11 = new Class[] {
960 long.class, long.class, long.class
961 };
962 private static final Class<?>[] _getTemplatesParameterTypes12 = new Class[] {
963 long.class, long.class, long.class, java.lang.String.class
964 };
965 private static final Class<?>[] _getTemplatesParameterTypes13 = new Class[] {
966 long.class, long.class, long.class, java.lang.String.class,
967 java.lang.String.class
968 };
969 private static final Class<?>[] _searchParameterTypes14 = new Class[] {
970 long.class, long.class, long.class, long.class,
971 java.lang.String.class, java.lang.String.class,
972 java.lang.String.class, int.class, int.class,
973 com.liferay.portal.kernel.util.OrderByComparator.class
974 };
975 private static final Class<?>[] _searchParameterTypes15 = new Class[] {
976 long.class, long.class, long.class, long.class,
977 java.lang.String.class, java.lang.String.class,
978 java.lang.String.class, java.lang.String.class,
979 java.lang.String.class, boolean.class, int.class, int.class,
980 com.liferay.portal.kernel.util.OrderByComparator.class
981 };
982 private static final Class<?>[] _searchParameterTypes16 = new Class[] {
983 long.class, long[].class, long[].class, long.class,
984 java.lang.String.class, java.lang.String.class,
985 java.lang.String.class, int.class, int.class,
986 com.liferay.portal.kernel.util.OrderByComparator.class
987 };
988 private static final Class<?>[] _searchParameterTypes17 = new Class[] {
989 long.class, long[].class, long[].class, long.class,
990 java.lang.String.class, java.lang.String.class,
991 java.lang.String.class, java.lang.String.class,
992 java.lang.String.class, boolean.class, int.class, int.class,
993 com.liferay.portal.kernel.util.OrderByComparator.class
994 };
995 private static final Class<?>[] _searchCountParameterTypes18 = new Class[] {
996 long.class, long.class, long.class, long.class,
997 java.lang.String.class, java.lang.String.class,
998 java.lang.String.class
999 };
1000 private static final Class<?>[] _searchCountParameterTypes19 = new Class[] {
1001 long.class, long.class, long.class, long.class,
1002 java.lang.String.class, java.lang.String.class,
1003 java.lang.String.class, java.lang.String.class,
1004 java.lang.String.class, boolean.class
1005 };
1006 private static final Class<?>[] _searchCountParameterTypes20 = new Class[] {
1007 long.class, long[].class, long[].class, long.class,
1008 java.lang.String.class, java.lang.String.class,
1009 java.lang.String.class
1010 };
1011 private static final Class<?>[] _searchCountParameterTypes21 = new Class[] {
1012 long.class, long[].class, long[].class, long.class,
1013 java.lang.String.class, java.lang.String.class,
1014 java.lang.String.class, java.lang.String.class,
1015 java.lang.String.class, boolean.class
1016 };
1017 private static final Class<?>[] _updateTemplateParameterTypes22 = new Class[] {
1018 long.class, java.util.Map.class, java.util.Map.class,
1019 java.lang.String.class, java.lang.String.class,
1020 java.lang.String.class, java.lang.String.class, boolean.class,
1021 boolean.class, java.lang.String.class, java.io.File.class,
1022 com.liferay.portal.service.ServiceContext.class
1023 };
1024 }