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