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 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> copyTemplates(
189 HttpPrincipal httpPrincipal, long classNameId, long classPK,
190 long newClassPK, java.lang.String type,
191 com.liferay.portal.service.ServiceContext serviceContext)
192 throws com.liferay.portal.kernel.exception.PortalException,
193 com.liferay.portal.kernel.exception.SystemException {
194 try {
195 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
196 "copyTemplates", _copyTemplatesParameterTypes3);
197
198 MethodHandler methodHandler = new MethodHandler(methodKey,
199 classNameId, classPK, newClassPK, type, serviceContext);
200
201 Object returnObj = null;
202
203 try {
204 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
205 }
206 catch (Exception e) {
207 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
208 throw (com.liferay.portal.kernel.exception.PortalException)e;
209 }
210
211 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
212 throw (com.liferay.portal.kernel.exception.SystemException)e;
213 }
214
215 throw new com.liferay.portal.kernel.exception.SystemException(e);
216 }
217
218 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
219 }
220 catch (com.liferay.portal.kernel.exception.SystemException se) {
221 _log.error(se, se);
222
223 throw se;
224 }
225 }
226
227 public static void deleteTemplate(HttpPrincipal httpPrincipal,
228 long templateId)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException {
231 try {
232 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
233 "deleteTemplate", _deleteTemplateParameterTypes4);
234
235 MethodHandler methodHandler = new MethodHandler(methodKey,
236 templateId);
237
238 try {
239 TunnelUtil.invoke(httpPrincipal, methodHandler);
240 }
241 catch (Exception e) {
242 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
243 throw (com.liferay.portal.kernel.exception.PortalException)e;
244 }
245
246 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
247 throw (com.liferay.portal.kernel.exception.SystemException)e;
248 }
249
250 throw new com.liferay.portal.kernel.exception.SystemException(e);
251 }
252 }
253 catch (com.liferay.portal.kernel.exception.SystemException se) {
254 _log.error(se, se);
255
256 throw se;
257 }
258 }
259
260 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate fetchTemplate(
261 HttpPrincipal httpPrincipal, long groupId, java.lang.String templateKey)
262 throws com.liferay.portal.kernel.exception.SystemException {
263 try {
264 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
265 "fetchTemplate", _fetchTemplateParameterTypes5);
266
267 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
268 templateKey);
269
270 Object returnObj = null;
271
272 try {
273 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
274 }
275 catch (Exception e) {
276 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
277 throw (com.liferay.portal.kernel.exception.SystemException)e;
278 }
279
280 throw new com.liferay.portal.kernel.exception.SystemException(e);
281 }
282
283 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
284 }
285 catch (com.liferay.portal.kernel.exception.SystemException se) {
286 _log.error(se, se);
287
288 throw se;
289 }
290 }
291
292 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
293 HttpPrincipal httpPrincipal, long templateId)
294 throws com.liferay.portal.kernel.exception.PortalException,
295 com.liferay.portal.kernel.exception.SystemException {
296 try {
297 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
298 "getTemplate", _getTemplateParameterTypes6);
299
300 MethodHandler methodHandler = new MethodHandler(methodKey,
301 templateId);
302
303 Object returnObj = null;
304
305 try {
306 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
307 }
308 catch (Exception e) {
309 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
310 throw (com.liferay.portal.kernel.exception.PortalException)e;
311 }
312
313 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
314 throw (com.liferay.portal.kernel.exception.SystemException)e;
315 }
316
317 throw new com.liferay.portal.kernel.exception.SystemException(e);
318 }
319
320 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
321 }
322 catch (com.liferay.portal.kernel.exception.SystemException se) {
323 _log.error(se, se);
324
325 throw se;
326 }
327 }
328
329 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
330 HttpPrincipal httpPrincipal, long groupId, java.lang.String templateKey)
331 throws com.liferay.portal.kernel.exception.PortalException,
332 com.liferay.portal.kernel.exception.SystemException {
333 try {
334 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
335 "getTemplate", _getTemplateParameterTypes7);
336
337 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
338 templateKey);
339
340 Object returnObj = null;
341
342 try {
343 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
344 }
345 catch (Exception e) {
346 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
347 throw (com.liferay.portal.kernel.exception.PortalException)e;
348 }
349
350 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
351 throw (com.liferay.portal.kernel.exception.SystemException)e;
352 }
353
354 throw new com.liferay.portal.kernel.exception.SystemException(e);
355 }
356
357 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
358 }
359 catch (com.liferay.portal.kernel.exception.SystemException se) {
360 _log.error(se, se);
361
362 throw se;
363 }
364 }
365
366 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate getTemplate(
367 HttpPrincipal httpPrincipal, long groupId,
368 java.lang.String templateKey, boolean includeGlobalTemplates)
369 throws com.liferay.portal.kernel.exception.PortalException,
370 com.liferay.portal.kernel.exception.SystemException {
371 try {
372 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
373 "getTemplate", _getTemplateParameterTypes8);
374
375 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
376 templateKey, includeGlobalTemplates);
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 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
389 throw (com.liferay.portal.kernel.exception.SystemException)e;
390 }
391
392 throw new com.liferay.portal.kernel.exception.SystemException(e);
393 }
394
395 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
396 }
397 catch (com.liferay.portal.kernel.exception.SystemException se) {
398 _log.error(se, se);
399
400 throw se;
401 }
402 }
403
404 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
405 HttpPrincipal httpPrincipal, long groupId, long classNameId)
406 throws com.liferay.portal.kernel.exception.SystemException {
407 try {
408 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
409 "getTemplates", _getTemplatesParameterTypes9);
410
411 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
412 classNameId);
413
414 Object returnObj = null;
415
416 try {
417 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
418 }
419 catch (Exception e) {
420 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
421 throw (com.liferay.portal.kernel.exception.SystemException)e;
422 }
423
424 throw new com.liferay.portal.kernel.exception.SystemException(e);
425 }
426
427 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
428 }
429 catch (com.liferay.portal.kernel.exception.SystemException se) {
430 _log.error(se, se);
431
432 throw se;
433 }
434 }
435
436 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
437 HttpPrincipal httpPrincipal, long groupId, long classNameId,
438 long classPK)
439 throws com.liferay.portal.kernel.exception.SystemException {
440 try {
441 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
442 "getTemplates", _getTemplatesParameterTypes10);
443
444 MethodHandler methodHandler = new MethodHandler(methodKey, groupId,
445 classNameId, classPK);
446
447 Object returnObj = null;
448
449 try {
450 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
451 }
452 catch (Exception e) {
453 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
454 throw (com.liferay.portal.kernel.exception.SystemException)e;
455 }
456
457 throw new com.liferay.portal.kernel.exception.SystemException(e);
458 }
459
460 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
461 }
462 catch (com.liferay.portal.kernel.exception.SystemException se) {
463 _log.error(se, se);
464
465 throw se;
466 }
467 }
468
469 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> getTemplates(
470 HttpPrincipal httpPrincipal, long classNameId, long classPK,
471 java.lang.String type, java.lang.String mode)
472 throws com.liferay.portal.kernel.exception.SystemException {
473 try {
474 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
475 "getTemplates", _getTemplatesParameterTypes11);
476
477 MethodHandler methodHandler = new MethodHandler(methodKey,
478 classNameId, classPK, type, mode);
479
480 Object returnObj = null;
481
482 try {
483 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
484 }
485 catch (Exception e) {
486 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
487 throw (com.liferay.portal.kernel.exception.SystemException)e;
488 }
489
490 throw new com.liferay.portal.kernel.exception.SystemException(e);
491 }
492
493 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
494 }
495 catch (com.liferay.portal.kernel.exception.SystemException se) {
496 _log.error(se, se);
497
498 throw se;
499 }
500 }
501
502 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
503 HttpPrincipal httpPrincipal, long companyId, long groupId,
504 long classNameId, long classPK, java.lang.String keywords,
505 java.lang.String type, java.lang.String mode, int start, int end,
506 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
507 throws com.liferay.portal.kernel.exception.SystemException {
508 try {
509 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
510 "search", _searchParameterTypes12);
511
512 MethodHandler methodHandler = new MethodHandler(methodKey,
513 companyId, groupId, classNameId, classPK, keywords, type,
514 mode, start, end, orderByComparator);
515
516 Object returnObj = null;
517
518 try {
519 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
520 }
521 catch (Exception e) {
522 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
523 throw (com.liferay.portal.kernel.exception.SystemException)e;
524 }
525
526 throw new com.liferay.portal.kernel.exception.SystemException(e);
527 }
528
529 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
530 }
531 catch (com.liferay.portal.kernel.exception.SystemException se) {
532 _log.error(se, se);
533
534 throw se;
535 }
536 }
537
538 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
539 HttpPrincipal httpPrincipal, long companyId, long groupId,
540 long classNameId, long classPK, java.lang.String name,
541 java.lang.String description, java.lang.String type,
542 java.lang.String mode, java.lang.String language, boolean andOperator,
543 int start, int end,
544 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
545 throws com.liferay.portal.kernel.exception.SystemException {
546 try {
547 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
548 "search", _searchParameterTypes13);
549
550 MethodHandler methodHandler = new MethodHandler(methodKey,
551 companyId, groupId, classNameId, classPK, name,
552 description, type, mode, language, andOperator, start, end,
553 orderByComparator);
554
555 Object returnObj = null;
556
557 try {
558 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
559 }
560 catch (Exception e) {
561 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
562 throw (com.liferay.portal.kernel.exception.SystemException)e;
563 }
564
565 throw new com.liferay.portal.kernel.exception.SystemException(e);
566 }
567
568 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
569 }
570 catch (com.liferay.portal.kernel.exception.SystemException se) {
571 _log.error(se, se);
572
573 throw se;
574 }
575 }
576
577 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
578 HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
579 long[] classNameIds, long classPK, java.lang.String keywords,
580 java.lang.String type, java.lang.String mode, int start, int end,
581 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
582 throws com.liferay.portal.kernel.exception.SystemException {
583 try {
584 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
585 "search", _searchParameterTypes14);
586
587 MethodHandler methodHandler = new MethodHandler(methodKey,
588 companyId, groupIds, classNameIds, classPK, keywords, type,
589 mode, start, end, orderByComparator);
590
591 Object returnObj = null;
592
593 try {
594 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
595 }
596 catch (Exception e) {
597 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
598 throw (com.liferay.portal.kernel.exception.SystemException)e;
599 }
600
601 throw new com.liferay.portal.kernel.exception.SystemException(e);
602 }
603
604 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
605 }
606 catch (com.liferay.portal.kernel.exception.SystemException se) {
607 _log.error(se, se);
608
609 throw se;
610 }
611 }
612
613 public static java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate> search(
614 HttpPrincipal httpPrincipal, long companyId, long[] groupIds,
615 long[] classNameIds, long classPK, java.lang.String name,
616 java.lang.String description, java.lang.String type,
617 java.lang.String mode, java.lang.String language, boolean andOperator,
618 int start, int end,
619 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
620 throws com.liferay.portal.kernel.exception.SystemException {
621 try {
622 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
623 "search", _searchParameterTypes15);
624
625 MethodHandler methodHandler = new MethodHandler(methodKey,
626 companyId, groupIds, classNameIds, classPK, name,
627 description, type, mode, language, andOperator, start, end,
628 orderByComparator);
629
630 Object returnObj = null;
631
632 try {
633 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
634 }
635 catch (Exception e) {
636 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
637 throw (com.liferay.portal.kernel.exception.SystemException)e;
638 }
639
640 throw new com.liferay.portal.kernel.exception.SystemException(e);
641 }
642
643 return (java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMTemplate>)returnObj;
644 }
645 catch (com.liferay.portal.kernel.exception.SystemException se) {
646 _log.error(se, se);
647
648 throw se;
649 }
650 }
651
652 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
653 long groupId, long classNameId, long classPK,
654 java.lang.String keywords, java.lang.String type, java.lang.String mode)
655 throws com.liferay.portal.kernel.exception.SystemException {
656 try {
657 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
658 "searchCount", _searchCountParameterTypes16);
659
660 MethodHandler methodHandler = new MethodHandler(methodKey,
661 companyId, groupId, classNameId, classPK, keywords, type,
662 mode);
663
664 Object returnObj = null;
665
666 try {
667 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
668 }
669 catch (Exception e) {
670 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
671 throw (com.liferay.portal.kernel.exception.SystemException)e;
672 }
673
674 throw new com.liferay.portal.kernel.exception.SystemException(e);
675 }
676
677 return ((Integer)returnObj).intValue();
678 }
679 catch (com.liferay.portal.kernel.exception.SystemException se) {
680 _log.error(se, se);
681
682 throw se;
683 }
684 }
685
686 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
687 long groupId, long classNameId, long classPK, java.lang.String name,
688 java.lang.String description, java.lang.String type,
689 java.lang.String mode, java.lang.String language, boolean andOperator)
690 throws com.liferay.portal.kernel.exception.SystemException {
691 try {
692 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
693 "searchCount", _searchCountParameterTypes17);
694
695 MethodHandler methodHandler = new MethodHandler(methodKey,
696 companyId, groupId, classNameId, classPK, name,
697 description, type, mode, language, andOperator);
698
699 Object returnObj = null;
700
701 try {
702 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
703 }
704 catch (Exception e) {
705 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
706 throw (com.liferay.portal.kernel.exception.SystemException)e;
707 }
708
709 throw new com.liferay.portal.kernel.exception.SystemException(e);
710 }
711
712 return ((Integer)returnObj).intValue();
713 }
714 catch (com.liferay.portal.kernel.exception.SystemException se) {
715 _log.error(se, se);
716
717 throw se;
718 }
719 }
720
721 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
722 long[] groupIds, long[] classNameIds, long classPK,
723 java.lang.String keywords, java.lang.String type, java.lang.String mode)
724 throws com.liferay.portal.kernel.exception.SystemException {
725 try {
726 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
727 "searchCount", _searchCountParameterTypes18);
728
729 MethodHandler methodHandler = new MethodHandler(methodKey,
730 companyId, groupIds, classNameIds, classPK, keywords, type,
731 mode);
732
733 Object returnObj = null;
734
735 try {
736 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
737 }
738 catch (Exception e) {
739 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
740 throw (com.liferay.portal.kernel.exception.SystemException)e;
741 }
742
743 throw new com.liferay.portal.kernel.exception.SystemException(e);
744 }
745
746 return ((Integer)returnObj).intValue();
747 }
748 catch (com.liferay.portal.kernel.exception.SystemException se) {
749 _log.error(se, se);
750
751 throw se;
752 }
753 }
754
755 public static int searchCount(HttpPrincipal httpPrincipal, long companyId,
756 long[] groupIds, long[] classNameIds, long classPK,
757 java.lang.String name, java.lang.String description,
758 java.lang.String type, java.lang.String mode,
759 java.lang.String language, boolean andOperator)
760 throws com.liferay.portal.kernel.exception.SystemException {
761 try {
762 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
763 "searchCount", _searchCountParameterTypes19);
764
765 MethodHandler methodHandler = new MethodHandler(methodKey,
766 companyId, groupIds, classNameIds, classPK, name,
767 description, type, mode, language, andOperator);
768
769 Object returnObj = null;
770
771 try {
772 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
773 }
774 catch (Exception e) {
775 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
776 throw (com.liferay.portal.kernel.exception.SystemException)e;
777 }
778
779 throw new com.liferay.portal.kernel.exception.SystemException(e);
780 }
781
782 return ((Integer)returnObj).intValue();
783 }
784 catch (com.liferay.portal.kernel.exception.SystemException se) {
785 _log.error(se, se);
786
787 throw se;
788 }
789 }
790
791 public static com.liferay.portlet.dynamicdatamapping.model.DDMTemplate updateTemplate(
792 HttpPrincipal httpPrincipal, long templateId,
793 java.util.Map<java.util.Locale, java.lang.String> nameMap,
794 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
795 java.lang.String type, java.lang.String mode,
796 java.lang.String language, java.lang.String script, boolean cacheable,
797 boolean smallImage, java.lang.String smallImageURL,
798 java.io.File smallImageFile,
799 com.liferay.portal.service.ServiceContext serviceContext)
800 throws com.liferay.portal.kernel.exception.PortalException,
801 com.liferay.portal.kernel.exception.SystemException {
802 try {
803 MethodKey methodKey = new MethodKey(DDMTemplateServiceUtil.class,
804 "updateTemplate", _updateTemplateParameterTypes20);
805
806 MethodHandler methodHandler = new MethodHandler(methodKey,
807 templateId, nameMap, descriptionMap, type, mode, language,
808 script, cacheable, smallImage, smallImageURL,
809 smallImageFile, serviceContext);
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.PortalException) {
818 throw (com.liferay.portal.kernel.exception.PortalException)e;
819 }
820
821 if (e instanceof com.liferay.portal.kernel.exception.SystemException) {
822 throw (com.liferay.portal.kernel.exception.SystemException)e;
823 }
824
825 throw new com.liferay.portal.kernel.exception.SystemException(e);
826 }
827
828 return (com.liferay.portlet.dynamicdatamapping.model.DDMTemplate)returnObj;
829 }
830 catch (com.liferay.portal.kernel.exception.SystemException se) {
831 _log.error(se, se);
832
833 throw se;
834 }
835 }
836
837 private static Log _log = LogFactoryUtil.getLog(DDMTemplateServiceHttp.class);
838 private static final Class<?>[] _addTemplateParameterTypes0 = new Class[] {
839 long.class, long.class, long.class, java.util.Map.class,
840 java.util.Map.class, java.lang.String.class, java.lang.String.class,
841 java.lang.String.class, java.lang.String.class,
842 com.liferay.portal.service.ServiceContext.class
843 };
844 private static final Class<?>[] _addTemplateParameterTypes1 = new Class[] {
845 long.class, long.class, long.class, java.lang.String.class,
846 java.util.Map.class, java.util.Map.class, java.lang.String.class,
847 java.lang.String.class, java.lang.String.class,
848 java.lang.String.class, boolean.class, boolean.class,
849 java.lang.String.class, java.io.File.class,
850 com.liferay.portal.service.ServiceContext.class
851 };
852 private static final Class<?>[] _copyTemplateParameterTypes2 = new Class[] {
853 long.class, java.util.Map.class, java.util.Map.class,
854 com.liferay.portal.service.ServiceContext.class
855 };
856 private static final Class<?>[] _copyTemplatesParameterTypes3 = new Class[] {
857 long.class, long.class, long.class, java.lang.String.class,
858 com.liferay.portal.service.ServiceContext.class
859 };
860 private static final Class<?>[] _deleteTemplateParameterTypes4 = new Class[] {
861 long.class
862 };
863 private static final Class<?>[] _fetchTemplateParameterTypes5 = new Class[] {
864 long.class, java.lang.String.class
865 };
866 private static final Class<?>[] _getTemplateParameterTypes6 = new Class[] {
867 long.class
868 };
869 private static final Class<?>[] _getTemplateParameterTypes7 = new Class[] {
870 long.class, java.lang.String.class
871 };
872 private static final Class<?>[] _getTemplateParameterTypes8 = new Class[] {
873 long.class, java.lang.String.class, boolean.class
874 };
875 private static final Class<?>[] _getTemplatesParameterTypes9 = new Class[] {
876 long.class, long.class
877 };
878 private static final Class<?>[] _getTemplatesParameterTypes10 = new Class[] {
879 long.class, long.class, long.class
880 };
881 private static final Class<?>[] _getTemplatesParameterTypes11 = new Class[] {
882 long.class, long.class, java.lang.String.class,
883 java.lang.String.class
884 };
885 private static final Class<?>[] _searchParameterTypes12 = new Class[] {
886 long.class, long.class, long.class, long.class,
887 java.lang.String.class, java.lang.String.class,
888 java.lang.String.class, int.class, int.class,
889 com.liferay.portal.kernel.util.OrderByComparator.class
890 };
891 private static final Class<?>[] _searchParameterTypes13 = new Class[] {
892 long.class, long.class, long.class, long.class,
893 java.lang.String.class, java.lang.String.class,
894 java.lang.String.class, java.lang.String.class,
895 java.lang.String.class, boolean.class, int.class, int.class,
896 com.liferay.portal.kernel.util.OrderByComparator.class
897 };
898 private static final Class<?>[] _searchParameterTypes14 = new Class[] {
899 long.class, long[].class, long[].class, long.class,
900 java.lang.String.class, java.lang.String.class,
901 java.lang.String.class, int.class, int.class,
902 com.liferay.portal.kernel.util.OrderByComparator.class
903 };
904 private static final Class<?>[] _searchParameterTypes15 = new Class[] {
905 long.class, long[].class, long[].class, long.class,
906 java.lang.String.class, java.lang.String.class,
907 java.lang.String.class, java.lang.String.class,
908 java.lang.String.class, boolean.class, int.class, int.class,
909 com.liferay.portal.kernel.util.OrderByComparator.class
910 };
911 private static final Class<?>[] _searchCountParameterTypes16 = new Class[] {
912 long.class, long.class, long.class, long.class,
913 java.lang.String.class, java.lang.String.class,
914 java.lang.String.class
915 };
916 private static final Class<?>[] _searchCountParameterTypes17 = new Class[] {
917 long.class, long.class, long.class, long.class,
918 java.lang.String.class, java.lang.String.class,
919 java.lang.String.class, java.lang.String.class,
920 java.lang.String.class, boolean.class
921 };
922 private static final Class<?>[] _searchCountParameterTypes18 = new Class[] {
923 long.class, long[].class, long[].class, long.class,
924 java.lang.String.class, java.lang.String.class,
925 java.lang.String.class
926 };
927 private static final Class<?>[] _searchCountParameterTypes19 = new Class[] {
928 long.class, long[].class, long[].class, long.class,
929 java.lang.String.class, java.lang.String.class,
930 java.lang.String.class, java.lang.String.class,
931 java.lang.String.class, boolean.class
932 };
933 private static final Class<?>[] _updateTemplateParameterTypes20 = new Class[] {
934 long.class, java.util.Map.class, java.util.Map.class,
935 java.lang.String.class, java.lang.String.class,
936 java.lang.String.class, java.lang.String.class, boolean.class,
937 boolean.class, java.lang.String.class, java.io.File.class,
938 com.liferay.portal.service.ServiceContext.class
939 };
940 }