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