Source Code Cross Referenced for LayoutServiceHttp.java in  » Portal » liferay-portal-4.4.2 » com » liferay » portal » 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.portal.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.portal.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.IntegerWrapper;
0027:        import com.liferay.portal.kernel.util.LongWrapper;
0028:        import com.liferay.portal.kernel.util.MethodWrapper;
0029:        import com.liferay.portal.kernel.util.NullWrapper;
0030:        import com.liferay.portal.security.auth.HttpPrincipal;
0031:        import com.liferay.portal.service.LayoutServiceUtil;
0032:
0033:        /**
0034:         * <a href="LayoutServiceHttp.java.html"><b><i>View Source</i></b></a>
0035:         *
0036:         * <p>
0037:         * ServiceBuilder generated this class. Modifications in this class will be
0038:         * overwritten the next time is generated.
0039:         * </p>
0040:         *
0041:         * <p>
0042:         * This class provides a HTTP utility for the
0043:         * <code>com.liferay.portal.service.LayoutServiceUtil</code> service
0044:         * utility. The static methods of this class calls the same methods of the
0045:         * service utility. However, the signatures are different because it requires an
0046:         * additional <code>com.liferay.portal.security.auth.HttpPrincipal</code>
0047:         * parameter.
0048:         * </p>
0049:         *
0050:         * <p>
0051:         * The benefits of using the HTTP utility is that it is fast and allows for
0052:         * tunneling without the cost of serializing to text. The drawback is that it
0053:         * only works with Java.
0054:         * </p>
0055:         *
0056:         * <p>
0057:         * Set the property <code>tunnel.servlet.hosts.allowed</code> in
0058:         * portal.properties to configure security.
0059:         * </p>
0060:         *
0061:         * <p>
0062:         * The HTTP utility is only generated for remote services.
0063:         * </p>
0064:         *
0065:         * @author Brian Wing Shun Chan
0066:         *
0067:         * @see com.liferay.portal.security.auth.HttpPrincipal
0068:         * @see com.liferay.portal.service.LayoutServiceUtil
0069:         * @see com.liferay.portal.service.http.LayoutServiceSoap
0070:         *
0071:         */
0072:        public class LayoutServiceHttp {
0073:            public static com.liferay.portal.model.Layout addLayout(
0074:                    HttpPrincipal httpPrincipal, long groupId,
0075:                    boolean privateLayout, long parentLayoutId,
0076:                    java.lang.String name, java.lang.String title,
0077:                    java.lang.String description, java.lang.String type,
0078:                    boolean hidden, java.lang.String friendlyURL)
0079:                    throws com.liferay.portal.SystemException,
0080:                    com.liferay.portal.PortalException {
0081:                try {
0082:                    Object paramObj0 = new LongWrapper(groupId);
0083:
0084:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0085:
0086:                    Object paramObj2 = new LongWrapper(parentLayoutId);
0087:
0088:                    Object paramObj3 = name;
0089:
0090:                    if (name == null) {
0091:                        paramObj3 = new NullWrapper("java.lang.String");
0092:                    }
0093:
0094:                    Object paramObj4 = title;
0095:
0096:                    if (title == null) {
0097:                        paramObj4 = new NullWrapper("java.lang.String");
0098:                    }
0099:
0100:                    Object paramObj5 = description;
0101:
0102:                    if (description == null) {
0103:                        paramObj5 = new NullWrapper("java.lang.String");
0104:                    }
0105:
0106:                    Object paramObj6 = type;
0107:
0108:                    if (type == null) {
0109:                        paramObj6 = new NullWrapper("java.lang.String");
0110:                    }
0111:
0112:                    Object paramObj7 = new BooleanWrapper(hidden);
0113:
0114:                    Object paramObj8 = friendlyURL;
0115:
0116:                    if (friendlyURL == null) {
0117:                        paramObj8 = new NullWrapper("java.lang.String");
0118:                    }
0119:
0120:                    MethodWrapper methodWrapper = new MethodWrapper(
0121:                            LayoutServiceUtil.class.getName(), "addLayout",
0122:                            new Object[] { paramObj0, paramObj1, paramObj2,
0123:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0124:                                    paramObj7, paramObj8 });
0125:
0126:                    Object returnObj = null;
0127:
0128:                    try {
0129:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0130:                                methodWrapper);
0131:                    } catch (Exception e) {
0132:                        if (e instanceof  com.liferay.portal.SystemException) {
0133:                            throw (com.liferay.portal.SystemException) e;
0134:                        }
0135:
0136:                        if (e instanceof  com.liferay.portal.PortalException) {
0137:                            throw (com.liferay.portal.PortalException) e;
0138:                        }
0139:
0140:                        throw new com.liferay.portal.SystemException(e);
0141:                    }
0142:
0143:                    return (com.liferay.portal.model.Layout) returnObj;
0144:                } catch (com.liferay.portal.SystemException se) {
0145:                    _log.error(se, se);
0146:
0147:                    throw se;
0148:                }
0149:            }
0150:
0151:            public static com.liferay.portal.model.Layout addLayout(
0152:                    HttpPrincipal httpPrincipal, long groupId,
0153:                    boolean privateLayout, long parentLayoutId,
0154:                    java.util.Map localeNamesMap,
0155:                    java.util.Map localeTitlesMap,
0156:                    java.lang.String description, java.lang.String type,
0157:                    boolean hidden, java.lang.String friendlyURL)
0158:                    throws com.liferay.portal.SystemException,
0159:                    com.liferay.portal.PortalException {
0160:                try {
0161:                    Object paramObj0 = new LongWrapper(groupId);
0162:
0163:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0164:
0165:                    Object paramObj2 = new LongWrapper(parentLayoutId);
0166:
0167:                    Object paramObj3 = localeNamesMap;
0168:
0169:                    if (localeNamesMap == null) {
0170:                        paramObj3 = new NullWrapper("java.util.Map");
0171:                    }
0172:
0173:                    Object paramObj4 = localeTitlesMap;
0174:
0175:                    if (localeTitlesMap == null) {
0176:                        paramObj4 = new NullWrapper("java.util.Map");
0177:                    }
0178:
0179:                    Object paramObj5 = description;
0180:
0181:                    if (description == null) {
0182:                        paramObj5 = new NullWrapper("java.lang.String");
0183:                    }
0184:
0185:                    Object paramObj6 = type;
0186:
0187:                    if (type == null) {
0188:                        paramObj6 = new NullWrapper("java.lang.String");
0189:                    }
0190:
0191:                    Object paramObj7 = new BooleanWrapper(hidden);
0192:
0193:                    Object paramObj8 = friendlyURL;
0194:
0195:                    if (friendlyURL == null) {
0196:                        paramObj8 = new NullWrapper("java.lang.String");
0197:                    }
0198:
0199:                    MethodWrapper methodWrapper = new MethodWrapper(
0200:                            LayoutServiceUtil.class.getName(), "addLayout",
0201:                            new Object[] { paramObj0, paramObj1, paramObj2,
0202:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0203:                                    paramObj7, paramObj8 });
0204:
0205:                    Object returnObj = null;
0206:
0207:                    try {
0208:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0209:                                methodWrapper);
0210:                    } catch (Exception e) {
0211:                        if (e instanceof  com.liferay.portal.SystemException) {
0212:                            throw (com.liferay.portal.SystemException) e;
0213:                        }
0214:
0215:                        if (e instanceof  com.liferay.portal.PortalException) {
0216:                            throw (com.liferay.portal.PortalException) e;
0217:                        }
0218:
0219:                        throw new com.liferay.portal.SystemException(e);
0220:                    }
0221:
0222:                    return (com.liferay.portal.model.Layout) returnObj;
0223:                } catch (com.liferay.portal.SystemException se) {
0224:                    _log.error(se, se);
0225:
0226:                    throw se;
0227:                }
0228:            }
0229:
0230:            public static void deleteLayout(HttpPrincipal httpPrincipal,
0231:                    long plid) throws com.liferay.portal.SystemException,
0232:                    com.liferay.portal.PortalException {
0233:                try {
0234:                    Object paramObj0 = new LongWrapper(plid);
0235:
0236:                    MethodWrapper methodWrapper = new MethodWrapper(
0237:                            LayoutServiceUtil.class.getName(), "deleteLayout",
0238:                            new Object[] { paramObj0 });
0239:
0240:                    try {
0241:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
0242:                    } catch (Exception e) {
0243:                        if (e instanceof  com.liferay.portal.SystemException) {
0244:                            throw (com.liferay.portal.SystemException) e;
0245:                        }
0246:
0247:                        if (e instanceof  com.liferay.portal.PortalException) {
0248:                            throw (com.liferay.portal.PortalException) e;
0249:                        }
0250:
0251:                        throw new com.liferay.portal.SystemException(e);
0252:                    }
0253:                } catch (com.liferay.portal.SystemException se) {
0254:                    _log.error(se, se);
0255:
0256:                    throw se;
0257:                }
0258:            }
0259:
0260:            public static void deleteLayout(HttpPrincipal httpPrincipal,
0261:                    long groupId, boolean privateLayout, long layoutId)
0262:                    throws com.liferay.portal.SystemException,
0263:                    com.liferay.portal.PortalException {
0264:                try {
0265:                    Object paramObj0 = new LongWrapper(groupId);
0266:
0267:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0268:
0269:                    Object paramObj2 = new LongWrapper(layoutId);
0270:
0271:                    MethodWrapper methodWrapper = new MethodWrapper(
0272:                            LayoutServiceUtil.class.getName(), "deleteLayout",
0273:                            new Object[] { paramObj0, paramObj1, paramObj2 });
0274:
0275:                    try {
0276:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
0277:                    } catch (Exception e) {
0278:                        if (e instanceof  com.liferay.portal.SystemException) {
0279:                            throw (com.liferay.portal.SystemException) e;
0280:                        }
0281:
0282:                        if (e instanceof  com.liferay.portal.PortalException) {
0283:                            throw (com.liferay.portal.PortalException) e;
0284:                        }
0285:
0286:                        throw new com.liferay.portal.SystemException(e);
0287:                    }
0288:                } catch (com.liferay.portal.SystemException se) {
0289:                    _log.error(se, se);
0290:
0291:                    throw se;
0292:                }
0293:            }
0294:
0295:            public static java.lang.String getLayoutName(
0296:                    HttpPrincipal httpPrincipal, long groupId,
0297:                    boolean privateLayout, long layoutId,
0298:                    java.lang.String languageId)
0299:                    throws com.liferay.portal.SystemException,
0300:                    com.liferay.portal.PortalException {
0301:                try {
0302:                    Object paramObj0 = new LongWrapper(groupId);
0303:
0304:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0305:
0306:                    Object paramObj2 = new LongWrapper(layoutId);
0307:
0308:                    Object paramObj3 = languageId;
0309:
0310:                    if (languageId == null) {
0311:                        paramObj3 = new NullWrapper("java.lang.String");
0312:                    }
0313:
0314:                    MethodWrapper methodWrapper = new MethodWrapper(
0315:                            LayoutServiceUtil.class.getName(), "getLayoutName",
0316:                            new Object[] { paramObj0, paramObj1, paramObj2,
0317:                                    paramObj3 });
0318:
0319:                    Object returnObj = null;
0320:
0321:                    try {
0322:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0323:                                methodWrapper);
0324:                    } catch (Exception e) {
0325:                        if (e instanceof  com.liferay.portal.SystemException) {
0326:                            throw (com.liferay.portal.SystemException) e;
0327:                        }
0328:
0329:                        if (e instanceof  com.liferay.portal.PortalException) {
0330:                            throw (com.liferay.portal.PortalException) e;
0331:                        }
0332:
0333:                        throw new com.liferay.portal.SystemException(e);
0334:                    }
0335:
0336:                    return (java.lang.String) returnObj;
0337:                } catch (com.liferay.portal.SystemException se) {
0338:                    _log.error(se, se);
0339:
0340:                    throw se;
0341:                }
0342:            }
0343:
0344:            public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
0345:                    HttpPrincipal httpPrincipal, long companyId,
0346:                    java.lang.String portletId, java.lang.String prefsKey,
0347:                    java.lang.String prefsValue)
0348:                    throws com.liferay.portal.SystemException {
0349:                try {
0350:                    Object paramObj0 = new LongWrapper(companyId);
0351:
0352:                    Object paramObj1 = portletId;
0353:
0354:                    if (portletId == null) {
0355:                        paramObj1 = new NullWrapper("java.lang.String");
0356:                    }
0357:
0358:                    Object paramObj2 = prefsKey;
0359:
0360:                    if (prefsKey == null) {
0361:                        paramObj2 = new NullWrapper("java.lang.String");
0362:                    }
0363:
0364:                    Object paramObj3 = prefsValue;
0365:
0366:                    if (prefsValue == null) {
0367:                        paramObj3 = new NullWrapper("java.lang.String");
0368:                    }
0369:
0370:                    MethodWrapper methodWrapper = new MethodWrapper(
0371:                            LayoutServiceUtil.class.getName(),
0372:                            "getLayoutReferences", new Object[] { paramObj0,
0373:                                    paramObj1, paramObj2, paramObj3 });
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:                        throw new com.liferay.portal.SystemException(e);
0386:                    }
0387:
0388:                    return (com.liferay.portal.model.LayoutReference[]) returnObj;
0389:                } catch (com.liferay.portal.SystemException se) {
0390:                    _log.error(se, se);
0391:
0392:                    throw se;
0393:                }
0394:            }
0395:
0396:            public static byte[] exportLayouts(HttpPrincipal httpPrincipal,
0397:                    long groupId, boolean privateLayout,
0398:                    java.util.Map parameterMap)
0399:                    throws com.liferay.portal.SystemException,
0400:                    com.liferay.portal.PortalException {
0401:                try {
0402:                    Object paramObj0 = new LongWrapper(groupId);
0403:
0404:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0405:
0406:                    Object paramObj2 = parameterMap;
0407:
0408:                    if (parameterMap == null) {
0409:                        paramObj2 = new NullWrapper("java.util.Map");
0410:                    }
0411:
0412:                    MethodWrapper methodWrapper = new MethodWrapper(
0413:                            LayoutServiceUtil.class.getName(), "exportLayouts",
0414:                            new Object[] { paramObj0, paramObj1, paramObj2 });
0415:
0416:                    Object returnObj = null;
0417:
0418:                    try {
0419:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0420:                                methodWrapper);
0421:                    } catch (Exception e) {
0422:                        if (e instanceof  com.liferay.portal.SystemException) {
0423:                            throw (com.liferay.portal.SystemException) e;
0424:                        }
0425:
0426:                        if (e instanceof  com.liferay.portal.PortalException) {
0427:                            throw (com.liferay.portal.PortalException) e;
0428:                        }
0429:
0430:                        throw new com.liferay.portal.SystemException(e);
0431:                    }
0432:
0433:                    return (byte[]) returnObj;
0434:                } catch (com.liferay.portal.SystemException se) {
0435:                    _log.error(se, se);
0436:
0437:                    throw se;
0438:                }
0439:            }
0440:
0441:            public static byte[] exportLayouts(HttpPrincipal httpPrincipal,
0442:                    long groupId, boolean privateLayout, long[] layoutIds,
0443:                    java.util.Map parameterMap)
0444:                    throws com.liferay.portal.SystemException,
0445:                    com.liferay.portal.PortalException {
0446:                try {
0447:                    Object paramObj0 = new LongWrapper(groupId);
0448:
0449:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0450:
0451:                    Object paramObj2 = layoutIds;
0452:
0453:                    if (layoutIds == null) {
0454:                        paramObj2 = new NullWrapper("[J");
0455:                    }
0456:
0457:                    Object paramObj3 = parameterMap;
0458:
0459:                    if (parameterMap == null) {
0460:                        paramObj3 = new NullWrapper("java.util.Map");
0461:                    }
0462:
0463:                    MethodWrapper methodWrapper = new MethodWrapper(
0464:                            LayoutServiceUtil.class.getName(), "exportLayouts",
0465:                            new Object[] { paramObj0, paramObj1, paramObj2,
0466:                                    paramObj3 });
0467:
0468:                    Object returnObj = null;
0469:
0470:                    try {
0471:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0472:                                methodWrapper);
0473:                    } catch (Exception e) {
0474:                        if (e instanceof  com.liferay.portal.SystemException) {
0475:                            throw (com.liferay.portal.SystemException) e;
0476:                        }
0477:
0478:                        if (e instanceof  com.liferay.portal.PortalException) {
0479:                            throw (com.liferay.portal.PortalException) e;
0480:                        }
0481:
0482:                        throw new com.liferay.portal.SystemException(e);
0483:                    }
0484:
0485:                    return (byte[]) returnObj;
0486:                } catch (com.liferay.portal.SystemException se) {
0487:                    _log.error(se, se);
0488:
0489:                    throw se;
0490:                }
0491:            }
0492:
0493:            public static byte[] exportPortletInfo(HttpPrincipal httpPrincipal,
0494:                    long plid, java.lang.String portletId,
0495:                    java.util.Map parameterMap)
0496:                    throws com.liferay.portal.SystemException,
0497:                    com.liferay.portal.PortalException {
0498:                try {
0499:                    Object paramObj0 = new LongWrapper(plid);
0500:
0501:                    Object paramObj1 = portletId;
0502:
0503:                    if (portletId == null) {
0504:                        paramObj1 = new NullWrapper("java.lang.String");
0505:                    }
0506:
0507:                    Object paramObj2 = parameterMap;
0508:
0509:                    if (parameterMap == null) {
0510:                        paramObj2 = new NullWrapper("java.util.Map");
0511:                    }
0512:
0513:                    MethodWrapper methodWrapper = new MethodWrapper(
0514:                            LayoutServiceUtil.class.getName(),
0515:                            "exportPortletInfo", new Object[] { paramObj0,
0516:                                    paramObj1, paramObj2 });
0517:
0518:                    Object returnObj = null;
0519:
0520:                    try {
0521:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0522:                                methodWrapper);
0523:                    } catch (Exception e) {
0524:                        if (e instanceof  com.liferay.portal.SystemException) {
0525:                            throw (com.liferay.portal.SystemException) e;
0526:                        }
0527:
0528:                        if (e instanceof  com.liferay.portal.PortalException) {
0529:                            throw (com.liferay.portal.PortalException) e;
0530:                        }
0531:
0532:                        throw new com.liferay.portal.SystemException(e);
0533:                    }
0534:
0535:                    return (byte[]) returnObj;
0536:                } catch (com.liferay.portal.SystemException se) {
0537:                    _log.error(se, se);
0538:
0539:                    throw se;
0540:                }
0541:            }
0542:
0543:            public static void importLayouts(HttpPrincipal httpPrincipal,
0544:                    long groupId, boolean privateLayout,
0545:                    java.util.Map parameterMap, java.io.File file)
0546:                    throws com.liferay.portal.SystemException,
0547:                    com.liferay.portal.PortalException {
0548:                try {
0549:                    Object paramObj0 = new LongWrapper(groupId);
0550:
0551:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0552:
0553:                    Object paramObj2 = parameterMap;
0554:
0555:                    if (parameterMap == null) {
0556:                        paramObj2 = new NullWrapper("java.util.Map");
0557:                    }
0558:
0559:                    Object paramObj3 = file;
0560:
0561:                    if (file == null) {
0562:                        paramObj3 = new NullWrapper("java.io.File");
0563:                    }
0564:
0565:                    MethodWrapper methodWrapper = new MethodWrapper(
0566:                            LayoutServiceUtil.class.getName(), "importLayouts",
0567:                            new Object[] { paramObj0, paramObj1, paramObj2,
0568:                                    paramObj3 });
0569:
0570:                    try {
0571:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
0572:                    } catch (Exception e) {
0573:                        if (e instanceof  com.liferay.portal.SystemException) {
0574:                            throw (com.liferay.portal.SystemException) e;
0575:                        }
0576:
0577:                        if (e instanceof  com.liferay.portal.PortalException) {
0578:                            throw (com.liferay.portal.PortalException) e;
0579:                        }
0580:
0581:                        throw new com.liferay.portal.SystemException(e);
0582:                    }
0583:                } catch (com.liferay.portal.SystemException se) {
0584:                    _log.error(se, se);
0585:
0586:                    throw se;
0587:                }
0588:            }
0589:
0590:            public static void importLayouts(HttpPrincipal httpPrincipal,
0591:                    long groupId, boolean privateLayout,
0592:                    java.util.Map parameterMap, java.io.InputStream is)
0593:                    throws com.liferay.portal.SystemException,
0594:                    com.liferay.portal.PortalException {
0595:                try {
0596:                    Object paramObj0 = new LongWrapper(groupId);
0597:
0598:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0599:
0600:                    Object paramObj2 = parameterMap;
0601:
0602:                    if (parameterMap == null) {
0603:                        paramObj2 = new NullWrapper("java.util.Map");
0604:                    }
0605:
0606:                    Object paramObj3 = is;
0607:
0608:                    if (is == null) {
0609:                        paramObj3 = new NullWrapper("java.io.InputStream");
0610:                    }
0611:
0612:                    MethodWrapper methodWrapper = new MethodWrapper(
0613:                            LayoutServiceUtil.class.getName(), "importLayouts",
0614:                            new Object[] { paramObj0, paramObj1, paramObj2,
0615:                                    paramObj3 });
0616:
0617:                    try {
0618:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
0619:                    } catch (Exception e) {
0620:                        if (e instanceof  com.liferay.portal.SystemException) {
0621:                            throw (com.liferay.portal.SystemException) e;
0622:                        }
0623:
0624:                        if (e instanceof  com.liferay.portal.PortalException) {
0625:                            throw (com.liferay.portal.PortalException) e;
0626:                        }
0627:
0628:                        throw new com.liferay.portal.SystemException(e);
0629:                    }
0630:                } catch (com.liferay.portal.SystemException se) {
0631:                    _log.error(se, se);
0632:
0633:                    throw se;
0634:                }
0635:            }
0636:
0637:            public static void importPortletInfo(HttpPrincipal httpPrincipal,
0638:                    long plid, java.lang.String portletId,
0639:                    java.util.Map parameterMap, java.io.File file)
0640:                    throws com.liferay.portal.SystemException,
0641:                    com.liferay.portal.PortalException {
0642:                try {
0643:                    Object paramObj0 = new LongWrapper(plid);
0644:
0645:                    Object paramObj1 = portletId;
0646:
0647:                    if (portletId == null) {
0648:                        paramObj1 = new NullWrapper("java.lang.String");
0649:                    }
0650:
0651:                    Object paramObj2 = parameterMap;
0652:
0653:                    if (parameterMap == null) {
0654:                        paramObj2 = new NullWrapper("java.util.Map");
0655:                    }
0656:
0657:                    Object paramObj3 = file;
0658:
0659:                    if (file == null) {
0660:                        paramObj3 = new NullWrapper("java.io.File");
0661:                    }
0662:
0663:                    MethodWrapper methodWrapper = new MethodWrapper(
0664:                            LayoutServiceUtil.class.getName(),
0665:                            "importPortletInfo", new Object[] { paramObj0,
0666:                                    paramObj1, paramObj2, paramObj3 });
0667:
0668:                    try {
0669:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
0670:                    } catch (Exception e) {
0671:                        if (e instanceof  com.liferay.portal.SystemException) {
0672:                            throw (com.liferay.portal.SystemException) e;
0673:                        }
0674:
0675:                        if (e instanceof  com.liferay.portal.PortalException) {
0676:                            throw (com.liferay.portal.PortalException) e;
0677:                        }
0678:
0679:                        throw new com.liferay.portal.SystemException(e);
0680:                    }
0681:                } catch (com.liferay.portal.SystemException se) {
0682:                    _log.error(se, se);
0683:
0684:                    throw se;
0685:                }
0686:            }
0687:
0688:            public static void importPortletInfo(HttpPrincipal httpPrincipal,
0689:                    long plid, java.lang.String portletId,
0690:                    java.util.Map parameterMap, java.io.InputStream is)
0691:                    throws com.liferay.portal.SystemException,
0692:                    com.liferay.portal.PortalException {
0693:                try {
0694:                    Object paramObj0 = new LongWrapper(plid);
0695:
0696:                    Object paramObj1 = portletId;
0697:
0698:                    if (portletId == null) {
0699:                        paramObj1 = new NullWrapper("java.lang.String");
0700:                    }
0701:
0702:                    Object paramObj2 = parameterMap;
0703:
0704:                    if (parameterMap == null) {
0705:                        paramObj2 = new NullWrapper("java.util.Map");
0706:                    }
0707:
0708:                    Object paramObj3 = is;
0709:
0710:                    if (is == null) {
0711:                        paramObj3 = new NullWrapper("java.io.InputStream");
0712:                    }
0713:
0714:                    MethodWrapper methodWrapper = new MethodWrapper(
0715:                            LayoutServiceUtil.class.getName(),
0716:                            "importPortletInfo", new Object[] { paramObj0,
0717:                                    paramObj1, paramObj2, paramObj3 });
0718:
0719:                    try {
0720:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
0721:                    } catch (Exception e) {
0722:                        if (e instanceof  com.liferay.portal.SystemException) {
0723:                            throw (com.liferay.portal.SystemException) e;
0724:                        }
0725:
0726:                        if (e instanceof  com.liferay.portal.PortalException) {
0727:                            throw (com.liferay.portal.PortalException) e;
0728:                        }
0729:
0730:                        throw new com.liferay.portal.SystemException(e);
0731:                    }
0732:                } catch (com.liferay.portal.SystemException se) {
0733:                    _log.error(se, se);
0734:
0735:                    throw se;
0736:                }
0737:            }
0738:
0739:            public static void setLayouts(HttpPrincipal httpPrincipal,
0740:                    long groupId, boolean privateLayout, long parentLayoutId,
0741:                    long[] layoutIds)
0742:                    throws com.liferay.portal.SystemException,
0743:                    com.liferay.portal.PortalException {
0744:                try {
0745:                    Object paramObj0 = new LongWrapper(groupId);
0746:
0747:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0748:
0749:                    Object paramObj2 = new LongWrapper(parentLayoutId);
0750:
0751:                    Object paramObj3 = layoutIds;
0752:
0753:                    if (layoutIds == null) {
0754:                        paramObj3 = new NullWrapper("[J");
0755:                    }
0756:
0757:                    MethodWrapper methodWrapper = new MethodWrapper(
0758:                            LayoutServiceUtil.class.getName(), "setLayouts",
0759:                            new Object[] { paramObj0, paramObj1, paramObj2,
0760:                                    paramObj3 });
0761:
0762:                    try {
0763:                        TunnelUtil.invoke(httpPrincipal, methodWrapper);
0764:                    } catch (Exception e) {
0765:                        if (e instanceof  com.liferay.portal.SystemException) {
0766:                            throw (com.liferay.portal.SystemException) e;
0767:                        }
0768:
0769:                        if (e instanceof  com.liferay.portal.PortalException) {
0770:                            throw (com.liferay.portal.PortalException) e;
0771:                        }
0772:
0773:                        throw new com.liferay.portal.SystemException(e);
0774:                    }
0775:                } catch (com.liferay.portal.SystemException se) {
0776:                    _log.error(se, se);
0777:
0778:                    throw se;
0779:                }
0780:            }
0781:
0782:            public static com.liferay.portal.model.Layout updateLayout(
0783:                    HttpPrincipal httpPrincipal, long groupId,
0784:                    boolean privateLayout, long layoutId, long parentLayoutId,
0785:                    java.util.Map localeNamesMap,
0786:                    java.util.Map localeTitlesMap,
0787:                    java.lang.String description, java.lang.String type,
0788:                    boolean hidden, java.lang.String friendlyURL)
0789:                    throws com.liferay.portal.SystemException,
0790:                    com.liferay.portal.PortalException {
0791:                try {
0792:                    Object paramObj0 = new LongWrapper(groupId);
0793:
0794:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0795:
0796:                    Object paramObj2 = new LongWrapper(layoutId);
0797:
0798:                    Object paramObj3 = new LongWrapper(parentLayoutId);
0799:
0800:                    Object paramObj4 = localeNamesMap;
0801:
0802:                    if (localeNamesMap == null) {
0803:                        paramObj4 = new NullWrapper("java.util.Map");
0804:                    }
0805:
0806:                    Object paramObj5 = localeTitlesMap;
0807:
0808:                    if (localeTitlesMap == null) {
0809:                        paramObj5 = new NullWrapper("java.util.Map");
0810:                    }
0811:
0812:                    Object paramObj6 = description;
0813:
0814:                    if (description == null) {
0815:                        paramObj6 = new NullWrapper("java.lang.String");
0816:                    }
0817:
0818:                    Object paramObj7 = type;
0819:
0820:                    if (type == null) {
0821:                        paramObj7 = new NullWrapper("java.lang.String");
0822:                    }
0823:
0824:                    Object paramObj8 = new BooleanWrapper(hidden);
0825:
0826:                    Object paramObj9 = friendlyURL;
0827:
0828:                    if (friendlyURL == null) {
0829:                        paramObj9 = new NullWrapper("java.lang.String");
0830:                    }
0831:
0832:                    MethodWrapper methodWrapper = new MethodWrapper(
0833:                            LayoutServiceUtil.class.getName(), "updateLayout",
0834:                            new Object[] { paramObj0, paramObj1, paramObj2,
0835:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0836:                                    paramObj7, paramObj8, paramObj9 });
0837:
0838:                    Object returnObj = null;
0839:
0840:                    try {
0841:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0842:                                methodWrapper);
0843:                    } catch (Exception e) {
0844:                        if (e instanceof  com.liferay.portal.SystemException) {
0845:                            throw (com.liferay.portal.SystemException) e;
0846:                        }
0847:
0848:                        if (e instanceof  com.liferay.portal.PortalException) {
0849:                            throw (com.liferay.portal.PortalException) e;
0850:                        }
0851:
0852:                        throw new com.liferay.portal.SystemException(e);
0853:                    }
0854:
0855:                    return (com.liferay.portal.model.Layout) returnObj;
0856:                } catch (com.liferay.portal.SystemException se) {
0857:                    _log.error(se, se);
0858:
0859:                    throw se;
0860:                }
0861:            }
0862:
0863:            public static com.liferay.portal.model.Layout updateLayout(
0864:                    HttpPrincipal httpPrincipal, long groupId,
0865:                    boolean privateLayout, long layoutId, long parentLayoutId,
0866:                    java.util.Map localeNamesMap,
0867:                    java.util.Map localeTitlesMap,
0868:                    java.lang.String description, java.lang.String type,
0869:                    boolean hidden, java.lang.String friendlyURL,
0870:                    java.lang.Boolean iconImage, byte[] iconBytes)
0871:                    throws com.liferay.portal.SystemException,
0872:                    com.liferay.portal.PortalException {
0873:                try {
0874:                    Object paramObj0 = new LongWrapper(groupId);
0875:
0876:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0877:
0878:                    Object paramObj2 = new LongWrapper(layoutId);
0879:
0880:                    Object paramObj3 = new LongWrapper(parentLayoutId);
0881:
0882:                    Object paramObj4 = localeNamesMap;
0883:
0884:                    if (localeNamesMap == null) {
0885:                        paramObj4 = new NullWrapper("java.util.Map");
0886:                    }
0887:
0888:                    Object paramObj5 = localeTitlesMap;
0889:
0890:                    if (localeTitlesMap == null) {
0891:                        paramObj5 = new NullWrapper("java.util.Map");
0892:                    }
0893:
0894:                    Object paramObj6 = description;
0895:
0896:                    if (description == null) {
0897:                        paramObj6 = new NullWrapper("java.lang.String");
0898:                    }
0899:
0900:                    Object paramObj7 = type;
0901:
0902:                    if (type == null) {
0903:                        paramObj7 = new NullWrapper("java.lang.String");
0904:                    }
0905:
0906:                    Object paramObj8 = new BooleanWrapper(hidden);
0907:
0908:                    Object paramObj9 = friendlyURL;
0909:
0910:                    if (friendlyURL == null) {
0911:                        paramObj9 = new NullWrapper("java.lang.String");
0912:                    }
0913:
0914:                    Object paramObj10 = iconImage;
0915:
0916:                    if (iconImage == null) {
0917:                        paramObj10 = new NullWrapper("java.lang.Boolean");
0918:                    }
0919:
0920:                    Object paramObj11 = iconBytes;
0921:
0922:                    if (iconBytes == null) {
0923:                        paramObj11 = new NullWrapper("[B");
0924:                    }
0925:
0926:                    MethodWrapper methodWrapper = new MethodWrapper(
0927:                            LayoutServiceUtil.class.getName(), "updateLayout",
0928:                            new Object[] { paramObj0, paramObj1, paramObj2,
0929:                                    paramObj3, paramObj4, paramObj5, paramObj6,
0930:                                    paramObj7, paramObj8, paramObj9,
0931:                                    paramObj10, paramObj11 });
0932:
0933:                    Object returnObj = null;
0934:
0935:                    try {
0936:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0937:                                methodWrapper);
0938:                    } catch (Exception e) {
0939:                        if (e instanceof  com.liferay.portal.SystemException) {
0940:                            throw (com.liferay.portal.SystemException) e;
0941:                        }
0942:
0943:                        if (e instanceof  com.liferay.portal.PortalException) {
0944:                            throw (com.liferay.portal.PortalException) e;
0945:                        }
0946:
0947:                        throw new com.liferay.portal.SystemException(e);
0948:                    }
0949:
0950:                    return (com.liferay.portal.model.Layout) returnObj;
0951:                } catch (com.liferay.portal.SystemException se) {
0952:                    _log.error(se, se);
0953:
0954:                    throw se;
0955:                }
0956:            }
0957:
0958:            public static com.liferay.portal.model.Layout updateLayout(
0959:                    HttpPrincipal httpPrincipal, long groupId,
0960:                    boolean privateLayout, long layoutId,
0961:                    java.lang.String typeSettings)
0962:                    throws com.liferay.portal.SystemException,
0963:                    com.liferay.portal.PortalException {
0964:                try {
0965:                    Object paramObj0 = new LongWrapper(groupId);
0966:
0967:                    Object paramObj1 = new BooleanWrapper(privateLayout);
0968:
0969:                    Object paramObj2 = new LongWrapper(layoutId);
0970:
0971:                    Object paramObj3 = typeSettings;
0972:
0973:                    if (typeSettings == null) {
0974:                        paramObj3 = new NullWrapper("java.lang.String");
0975:                    }
0976:
0977:                    MethodWrapper methodWrapper = new MethodWrapper(
0978:                            LayoutServiceUtil.class.getName(), "updateLayout",
0979:                            new Object[] { paramObj0, paramObj1, paramObj2,
0980:                                    paramObj3 });
0981:
0982:                    Object returnObj = null;
0983:
0984:                    try {
0985:                        returnObj = TunnelUtil.invoke(httpPrincipal,
0986:                                methodWrapper);
0987:                    } catch (Exception e) {
0988:                        if (e instanceof  com.liferay.portal.SystemException) {
0989:                            throw (com.liferay.portal.SystemException) e;
0990:                        }
0991:
0992:                        if (e instanceof  com.liferay.portal.PortalException) {
0993:                            throw (com.liferay.portal.PortalException) e;
0994:                        }
0995:
0996:                        throw new com.liferay.portal.SystemException(e);
0997:                    }
0998:
0999:                    return (com.liferay.portal.model.Layout) returnObj;
1000:                } catch (com.liferay.portal.SystemException se) {
1001:                    _log.error(se, se);
1002:
1003:                    throw se;
1004:                }
1005:            }
1006:
1007:            public static com.liferay.portal.model.Layout updateLookAndFeel(
1008:                    HttpPrincipal httpPrincipal, long groupId,
1009:                    boolean privateLayout, long layoutId,
1010:                    java.lang.String themeId, java.lang.String colorSchemeId,
1011:                    java.lang.String css, boolean wapTheme)
1012:                    throws com.liferay.portal.SystemException,
1013:                    com.liferay.portal.PortalException {
1014:                try {
1015:                    Object paramObj0 = new LongWrapper(groupId);
1016:
1017:                    Object paramObj1 = new BooleanWrapper(privateLayout);
1018:
1019:                    Object paramObj2 = new LongWrapper(layoutId);
1020:
1021:                    Object paramObj3 = themeId;
1022:
1023:                    if (themeId == null) {
1024:                        paramObj3 = new NullWrapper("java.lang.String");
1025:                    }
1026:
1027:                    Object paramObj4 = colorSchemeId;
1028:
1029:                    if (colorSchemeId == null) {
1030:                        paramObj4 = new NullWrapper("java.lang.String");
1031:                    }
1032:
1033:                    Object paramObj5 = css;
1034:
1035:                    if (css == null) {
1036:                        paramObj5 = new NullWrapper("java.lang.String");
1037:                    }
1038:
1039:                    Object paramObj6 = new BooleanWrapper(wapTheme);
1040:
1041:                    MethodWrapper methodWrapper = new MethodWrapper(
1042:                            LayoutServiceUtil.class.getName(),
1043:                            "updateLookAndFeel", new Object[] { paramObj0,
1044:                                    paramObj1, paramObj2, paramObj3, paramObj4,
1045:                                    paramObj5, paramObj6 });
1046:
1047:                    Object returnObj = null;
1048:
1049:                    try {
1050:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1051:                                methodWrapper);
1052:                    } catch (Exception e) {
1053:                        if (e instanceof  com.liferay.portal.SystemException) {
1054:                            throw (com.liferay.portal.SystemException) e;
1055:                        }
1056:
1057:                        if (e instanceof  com.liferay.portal.PortalException) {
1058:                            throw (com.liferay.portal.PortalException) e;
1059:                        }
1060:
1061:                        throw new com.liferay.portal.SystemException(e);
1062:                    }
1063:
1064:                    return (com.liferay.portal.model.Layout) returnObj;
1065:                } catch (com.liferay.portal.SystemException se) {
1066:                    _log.error(se, se);
1067:
1068:                    throw se;
1069:                }
1070:            }
1071:
1072:            public static com.liferay.portal.model.Layout updateName(
1073:                    HttpPrincipal httpPrincipal, long plid,
1074:                    java.lang.String name, java.lang.String languageId)
1075:                    throws com.liferay.portal.SystemException,
1076:                    com.liferay.portal.PortalException {
1077:                try {
1078:                    Object paramObj0 = new LongWrapper(plid);
1079:
1080:                    Object paramObj1 = name;
1081:
1082:                    if (name == null) {
1083:                        paramObj1 = new NullWrapper("java.lang.String");
1084:                    }
1085:
1086:                    Object paramObj2 = languageId;
1087:
1088:                    if (languageId == null) {
1089:                        paramObj2 = new NullWrapper("java.lang.String");
1090:                    }
1091:
1092:                    MethodWrapper methodWrapper = new MethodWrapper(
1093:                            LayoutServiceUtil.class.getName(), "updateName",
1094:                            new Object[] { paramObj0, paramObj1, paramObj2 });
1095:
1096:                    Object returnObj = null;
1097:
1098:                    try {
1099:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1100:                                methodWrapper);
1101:                    } catch (Exception e) {
1102:                        if (e instanceof  com.liferay.portal.SystemException) {
1103:                            throw (com.liferay.portal.SystemException) e;
1104:                        }
1105:
1106:                        if (e instanceof  com.liferay.portal.PortalException) {
1107:                            throw (com.liferay.portal.PortalException) e;
1108:                        }
1109:
1110:                        throw new com.liferay.portal.SystemException(e);
1111:                    }
1112:
1113:                    return (com.liferay.portal.model.Layout) returnObj;
1114:                } catch (com.liferay.portal.SystemException se) {
1115:                    _log.error(se, se);
1116:
1117:                    throw se;
1118:                }
1119:            }
1120:
1121:            public static com.liferay.portal.model.Layout updateName(
1122:                    HttpPrincipal httpPrincipal, long groupId,
1123:                    boolean privateLayout, long layoutId,
1124:                    java.lang.String name, java.lang.String languageId)
1125:                    throws com.liferay.portal.SystemException,
1126:                    com.liferay.portal.PortalException {
1127:                try {
1128:                    Object paramObj0 = new LongWrapper(groupId);
1129:
1130:                    Object paramObj1 = new BooleanWrapper(privateLayout);
1131:
1132:                    Object paramObj2 = new LongWrapper(layoutId);
1133:
1134:                    Object paramObj3 = name;
1135:
1136:                    if (name == null) {
1137:                        paramObj3 = new NullWrapper("java.lang.String");
1138:                    }
1139:
1140:                    Object paramObj4 = languageId;
1141:
1142:                    if (languageId == null) {
1143:                        paramObj4 = new NullWrapper("java.lang.String");
1144:                    }
1145:
1146:                    MethodWrapper methodWrapper = new MethodWrapper(
1147:                            LayoutServiceUtil.class.getName(), "updateName",
1148:                            new Object[] { paramObj0, paramObj1, paramObj2,
1149:                                    paramObj3, paramObj4 });
1150:
1151:                    Object returnObj = null;
1152:
1153:                    try {
1154:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1155:                                methodWrapper);
1156:                    } catch (Exception e) {
1157:                        if (e instanceof  com.liferay.portal.SystemException) {
1158:                            throw (com.liferay.portal.SystemException) e;
1159:                        }
1160:
1161:                        if (e instanceof  com.liferay.portal.PortalException) {
1162:                            throw (com.liferay.portal.PortalException) e;
1163:                        }
1164:
1165:                        throw new com.liferay.portal.SystemException(e);
1166:                    }
1167:
1168:                    return (com.liferay.portal.model.Layout) returnObj;
1169:                } catch (com.liferay.portal.SystemException se) {
1170:                    _log.error(se, se);
1171:
1172:                    throw se;
1173:                }
1174:            }
1175:
1176:            public static com.liferay.portal.model.Layout updateParentLayoutId(
1177:                    HttpPrincipal httpPrincipal, long plid, long parentPlid)
1178:                    throws com.liferay.portal.SystemException,
1179:                    com.liferay.portal.PortalException {
1180:                try {
1181:                    Object paramObj0 = new LongWrapper(plid);
1182:
1183:                    Object paramObj1 = new LongWrapper(parentPlid);
1184:
1185:                    MethodWrapper methodWrapper = new MethodWrapper(
1186:                            LayoutServiceUtil.class.getName(),
1187:                            "updateParentLayoutId", new Object[] { paramObj0,
1188:                                    paramObj1 });
1189:
1190:                    Object returnObj = null;
1191:
1192:                    try {
1193:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1194:                                methodWrapper);
1195:                    } catch (Exception e) {
1196:                        if (e instanceof  com.liferay.portal.SystemException) {
1197:                            throw (com.liferay.portal.SystemException) e;
1198:                        }
1199:
1200:                        if (e instanceof  com.liferay.portal.PortalException) {
1201:                            throw (com.liferay.portal.PortalException) e;
1202:                        }
1203:
1204:                        throw new com.liferay.portal.SystemException(e);
1205:                    }
1206:
1207:                    return (com.liferay.portal.model.Layout) returnObj;
1208:                } catch (com.liferay.portal.SystemException se) {
1209:                    _log.error(se, se);
1210:
1211:                    throw se;
1212:                }
1213:            }
1214:
1215:            public static com.liferay.portal.model.Layout updateParentLayoutId(
1216:                    HttpPrincipal httpPrincipal, long groupId,
1217:                    boolean privateLayout, long layoutId, long parentLayoutId)
1218:                    throws com.liferay.portal.SystemException,
1219:                    com.liferay.portal.PortalException {
1220:                try {
1221:                    Object paramObj0 = new LongWrapper(groupId);
1222:
1223:                    Object paramObj1 = new BooleanWrapper(privateLayout);
1224:
1225:                    Object paramObj2 = new LongWrapper(layoutId);
1226:
1227:                    Object paramObj3 = new LongWrapper(parentLayoutId);
1228:
1229:                    MethodWrapper methodWrapper = new MethodWrapper(
1230:                            LayoutServiceUtil.class.getName(),
1231:                            "updateParentLayoutId", new Object[] { paramObj0,
1232:                                    paramObj1, paramObj2, paramObj3 });
1233:
1234:                    Object returnObj = null;
1235:
1236:                    try {
1237:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1238:                                methodWrapper);
1239:                    } catch (Exception e) {
1240:                        if (e instanceof  com.liferay.portal.SystemException) {
1241:                            throw (com.liferay.portal.SystemException) e;
1242:                        }
1243:
1244:                        if (e instanceof  com.liferay.portal.PortalException) {
1245:                            throw (com.liferay.portal.PortalException) e;
1246:                        }
1247:
1248:                        throw new com.liferay.portal.SystemException(e);
1249:                    }
1250:
1251:                    return (com.liferay.portal.model.Layout) returnObj;
1252:                } catch (com.liferay.portal.SystemException se) {
1253:                    _log.error(se, se);
1254:
1255:                    throw se;
1256:                }
1257:            }
1258:
1259:            public static com.liferay.portal.model.Layout updatePriority(
1260:                    HttpPrincipal httpPrincipal, long plid, int priority)
1261:                    throws com.liferay.portal.SystemException,
1262:                    com.liferay.portal.PortalException {
1263:                try {
1264:                    Object paramObj0 = new LongWrapper(plid);
1265:
1266:                    Object paramObj1 = new IntegerWrapper(priority);
1267:
1268:                    MethodWrapper methodWrapper = new MethodWrapper(
1269:                            LayoutServiceUtil.class.getName(),
1270:                            "updatePriority", new Object[] { paramObj0,
1271:                                    paramObj1 });
1272:
1273:                    Object returnObj = null;
1274:
1275:                    try {
1276:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1277:                                methodWrapper);
1278:                    } catch (Exception e) {
1279:                        if (e instanceof  com.liferay.portal.SystemException) {
1280:                            throw (com.liferay.portal.SystemException) e;
1281:                        }
1282:
1283:                        if (e instanceof  com.liferay.portal.PortalException) {
1284:                            throw (com.liferay.portal.PortalException) e;
1285:                        }
1286:
1287:                        throw new com.liferay.portal.SystemException(e);
1288:                    }
1289:
1290:                    return (com.liferay.portal.model.Layout) returnObj;
1291:                } catch (com.liferay.portal.SystemException se) {
1292:                    _log.error(se, se);
1293:
1294:                    throw se;
1295:                }
1296:            }
1297:
1298:            public static com.liferay.portal.model.Layout updatePriority(
1299:                    HttpPrincipal httpPrincipal, long groupId,
1300:                    boolean privateLayout, long layoutId, int priority)
1301:                    throws com.liferay.portal.SystemException,
1302:                    com.liferay.portal.PortalException {
1303:                try {
1304:                    Object paramObj0 = new LongWrapper(groupId);
1305:
1306:                    Object paramObj1 = new BooleanWrapper(privateLayout);
1307:
1308:                    Object paramObj2 = new LongWrapper(layoutId);
1309:
1310:                    Object paramObj3 = new IntegerWrapper(priority);
1311:
1312:                    MethodWrapper methodWrapper = new MethodWrapper(
1313:                            LayoutServiceUtil.class.getName(),
1314:                            "updatePriority", new Object[] { paramObj0,
1315:                                    paramObj1, paramObj2, paramObj3 });
1316:
1317:                    Object returnObj = null;
1318:
1319:                    try {
1320:                        returnObj = TunnelUtil.invoke(httpPrincipal,
1321:                                methodWrapper);
1322:                    } catch (Exception e) {
1323:                        if (e instanceof  com.liferay.portal.SystemException) {
1324:                            throw (com.liferay.portal.SystemException) e;
1325:                        }
1326:
1327:                        if (e instanceof  com.liferay.portal.PortalException) {
1328:                            throw (com.liferay.portal.PortalException) e;
1329:                        }
1330:
1331:                        throw new com.liferay.portal.SystemException(e);
1332:                    }
1333:
1334:                    return (com.liferay.portal.model.Layout) returnObj;
1335:                } catch (com.liferay.portal.SystemException se) {
1336:                    _log.error(se, se);
1337:
1338:                    throw se;
1339:                }
1340:            }
1341:
1342:            private static Log _log = LogFactoryUtil
1343:                    .getLog(LayoutServiceHttp.class);
1344:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.