Source Code Cross Referenced for BlogsEntryServiceHttp.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portlet » blogs » service » http » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Portal » liferay portal 4.4.2 » com.liferay.portlet.blogs.service.http 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


001:        /**
002:         * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003:         *
004:         * Permission is hereby granted, free of charge, to any person obtaining a copy
005:         * of this software and associated documentation files (the "Software"), to deal
006:         * in the Software without restriction, including without limitation the rights
007:         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008:         * copies of the Software, and to permit persons to whom the Software is
009:         * furnished to do so, subject to the following conditions:
010:         *
011:         * The above copyright notice and this permission notice shall be included in
012:         * all copies or substantial portions of the Software.
013:         *
014:         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015:         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016:         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017:         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018:         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019:         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020:         * SOFTWARE.
021:         */package com.liferay.portlet.blogs.service.http;
022:
023:        import com.liferay.portal.kernel.log.Log;
024:        import com.liferay.portal.kernel.log.LogFactoryUtil;
025:        import com.liferay.portal.kernel.util.BooleanWrapper;
026:        import com.liferay.portal.kernel.util.DoubleWrapper;
027:        import com.liferay.portal.kernel.util.IntegerWrapper;
028:        import com.liferay.portal.kernel.util.LongWrapper;
029:        import com.liferay.portal.kernel.util.MethodWrapper;
030:        import com.liferay.portal.kernel.util.NullWrapper;
031:        import com.liferay.portal.security.auth.HttpPrincipal;
032:        import com.liferay.portal.service.http.TunnelUtil;
033:
034:        import com.liferay.portlet.blogs.service.BlogsEntryServiceUtil;
035:
036:        /**
037:         * <a href="BlogsEntryServiceHttp.java.html"><b><i>View Source</i></b></a>
038:         *
039:         * <p>
040:         * ServiceBuilder generated this class. Modifications in this class will be
041:         * overwritten the next time is generated.
042:         * </p>
043:         *
044:         * <p>
045:         * This class provides a HTTP utility for the
046:         * <code>com.liferay.portlet.blogs.service.BlogsEntryServiceUtil</code> service
047:         * utility. The static methods of this class calls the same methods of the
048:         * service utility. However, the signatures are different because it requires an
049:         * additional <code>com.liferay.portal.security.auth.HttpPrincipal</code>
050:         * parameter.
051:         * </p>
052:         *
053:         * <p>
054:         * The benefits of using the HTTP utility is that it is fast and allows for
055:         * tunneling without the cost of serializing to text. The drawback is that it
056:         * only works with Java.
057:         * </p>
058:         *
059:         * <p>
060:         * Set the property <code>tunnel.servlet.hosts.allowed</code> in
061:         * portal.properties to configure security.
062:         * </p>
063:         *
064:         * <p>
065:         * The HTTP utility is only generated for remote services.
066:         * </p>
067:         *
068:         * @author Brian Wing Shun Chan
069:         *
070:         * @see com.liferay.portal.security.auth.HttpPrincipal
071:         * @see com.liferay.portlet.blogs.service.BlogsEntryServiceUtil
072:         * @see com.liferay.portlet.blogs.service.http.BlogsEntryServiceSoap
073:         *
074:         */
075:        public class BlogsEntryServiceHttp {
076:            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
077:                    HttpPrincipal httpPrincipal, long plid,
078:                    java.lang.String title, java.lang.String content,
079:                    int displayDateMonth, int displayDateDay,
080:                    int displayDateYear, int displayDateHour,
081:                    int displayDateMinute, java.lang.String[] tagsEntries,
082:                    boolean addCommunityPermissions,
083:                    boolean addGuestPermissions,
084:                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
085:                    throws com.liferay.portal.SystemException,
086:                    com.liferay.portal.PortalException {
087:                try {
088:                    Object paramObj0 = new LongWrapper(plid);
089:
090:                    Object paramObj1 = title;
091:
092:                    if (title == null) {
093:                        paramObj1 = new NullWrapper("java.lang.String");
094:                    }
095:
096:                    Object paramObj2 = content;
097:
098:                    if (content == null) {
099:                        paramObj2 = new NullWrapper("java.lang.String");
100:                    }
101:
102:                    Object paramObj3 = new IntegerWrapper(displayDateMonth);
103:
104:                    Object paramObj4 = new IntegerWrapper(displayDateDay);
105:
106:                    Object paramObj5 = new IntegerWrapper(displayDateYear);
107:
108:                    Object paramObj6 = new IntegerWrapper(displayDateHour);
109:
110:                    Object paramObj7 = new IntegerWrapper(displayDateMinute);
111:
112:                    Object paramObj8 = tagsEntries;
113:
114:                    if (tagsEntries == null) {
115:                        paramObj8 = new NullWrapper("[Ljava.lang.String;");
116:                    }
117:
118:                    Object paramObj9 = new BooleanWrapper(
119:                            addCommunityPermissions);
120:
121:                    Object paramObj10 = new BooleanWrapper(addGuestPermissions);
122:
123:                    Object paramObj11 = themeDisplay;
124:
125:                    if (themeDisplay == null) {
126:                        paramObj11 = new NullWrapper(
127:                                "com.liferay.portal.theme.ThemeDisplay");
128:                    }
129:
130:                    MethodWrapper methodWrapper = new MethodWrapper(
131:                            BlogsEntryServiceUtil.class.getName(), "addEntry",
132:                            new Object[] { paramObj0, paramObj1, paramObj2,
133:                                    paramObj3, paramObj4, paramObj5, paramObj6,
134:                                    paramObj7, paramObj8, paramObj9,
135:                                    paramObj10, paramObj11 });
136:
137:                    Object returnObj = null;
138:
139:                    try {
140:                        returnObj = TunnelUtil.invoke(httpPrincipal,
141:                                methodWrapper);
142:                    } catch (Exception e) {
143:                        if (e instanceof  com.liferay.portal.SystemException) {
144:                            throw (com.liferay.portal.SystemException) e;
145:                        }
146:
147:                        if (e instanceof  com.liferay.portal.PortalException) {
148:                            throw (com.liferay.portal.PortalException) e;
149:                        }
150:
151:                        throw new com.liferay.portal.SystemException(e);
152:                    }
153:
154:                    return (com.liferay.portlet.blogs.model.BlogsEntry) returnObj;
155:                } catch (com.liferay.portal.SystemException se) {
156:                    _log.error(se, se);
157:
158:                    throw se;
159:                }
160:            }
161:
162:            public static com.liferay.portlet.blogs.model.BlogsEntry addEntry(
163:                    HttpPrincipal httpPrincipal, long plid,
164:                    java.lang.String title, java.lang.String content,
165:                    int displayDateMonth, int displayDateDay,
166:                    int displayDateYear, int displayDateHour,
167:                    int displayDateMinute, java.lang.String[] tagsEntries,
168:                    java.lang.String[] communityPermissions,
169:                    java.lang.String[] guestPermissions,
170:                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
171:                    throws com.liferay.portal.SystemException,
172:                    com.liferay.portal.PortalException {
173:                try {
174:                    Object paramObj0 = new LongWrapper(plid);
175:
176:                    Object paramObj1 = title;
177:
178:                    if (title == null) {
179:                        paramObj1 = new NullWrapper("java.lang.String");
180:                    }
181:
182:                    Object paramObj2 = content;
183:
184:                    if (content == null) {
185:                        paramObj2 = new NullWrapper("java.lang.String");
186:                    }
187:
188:                    Object paramObj3 = new IntegerWrapper(displayDateMonth);
189:
190:                    Object paramObj4 = new IntegerWrapper(displayDateDay);
191:
192:                    Object paramObj5 = new IntegerWrapper(displayDateYear);
193:
194:                    Object paramObj6 = new IntegerWrapper(displayDateHour);
195:
196:                    Object paramObj7 = new IntegerWrapper(displayDateMinute);
197:
198:                    Object paramObj8 = tagsEntries;
199:
200:                    if (tagsEntries == null) {
201:                        paramObj8 = new NullWrapper("[Ljava.lang.String;");
202:                    }
203:
204:                    Object paramObj9 = communityPermissions;
205:
206:                    if (communityPermissions == null) {
207:                        paramObj9 = new NullWrapper("[Ljava.lang.String;");
208:                    }
209:
210:                    Object paramObj10 = guestPermissions;
211:
212:                    if (guestPermissions == null) {
213:                        paramObj10 = new NullWrapper("[Ljava.lang.String;");
214:                    }
215:
216:                    Object paramObj11 = themeDisplay;
217:
218:                    if (themeDisplay == null) {
219:                        paramObj11 = new NullWrapper(
220:                                "com.liferay.portal.theme.ThemeDisplay");
221:                    }
222:
223:                    MethodWrapper methodWrapper = new MethodWrapper(
224:                            BlogsEntryServiceUtil.class.getName(), "addEntry",
225:                            new Object[] { paramObj0, paramObj1, paramObj2,
226:                                    paramObj3, paramObj4, paramObj5, paramObj6,
227:                                    paramObj7, paramObj8, paramObj9,
228:                                    paramObj10, paramObj11 });
229:
230:                    Object returnObj = null;
231:
232:                    try {
233:                        returnObj = TunnelUtil.invoke(httpPrincipal,
234:                                methodWrapper);
235:                    } catch (Exception e) {
236:                        if (e instanceof  com.liferay.portal.SystemException) {
237:                            throw (com.liferay.portal.SystemException) e;
238:                        }
239:
240:                        if (e instanceof  com.liferay.portal.PortalException) {
241:                            throw (com.liferay.portal.PortalException) e;
242:                        }
243:
244:                        throw new com.liferay.portal.SystemException(e);
245:                    }
246:
247:                    return (com.liferay.portlet.blogs.model.BlogsEntry) returnObj;
248:                } catch (com.liferay.portal.SystemException se) {
249:                    _log.error(se, se);
250:
251:                    throw se;
252:                }
253:            }
254:
255:            public static void deleteEntry(HttpPrincipal httpPrincipal,
256:                    long entryId) throws com.liferay.portal.SystemException,
257:                    com.liferay.portal.PortalException {
258:                try {
259:                    Object paramObj0 = new LongWrapper(entryId);
260:
261:                    MethodWrapper methodWrapper = new MethodWrapper(
262:                            BlogsEntryServiceUtil.class.getName(),
263:                            "deleteEntry", new Object[] { paramObj0 });
264:
265:                    try {
266:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
267:                    } catch (Exception e) {
268:                        if (e instanceof  com.liferay.portal.SystemException) {
269:                            throw (com.liferay.portal.SystemException) e;
270:                        }
271:
272:                        if (e instanceof  com.liferay.portal.PortalException) {
273:                            throw (com.liferay.portal.PortalException) e;
274:                        }
275:
276:                        throw new com.liferay.portal.SystemException(e);
277:                    }
278:                } catch (com.liferay.portal.SystemException se) {
279:                    _log.error(se, se);
280:
281:                    throw se;
282:                }
283:            }
284:
285:            public static java.util.List getCompanyEntries(
286:                    HttpPrincipal httpPrincipal, long companyId, int max)
287:                    throws com.liferay.portal.SystemException,
288:                    com.liferay.portal.PortalException {
289:                try {
290:                    Object paramObj0 = new LongWrapper(companyId);
291:
292:                    Object paramObj1 = new IntegerWrapper(max);
293:
294:                    MethodWrapper methodWrapper = new MethodWrapper(
295:                            BlogsEntryServiceUtil.class.getName(),
296:                            "getCompanyEntries", new Object[] { paramObj0,
297:                                    paramObj1 });
298:
299:                    Object returnObj = null;
300:
301:                    try {
302:                        returnObj = TunnelUtil.invoke(httpPrincipal,
303:                                methodWrapper);
304:                    } catch (Exception e) {
305:                        if (e instanceof  com.liferay.portal.SystemException) {
306:                            throw (com.liferay.portal.SystemException) e;
307:                        }
308:
309:                        if (e instanceof  com.liferay.portal.PortalException) {
310:                            throw (com.liferay.portal.PortalException) e;
311:                        }
312:
313:                        throw new com.liferay.portal.SystemException(e);
314:                    }
315:
316:                    return (java.util.List) returnObj;
317:                } catch (com.liferay.portal.SystemException se) {
318:                    _log.error(se, se);
319:
320:                    throw se;
321:                }
322:            }
323:
324:            public static java.lang.String getCompanyEntriesRSS(
325:                    HttpPrincipal httpPrincipal, long companyId, int max,
326:                    java.lang.String type, double version,
327:                    java.lang.String displayStyle, java.lang.String feedURL,
328:                    java.lang.String entryURL)
329:                    throws com.liferay.portal.SystemException,
330:                    com.liferay.portal.PortalException {
331:                try {
332:                    Object paramObj0 = new LongWrapper(companyId);
333:
334:                    Object paramObj1 = new IntegerWrapper(max);
335:
336:                    Object paramObj2 = type;
337:
338:                    if (type == null) {
339:                        paramObj2 = new NullWrapper("java.lang.String");
340:                    }
341:
342:                    Object paramObj3 = new DoubleWrapper(version);
343:
344:                    Object paramObj4 = displayStyle;
345:
346:                    if (displayStyle == null) {
347:                        paramObj4 = new NullWrapper("java.lang.String");
348:                    }
349:
350:                    Object paramObj5 = feedURL;
351:
352:                    if (feedURL == null) {
353:                        paramObj5 = new NullWrapper("java.lang.String");
354:                    }
355:
356:                    Object paramObj6 = entryURL;
357:
358:                    if (entryURL == null) {
359:                        paramObj6 = new NullWrapper("java.lang.String");
360:                    }
361:
362:                    MethodWrapper methodWrapper = new MethodWrapper(
363:                            BlogsEntryServiceUtil.class.getName(),
364:                            "getCompanyEntriesRSS", new Object[] { paramObj0,
365:                                    paramObj1, paramObj2, paramObj3, paramObj4,
366:                                    paramObj5, paramObj6 });
367:
368:                    Object returnObj = null;
369:
370:                    try {
371:                        returnObj = TunnelUtil.invoke(httpPrincipal,
372:                                methodWrapper);
373:                    } catch (Exception e) {
374:                        if (e instanceof  com.liferay.portal.SystemException) {
375:                            throw (com.liferay.portal.SystemException) e;
376:                        }
377:
378:                        if (e instanceof  com.liferay.portal.PortalException) {
379:                            throw (com.liferay.portal.PortalException) e;
380:                        }
381:
382:                        throw new com.liferay.portal.SystemException(e);
383:                    }
384:
385:                    return (java.lang.String) returnObj;
386:                } catch (com.liferay.portal.SystemException se) {
387:                    _log.error(se, se);
388:
389:                    throw se;
390:                }
391:            }
392:
393:            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
394:                    HttpPrincipal httpPrincipal, long entryId)
395:                    throws com.liferay.portal.SystemException,
396:                    com.liferay.portal.PortalException {
397:                try {
398:                    Object paramObj0 = new LongWrapper(entryId);
399:
400:                    MethodWrapper methodWrapper = new MethodWrapper(
401:                            BlogsEntryServiceUtil.class.getName(), "getEntry",
402:                            new Object[] { paramObj0 });
403:
404:                    Object returnObj = null;
405:
406:                    try {
407:                        returnObj = TunnelUtil.invoke(httpPrincipal,
408:                                methodWrapper);
409:                    } catch (Exception e) {
410:                        if (e instanceof  com.liferay.portal.SystemException) {
411:                            throw (com.liferay.portal.SystemException) e;
412:                        }
413:
414:                        if (e instanceof  com.liferay.portal.PortalException) {
415:                            throw (com.liferay.portal.PortalException) e;
416:                        }
417:
418:                        throw new com.liferay.portal.SystemException(e);
419:                    }
420:
421:                    return (com.liferay.portlet.blogs.model.BlogsEntry) returnObj;
422:                } catch (com.liferay.portal.SystemException se) {
423:                    _log.error(se, se);
424:
425:                    throw se;
426:                }
427:            }
428:
429:            public static com.liferay.portlet.blogs.model.BlogsEntry getEntry(
430:                    HttpPrincipal httpPrincipal, long groupId,
431:                    java.lang.String urlTitle)
432:                    throws com.liferay.portal.SystemException,
433:                    com.liferay.portal.PortalException {
434:                try {
435:                    Object paramObj0 = new LongWrapper(groupId);
436:
437:                    Object paramObj1 = urlTitle;
438:
439:                    if (urlTitle == null) {
440:                        paramObj1 = new NullWrapper("java.lang.String");
441:                    }
442:
443:                    MethodWrapper methodWrapper = new MethodWrapper(
444:                            BlogsEntryServiceUtil.class.getName(), "getEntry",
445:                            new Object[] { paramObj0, paramObj1 });
446:
447:                    Object returnObj = null;
448:
449:                    try {
450:                        returnObj = TunnelUtil.invoke(httpPrincipal,
451:                                methodWrapper);
452:                    } catch (Exception e) {
453:                        if (e instanceof  com.liferay.portal.SystemException) {
454:                            throw (com.liferay.portal.SystemException) e;
455:                        }
456:
457:                        if (e instanceof  com.liferay.portal.PortalException) {
458:                            throw (com.liferay.portal.PortalException) e;
459:                        }
460:
461:                        throw new com.liferay.portal.SystemException(e);
462:                    }
463:
464:                    return (com.liferay.portlet.blogs.model.BlogsEntry) returnObj;
465:                } catch (com.liferay.portal.SystemException se) {
466:                    _log.error(se, se);
467:
468:                    throw se;
469:                }
470:            }
471:
472:            public static java.util.List getGroupEntries(
473:                    HttpPrincipal httpPrincipal, long groupId, int max)
474:                    throws com.liferay.portal.SystemException,
475:                    com.liferay.portal.PortalException {
476:                try {
477:                    Object paramObj0 = new LongWrapper(groupId);
478:
479:                    Object paramObj1 = new IntegerWrapper(max);
480:
481:                    MethodWrapper methodWrapper = new MethodWrapper(
482:                            BlogsEntryServiceUtil.class.getName(),
483:                            "getGroupEntries", new Object[] { paramObj0,
484:                                    paramObj1 });
485:
486:                    Object returnObj = null;
487:
488:                    try {
489:                        returnObj = TunnelUtil.invoke(httpPrincipal,
490:                                methodWrapper);
491:                    } catch (Exception e) {
492:                        if (e instanceof  com.liferay.portal.SystemException) {
493:                            throw (com.liferay.portal.SystemException) e;
494:                        }
495:
496:                        if (e instanceof  com.liferay.portal.PortalException) {
497:                            throw (com.liferay.portal.PortalException) e;
498:                        }
499:
500:                        throw new com.liferay.portal.SystemException(e);
501:                    }
502:
503:                    return (java.util.List) returnObj;
504:                } catch (com.liferay.portal.SystemException se) {
505:                    _log.error(se, se);
506:
507:                    throw se;
508:                }
509:            }
510:
511:            public static java.lang.String getGroupEntriesRSS(
512:                    HttpPrincipal httpPrincipal, long groupId, int max,
513:                    java.lang.String type, double version,
514:                    java.lang.String displayStyle, java.lang.String feedURL,
515:                    java.lang.String entryURL)
516:                    throws com.liferay.portal.SystemException,
517:                    com.liferay.portal.PortalException {
518:                try {
519:                    Object paramObj0 = new LongWrapper(groupId);
520:
521:                    Object paramObj1 = new IntegerWrapper(max);
522:
523:                    Object paramObj2 = type;
524:
525:                    if (type == null) {
526:                        paramObj2 = new NullWrapper("java.lang.String");
527:                    }
528:
529:                    Object paramObj3 = new DoubleWrapper(version);
530:
531:                    Object paramObj4 = displayStyle;
532:
533:                    if (displayStyle == null) {
534:                        paramObj4 = new NullWrapper("java.lang.String");
535:                    }
536:
537:                    Object paramObj5 = feedURL;
538:
539:                    if (feedURL == null) {
540:                        paramObj5 = new NullWrapper("java.lang.String");
541:                    }
542:
543:                    Object paramObj6 = entryURL;
544:
545:                    if (entryURL == null) {
546:                        paramObj6 = new NullWrapper("java.lang.String");
547:                    }
548:
549:                    MethodWrapper methodWrapper = new MethodWrapper(
550:                            BlogsEntryServiceUtil.class.getName(),
551:                            "getGroupEntriesRSS", new Object[] { paramObj0,
552:                                    paramObj1, paramObj2, paramObj3, paramObj4,
553:                                    paramObj5, paramObj6 });
554:
555:                    Object returnObj = null;
556:
557:                    try {
558:                        returnObj = TunnelUtil.invoke(httpPrincipal,
559:                                methodWrapper);
560:                    } catch (Exception e) {
561:                        if (e instanceof  com.liferay.portal.SystemException) {
562:                            throw (com.liferay.portal.SystemException) e;
563:                        }
564:
565:                        if (e instanceof  com.liferay.portal.PortalException) {
566:                            throw (com.liferay.portal.PortalException) e;
567:                        }
568:
569:                        throw new com.liferay.portal.SystemException(e);
570:                    }
571:
572:                    return (java.lang.String) returnObj;
573:                } catch (com.liferay.portal.SystemException se) {
574:                    _log.error(se, se);
575:
576:                    throw se;
577:                }
578:            }
579:
580:            public static java.util.List getOrganizationEntries(
581:                    HttpPrincipal httpPrincipal, long organizationId, int max)
582:                    throws com.liferay.portal.SystemException,
583:                    com.liferay.portal.PortalException {
584:                try {
585:                    Object paramObj0 = new LongWrapper(organizationId);
586:
587:                    Object paramObj1 = new IntegerWrapper(max);
588:
589:                    MethodWrapper methodWrapper = new MethodWrapper(
590:                            BlogsEntryServiceUtil.class.getName(),
591:                            "getOrganizationEntries", new Object[] { paramObj0,
592:                                    paramObj1 });
593:
594:                    Object returnObj = null;
595:
596:                    try {
597:                        returnObj = TunnelUtil.invoke(httpPrincipal,
598:                                methodWrapper);
599:                    } catch (Exception e) {
600:                        if (e instanceof  com.liferay.portal.SystemException) {
601:                            throw (com.liferay.portal.SystemException) e;
602:                        }
603:
604:                        if (e instanceof  com.liferay.portal.PortalException) {
605:                            throw (com.liferay.portal.PortalException) e;
606:                        }
607:
608:                        throw new com.liferay.portal.SystemException(e);
609:                    }
610:
611:                    return (java.util.List) returnObj;
612:                } catch (com.liferay.portal.SystemException se) {
613:                    _log.error(se, se);
614:
615:                    throw se;
616:                }
617:            }
618:
619:            public static java.lang.String getOrganizationEntriesRSS(
620:                    HttpPrincipal httpPrincipal, long organizationId, int max,
621:                    java.lang.String type, double version,
622:                    java.lang.String displayStyle, java.lang.String feedURL,
623:                    java.lang.String entryURL)
624:                    throws com.liferay.portal.SystemException,
625:                    com.liferay.portal.PortalException {
626:                try {
627:                    Object paramObj0 = new LongWrapper(organizationId);
628:
629:                    Object paramObj1 = new IntegerWrapper(max);
630:
631:                    Object paramObj2 = type;
632:
633:                    if (type == null) {
634:                        paramObj2 = new NullWrapper("java.lang.String");
635:                    }
636:
637:                    Object paramObj3 = new DoubleWrapper(version);
638:
639:                    Object paramObj4 = displayStyle;
640:
641:                    if (displayStyle == null) {
642:                        paramObj4 = new NullWrapper("java.lang.String");
643:                    }
644:
645:                    Object paramObj5 = feedURL;
646:
647:                    if (feedURL == null) {
648:                        paramObj5 = new NullWrapper("java.lang.String");
649:                    }
650:
651:                    Object paramObj6 = entryURL;
652:
653:                    if (entryURL == null) {
654:                        paramObj6 = new NullWrapper("java.lang.String");
655:                    }
656:
657:                    MethodWrapper methodWrapper = new MethodWrapper(
658:                            BlogsEntryServiceUtil.class.getName(),
659:                            "getOrganizationEntriesRSS", new Object[] {
660:                                    paramObj0, paramObj1, paramObj2, paramObj3,
661:                                    paramObj4, paramObj5, paramObj6 });
662:
663:                    Object returnObj = null;
664:
665:                    try {
666:                        returnObj = TunnelUtil.invoke(httpPrincipal,
667:                                methodWrapper);
668:                    } catch (Exception e) {
669:                        if (e instanceof  com.liferay.portal.SystemException) {
670:                            throw (com.liferay.portal.SystemException) e;
671:                        }
672:
673:                        if (e instanceof  com.liferay.portal.PortalException) {
674:                            throw (com.liferay.portal.PortalException) e;
675:                        }
676:
677:                        throw new com.liferay.portal.SystemException(e);
678:                    }
679:
680:                    return (java.lang.String) returnObj;
681:                } catch (com.liferay.portal.SystemException se) {
682:                    _log.error(se, se);
683:
684:                    throw se;
685:                }
686:            }
687:
688:            public static com.liferay.portlet.blogs.model.BlogsEntry updateEntry(
689:                    HttpPrincipal httpPrincipal, long entryId,
690:                    java.lang.String title, java.lang.String content,
691:                    int displayDateMonth, int displayDateDay,
692:                    int displayDateYear, int displayDateHour,
693:                    int displayDateMinute, java.lang.String[] tagsEntries,
694:                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
695:                    throws com.liferay.portal.SystemException,
696:                    com.liferay.portal.PortalException {
697:                try {
698:                    Object paramObj0 = new LongWrapper(entryId);
699:
700:                    Object paramObj1 = title;
701:
702:                    if (title == null) {
703:                        paramObj1 = new NullWrapper("java.lang.String");
704:                    }
705:
706:                    Object paramObj2 = content;
707:
708:                    if (content == null) {
709:                        paramObj2 = new NullWrapper("java.lang.String");
710:                    }
711:
712:                    Object paramObj3 = new IntegerWrapper(displayDateMonth);
713:
714:                    Object paramObj4 = new IntegerWrapper(displayDateDay);
715:
716:                    Object paramObj5 = new IntegerWrapper(displayDateYear);
717:
718:                    Object paramObj6 = new IntegerWrapper(displayDateHour);
719:
720:                    Object paramObj7 = new IntegerWrapper(displayDateMinute);
721:
722:                    Object paramObj8 = tagsEntries;
723:
724:                    if (tagsEntries == null) {
725:                        paramObj8 = new NullWrapper("[Ljava.lang.String;");
726:                    }
727:
728:                    Object paramObj9 = themeDisplay;
729:
730:                    if (themeDisplay == null) {
731:                        paramObj9 = new NullWrapper(
732:                                "com.liferay.portal.theme.ThemeDisplay");
733:                    }
734:
735:                    MethodWrapper methodWrapper = new MethodWrapper(
736:                            BlogsEntryServiceUtil.class.getName(),
737:                            "updateEntry",
738:                            new Object[] { paramObj0, paramObj1, paramObj2,
739:                                    paramObj3, paramObj4, paramObj5, paramObj6,
740:                                    paramObj7, paramObj8, paramObj9 });
741:
742:                    Object returnObj = null;
743:
744:                    try {
745:                        returnObj = TunnelUtil.invoke(httpPrincipal,
746:                                methodWrapper);
747:                    } catch (Exception e) {
748:                        if (e instanceof  com.liferay.portal.SystemException) {
749:                            throw (com.liferay.portal.SystemException) e;
750:                        }
751:
752:                        if (e instanceof  com.liferay.portal.PortalException) {
753:                            throw (com.liferay.portal.PortalException) e;
754:                        }
755:
756:                        throw new com.liferay.portal.SystemException(e);
757:                    }
758:
759:                    return (com.liferay.portlet.blogs.model.BlogsEntry) returnObj;
760:                } catch (com.liferay.portal.SystemException se) {
761:                    _log.error(se, se);
762:
763:                    throw se;
764:                }
765:            }
766:
767:            private static Log _log = LogFactoryUtil
768:                    .getLog(BlogsEntryServiceHttp.class);
769:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.