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