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


001:        /**
002:         * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
003:         *
004:         * Permission is hereby granted, free of charge, to any person obtaining a copy
005:         * of this software and associated documentation files (the "Software"), to deal
006:         * in the Software without restriction, including without limitation the rights
007:         * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
008:         * copies of the Software, and to permit persons to whom the Software is
009:         * furnished to do so, subject to the following conditions:
010:         *
011:         * The above copyright notice and this permission notice shall be included in
012:         * all copies or substantial portions of the Software.
013:         *
014:         * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
015:         * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
016:         * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
017:         * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
018:         * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
019:         * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
020:         * SOFTWARE.
021:         */package com.liferay.portal.service;
022:
023:        /**
024:         * <a href="UserServiceUtil.java.html"><b><i>View Source</i></b></a>
025:         *
026:         * <p>
027:         * ServiceBuilder generated this class. Modifications in this class will be
028:         * overwritten the next time is generated.
029:         * </p>
030:         *
031:         * <p>
032:         * This class provides static methods for the
033:         * <code>com.liferay.portal.service.UserService</code>
034:         * bean. The static methods of this class calls the same methods of the bean
035:         * instance. It's convenient to be able to just write one line to call a method
036:         * on a bean instead of writing a lookup call and a method call.
037:         * </p>
038:         *
039:         * <p>
040:         * <code>com.liferay.portal.service.UserServiceFactory</code>
041:         * is responsible for the lookup of the bean.
042:         * </p>
043:         *
044:         * @author Brian Wing Shun Chan
045:         *
046:         * @see com.liferay.portal.service.UserService
047:         * @see com.liferay.portal.service.UserServiceFactory
048:         *
049:         */
050:        public class UserServiceUtil {
051:            public static void addGroupUsers(long groupId, long[] userIds)
052:                    throws com.liferay.portal.PortalException,
053:                    com.liferay.portal.SystemException,
054:                    java.rmi.RemoteException {
055:                UserService userService = UserServiceFactory.getService();
056:
057:                userService.addGroupUsers(groupId, userIds);
058:            }
059:
060:            public static void addOrganizationUsers(long organizationId,
061:                    long[] userIds) throws com.liferay.portal.PortalException,
062:                    com.liferay.portal.SystemException,
063:                    java.rmi.RemoteException {
064:                UserService userService = UserServiceFactory.getService();
065:
066:                userService.addOrganizationUsers(organizationId, userIds);
067:            }
068:
069:            public static void addPasswordPolicyUsers(long passwordPolicyId,
070:                    long[] userIds) throws com.liferay.portal.PortalException,
071:                    com.liferay.portal.SystemException,
072:                    java.rmi.RemoteException {
073:                UserService userService = UserServiceFactory.getService();
074:
075:                userService.addPasswordPolicyUsers(passwordPolicyId, userIds);
076:            }
077:
078:            public static void addRoleUsers(long roleId, long[] userIds)
079:                    throws com.liferay.portal.PortalException,
080:                    com.liferay.portal.SystemException,
081:                    java.rmi.RemoteException {
082:                UserService userService = UserServiceFactory.getService();
083:
084:                userService.addRoleUsers(roleId, userIds);
085:            }
086:
087:            public static void addUserGroupUsers(long userGroupId,
088:                    long[] userIds) throws com.liferay.portal.PortalException,
089:                    com.liferay.portal.SystemException,
090:                    java.rmi.RemoteException {
091:                UserService userService = UserServiceFactory.getService();
092:
093:                userService.addUserGroupUsers(userGroupId, userIds);
094:            }
095:
096:            public static com.liferay.portal.model.User addUser(long companyId,
097:                    boolean autoPassword, java.lang.String password1,
098:                    java.lang.String password2, boolean autoScreenName,
099:                    java.lang.String screenName, java.lang.String emailAddress,
100:                    java.util.Locale locale, java.lang.String firstName,
101:                    java.lang.String middleName, java.lang.String lastName,
102:                    int prefixId, int suffixId, boolean male,
103:                    int birthdayMonth, int birthdayDay, int birthdayYear,
104:                    java.lang.String jobTitle, long[] organizationIds,
105:                    boolean sendEmail)
106:                    throws com.liferay.portal.PortalException,
107:                    com.liferay.portal.SystemException,
108:                    java.rmi.RemoteException {
109:                UserService userService = UserServiceFactory.getService();
110:
111:                return userService.addUser(companyId, autoPassword, password1,
112:                        password2, autoScreenName, screenName, emailAddress,
113:                        locale, firstName, middleName, lastName, prefixId,
114:                        suffixId, male, birthdayMonth, birthdayDay,
115:                        birthdayYear, jobTitle, organizationIds, sendEmail);
116:            }
117:
118:            public static void deleteRoleUser(long roleId, long userId)
119:                    throws com.liferay.portal.PortalException,
120:                    com.liferay.portal.SystemException,
121:                    java.rmi.RemoteException {
122:                UserService userService = UserServiceFactory.getService();
123:
124:                userService.deleteRoleUser(roleId, userId);
125:            }
126:
127:            public static void deleteUser(long userId)
128:                    throws com.liferay.portal.PortalException,
129:                    com.liferay.portal.SystemException,
130:                    java.rmi.RemoteException {
131:                UserService userService = UserServiceFactory.getService();
132:
133:                userService.deleteUser(userId);
134:            }
135:
136:            public static long getDefaultUserId(long companyId)
137:                    throws com.liferay.portal.PortalException,
138:                    com.liferay.portal.SystemException,
139:                    java.rmi.RemoteException {
140:                UserService userService = UserServiceFactory.getService();
141:
142:                return userService.getDefaultUserId(companyId);
143:            }
144:
145:            public static java.util.List getGroupUsers(long groupId)
146:                    throws com.liferay.portal.PortalException,
147:                    com.liferay.portal.SystemException,
148:                    java.rmi.RemoteException {
149:                UserService userService = UserServiceFactory.getService();
150:
151:                return userService.getGroupUsers(groupId);
152:            }
153:
154:            public static java.util.List getRoleUsers(long roleId)
155:                    throws com.liferay.portal.PortalException,
156:                    com.liferay.portal.SystemException,
157:                    java.rmi.RemoteException {
158:                UserService userService = UserServiceFactory.getService();
159:
160:                return userService.getRoleUsers(roleId);
161:            }
162:
163:            public static com.liferay.portal.model.User getUserByEmailAddress(
164:                    long companyId, java.lang.String emailAddress)
165:                    throws com.liferay.portal.PortalException,
166:                    com.liferay.portal.SystemException,
167:                    java.rmi.RemoteException {
168:                UserService userService = UserServiceFactory.getService();
169:
170:                return userService.getUserByEmailAddress(companyId,
171:                        emailAddress);
172:            }
173:
174:            public static com.liferay.portal.model.User getUserById(long userId)
175:                    throws com.liferay.portal.PortalException,
176:                    com.liferay.portal.SystemException,
177:                    java.rmi.RemoteException {
178:                UserService userService = UserServiceFactory.getService();
179:
180:                return userService.getUserById(userId);
181:            }
182:
183:            public static com.liferay.portal.model.User getUserByScreenName(
184:                    long companyId, java.lang.String screenName)
185:                    throws com.liferay.portal.PortalException,
186:                    com.liferay.portal.SystemException,
187:                    java.rmi.RemoteException {
188:                UserService userService = UserServiceFactory.getService();
189:
190:                return userService.getUserByScreenName(companyId, screenName);
191:            }
192:
193:            public static long getUserIdByEmailAddress(long companyId,
194:                    java.lang.String emailAddress)
195:                    throws com.liferay.portal.PortalException,
196:                    com.liferay.portal.SystemException,
197:                    java.rmi.RemoteException {
198:                UserService userService = UserServiceFactory.getService();
199:
200:                return userService.getUserIdByEmailAddress(companyId,
201:                        emailAddress);
202:            }
203:
204:            public static long getUserIdByScreenName(long companyId,
205:                    java.lang.String screenName)
206:                    throws com.liferay.portal.PortalException,
207:                    com.liferay.portal.SystemException,
208:                    java.rmi.RemoteException {
209:                UserService userService = UserServiceFactory.getService();
210:
211:                return userService.getUserIdByScreenName(companyId, screenName);
212:            }
213:
214:            public static boolean hasGroupUser(long groupId, long userId)
215:                    throws com.liferay.portal.PortalException,
216:                    com.liferay.portal.SystemException,
217:                    java.rmi.RemoteException {
218:                UserService userService = UserServiceFactory.getService();
219:
220:                return userService.hasGroupUser(groupId, userId);
221:            }
222:
223:            public static boolean hasRoleUser(long roleId, long userId)
224:                    throws com.liferay.portal.PortalException,
225:                    com.liferay.portal.SystemException,
226:                    java.rmi.RemoteException {
227:                UserService userService = UserServiceFactory.getService();
228:
229:                return userService.hasRoleUser(roleId, userId);
230:            }
231:
232:            public static void setRoleUsers(long roleId, long[] userIds)
233:                    throws com.liferay.portal.PortalException,
234:                    com.liferay.portal.SystemException,
235:                    java.rmi.RemoteException {
236:                UserService userService = UserServiceFactory.getService();
237:
238:                userService.setRoleUsers(roleId, userIds);
239:            }
240:
241:            public static void setUserGroupUsers(long userGroupId,
242:                    long[] userIds) throws com.liferay.portal.PortalException,
243:                    com.liferay.portal.SystemException,
244:                    java.rmi.RemoteException {
245:                UserService userService = UserServiceFactory.getService();
246:
247:                userService.setUserGroupUsers(userGroupId, userIds);
248:            }
249:
250:            public static void unsetGroupUsers(long groupId, long[] userIds)
251:                    throws com.liferay.portal.PortalException,
252:                    com.liferay.portal.SystemException,
253:                    java.rmi.RemoteException {
254:                UserService userService = UserServiceFactory.getService();
255:
256:                userService.unsetGroupUsers(groupId, userIds);
257:            }
258:
259:            public static void unsetOrganizationUsers(long organizationId,
260:                    long[] userIds) throws com.liferay.portal.PortalException,
261:                    com.liferay.portal.SystemException,
262:                    java.rmi.RemoteException {
263:                UserService userService = UserServiceFactory.getService();
264:
265:                userService.unsetOrganizationUsers(organizationId, userIds);
266:            }
267:
268:            public static void unsetPasswordPolicyUsers(long passwordPolicyId,
269:                    long[] userIds) throws com.liferay.portal.PortalException,
270:                    com.liferay.portal.SystemException,
271:                    java.rmi.RemoteException {
272:                UserService userService = UserServiceFactory.getService();
273:
274:                userService.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
275:            }
276:
277:            public static void unsetRoleUsers(long roleId, long[] userIds)
278:                    throws com.liferay.portal.PortalException,
279:                    com.liferay.portal.SystemException,
280:                    java.rmi.RemoteException {
281:                UserService userService = UserServiceFactory.getService();
282:
283:                userService.unsetRoleUsers(roleId, userIds);
284:            }
285:
286:            public static void unsetUserGroupUsers(long userGroupId,
287:                    long[] userIds) throws com.liferay.portal.PortalException,
288:                    com.liferay.portal.SystemException,
289:                    java.rmi.RemoteException {
290:                UserService userService = UserServiceFactory.getService();
291:
292:                userService.unsetUserGroupUsers(userGroupId, userIds);
293:            }
294:
295:            public static com.liferay.portal.model.User updateActive(
296:                    long userId, boolean active)
297:                    throws com.liferay.portal.PortalException,
298:                    com.liferay.portal.SystemException,
299:                    java.rmi.RemoteException {
300:                UserService userService = UserServiceFactory.getService();
301:
302:                return userService.updateActive(userId, active);
303:            }
304:
305:            public static com.liferay.portal.model.User updateAgreedToTermsOfUse(
306:                    long userId, boolean agreedToTermsOfUse)
307:                    throws com.liferay.portal.PortalException,
308:                    com.liferay.portal.SystemException,
309:                    java.rmi.RemoteException {
310:                UserService userService = UserServiceFactory.getService();
311:
312:                return userService.updateAgreedToTermsOfUse(userId,
313:                        agreedToTermsOfUse);
314:            }
315:
316:            public static com.liferay.portal.model.User updateLockout(
317:                    long userId, boolean lockout)
318:                    throws com.liferay.portal.PortalException,
319:                    com.liferay.portal.SystemException,
320:                    java.rmi.RemoteException {
321:                UserService userService = UserServiceFactory.getService();
322:
323:                return userService.updateLockout(userId, lockout);
324:            }
325:
326:            public static void updateOrganizations(long userId,
327:                    long[] organizationIds)
328:                    throws com.liferay.portal.PortalException,
329:                    com.liferay.portal.SystemException,
330:                    java.rmi.RemoteException {
331:                UserService userService = UserServiceFactory.getService();
332:
333:                userService.updateOrganizations(userId, organizationIds);
334:            }
335:
336:            public static com.liferay.portal.model.User updatePassword(
337:                    long userId, java.lang.String password1,
338:                    java.lang.String password2, boolean passwordReset)
339:                    throws com.liferay.portal.PortalException,
340:                    com.liferay.portal.SystemException,
341:                    java.rmi.RemoteException {
342:                UserService userService = UserServiceFactory.getService();
343:
344:                return userService.updatePassword(userId, password1, password2,
345:                        passwordReset);
346:            }
347:
348:            public static void updatePortrait(long userId, byte[] bytes)
349:                    throws com.liferay.portal.PortalException,
350:                    com.liferay.portal.SystemException,
351:                    java.rmi.RemoteException {
352:                UserService userService = UserServiceFactory.getService();
353:
354:                userService.updatePortrait(userId, bytes);
355:            }
356:
357:            public static com.liferay.portal.model.User updateUser(long userId,
358:                    java.lang.String oldPassword, boolean passwordReset,
359:                    java.lang.String screenName, java.lang.String emailAddress,
360:                    java.lang.String languageId, java.lang.String timeZoneId,
361:                    java.lang.String greeting, java.lang.String comments,
362:                    java.lang.String firstName, java.lang.String middleName,
363:                    java.lang.String lastName, int prefixId, int suffixId,
364:                    boolean male, int birthdayMonth, int birthdayDay,
365:                    int birthdayYear, java.lang.String smsSn,
366:                    java.lang.String aimSn, java.lang.String icqSn,
367:                    java.lang.String jabberSn, java.lang.String msnSn,
368:                    java.lang.String skypeSn, java.lang.String ymSn,
369:                    java.lang.String jobTitle, long[] organizationIds)
370:                    throws com.liferay.portal.PortalException,
371:                    com.liferay.portal.SystemException,
372:                    java.rmi.RemoteException {
373:                UserService userService = UserServiceFactory.getService();
374:
375:                return userService.updateUser(userId, oldPassword,
376:                        passwordReset, screenName, emailAddress, languageId,
377:                        timeZoneId, greeting, comments, firstName, middleName,
378:                        lastName, prefixId, suffixId, male, birthdayMonth,
379:                        birthdayDay, birthdayYear, smsSn, aimSn, icqSn,
380:                        jabberSn, msnSn, skypeSn, ymSn, jobTitle,
381:                        organizationIds);
382:            }
383:
384:            public static com.liferay.portal.model.User updateUser(long userId,
385:                    java.lang.String oldPassword,
386:                    java.lang.String newPassword1,
387:                    java.lang.String newPassword2, boolean passwordReset,
388:                    java.lang.String screenName, java.lang.String emailAddress,
389:                    java.lang.String languageId, java.lang.String timeZoneId,
390:                    java.lang.String greeting, java.lang.String comments,
391:                    java.lang.String firstName, java.lang.String middleName,
392:                    java.lang.String lastName, int prefixId, int suffixId,
393:                    boolean male, int birthdayMonth, int birthdayDay,
394:                    int birthdayYear, java.lang.String smsSn,
395:                    java.lang.String aimSn, java.lang.String icqSn,
396:                    java.lang.String jabberSn, java.lang.String msnSn,
397:                    java.lang.String skypeSn, java.lang.String ymSn,
398:                    java.lang.String jobTitle, long[] organizationIds)
399:                    throws com.liferay.portal.PortalException,
400:                    com.liferay.portal.SystemException,
401:                    java.rmi.RemoteException {
402:                UserService userService = UserServiceFactory.getService();
403:
404:                return userService.updateUser(userId, oldPassword,
405:                        newPassword1, newPassword2, passwordReset, screenName,
406:                        emailAddress, languageId, timeZoneId, greeting,
407:                        comments, firstName, middleName, lastName, prefixId,
408:                        suffixId, male, birthdayMonth, birthdayDay,
409:                        birthdayYear, smsSn, aimSn, icqSn, jabberSn, msnSn,
410:                        skypeSn, ymSn, jobTitle, organizationIds);
411:            }
412:        }
www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.