Source Code Cross Referenced for MBMessageServiceHttp.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portlet » messageboards » 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.messageboards.service.http 
Source Cross Referenced  Class Diagram Java Document (Java Doc) 


0001:        /**
0002:         * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
0003:         *
0004:         * Permission is hereby granted, free of charge, to any person obtaining a copy
0005:         * of this software and associated documentation files (the "Software"), to deal
0006:         * in the Software without restriction, including without limitation the rights
0007:         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
0008:         * copies of the Software, and to permit persons to whom the Software is
0009:         * furnished to do so, subject to the following conditions:
0010:         *
0011:         * The above copyright notice and this permission notice shall be included in
0012:         * all copies or substantial portions of the Software.
0013:         *
0014:         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
0015:         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
0016:         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
0017:         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
0018:         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
0019:         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
0020:         * SOFTWARE.
0021:         */package com.liferay.portlet.messageboards.service.http;
0022:
0023:        import com.liferay.portal.kernel.log.Log;
0024:        import com.liferay.portal.kernel.log.LogFactoryUtil;
0025:        import com.liferay.portal.kernel.util.BooleanWrapper;
0026:        import com.liferay.portal.kernel.util.DoubleWrapper;
0027:        import com.liferay.portal.kernel.util.IntegerWrapper;
0028:        import com.liferay.portal.kernel.util.LongWrapper;
0029:        import com.liferay.portal.kernel.util.MethodWrapper;
0030:        import com.liferay.portal.kernel.util.NullWrapper;
0031:        import com.liferay.portal.security.auth.HttpPrincipal;
0032:        import com.liferay.portal.service.http.TunnelUtil;
0033:
0034:        import com.liferay.portlet.messageboards.service.MBMessageServiceUtil;
0035:
0036:        /**
0037:         * <a href="MBMessageServiceHttp.java.html"><b><i>View Source</i></b></a>
0038:         *
0039:         * <p>
0040:         * ServiceBuilder generated this class. Modifications in this class will be
0041:         * overwritten the next time is generated.
0042:         * </p>
0043:         *
0044:         * <p>
0045:         * This class provides a HTTP utility for the
0046:         * <code>com.liferay.portlet.messageboards.service.MBMessageServiceUtil</code> service
0047:         * utility. The static methods of this class calls the same methods of the
0048:         * service utility. However, the signatures are different because it requires an
0049:         * additional <code>com.liferay.portal.security.auth.HttpPrincipal</code>
0050:         * parameter.
0051:         * </p>
0052:         *
0053:         * <p>
0054:         * The benefits of using the HTTP utility is that it is fast and allows for
0055:         * tunneling without the cost of serializing to text. The drawback is that it
0056:         * only works with Java.
0057:         * </p>
0058:         *
0059:         * <p>
0060:         * Set the property <code>tunnel.servlet.hosts.allowed</code> in
0061:         * portal.properties to configure security.
0062:         * </p>
0063:         *
0064:         * <p>
0065:         * The HTTP utility is only generated for remote services.
0066:         * </p>
0067:         *
0068:         * @author Brian Wing Shun Chan
0069:         *
0070:         * @see com.liferay.portal.security.auth.HttpPrincipal
0071:         * @see com.liferay.portlet.messageboards.service.MBMessageServiceUtil
0072:         * @see com.liferay.portlet.messageboards.service.http.MBMessageServiceSoap
0073:         *
0074:         */
0075:        public class MBMessageServiceHttp {
0076:            public static com.liferay.portlet.messageboards.model.MBMessage addDiscussionMessage(
0077:                    HttpPrincipal httpPrincipal, long groupId,
0078:                    java.lang.String className, long classPK, long threadId,
0079:                    long parentMessageId, java.lang.String subject,
0080:                    java.lang.String body,
0081:                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
0082:                    throws com.liferay.portal.SystemException,
0083:                    com.liferay.portal.PortalException {
0084:                try {
0085:                    Object paramObj0 = new LongWrapper(groupId);
0086:
0087:                    Object paramObj1 = className;
0088:
0089:                    if (className == null) {
0090:                        paramObj1 = new NullWrapper("java.lang.String");
0091:                    }
0092:
0093:                    Object paramObj2 = new LongWrapper(classPK);
0094:
0095:                    Object paramObj3 = new LongWrapper(threadId);
0096:
0097:                    Object paramObj4 = new LongWrapper(parentMessageId);
0098:
0099:                    Object paramObj5 = subject;
0100:
0101:                    if (subject == null) {
0102:                        paramObj5 = new NullWrapper("java.lang.String");
0103:                    }
0104:
0105:                    Object paramObj6 = body;
0106:
0107:                    if (body == null) {
0108:                        paramObj6 = new NullWrapper("java.lang.String");
0109:                    }
0110:
0111:                    Object paramObj7 = themeDisplay;
0112:
0113:                    if (themeDisplay == null) {
0114:                        paramObj7 = new NullWrapper(
0115:                                "com.liferay.portal.theme.ThemeDisplay");
0116:                    }
0117:
0118:                    MethodWrapper methodWrapper = new MethodWrapper(
0119:                            MBMessageServiceUtil.class.getName(),
0120:                            "addDiscussionMessage", new Object[] { paramObj0,
0121:                                    paramObj1, paramObj2, paramObj3, paramObj4,
0122:                                    paramObj5, paramObj6, paramObj7 });
0123:
0124:                    Object returnObj = null;
0125:
0126:                    try {
0127:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0128:                                methodWrapper);
0129:                    } catch (Exception e) {
0130:                        if (e instanceof  com.liferay.portal.SystemException) {
0131:                            throw (com.liferay.portal.SystemException) e;
0132:                        }
0133:
0134:                        if (e instanceof  com.liferay.portal.PortalException) {
0135:                            throw (com.liferay.portal.PortalException) e;
0136:                        }
0137:
0138:                        throw new com.liferay.portal.SystemException(e);
0139:                    }
0140:
0141:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
0142:                } catch (com.liferay.portal.SystemException se) {
0143:                    _log.error(se, se);
0144:
0145:                    throw se;
0146:                }
0147:            }
0148:
0149:            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0150:                    HttpPrincipal httpPrincipal, long categoryId,
0151:                    java.lang.String subject, java.lang.String body,
0152:                    java.util.List files, boolean anonymous, double priority,
0153:                    java.lang.String[] tagsEntries,
0154:                    boolean addCommunityPermissions, boolean addGuestPermissions)
0155:                    throws com.liferay.portal.SystemException,
0156:                    com.liferay.portal.PortalException {
0157:                try {
0158:                    Object paramObj0 = new LongWrapper(categoryId);
0159:
0160:                    Object paramObj1 = subject;
0161:
0162:                    if (subject == null) {
0163:                        paramObj1 = new NullWrapper("java.lang.String");
0164:                    }
0165:
0166:                    Object paramObj2 = body;
0167:
0168:                    if (body == null) {
0169:                        paramObj2 = new NullWrapper("java.lang.String");
0170:                    }
0171:
0172:                    Object paramObj3 = files;
0173:
0174:                    if (files == null) {
0175:                        paramObj3 = new NullWrapper("java.util.List");
0176:                    }
0177:
0178:                    Object paramObj4 = new BooleanWrapper(anonymous);
0179:
0180:                    Object paramObj5 = new DoubleWrapper(priority);
0181:
0182:                    Object paramObj6 = tagsEntries;
0183:
0184:                    if (tagsEntries == null) {
0185:                        paramObj6 = new NullWrapper("[Ljava.lang.String;");
0186:                    }
0187:
0188:                    Object paramObj7 = new BooleanWrapper(
0189:                            addCommunityPermissions);
0190:
0191:                    Object paramObj8 = new BooleanWrapper(addGuestPermissions);
0192:
0193:                    MethodWrapper methodWrapper = new MethodWrapper(
0194:                            MBMessageServiceUtil.class.getName(), "addMessage",
0195:                            new Object[] { paramObj0, paramObj1, paramObj2,
0196:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0197:                                    paramObj7, paramObj8 });
0198:
0199:                    Object returnObj = null;
0200:
0201:                    try {
0202:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0203:                                methodWrapper);
0204:                    } catch (Exception e) {
0205:                        if (e instanceof  com.liferay.portal.SystemException) {
0206:                            throw (com.liferay.portal.SystemException) e;
0207:                        }
0208:
0209:                        if (e instanceof  com.liferay.portal.PortalException) {
0210:                            throw (com.liferay.portal.PortalException) e;
0211:                        }
0212:
0213:                        throw new com.liferay.portal.SystemException(e);
0214:                    }
0215:
0216:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
0217:                } catch (com.liferay.portal.SystemException se) {
0218:                    _log.error(se, se);
0219:
0220:                    throw se;
0221:                }
0222:            }
0223:
0224:            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0225:                    HttpPrincipal httpPrincipal, long categoryId,
0226:                    java.lang.String subject, java.lang.String body,
0227:                    java.util.List files, boolean anonymous, double priority,
0228:                    java.lang.String[] tagsEntries,
0229:                    java.lang.String[] communityPermissions,
0230:                    java.lang.String[] guestPermissions)
0231:                    throws com.liferay.portal.SystemException,
0232:                    com.liferay.portal.PortalException {
0233:                try {
0234:                    Object paramObj0 = new LongWrapper(categoryId);
0235:
0236:                    Object paramObj1 = subject;
0237:
0238:                    if (subject == null) {
0239:                        paramObj1 = new NullWrapper("java.lang.String");
0240:                    }
0241:
0242:                    Object paramObj2 = body;
0243:
0244:                    if (body == null) {
0245:                        paramObj2 = new NullWrapper("java.lang.String");
0246:                    }
0247:
0248:                    Object paramObj3 = files;
0249:
0250:                    if (files == null) {
0251:                        paramObj3 = new NullWrapper("java.util.List");
0252:                    }
0253:
0254:                    Object paramObj4 = new BooleanWrapper(anonymous);
0255:
0256:                    Object paramObj5 = new DoubleWrapper(priority);
0257:
0258:                    Object paramObj6 = tagsEntries;
0259:
0260:                    if (tagsEntries == null) {
0261:                        paramObj6 = new NullWrapper("[Ljava.lang.String;");
0262:                    }
0263:
0264:                    Object paramObj7 = communityPermissions;
0265:
0266:                    if (communityPermissions == null) {
0267:                        paramObj7 = new NullWrapper("[Ljava.lang.String;");
0268:                    }
0269:
0270:                    Object paramObj8 = guestPermissions;
0271:
0272:                    if (guestPermissions == null) {
0273:                        paramObj8 = new NullWrapper("[Ljava.lang.String;");
0274:                    }
0275:
0276:                    MethodWrapper methodWrapper = new MethodWrapper(
0277:                            MBMessageServiceUtil.class.getName(), "addMessage",
0278:                            new Object[] { paramObj0, paramObj1, paramObj2,
0279:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0280:                                    paramObj7, paramObj8 });
0281:
0282:                    Object returnObj = null;
0283:
0284:                    try {
0285:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0286:                                methodWrapper);
0287:                    } catch (Exception e) {
0288:                        if (e instanceof  com.liferay.portal.SystemException) {
0289:                            throw (com.liferay.portal.SystemException) e;
0290:                        }
0291:
0292:                        if (e instanceof  com.liferay.portal.PortalException) {
0293:                            throw (com.liferay.portal.PortalException) e;
0294:                        }
0295:
0296:                        throw new com.liferay.portal.SystemException(e);
0297:                    }
0298:
0299:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
0300:                } catch (com.liferay.portal.SystemException se) {
0301:                    _log.error(se, se);
0302:
0303:                    throw se;
0304:                }
0305:            }
0306:
0307:            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0308:                    HttpPrincipal httpPrincipal, long categoryId,
0309:                    java.lang.String subject, java.lang.String body,
0310:                    java.util.List files, boolean anonymous, double priority,
0311:                    java.lang.String[] tagsEntries,
0312:                    javax.portlet.PortletPreferences prefs,
0313:                    boolean addCommunityPermissions,
0314:                    boolean addGuestPermissions,
0315:                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
0316:                    throws com.liferay.portal.SystemException,
0317:                    com.liferay.portal.PortalException {
0318:                try {
0319:                    Object paramObj0 = new LongWrapper(categoryId);
0320:
0321:                    Object paramObj1 = subject;
0322:
0323:                    if (subject == null) {
0324:                        paramObj1 = new NullWrapper("java.lang.String");
0325:                    }
0326:
0327:                    Object paramObj2 = body;
0328:
0329:                    if (body == null) {
0330:                        paramObj2 = new NullWrapper("java.lang.String");
0331:                    }
0332:
0333:                    Object paramObj3 = files;
0334:
0335:                    if (files == null) {
0336:                        paramObj3 = new NullWrapper("java.util.List");
0337:                    }
0338:
0339:                    Object paramObj4 = new BooleanWrapper(anonymous);
0340:
0341:                    Object paramObj5 = new DoubleWrapper(priority);
0342:
0343:                    Object paramObj6 = tagsEntries;
0344:
0345:                    if (tagsEntries == null) {
0346:                        paramObj6 = new NullWrapper("[Ljava.lang.String;");
0347:                    }
0348:
0349:                    Object paramObj7 = prefs;
0350:
0351:                    if (prefs == null) {
0352:                        paramObj7 = new NullWrapper(
0353:                                "javax.portlet.PortletPreferences");
0354:                    }
0355:
0356:                    Object paramObj8 = new BooleanWrapper(
0357:                            addCommunityPermissions);
0358:
0359:                    Object paramObj9 = new BooleanWrapper(addGuestPermissions);
0360:
0361:                    Object paramObj10 = themeDisplay;
0362:
0363:                    if (themeDisplay == null) {
0364:                        paramObj10 = new NullWrapper(
0365:                                "com.liferay.portal.theme.ThemeDisplay");
0366:                    }
0367:
0368:                    MethodWrapper methodWrapper = new MethodWrapper(
0369:                            MBMessageServiceUtil.class.getName(),
0370:                            "addMessage",
0371:                            new Object[] { paramObj0, paramObj1, paramObj2,
0372:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0373:                                    paramObj7, paramObj8, paramObj9, paramObj10 });
0374:
0375:                    Object returnObj = null;
0376:
0377:                    try {
0378:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0379:                                methodWrapper);
0380:                    } catch (Exception e) {
0381:                        if (e instanceof  com.liferay.portal.SystemException) {
0382:                            throw (com.liferay.portal.SystemException) e;
0383:                        }
0384:
0385:                        if (e instanceof  com.liferay.portal.PortalException) {
0386:                            throw (com.liferay.portal.PortalException) e;
0387:                        }
0388:
0389:                        throw new com.liferay.portal.SystemException(e);
0390:                    }
0391:
0392:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
0393:                } catch (com.liferay.portal.SystemException se) {
0394:                    _log.error(se, se);
0395:
0396:                    throw se;
0397:                }
0398:            }
0399:
0400:            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0401:                    HttpPrincipal httpPrincipal, long categoryId,
0402:                    java.lang.String subject, java.lang.String body,
0403:                    java.util.List files, boolean anonymous, double priority,
0404:                    java.lang.String[] tagsEntries,
0405:                    javax.portlet.PortletPreferences prefs,
0406:                    java.lang.String[] communityPermissions,
0407:                    java.lang.String[] guestPermissions,
0408:                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
0409:                    throws com.liferay.portal.SystemException,
0410:                    com.liferay.portal.PortalException {
0411:                try {
0412:                    Object paramObj0 = new LongWrapper(categoryId);
0413:
0414:                    Object paramObj1 = subject;
0415:
0416:                    if (subject == null) {
0417:                        paramObj1 = new NullWrapper("java.lang.String");
0418:                    }
0419:
0420:                    Object paramObj2 = body;
0421:
0422:                    if (body == null) {
0423:                        paramObj2 = new NullWrapper("java.lang.String");
0424:                    }
0425:
0426:                    Object paramObj3 = files;
0427:
0428:                    if (files == null) {
0429:                        paramObj3 = new NullWrapper("java.util.List");
0430:                    }
0431:
0432:                    Object paramObj4 = new BooleanWrapper(anonymous);
0433:
0434:                    Object paramObj5 = new DoubleWrapper(priority);
0435:
0436:                    Object paramObj6 = tagsEntries;
0437:
0438:                    if (tagsEntries == null) {
0439:                        paramObj6 = new NullWrapper("[Ljava.lang.String;");
0440:                    }
0441:
0442:                    Object paramObj7 = prefs;
0443:
0444:                    if (prefs == null) {
0445:                        paramObj7 = new NullWrapper(
0446:                                "javax.portlet.PortletPreferences");
0447:                    }
0448:
0449:                    Object paramObj8 = communityPermissions;
0450:
0451:                    if (communityPermissions == null) {
0452:                        paramObj8 = new NullWrapper("[Ljava.lang.String;");
0453:                    }
0454:
0455:                    Object paramObj9 = guestPermissions;
0456:
0457:                    if (guestPermissions == null) {
0458:                        paramObj9 = new NullWrapper("[Ljava.lang.String;");
0459:                    }
0460:
0461:                    Object paramObj10 = themeDisplay;
0462:
0463:                    if (themeDisplay == null) {
0464:                        paramObj10 = new NullWrapper(
0465:                                "com.liferay.portal.theme.ThemeDisplay");
0466:                    }
0467:
0468:                    MethodWrapper methodWrapper = new MethodWrapper(
0469:                            MBMessageServiceUtil.class.getName(),
0470:                            "addMessage",
0471:                            new Object[] { paramObj0, paramObj1, paramObj2,
0472:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0473:                                    paramObj7, paramObj8, paramObj9, paramObj10 });
0474:
0475:                    Object returnObj = null;
0476:
0477:                    try {
0478:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0479:                                methodWrapper);
0480:                    } catch (Exception e) {
0481:                        if (e instanceof  com.liferay.portal.SystemException) {
0482:                            throw (com.liferay.portal.SystemException) e;
0483:                        }
0484:
0485:                        if (e instanceof  com.liferay.portal.PortalException) {
0486:                            throw (com.liferay.portal.PortalException) e;
0487:                        }
0488:
0489:                        throw new com.liferay.portal.SystemException(e);
0490:                    }
0491:
0492:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
0493:                } catch (com.liferay.portal.SystemException se) {
0494:                    _log.error(se, se);
0495:
0496:                    throw se;
0497:                }
0498:            }
0499:
0500:            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0501:                    HttpPrincipal httpPrincipal, long categoryId,
0502:                    long threadId, long parentMessageId,
0503:                    java.lang.String subject, java.lang.String body,
0504:                    java.util.List files, boolean anonymous, double priority,
0505:                    java.lang.String[] tagsEntries,
0506:                    boolean addCommunityPermissions, boolean addGuestPermissions)
0507:                    throws com.liferay.portal.SystemException,
0508:                    com.liferay.portal.PortalException {
0509:                try {
0510:                    Object paramObj0 = new LongWrapper(categoryId);
0511:
0512:                    Object paramObj1 = new LongWrapper(threadId);
0513:
0514:                    Object paramObj2 = new LongWrapper(parentMessageId);
0515:
0516:                    Object paramObj3 = subject;
0517:
0518:                    if (subject == null) {
0519:                        paramObj3 = new NullWrapper("java.lang.String");
0520:                    }
0521:
0522:                    Object paramObj4 = body;
0523:
0524:                    if (body == null) {
0525:                        paramObj4 = new NullWrapper("java.lang.String");
0526:                    }
0527:
0528:                    Object paramObj5 = files;
0529:
0530:                    if (files == null) {
0531:                        paramObj5 = new NullWrapper("java.util.List");
0532:                    }
0533:
0534:                    Object paramObj6 = new BooleanWrapper(anonymous);
0535:
0536:                    Object paramObj7 = new DoubleWrapper(priority);
0537:
0538:                    Object paramObj8 = tagsEntries;
0539:
0540:                    if (tagsEntries == null) {
0541:                        paramObj8 = new NullWrapper("[Ljava.lang.String;");
0542:                    }
0543:
0544:                    Object paramObj9 = new BooleanWrapper(
0545:                            addCommunityPermissions);
0546:
0547:                    Object paramObj10 = new BooleanWrapper(addGuestPermissions);
0548:
0549:                    MethodWrapper methodWrapper = new MethodWrapper(
0550:                            MBMessageServiceUtil.class.getName(),
0551:                            "addMessage",
0552:                            new Object[] { paramObj0, paramObj1, paramObj2,
0553:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0554:                                    paramObj7, paramObj8, paramObj9, paramObj10 });
0555:
0556:                    Object returnObj = null;
0557:
0558:                    try {
0559:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0560:                                methodWrapper);
0561:                    } catch (Exception e) {
0562:                        if (e instanceof  com.liferay.portal.SystemException) {
0563:                            throw (com.liferay.portal.SystemException) e;
0564:                        }
0565:
0566:                        if (e instanceof  com.liferay.portal.PortalException) {
0567:                            throw (com.liferay.portal.PortalException) e;
0568:                        }
0569:
0570:                        throw new com.liferay.portal.SystemException(e);
0571:                    }
0572:
0573:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
0574:                } catch (com.liferay.portal.SystemException se) {
0575:                    _log.error(se, se);
0576:
0577:                    throw se;
0578:                }
0579:            }
0580:
0581:            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0582:                    HttpPrincipal httpPrincipal, long categoryId,
0583:                    long threadId, long parentMessageId,
0584:                    java.lang.String subject, java.lang.String body,
0585:                    java.util.List files, boolean anonymous, double priority,
0586:                    java.lang.String[] tagsEntries,
0587:                    java.lang.String[] communityPermissions,
0588:                    java.lang.String[] guestPermissions)
0589:                    throws com.liferay.portal.SystemException,
0590:                    com.liferay.portal.PortalException {
0591:                try {
0592:                    Object paramObj0 = new LongWrapper(categoryId);
0593:
0594:                    Object paramObj1 = new LongWrapper(threadId);
0595:
0596:                    Object paramObj2 = new LongWrapper(parentMessageId);
0597:
0598:                    Object paramObj3 = subject;
0599:
0600:                    if (subject == null) {
0601:                        paramObj3 = new NullWrapper("java.lang.String");
0602:                    }
0603:
0604:                    Object paramObj4 = body;
0605:
0606:                    if (body == null) {
0607:                        paramObj4 = new NullWrapper("java.lang.String");
0608:                    }
0609:
0610:                    Object paramObj5 = files;
0611:
0612:                    if (files == null) {
0613:                        paramObj5 = new NullWrapper("java.util.List");
0614:                    }
0615:
0616:                    Object paramObj6 = new BooleanWrapper(anonymous);
0617:
0618:                    Object paramObj7 = new DoubleWrapper(priority);
0619:
0620:                    Object paramObj8 = tagsEntries;
0621:
0622:                    if (tagsEntries == null) {
0623:                        paramObj8 = new NullWrapper("[Ljava.lang.String;");
0624:                    }
0625:
0626:                    Object paramObj9 = communityPermissions;
0627:
0628:                    if (communityPermissions == null) {
0629:                        paramObj9 = new NullWrapper("[Ljava.lang.String;");
0630:                    }
0631:
0632:                    Object paramObj10 = guestPermissions;
0633:
0634:                    if (guestPermissions == null) {
0635:                        paramObj10 = new NullWrapper("[Ljava.lang.String;");
0636:                    }
0637:
0638:                    MethodWrapper methodWrapper = new MethodWrapper(
0639:                            MBMessageServiceUtil.class.getName(),
0640:                            "addMessage",
0641:                            new Object[] { paramObj0, paramObj1, paramObj2,
0642:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0643:                                    paramObj7, paramObj8, paramObj9, paramObj10 });
0644:
0645:                    Object returnObj = null;
0646:
0647:                    try {
0648:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0649:                                methodWrapper);
0650:                    } catch (Exception e) {
0651:                        if (e instanceof  com.liferay.portal.SystemException) {
0652:                            throw (com.liferay.portal.SystemException) e;
0653:                        }
0654:
0655:                        if (e instanceof  com.liferay.portal.PortalException) {
0656:                            throw (com.liferay.portal.PortalException) e;
0657:                        }
0658:
0659:                        throw new com.liferay.portal.SystemException(e);
0660:                    }
0661:
0662:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
0663:                } catch (com.liferay.portal.SystemException se) {
0664:                    _log.error(se, se);
0665:
0666:                    throw se;
0667:                }
0668:            }
0669:
0670:            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0671:                    HttpPrincipal httpPrincipal, long categoryId,
0672:                    long threadId, long parentMessageId,
0673:                    java.lang.String subject, java.lang.String body,
0674:                    java.util.List files, boolean anonymous, double priority,
0675:                    java.lang.String[] tagsEntries,
0676:                    javax.portlet.PortletPreferences prefs,
0677:                    boolean addCommunityPermissions,
0678:                    boolean addGuestPermissions,
0679:                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
0680:                    throws com.liferay.portal.SystemException,
0681:                    com.liferay.portal.PortalException {
0682:                try {
0683:                    Object paramObj0 = new LongWrapper(categoryId);
0684:
0685:                    Object paramObj1 = new LongWrapper(threadId);
0686:
0687:                    Object paramObj2 = new LongWrapper(parentMessageId);
0688:
0689:                    Object paramObj3 = subject;
0690:
0691:                    if (subject == null) {
0692:                        paramObj3 = new NullWrapper("java.lang.String");
0693:                    }
0694:
0695:                    Object paramObj4 = body;
0696:
0697:                    if (body == null) {
0698:                        paramObj4 = new NullWrapper("java.lang.String");
0699:                    }
0700:
0701:                    Object paramObj5 = files;
0702:
0703:                    if (files == null) {
0704:                        paramObj5 = new NullWrapper("java.util.List");
0705:                    }
0706:
0707:                    Object paramObj6 = new BooleanWrapper(anonymous);
0708:
0709:                    Object paramObj7 = new DoubleWrapper(priority);
0710:
0711:                    Object paramObj8 = tagsEntries;
0712:
0713:                    if (tagsEntries == null) {
0714:                        paramObj8 = new NullWrapper("[Ljava.lang.String;");
0715:                    }
0716:
0717:                    Object paramObj9 = prefs;
0718:
0719:                    if (prefs == null) {
0720:                        paramObj9 = new NullWrapper(
0721:                                "javax.portlet.PortletPreferences");
0722:                    }
0723:
0724:                    Object paramObj10 = new BooleanWrapper(
0725:                            addCommunityPermissions);
0726:
0727:                    Object paramObj11 = new BooleanWrapper(addGuestPermissions);
0728:
0729:                    Object paramObj12 = themeDisplay;
0730:
0731:                    if (themeDisplay == null) {
0732:                        paramObj12 = new NullWrapper(
0733:                                "com.liferay.portal.theme.ThemeDisplay");
0734:                    }
0735:
0736:                    MethodWrapper methodWrapper = new MethodWrapper(
0737:                            MBMessageServiceUtil.class.getName(), "addMessage",
0738:                            new Object[] { paramObj0, paramObj1, paramObj2,
0739:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0740:                                    paramObj7, paramObj8, paramObj9,
0741:                                    paramObj10, paramObj11, paramObj12 });
0742:
0743:                    Object returnObj = null;
0744:
0745:                    try {
0746:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0747:                                methodWrapper);
0748:                    } catch (Exception e) {
0749:                        if (e instanceof  com.liferay.portal.SystemException) {
0750:                            throw (com.liferay.portal.SystemException) e;
0751:                        }
0752:
0753:                        if (e instanceof  com.liferay.portal.PortalException) {
0754:                            throw (com.liferay.portal.PortalException) e;
0755:                        }
0756:
0757:                        throw new com.liferay.portal.SystemException(e);
0758:                    }
0759:
0760:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
0761:                } catch (com.liferay.portal.SystemException se) {
0762:                    _log.error(se, se);
0763:
0764:                    throw se;
0765:                }
0766:            }
0767:
0768:            public static com.liferay.portlet.messageboards.model.MBMessage addMessage(
0769:                    HttpPrincipal httpPrincipal, long categoryId,
0770:                    long threadId, long parentMessageId,
0771:                    java.lang.String subject, java.lang.String body,
0772:                    java.util.List files, boolean anonymous, double priority,
0773:                    java.lang.String[] tagsEntries,
0774:                    javax.portlet.PortletPreferences prefs,
0775:                    java.lang.String[] communityPermissions,
0776:                    java.lang.String[] guestPermissions,
0777:                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
0778:                    throws com.liferay.portal.SystemException,
0779:                    com.liferay.portal.PortalException {
0780:                try {
0781:                    Object paramObj0 = new LongWrapper(categoryId);
0782:
0783:                    Object paramObj1 = new LongWrapper(threadId);
0784:
0785:                    Object paramObj2 = new LongWrapper(parentMessageId);
0786:
0787:                    Object paramObj3 = subject;
0788:
0789:                    if (subject == null) {
0790:                        paramObj3 = new NullWrapper("java.lang.String");
0791:                    }
0792:
0793:                    Object paramObj4 = body;
0794:
0795:                    if (body == null) {
0796:                        paramObj4 = new NullWrapper("java.lang.String");
0797:                    }
0798:
0799:                    Object paramObj5 = files;
0800:
0801:                    if (files == null) {
0802:                        paramObj5 = new NullWrapper("java.util.List");
0803:                    }
0804:
0805:                    Object paramObj6 = new BooleanWrapper(anonymous);
0806:
0807:                    Object paramObj7 = new DoubleWrapper(priority);
0808:
0809:                    Object paramObj8 = tagsEntries;
0810:
0811:                    if (tagsEntries == null) {
0812:                        paramObj8 = new NullWrapper("[Ljava.lang.String;");
0813:                    }
0814:
0815:                    Object paramObj9 = prefs;
0816:
0817:                    if (prefs == null) {
0818:                        paramObj9 = new NullWrapper(
0819:                                "javax.portlet.PortletPreferences");
0820:                    }
0821:
0822:                    Object paramObj10 = communityPermissions;
0823:
0824:                    if (communityPermissions == null) {
0825:                        paramObj10 = new NullWrapper("[Ljava.lang.String;");
0826:                    }
0827:
0828:                    Object paramObj11 = guestPermissions;
0829:
0830:                    if (guestPermissions == null) {
0831:                        paramObj11 = new NullWrapper("[Ljava.lang.String;");
0832:                    }
0833:
0834:                    Object paramObj12 = themeDisplay;
0835:
0836:                    if (themeDisplay == null) {
0837:                        paramObj12 = new NullWrapper(
0838:                                "com.liferay.portal.theme.ThemeDisplay");
0839:                    }
0840:
0841:                    MethodWrapper methodWrapper = new MethodWrapper(
0842:                            MBMessageServiceUtil.class.getName(), "addMessage",
0843:                            new Object[] { paramObj0, paramObj1, paramObj2,
0844:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0845:                                    paramObj7, paramObj8, paramObj9,
0846:                                    paramObj10, paramObj11, paramObj12 });
0847:
0848:                    Object returnObj = null;
0849:
0850:                    try {
0851:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0852:                                methodWrapper);
0853:                    } catch (Exception e) {
0854:                        if (e instanceof  com.liferay.portal.SystemException) {
0855:                            throw (com.liferay.portal.SystemException) e;
0856:                        }
0857:
0858:                        if (e instanceof  com.liferay.portal.PortalException) {
0859:                            throw (com.liferay.portal.PortalException) e;
0860:                        }
0861:
0862:                        throw new com.liferay.portal.SystemException(e);
0863:                    }
0864:
0865:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
0866:                } catch (com.liferay.portal.SystemException se) {
0867:                    _log.error(se, se);
0868:
0869:                    throw se;
0870:                }
0871:            }
0872:
0873:            public static void deleteDiscussionMessage(
0874:                    HttpPrincipal httpPrincipal, long groupId,
0875:                    java.lang.String className, long classPK, long messageId)
0876:                    throws com.liferay.portal.SystemException,
0877:                    com.liferay.portal.PortalException {
0878:                try {
0879:                    Object paramObj0 = new LongWrapper(groupId);
0880:
0881:                    Object paramObj1 = className;
0882:
0883:                    if (className == null) {
0884:                        paramObj1 = new NullWrapper("java.lang.String");
0885:                    }
0886:
0887:                    Object paramObj2 = new LongWrapper(classPK);
0888:
0889:                    Object paramObj3 = new LongWrapper(messageId);
0890:
0891:                    MethodWrapper methodWrapper = new MethodWrapper(
0892:                            MBMessageServiceUtil.class.getName(),
0893:                            "deleteDiscussionMessage",
0894:                            new Object[] { paramObj0, paramObj1, paramObj2,
0895:                                    paramObj3 });
0896:
0897:                    try {
0898:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
0899:                    } catch (Exception e) {
0900:                        if (e instanceof  com.liferay.portal.SystemException) {
0901:                            throw (com.liferay.portal.SystemException) e;
0902:                        }
0903:
0904:                        if (e instanceof  com.liferay.portal.PortalException) {
0905:                            throw (com.liferay.portal.PortalException) e;
0906:                        }
0907:
0908:                        throw new com.liferay.portal.SystemException(e);
0909:                    }
0910:                } catch (com.liferay.portal.SystemException se) {
0911:                    _log.error(se, se);
0912:
0913:                    throw se;
0914:                }
0915:            }
0916:
0917:            public static void deleteMessage(HttpPrincipal httpPrincipal,
0918:                    long messageId) throws com.liferay.portal.SystemException,
0919:                    com.liferay.portal.PortalException {
0920:                try {
0921:                    Object paramObj0 = new LongWrapper(messageId);
0922:
0923:                    MethodWrapper methodWrapper = new MethodWrapper(
0924:                            MBMessageServiceUtil.class.getName(),
0925:                            "deleteMessage", new Object[] { paramObj0 });
0926:
0927:                    try {
0928:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
0929:                    } catch (Exception e) {
0930:                        if (e instanceof  com.liferay.portal.SystemException) {
0931:                            throw (com.liferay.portal.SystemException) e;
0932:                        }
0933:
0934:                        if (e instanceof  com.liferay.portal.PortalException) {
0935:                            throw (com.liferay.portal.PortalException) e;
0936:                        }
0937:
0938:                        throw new com.liferay.portal.SystemException(e);
0939:                    }
0940:                } catch (com.liferay.portal.SystemException se) {
0941:                    _log.error(se, se);
0942:
0943:                    throw se;
0944:                }
0945:            }
0946:
0947:            public static java.util.List getCategoryMessages(
0948:                    HttpPrincipal httpPrincipal, long categoryId, int begin,
0949:                    int end) throws com.liferay.portal.SystemException,
0950:                    com.liferay.portal.PortalException {
0951:                try {
0952:                    Object paramObj0 = new LongWrapper(categoryId);
0953:
0954:                    Object paramObj1 = new IntegerWrapper(begin);
0955:
0956:                    Object paramObj2 = new IntegerWrapper(end);
0957:
0958:                    MethodWrapper methodWrapper = new MethodWrapper(
0959:                            MBMessageServiceUtil.class.getName(),
0960:                            "getCategoryMessages", new Object[] { paramObj0,
0961:                                    paramObj1, paramObj2 });
0962:
0963:                    Object returnObj = null;
0964:
0965:                    try {
0966:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0967:                                methodWrapper);
0968:                    } catch (Exception e) {
0969:                        if (e instanceof  com.liferay.portal.SystemException) {
0970:                            throw (com.liferay.portal.SystemException) e;
0971:                        }
0972:
0973:                        if (e instanceof  com.liferay.portal.PortalException) {
0974:                            throw (com.liferay.portal.PortalException) e;
0975:                        }
0976:
0977:                        throw new com.liferay.portal.SystemException(e);
0978:                    }
0979:
0980:                    return (java.util.List) returnObj;
0981:                } catch (com.liferay.portal.SystemException se) {
0982:                    _log.error(se, se);
0983:
0984:                    throw se;
0985:                }
0986:            }
0987:
0988:            public static int getCategoryMessagesCount(
0989:                    HttpPrincipal httpPrincipal, long categoryId)
0990:                    throws com.liferay.portal.SystemException,
0991:                    com.liferay.portal.PortalException {
0992:                try {
0993:                    Object paramObj0 = new LongWrapper(categoryId);
0994:
0995:                    MethodWrapper methodWrapper = new MethodWrapper(
0996:                            MBMessageServiceUtil.class.getName(),
0997:                            "getCategoryMessagesCount",
0998:                            new Object[] { paramObj0 });
0999:
1000:                    Object returnObj = null;
1001:
1002:                    try {
1003:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1004:                                methodWrapper);
1005:                    } catch (Exception e) {
1006:                        if (e instanceof  com.liferay.portal.SystemException) {
1007:                            throw (com.liferay.portal.SystemException) e;
1008:                        }
1009:
1010:                        if (e instanceof  com.liferay.portal.PortalException) {
1011:                            throw (com.liferay.portal.PortalException) e;
1012:                        }
1013:
1014:                        throw new com.liferay.portal.SystemException(e);
1015:                    }
1016:
1017:                    return ((Integer) returnObj).intValue();
1018:                } catch (com.liferay.portal.SystemException se) {
1019:                    _log.error(se, se);
1020:
1021:                    throw se;
1022:                }
1023:            }
1024:
1025:            public static java.lang.String getCategoryMessagesRSS(
1026:                    HttpPrincipal httpPrincipal, long categoryId, int max,
1027:                    java.lang.String type, double version,
1028:                    java.lang.String displayStyle, java.lang.String feedURL,
1029:                    java.lang.String entryURL)
1030:                    throws com.liferay.portal.SystemException,
1031:                    com.liferay.portal.PortalException {
1032:                try {
1033:                    Object paramObj0 = new LongWrapper(categoryId);
1034:
1035:                    Object paramObj1 = new IntegerWrapper(max);
1036:
1037:                    Object paramObj2 = type;
1038:
1039:                    if (type == null) {
1040:                        paramObj2 = new NullWrapper("java.lang.String");
1041:                    }
1042:
1043:                    Object paramObj3 = new DoubleWrapper(version);
1044:
1045:                    Object paramObj4 = displayStyle;
1046:
1047:                    if (displayStyle == null) {
1048:                        paramObj4 = new NullWrapper("java.lang.String");
1049:                    }
1050:
1051:                    Object paramObj5 = feedURL;
1052:
1053:                    if (feedURL == null) {
1054:                        paramObj5 = new NullWrapper("java.lang.String");
1055:                    }
1056:
1057:                    Object paramObj6 = entryURL;
1058:
1059:                    if (entryURL == null) {
1060:                        paramObj6 = new NullWrapper("java.lang.String");
1061:                    }
1062:
1063:                    MethodWrapper methodWrapper = new MethodWrapper(
1064:                            MBMessageServiceUtil.class.getName(),
1065:                            "getCategoryMessagesRSS", new Object[] { paramObj0,
1066:                                    paramObj1, paramObj2, paramObj3, paramObj4,
1067:                                    paramObj5, paramObj6 });
1068:
1069:                    Object returnObj = null;
1070:
1071:                    try {
1072:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1073:                                methodWrapper);
1074:                    } catch (Exception e) {
1075:                        if (e instanceof  com.liferay.portal.SystemException) {
1076:                            throw (com.liferay.portal.SystemException) e;
1077:                        }
1078:
1079:                        if (e instanceof  com.liferay.portal.PortalException) {
1080:                            throw (com.liferay.portal.PortalException) e;
1081:                        }
1082:
1083:                        throw new com.liferay.portal.SystemException(e);
1084:                    }
1085:
1086:                    return (java.lang.String) returnObj;
1087:                } catch (com.liferay.portal.SystemException se) {
1088:                    _log.error(se, se);
1089:
1090:                    throw se;
1091:                }
1092:            }
1093:
1094:            public static java.lang.String getCompanyMessagesRSS(
1095:                    HttpPrincipal httpPrincipal, long companyId, int max,
1096:                    java.lang.String type, double version,
1097:                    java.lang.String displayStyle, java.lang.String feedURL,
1098:                    java.lang.String entryURL)
1099:                    throws com.liferay.portal.SystemException,
1100:                    com.liferay.portal.PortalException {
1101:                try {
1102:                    Object paramObj0 = new LongWrapper(companyId);
1103:
1104:                    Object paramObj1 = new IntegerWrapper(max);
1105:
1106:                    Object paramObj2 = type;
1107:
1108:                    if (type == null) {
1109:                        paramObj2 = new NullWrapper("java.lang.String");
1110:                    }
1111:
1112:                    Object paramObj3 = new DoubleWrapper(version);
1113:
1114:                    Object paramObj4 = displayStyle;
1115:
1116:                    if (displayStyle == null) {
1117:                        paramObj4 = new NullWrapper("java.lang.String");
1118:                    }
1119:
1120:                    Object paramObj5 = feedURL;
1121:
1122:                    if (feedURL == null) {
1123:                        paramObj5 = new NullWrapper("java.lang.String");
1124:                    }
1125:
1126:                    Object paramObj6 = entryURL;
1127:
1128:                    if (entryURL == null) {
1129:                        paramObj6 = new NullWrapper("java.lang.String");
1130:                    }
1131:
1132:                    MethodWrapper methodWrapper = new MethodWrapper(
1133:                            MBMessageServiceUtil.class.getName(),
1134:                            "getCompanyMessagesRSS", new Object[] { paramObj0,
1135:                                    paramObj1, paramObj2, paramObj3, paramObj4,
1136:                                    paramObj5, paramObj6 });
1137:
1138:                    Object returnObj = null;
1139:
1140:                    try {
1141:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1142:                                methodWrapper);
1143:                    } catch (Exception e) {
1144:                        if (e instanceof  com.liferay.portal.SystemException) {
1145:                            throw (com.liferay.portal.SystemException) e;
1146:                        }
1147:
1148:                        if (e instanceof  com.liferay.portal.PortalException) {
1149:                            throw (com.liferay.portal.PortalException) e;
1150:                        }
1151:
1152:                        throw new com.liferay.portal.SystemException(e);
1153:                    }
1154:
1155:                    return (java.lang.String) returnObj;
1156:                } catch (com.liferay.portal.SystemException se) {
1157:                    _log.error(se, se);
1158:
1159:                    throw se;
1160:                }
1161:            }
1162:
1163:            public static java.lang.String getGroupMessagesRSS(
1164:                    HttpPrincipal httpPrincipal, long groupId, int max,
1165:                    java.lang.String type, double version,
1166:                    java.lang.String displayStyle, java.lang.String feedURL,
1167:                    java.lang.String entryURL)
1168:                    throws com.liferay.portal.SystemException,
1169:                    com.liferay.portal.PortalException {
1170:                try {
1171:                    Object paramObj0 = new LongWrapper(groupId);
1172:
1173:                    Object paramObj1 = new IntegerWrapper(max);
1174:
1175:                    Object paramObj2 = type;
1176:
1177:                    if (type == null) {
1178:                        paramObj2 = new NullWrapper("java.lang.String");
1179:                    }
1180:
1181:                    Object paramObj3 = new DoubleWrapper(version);
1182:
1183:                    Object paramObj4 = displayStyle;
1184:
1185:                    if (displayStyle == null) {
1186:                        paramObj4 = new NullWrapper("java.lang.String");
1187:                    }
1188:
1189:                    Object paramObj5 = feedURL;
1190:
1191:                    if (feedURL == null) {
1192:                        paramObj5 = new NullWrapper("java.lang.String");
1193:                    }
1194:
1195:                    Object paramObj6 = entryURL;
1196:
1197:                    if (entryURL == null) {
1198:                        paramObj6 = new NullWrapper("java.lang.String");
1199:                    }
1200:
1201:                    MethodWrapper methodWrapper = new MethodWrapper(
1202:                            MBMessageServiceUtil.class.getName(),
1203:                            "getGroupMessagesRSS", new Object[] { paramObj0,
1204:                                    paramObj1, paramObj2, paramObj3, paramObj4,
1205:                                    paramObj5, paramObj6 });
1206:
1207:                    Object returnObj = null;
1208:
1209:                    try {
1210:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1211:                                methodWrapper);
1212:                    } catch (Exception e) {
1213:                        if (e instanceof  com.liferay.portal.SystemException) {
1214:                            throw (com.liferay.portal.SystemException) e;
1215:                        }
1216:
1217:                        if (e instanceof  com.liferay.portal.PortalException) {
1218:                            throw (com.liferay.portal.PortalException) e;
1219:                        }
1220:
1221:                        throw new com.liferay.portal.SystemException(e);
1222:                    }
1223:
1224:                    return (java.lang.String) returnObj;
1225:                } catch (com.liferay.portal.SystemException se) {
1226:                    _log.error(se, se);
1227:
1228:                    throw se;
1229:                }
1230:            }
1231:
1232:            public static java.lang.String getGroupMessagesRSS(
1233:                    HttpPrincipal httpPrincipal, long groupId, long userId,
1234:                    int max, java.lang.String type, double version,
1235:                    java.lang.String displayStyle, java.lang.String feedURL,
1236:                    java.lang.String entryURL)
1237:                    throws com.liferay.portal.SystemException,
1238:                    com.liferay.portal.PortalException {
1239:                try {
1240:                    Object paramObj0 = new LongWrapper(groupId);
1241:
1242:                    Object paramObj1 = new LongWrapper(userId);
1243:
1244:                    Object paramObj2 = new IntegerWrapper(max);
1245:
1246:                    Object paramObj3 = type;
1247:
1248:                    if (type == null) {
1249:                        paramObj3 = new NullWrapper("java.lang.String");
1250:                    }
1251:
1252:                    Object paramObj4 = new DoubleWrapper(version);
1253:
1254:                    Object paramObj5 = displayStyle;
1255:
1256:                    if (displayStyle == null) {
1257:                        paramObj5 = new NullWrapper("java.lang.String");
1258:                    }
1259:
1260:                    Object paramObj6 = feedURL;
1261:
1262:                    if (feedURL == null) {
1263:                        paramObj6 = new NullWrapper("java.lang.String");
1264:                    }
1265:
1266:                    Object paramObj7 = entryURL;
1267:
1268:                    if (entryURL == null) {
1269:                        paramObj7 = new NullWrapper("java.lang.String");
1270:                    }
1271:
1272:                    MethodWrapper methodWrapper = new MethodWrapper(
1273:                            MBMessageServiceUtil.class.getName(),
1274:                            "getGroupMessagesRSS", new Object[] { paramObj0,
1275:                                    paramObj1, paramObj2, paramObj3, paramObj4,
1276:                                    paramObj5, paramObj6, paramObj7 });
1277:
1278:                    Object returnObj = null;
1279:
1280:                    try {
1281:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1282:                                methodWrapper);
1283:                    } catch (Exception e) {
1284:                        if (e instanceof  com.liferay.portal.SystemException) {
1285:                            throw (com.liferay.portal.SystemException) e;
1286:                        }
1287:
1288:                        if (e instanceof  com.liferay.portal.PortalException) {
1289:                            throw (com.liferay.portal.PortalException) e;
1290:                        }
1291:
1292:                        throw new com.liferay.portal.SystemException(e);
1293:                    }
1294:
1295:                    return (java.lang.String) returnObj;
1296:                } catch (com.liferay.portal.SystemException se) {
1297:                    _log.error(se, se);
1298:
1299:                    throw se;
1300:                }
1301:            }
1302:
1303:            public static com.liferay.portlet.messageboards.model.MBMessage getMessage(
1304:                    HttpPrincipal httpPrincipal, long messageId)
1305:                    throws com.liferay.portal.SystemException,
1306:                    com.liferay.portal.PortalException {
1307:                try {
1308:                    Object paramObj0 = new LongWrapper(messageId);
1309:
1310:                    MethodWrapper methodWrapper = new MethodWrapper(
1311:                            MBMessageServiceUtil.class.getName(), "getMessage",
1312:                            new Object[] { paramObj0 });
1313:
1314:                    Object returnObj = null;
1315:
1316:                    try {
1317:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1318:                                methodWrapper);
1319:                    } catch (Exception e) {
1320:                        if (e instanceof  com.liferay.portal.SystemException) {
1321:                            throw (com.liferay.portal.SystemException) e;
1322:                        }
1323:
1324:                        if (e instanceof  com.liferay.portal.PortalException) {
1325:                            throw (com.liferay.portal.PortalException) e;
1326:                        }
1327:
1328:                        throw new com.liferay.portal.SystemException(e);
1329:                    }
1330:
1331:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
1332:                } catch (com.liferay.portal.SystemException se) {
1333:                    _log.error(se, se);
1334:
1335:                    throw se;
1336:                }
1337:            }
1338:
1339:            public static com.liferay.portlet.messageboards.model.MBMessageDisplay getMessageDisplay(
1340:                    HttpPrincipal httpPrincipal, long messageId)
1341:                    throws com.liferay.portal.SystemException,
1342:                    com.liferay.portal.PortalException {
1343:                try {
1344:                    Object paramObj0 = new LongWrapper(messageId);
1345:
1346:                    MethodWrapper methodWrapper = new MethodWrapper(
1347:                            MBMessageServiceUtil.class.getName(),
1348:                            "getMessageDisplay", new Object[] { paramObj0 });
1349:
1350:                    Object returnObj = null;
1351:
1352:                    try {
1353:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1354:                                methodWrapper);
1355:                    } catch (Exception e) {
1356:                        if (e instanceof  com.liferay.portal.SystemException) {
1357:                            throw (com.liferay.portal.SystemException) e;
1358:                        }
1359:
1360:                        if (e instanceof  com.liferay.portal.PortalException) {
1361:                            throw (com.liferay.portal.PortalException) e;
1362:                        }
1363:
1364:                        throw new com.liferay.portal.SystemException(e);
1365:                    }
1366:
1367:                    return (com.liferay.portlet.messageboards.model.MBMessageDisplay) returnObj;
1368:                } catch (com.liferay.portal.SystemException se) {
1369:                    _log.error(se, se);
1370:
1371:                    throw se;
1372:                }
1373:            }
1374:
1375:            public static java.lang.String getThreadMessagesRSS(
1376:                    HttpPrincipal httpPrincipal, long threadId, int max,
1377:                    java.lang.String type, double version,
1378:                    java.lang.String displayStyle, java.lang.String feedURL,
1379:                    java.lang.String entryURL)
1380:                    throws com.liferay.portal.SystemException,
1381:                    com.liferay.portal.PortalException {
1382:                try {
1383:                    Object paramObj0 = new LongWrapper(threadId);
1384:
1385:                    Object paramObj1 = new IntegerWrapper(max);
1386:
1387:                    Object paramObj2 = type;
1388:
1389:                    if (type == null) {
1390:                        paramObj2 = new NullWrapper("java.lang.String");
1391:                    }
1392:
1393:                    Object paramObj3 = new DoubleWrapper(version);
1394:
1395:                    Object paramObj4 = displayStyle;
1396:
1397:                    if (displayStyle == null) {
1398:                        paramObj4 = new NullWrapper("java.lang.String");
1399:                    }
1400:
1401:                    Object paramObj5 = feedURL;
1402:
1403:                    if (feedURL == null) {
1404:                        paramObj5 = new NullWrapper("java.lang.String");
1405:                    }
1406:
1407:                    Object paramObj6 = entryURL;
1408:
1409:                    if (entryURL == null) {
1410:                        paramObj6 = new NullWrapper("java.lang.String");
1411:                    }
1412:
1413:                    MethodWrapper methodWrapper = new MethodWrapper(
1414:                            MBMessageServiceUtil.class.getName(),
1415:                            "getThreadMessagesRSS", new Object[] { paramObj0,
1416:                                    paramObj1, paramObj2, paramObj3, paramObj4,
1417:                                    paramObj5, paramObj6 });
1418:
1419:                    Object returnObj = null;
1420:
1421:                    try {
1422:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1423:                                methodWrapper);
1424:                    } catch (Exception e) {
1425:                        if (e instanceof  com.liferay.portal.SystemException) {
1426:                            throw (com.liferay.portal.SystemException) e;
1427:                        }
1428:
1429:                        if (e instanceof  com.liferay.portal.PortalException) {
1430:                            throw (com.liferay.portal.PortalException) e;
1431:                        }
1432:
1433:                        throw new com.liferay.portal.SystemException(e);
1434:                    }
1435:
1436:                    return (java.lang.String) returnObj;
1437:                } catch (com.liferay.portal.SystemException se) {
1438:                    _log.error(se, se);
1439:
1440:                    throw se;
1441:                }
1442:            }
1443:
1444:            public static void subscribeMessage(HttpPrincipal httpPrincipal,
1445:                    long messageId) throws com.liferay.portal.SystemException,
1446:                    com.liferay.portal.PortalException {
1447:                try {
1448:                    Object paramObj0 = new LongWrapper(messageId);
1449:
1450:                    MethodWrapper methodWrapper = new MethodWrapper(
1451:                            MBMessageServiceUtil.class.getName(),
1452:                            "subscribeMessage", new Object[] { paramObj0 });
1453:
1454:                    try {
1455:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
1456:                    } catch (Exception e) {
1457:                        if (e instanceof  com.liferay.portal.SystemException) {
1458:                            throw (com.liferay.portal.SystemException) e;
1459:                        }
1460:
1461:                        if (e instanceof  com.liferay.portal.PortalException) {
1462:                            throw (com.liferay.portal.PortalException) e;
1463:                        }
1464:
1465:                        throw new com.liferay.portal.SystemException(e);
1466:                    }
1467:                } catch (com.liferay.portal.SystemException se) {
1468:                    _log.error(se, se);
1469:
1470:                    throw se;
1471:                }
1472:            }
1473:
1474:            public static void unsubscribeMessage(HttpPrincipal httpPrincipal,
1475:                    long messageId) throws com.liferay.portal.SystemException,
1476:                    com.liferay.portal.PortalException {
1477:                try {
1478:                    Object paramObj0 = new LongWrapper(messageId);
1479:
1480:                    MethodWrapper methodWrapper = new MethodWrapper(
1481:                            MBMessageServiceUtil.class.getName(),
1482:                            "unsubscribeMessage", new Object[] { paramObj0 });
1483:
1484:                    try {
1485:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
1486:                    } catch (Exception e) {
1487:                        if (e instanceof  com.liferay.portal.SystemException) {
1488:                            throw (com.liferay.portal.SystemException) e;
1489:                        }
1490:
1491:                        if (e instanceof  com.liferay.portal.PortalException) {
1492:                            throw (com.liferay.portal.PortalException) e;
1493:                        }
1494:
1495:                        throw new com.liferay.portal.SystemException(e);
1496:                    }
1497:                } catch (com.liferay.portal.SystemException se) {
1498:                    _log.error(se, se);
1499:
1500:                    throw se;
1501:                }
1502:            }
1503:
1504:            public static com.liferay.portlet.messageboards.model.MBMessage updateDiscussionMessage(
1505:                    HttpPrincipal httpPrincipal, long groupId,
1506:                    java.lang.String className, long classPK, long messageId,
1507:                    java.lang.String subject, java.lang.String body)
1508:                    throws com.liferay.portal.SystemException,
1509:                    com.liferay.portal.PortalException {
1510:                try {
1511:                    Object paramObj0 = new LongWrapper(groupId);
1512:
1513:                    Object paramObj1 = className;
1514:
1515:                    if (className == null) {
1516:                        paramObj1 = new NullWrapper("java.lang.String");
1517:                    }
1518:
1519:                    Object paramObj2 = new LongWrapper(classPK);
1520:
1521:                    Object paramObj3 = new LongWrapper(messageId);
1522:
1523:                    Object paramObj4 = subject;
1524:
1525:                    if (subject == null) {
1526:                        paramObj4 = new NullWrapper("java.lang.String");
1527:                    }
1528:
1529:                    Object paramObj5 = body;
1530:
1531:                    if (body == null) {
1532:                        paramObj5 = new NullWrapper("java.lang.String");
1533:                    }
1534:
1535:                    MethodWrapper methodWrapper = new MethodWrapper(
1536:                            MBMessageServiceUtil.class.getName(),
1537:                            "updateDiscussionMessage", new Object[] {
1538:                                    paramObj0, paramObj1, paramObj2, paramObj3,
1539:                                    paramObj4, paramObj5 });
1540:
1541:                    Object returnObj = null;
1542:
1543:                    try {
1544:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1545:                                methodWrapper);
1546:                    } catch (Exception e) {
1547:                        if (e instanceof  com.liferay.portal.SystemException) {
1548:                            throw (com.liferay.portal.SystemException) e;
1549:                        }
1550:
1551:                        if (e instanceof  com.liferay.portal.PortalException) {
1552:                            throw (com.liferay.portal.PortalException) e;
1553:                        }
1554:
1555:                        throw new com.liferay.portal.SystemException(e);
1556:                    }
1557:
1558:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
1559:                } catch (com.liferay.portal.SystemException se) {
1560:                    _log.error(se, se);
1561:
1562:                    throw se;
1563:                }
1564:            }
1565:
1566:            public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
1567:                    HttpPrincipal httpPrincipal, long messageId,
1568:                    java.lang.String subject, java.lang.String body,
1569:                    java.util.List files, double priority,
1570:                    java.lang.String[] tagsEntries)
1571:                    throws com.liferay.portal.SystemException,
1572:                    com.liferay.portal.PortalException {
1573:                try {
1574:                    Object paramObj0 = new LongWrapper(messageId);
1575:
1576:                    Object paramObj1 = subject;
1577:
1578:                    if (subject == null) {
1579:                        paramObj1 = new NullWrapper("java.lang.String");
1580:                    }
1581:
1582:                    Object paramObj2 = body;
1583:
1584:                    if (body == null) {
1585:                        paramObj2 = new NullWrapper("java.lang.String");
1586:                    }
1587:
1588:                    Object paramObj3 = files;
1589:
1590:                    if (files == null) {
1591:                        paramObj3 = new NullWrapper("java.util.List");
1592:                    }
1593:
1594:                    Object paramObj4 = new DoubleWrapper(priority);
1595:
1596:                    Object paramObj5 = tagsEntries;
1597:
1598:                    if (tagsEntries == null) {
1599:                        paramObj5 = new NullWrapper("[Ljava.lang.String;");
1600:                    }
1601:
1602:                    MethodWrapper methodWrapper = new MethodWrapper(
1603:                            MBMessageServiceUtil.class.getName(),
1604:                            "updateMessage", new Object[] { paramObj0,
1605:                                    paramObj1, paramObj2, paramObj3, paramObj4,
1606:                                    paramObj5 });
1607:
1608:                    Object returnObj = null;
1609:
1610:                    try {
1611:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1612:                                methodWrapper);
1613:                    } catch (Exception e) {
1614:                        if (e instanceof  com.liferay.portal.SystemException) {
1615:                            throw (com.liferay.portal.SystemException) e;
1616:                        }
1617:
1618:                        if (e instanceof  com.liferay.portal.PortalException) {
1619:                            throw (com.liferay.portal.PortalException) e;
1620:                        }
1621:
1622:                        throw new com.liferay.portal.SystemException(e);
1623:                    }
1624:
1625:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
1626:                } catch (com.liferay.portal.SystemException se) {
1627:                    _log.error(se, se);
1628:
1629:                    throw se;
1630:                }
1631:            }
1632:
1633:            public static com.liferay.portlet.messageboards.model.MBMessage updateMessage(
1634:                    HttpPrincipal httpPrincipal, long messageId,
1635:                    java.lang.String subject, java.lang.String body,
1636:                    java.util.List files, double priority,
1637:                    java.lang.String[] tagsEntries,
1638:                    javax.portlet.PortletPreferences prefs,
1639:                    com.liferay.portal.theme.ThemeDisplay themeDisplay)
1640:                    throws com.liferay.portal.SystemException,
1641:                    com.liferay.portal.PortalException {
1642:                try {
1643:                    Object paramObj0 = new LongWrapper(messageId);
1644:
1645:                    Object paramObj1 = subject;
1646:
1647:                    if (subject == null) {
1648:                        paramObj1 = new NullWrapper("java.lang.String");
1649:                    }
1650:
1651:                    Object paramObj2 = body;
1652:
1653:                    if (body == null) {
1654:                        paramObj2 = new NullWrapper("java.lang.String");
1655:                    }
1656:
1657:                    Object paramObj3 = files;
1658:
1659:                    if (files == null) {
1660:                        paramObj3 = new NullWrapper("java.util.List");
1661:                    }
1662:
1663:                    Object paramObj4 = new DoubleWrapper(priority);
1664:
1665:                    Object paramObj5 = tagsEntries;
1666:
1667:                    if (tagsEntries == null) {
1668:                        paramObj5 = new NullWrapper("[Ljava.lang.String;");
1669:                    }
1670:
1671:                    Object paramObj6 = prefs;
1672:
1673:                    if (prefs == null) {
1674:                        paramObj6 = new NullWrapper(
1675:                                "javax.portlet.PortletPreferences");
1676:                    }
1677:
1678:                    Object paramObj7 = themeDisplay;
1679:
1680:                    if (themeDisplay == null) {
1681:                        paramObj7 = new NullWrapper(
1682:                                "com.liferay.portal.theme.ThemeDisplay");
1683:                    }
1684:
1685:                    MethodWrapper methodWrapper = new MethodWrapper(
1686:                            MBMessageServiceUtil.class.getName(),
1687:                            "updateMessage", new Object[] { paramObj0,
1688:                                    paramObj1, paramObj2, paramObj3, paramObj4,
1689:                                    paramObj5, paramObj6, paramObj7 });
1690:
1691:                    Object returnObj = null;
1692:
1693:                    try {
1694:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1695:                                methodWrapper);
1696:                    } catch (Exception e) {
1697:                        if (e instanceof  com.liferay.portal.SystemException) {
1698:                            throw (com.liferay.portal.SystemException) e;
1699:                        }
1700:
1701:                        if (e instanceof  com.liferay.portal.PortalException) {
1702:                            throw (com.liferay.portal.PortalException) e;
1703:                        }
1704:
1705:                        throw new com.liferay.portal.SystemException(e);
1706:                    }
1707:
1708:                    return (com.liferay.portlet.messageboards.model.MBMessage) returnObj;
1709:                } catch (com.liferay.portal.SystemException se) {
1710:                    _log.error(se, se);
1711:
1712:                    throw se;
1713:                }
1714:            }
1715:
1716:            private static Log _log = LogFactoryUtil
1717:                    .getLog(MBMessageServiceHttp.class);
1718:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.