001 /** 002 * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved. 003 * 004 * This library is free software; you can redistribute it and/or modify it under 005 * the terms of the GNU Lesser General Public License as published by the Free 006 * Software Foundation; either version 2.1 of the License, or (at your option) 007 * any later version. 008 * 009 * This library is distributed in the hope that it will be useful, but WITHOUT 010 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS 011 * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more 012 * details. 013 */ 014 015 package com.liferay.portal.service; 016 017 /** 018 * <p> 019 * This class is a wrapper for {@link UserService}. 020 * </p> 021 * 022 * @author Brian Wing Shun Chan 023 * @see UserService 024 * @generated 025 */ 026 public class UserServiceWrapper implements UserService, 027 ServiceWrapper<UserService> { 028 public UserServiceWrapper(UserService userService) { 029 _userService = userService; 030 } 031 032 /** 033 * Returns the Spring bean ID for this bean. 034 * 035 * @return the Spring bean ID for this bean 036 */ 037 public java.lang.String getBeanIdentifier() { 038 return _userService.getBeanIdentifier(); 039 } 040 041 /** 042 * Sets the Spring bean ID for this bean. 043 * 044 * @param beanIdentifier the Spring bean ID for this bean 045 */ 046 public void setBeanIdentifier(java.lang.String beanIdentifier) { 047 _userService.setBeanIdentifier(beanIdentifier); 048 } 049 050 /** 051 * Adds the users to the group. 052 * 053 * @param groupId the primary key of the group 054 * @param userIds the primary keys of the users 055 * @param serviceContext the service context to be applied (optionally 056 <code>null</code>) 057 * @throws PortalException if a group or user with the primary key could not 058 be found, or if the user did not have permission to assign group 059 members 060 * @throws SystemException if a system exception occurred 061 */ 062 public void addGroupUsers(long groupId, long[] userIds, 063 com.liferay.portal.service.ServiceContext serviceContext) 064 throws com.liferay.portal.kernel.exception.PortalException, 065 com.liferay.portal.kernel.exception.SystemException { 066 _userService.addGroupUsers(groupId, userIds, serviceContext); 067 } 068 069 /** 070 * Adds the users to the organization. 071 * 072 * @param organizationId the primary key of the organization 073 * @param userIds the primary keys of the users 074 * @throws PortalException if an organization or user with the primary key 075 could not be found, if the user did not have permission to assign 076 organization members, or if current user did not have an 077 organization in common with a given user 078 * @throws SystemException if a system exception occurred 079 */ 080 public void addOrganizationUsers(long organizationId, long[] userIds) 081 throws com.liferay.portal.kernel.exception.PortalException, 082 com.liferay.portal.kernel.exception.SystemException { 083 _userService.addOrganizationUsers(organizationId, userIds); 084 } 085 086 /** 087 * Assigns the password policy to the users, removing any other currently 088 * assigned password policies. 089 * 090 * @param passwordPolicyId the primary key of the password policy 091 * @param userIds the primary keys of the users 092 * @throws PortalException if the user did not have permission to assign 093 policy members 094 * @throws SystemException if a system exception occurred 095 */ 096 public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds) 097 throws com.liferay.portal.kernel.exception.PortalException, 098 com.liferay.portal.kernel.exception.SystemException { 099 _userService.addPasswordPolicyUsers(passwordPolicyId, userIds); 100 } 101 102 /** 103 * Adds the users to the role. 104 * 105 * @param roleId the primary key of the role 106 * @param userIds the primary keys of the users 107 * @throws PortalException if a role or user with the primary key could not 108 be found or if the user did not have permission to assign role 109 members 110 * @throws SystemException if a system exception occurred 111 */ 112 public void addRoleUsers(long roleId, long[] userIds) 113 throws com.liferay.portal.kernel.exception.PortalException, 114 com.liferay.portal.kernel.exception.SystemException { 115 _userService.addRoleUsers(roleId, userIds); 116 } 117 118 /** 119 * Adds the users to the team. 120 * 121 * @param teamId the primary key of the team 122 * @param userIds the primary keys of the users 123 * @throws PortalException if a team or user with the primary key could not 124 be found or if the user did not have permission to assign team 125 members 126 * @throws SystemException if a system exception occurred 127 */ 128 public void addTeamUsers(long teamId, long[] userIds) 129 throws com.liferay.portal.kernel.exception.PortalException, 130 com.liferay.portal.kernel.exception.SystemException { 131 _userService.addTeamUsers(teamId, userIds); 132 } 133 134 /** 135 * Adds a user. 136 * 137 * <p> 138 * This method handles the creation and bookkeeping of the user including 139 * its resources, metadata, and internal data structures. It is not 140 * necessary to make subsequent calls to any methods to setup default 141 * groups, resources, etc. 142 * </p> 143 * 144 * @param companyId the primary key of the user's company 145 * @param autoPassword whether a password should be automatically generated 146 for the user 147 * @param password1 the user's password 148 * @param password2 the user's password confirmation 149 * @param autoScreenName whether a screen name should be automatically 150 generated for the user 151 * @param screenName the user's screen name 152 * @param emailAddress the user's email address 153 * @param facebookId the user's facebook ID 154 * @param openId the user's OpenID 155 * @param locale the user's locale 156 * @param firstName the user's first name 157 * @param middleName the user's middle name 158 * @param lastName the user's last name 159 * @param prefixId the user's name prefix ID 160 * @param suffixId the user's name suffix ID 161 * @param male whether the user is male 162 * @param birthdayMonth the user's birthday month (0-based, meaning 0 for 163 January) 164 * @param birthdayDay the user's birthday day 165 * @param birthdayYear the user's birthday year 166 * @param jobTitle the user's job title 167 * @param groupIds the primary keys of the user's groups 168 * @param organizationIds the primary keys of the user's organizations 169 * @param roleIds the primary keys of the roles this user possesses 170 * @param userGroupIds the primary keys of the user's user groups 171 * @param sendEmail whether to send the user an email notification about 172 their new account 173 * @param serviceContext the user's service context (optionally 174 <code>null</code>). Can set the universally unique identifier 175 (with the <code>uuid</code> attribute), asset category IDs, asset 176 tag names, and expando bridge attributes for the user. 177 * @return the new user 178 * @throws PortalException if the user's information was invalid, if the 179 creator did not have permission to add users, or if the email 180 address was reserved 181 * @throws SystemException if a system exception occurred 182 */ 183 public com.liferay.portal.model.User addUser(long companyId, 184 boolean autoPassword, java.lang.String password1, 185 java.lang.String password2, boolean autoScreenName, 186 java.lang.String screenName, java.lang.String emailAddress, 187 long facebookId, java.lang.String openId, java.util.Locale locale, 188 java.lang.String firstName, java.lang.String middleName, 189 java.lang.String lastName, int prefixId, int suffixId, boolean male, 190 int birthdayMonth, int birthdayDay, int birthdayYear, 191 java.lang.String jobTitle, long[] groupIds, long[] organizationIds, 192 long[] roleIds, long[] userGroupIds, boolean sendEmail, 193 com.liferay.portal.service.ServiceContext serviceContext) 194 throws com.liferay.portal.kernel.exception.PortalException, 195 com.liferay.portal.kernel.exception.SystemException { 196 return _userService.addUser(companyId, autoPassword, password1, 197 password2, autoScreenName, screenName, emailAddress, facebookId, 198 openId, locale, firstName, middleName, lastName, prefixId, 199 suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle, 200 groupIds, organizationIds, roleIds, userGroupIds, sendEmail, 201 serviceContext); 202 } 203 204 /** 205 * Adds a user with additional parameters. 206 * 207 * <p> 208 * This method handles the creation and bookkeeping of the user including 209 * its resources, metadata, and internal data structures. It is not 210 * necessary to make subsequent calls to any methods to setup default 211 * groups, resources, etc. 212 * </p> 213 * 214 * @param companyId the primary key of the user's company 215 * @param autoPassword whether a password should be automatically generated 216 for the user 217 * @param password1 the user's password 218 * @param password2 the user's password confirmation 219 * @param autoScreenName whether a screen name should be automatically 220 generated for the user 221 * @param screenName the user's screen name 222 * @param emailAddress the user's email address 223 * @param facebookId the user's facebook ID 224 * @param openId the user's OpenID 225 * @param locale the user's locale 226 * @param firstName the user's first name 227 * @param middleName the user's middle name 228 * @param lastName the user's last name 229 * @param prefixId the user's name prefix ID 230 * @param suffixId the user's name suffix ID 231 * @param male whether the user is male 232 * @param birthdayMonth the user's birthday month (0-based, meaning 0 for 233 January) 234 * @param birthdayDay the user's birthday day 235 * @param birthdayYear the user's birthday year 236 * @param jobTitle the user's job title 237 * @param groupIds the primary keys of the user's groups 238 * @param organizationIds the primary keys of the user's organizations 239 * @param roleIds the primary keys of the roles this user possesses 240 * @param userGroupIds the primary keys of the user's user groups 241 * @param addresses the user's addresses 242 * @param emailAddresses the user's email addresses 243 * @param phones the user's phone numbers 244 * @param websites the user's websites 245 * @param announcementsDelivers the announcements deliveries 246 * @param sendEmail whether to send the user an email notification about 247 their new account 248 * @param serviceContext the user's service context (optionally 249 <code>null</code>). Can set the universally unique identifier 250 (with the <code>uuid</code> attribute), asset category IDs, asset 251 tag names, and expando bridge attributes for the user. 252 * @return the new user 253 * @throws PortalException if the user's information was invalid, if the 254 creator did not have permission to add users, if the email 255 address was reserved, or some other portal exception occurred 256 * @throws SystemException if a system exception occurred 257 */ 258 public com.liferay.portal.model.User addUser(long companyId, 259 boolean autoPassword, java.lang.String password1, 260 java.lang.String password2, boolean autoScreenName, 261 java.lang.String screenName, java.lang.String emailAddress, 262 long facebookId, java.lang.String openId, java.util.Locale locale, 263 java.lang.String firstName, java.lang.String middleName, 264 java.lang.String lastName, int prefixId, int suffixId, boolean male, 265 int birthdayMonth, int birthdayDay, int birthdayYear, 266 java.lang.String jobTitle, long[] groupIds, long[] organizationIds, 267 long[] roleIds, long[] userGroupIds, 268 java.util.List<com.liferay.portal.model.Address> addresses, 269 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses, 270 java.util.List<com.liferay.portal.model.Phone> phones, 271 java.util.List<com.liferay.portal.model.Website> websites, 272 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers, 273 boolean sendEmail, 274 com.liferay.portal.service.ServiceContext serviceContext) 275 throws com.liferay.portal.kernel.exception.PortalException, 276 com.liferay.portal.kernel.exception.SystemException { 277 return _userService.addUser(companyId, autoPassword, password1, 278 password2, autoScreenName, screenName, emailAddress, facebookId, 279 openId, locale, firstName, middleName, lastName, prefixId, 280 suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle, 281 groupIds, organizationIds, roleIds, userGroupIds, addresses, 282 emailAddresses, phones, websites, announcementsDelivers, sendEmail, 283 serviceContext); 284 } 285 286 /** 287 * Adds the users to the user group. 288 * 289 * @param userGroupId the primary key of the user group 290 * @param userIds the primary keys of the users 291 * @throws PortalException if a user group or user with the primary could 292 could not be found, or if the current user did not have 293 permission to assign group members 294 * @throws SystemException if a system exception occurred 295 */ 296 public void addUserGroupUsers(long userGroupId, long[] userIds) 297 throws com.liferay.portal.kernel.exception.PortalException, 298 com.liferay.portal.kernel.exception.SystemException { 299 _userService.addUserGroupUsers(userGroupId, userIds); 300 } 301 302 /** 303 * Adds a user with workflow. 304 * 305 * <p> 306 * This method handles the creation and bookkeeping of the user including 307 * its resources, metadata, and internal data structures. It is not 308 * necessary to make subsequent calls to any methods to setup default 309 * groups, resources, etc. 310 * </p> 311 * 312 * @param companyId the primary key of the user's company 313 * @param autoPassword whether a password should be automatically generated 314 for the user 315 * @param password1 the user's password 316 * @param password2 the user's password confirmation 317 * @param autoScreenName whether a screen name should be automatically 318 generated for the user 319 * @param screenName the user's screen name 320 * @param emailAddress the user's email address 321 * @param facebookId the user's facebook ID 322 * @param openId the user's OpenID 323 * @param locale the user's locale 324 * @param firstName the user's first name 325 * @param middleName the user's middle name 326 * @param lastName the user's last name 327 * @param prefixId the user's name prefix ID 328 * @param suffixId the user's name suffix ID 329 * @param male whether the user is male 330 * @param birthdayMonth the user's birthday month (0-based, meaning 0 for 331 January) 332 * @param birthdayDay the user's birthday day 333 * @param birthdayYear the user's birthday year 334 * @param jobTitle the user's job title 335 * @param groupIds the primary keys of the user's groups 336 * @param organizationIds the primary keys of the user's organizations 337 * @param roleIds the primary keys of the roles this user possesses 338 * @param userGroupIds the primary keys of the user's user groups 339 * @param sendEmail whether to send the user an email notification about 340 their new account 341 * @param serviceContext the user's service context (optionally 342 <code>null</code>). Can set the universally unique identifier 343 (with the <code>uuid</code> attribute), asset category IDs, asset 344 tag names, and expando bridge attributes for the user. 345 * @return the new user 346 * @throws PortalException if the user's information was invalid, if the 347 creator did not have permission to add users, or if the email 348 address was reserved 349 * @throws SystemException if a system exception occurred 350 */ 351 public com.liferay.portal.model.User addUserWithWorkflow(long companyId, 352 boolean autoPassword, java.lang.String password1, 353 java.lang.String password2, boolean autoScreenName, 354 java.lang.String screenName, java.lang.String emailAddress, 355 long facebookId, java.lang.String openId, java.util.Locale locale, 356 java.lang.String firstName, java.lang.String middleName, 357 java.lang.String lastName, int prefixId, int suffixId, boolean male, 358 int birthdayMonth, int birthdayDay, int birthdayYear, 359 java.lang.String jobTitle, long[] groupIds, long[] organizationIds, 360 long[] roleIds, long[] userGroupIds, boolean sendEmail, 361 com.liferay.portal.service.ServiceContext serviceContext) 362 throws com.liferay.portal.kernel.exception.PortalException, 363 com.liferay.portal.kernel.exception.SystemException { 364 return _userService.addUserWithWorkflow(companyId, autoPassword, 365 password1, password2, autoScreenName, screenName, emailAddress, 366 facebookId, openId, locale, firstName, middleName, lastName, 367 prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear, 368 jobTitle, groupIds, organizationIds, roleIds, userGroupIds, 369 sendEmail, serviceContext); 370 } 371 372 /** 373 * Adds a user with workflow and additional parameters. 374 * 375 * <p> 376 * This method handles the creation and bookkeeping of the user including 377 * its resources, metadata, and internal data structures. It is not 378 * necessary to make subsequent calls to any methods to setup default 379 * groups, resources, etc. 380 * </p> 381 * 382 * @param companyId the primary key of the user's company 383 * @param autoPassword whether a password should be automatically generated 384 for the user 385 * @param password1 the user's password 386 * @param password2 the user's password confirmation 387 * @param autoScreenName whether a screen name should be automatically 388 generated for the user 389 * @param screenName the user's screen name 390 * @param emailAddress the user's email address 391 * @param facebookId the user's facebook ID 392 * @param openId the user's OpenID 393 * @param locale the user's locale 394 * @param firstName the user's first name 395 * @param middleName the user's middle name 396 * @param lastName the user's last name 397 * @param prefixId the user's name prefix ID 398 * @param suffixId the user's name suffix ID 399 * @param male whether the user is male 400 * @param birthdayMonth the user's birthday month (0-based, meaning 0 for 401 January) 402 * @param birthdayDay the user's birthday day 403 * @param birthdayYear the user's birthday year 404 * @param jobTitle the user's job title 405 * @param groupIds the primary keys of the user's groups 406 * @param organizationIds the primary keys of the user's organizations 407 * @param roleIds the primary keys of the roles this user possesses 408 * @param userGroupIds the primary keys of the user's user groups 409 * @param addresses the user's addresses 410 * @param emailAddresses the user's email addresses 411 * @param phones the user's phone numbers 412 * @param websites the user's websites 413 * @param announcementsDelivers the announcements deliveries 414 * @param sendEmail whether to send the user an email notification about 415 their new account 416 * @param serviceContext the user's service context (optionally 417 <code>null</code>). Can set the universally unique identifier 418 (with the <code>uuid</code> attribute), asset category IDs, asset 419 tag names, and expando bridge attributes for the user. 420 * @return the new user 421 * @throws PortalException if the user's information was invalid, if the 422 creator did not have permission to add users, if the email 423 address was reserved, or some other portal exception occurred 424 * @throws SystemException if a system exception occurred 425 */ 426 public com.liferay.portal.model.User addUserWithWorkflow(long companyId, 427 boolean autoPassword, java.lang.String password1, 428 java.lang.String password2, boolean autoScreenName, 429 java.lang.String screenName, java.lang.String emailAddress, 430 long facebookId, java.lang.String openId, java.util.Locale locale, 431 java.lang.String firstName, java.lang.String middleName, 432 java.lang.String lastName, int prefixId, int suffixId, boolean male, 433 int birthdayMonth, int birthdayDay, int birthdayYear, 434 java.lang.String jobTitle, long[] groupIds, long[] organizationIds, 435 long[] roleIds, long[] userGroupIds, 436 java.util.List<com.liferay.portal.model.Address> addresses, 437 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses, 438 java.util.List<com.liferay.portal.model.Phone> phones, 439 java.util.List<com.liferay.portal.model.Website> websites, 440 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers, 441 boolean sendEmail, 442 com.liferay.portal.service.ServiceContext serviceContext) 443 throws com.liferay.portal.kernel.exception.PortalException, 444 com.liferay.portal.kernel.exception.SystemException { 445 return _userService.addUserWithWorkflow(companyId, autoPassword, 446 password1, password2, autoScreenName, screenName, emailAddress, 447 facebookId, openId, locale, firstName, middleName, lastName, 448 prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear, 449 jobTitle, groupIds, organizationIds, roleIds, userGroupIds, 450 addresses, emailAddresses, phones, websites, announcementsDelivers, 451 sendEmail, serviceContext); 452 } 453 454 /** 455 * Deletes the user's portrait image. 456 * 457 * @param userId the primary key of the user 458 * @throws PortalException if a user with the primary key could not be 459 found, if the user's portrait could not be found, or if the 460 current user did not have permission to update the user 461 * @throws SystemException if a system exception occurred 462 */ 463 public void deletePortrait(long userId) 464 throws com.liferay.portal.kernel.exception.PortalException, 465 com.liferay.portal.kernel.exception.SystemException { 466 _userService.deletePortrait(userId); 467 } 468 469 /** 470 * Removes the user from the role. 471 * 472 * @param roleId the primary key of the role 473 * @param userId the primary key of the user 474 * @throws PortalException if a role or user with the primary key could not 475 be found, or if the current user did not have permission to 476 assign role members 477 * @throws SystemException if a system exception occurred 478 */ 479 public void deleteRoleUser(long roleId, long userId) 480 throws com.liferay.portal.kernel.exception.PortalException, 481 com.liferay.portal.kernel.exception.SystemException { 482 _userService.deleteRoleUser(roleId, userId); 483 } 484 485 /** 486 * Deletes the user. 487 * 488 * @param userId the primary key of the user 489 * @throws PortalException if a user with the primary key could not be found 490 or if the current user did not have permission to delete the user 491 * @throws SystemException if a system exception occurred 492 */ 493 public void deleteUser(long userId) 494 throws com.liferay.portal.kernel.exception.PortalException, 495 com.liferay.portal.kernel.exception.SystemException { 496 _userService.deleteUser(userId); 497 } 498 499 public java.util.List<com.liferay.portal.model.User> getCompanyUsers( 500 long companyId, int start, int end) 501 throws com.liferay.portal.kernel.exception.PortalException, 502 com.liferay.portal.kernel.exception.SystemException { 503 return _userService.getCompanyUsers(companyId, start, end); 504 } 505 506 public int getCompanyUsersCount(long companyId) 507 throws com.liferay.portal.kernel.exception.PortalException, 508 com.liferay.portal.kernel.exception.SystemException { 509 return _userService.getCompanyUsersCount(companyId); 510 } 511 512 /** 513 * Returns the primary key of the default user for the company. 514 * 515 * @param companyId the primary key of the company 516 * @return the primary key of the default user for the company 517 * @throws PortalException if a default user for the company could not be 518 found 519 * @throws SystemException if a system exception occurred 520 */ 521 public long getDefaultUserId(long companyId) 522 throws com.liferay.portal.kernel.exception.PortalException, 523 com.liferay.portal.kernel.exception.SystemException { 524 return _userService.getDefaultUserId(companyId); 525 } 526 527 /** 528 * Returns the primary keys of all the users belonging to the group. 529 * 530 * @param groupId the primary key of the group 531 * @return the primary keys of the users belonging to the group 532 * @throws PortalException if the current user did not have permission to 533 view group assignments 534 * @throws SystemException if a system exception occurred 535 */ 536 public long[] getGroupUserIds(long groupId) 537 throws com.liferay.portal.kernel.exception.PortalException, 538 com.liferay.portal.kernel.exception.SystemException { 539 return _userService.getGroupUserIds(groupId); 540 } 541 542 /** 543 * Returns all the users belonging to the group. 544 * 545 * @param groupId the primary key of the group 546 * @return the users belonging to the group 547 * @throws PortalException if the current user did not have permission to 548 view group assignments 549 * @throws SystemException if a system exception occurred 550 */ 551 public java.util.List<com.liferay.portal.model.User> getGroupUsers( 552 long groupId) 553 throws com.liferay.portal.kernel.exception.PortalException, 554 com.liferay.portal.kernel.exception.SystemException { 555 return _userService.getGroupUsers(groupId); 556 } 557 558 /** 559 * Returns the primary keys of all the users belonging to the organization. 560 * 561 * @param organizationId the primary key of the organization 562 * @return the primary keys of the users belonging to the organization 563 * @throws PortalException if the current user did not have permission to 564 view organization assignments 565 * @throws SystemException if a system exception occurred 566 */ 567 public long[] getOrganizationUserIds(long organizationId) 568 throws com.liferay.portal.kernel.exception.PortalException, 569 com.liferay.portal.kernel.exception.SystemException { 570 return _userService.getOrganizationUserIds(organizationId); 571 } 572 573 /** 574 * Returns all the users belonging to the organization. 575 * 576 * @param organizationId the primary key of the organization 577 * @return users belonging to the organization 578 * @throws PortalException if the current user did not have permission to 579 view organization assignments 580 * @throws SystemException if a system exception occurred 581 */ 582 public java.util.List<com.liferay.portal.model.User> getOrganizationUsers( 583 long organizationId) 584 throws com.liferay.portal.kernel.exception.PortalException, 585 com.liferay.portal.kernel.exception.SystemException { 586 return _userService.getOrganizationUsers(organizationId); 587 } 588 589 /** 590 * Returns the primary keys of all the users belonging to the role. 591 * 592 * @param roleId the primary key of the role 593 * @return the primary keys of the users belonging to the role 594 * @throws PortalException if the current user did not have permission to 595 view role members 596 * @throws SystemException if a system exception occurred 597 */ 598 public long[] getRoleUserIds(long roleId) 599 throws com.liferay.portal.kernel.exception.PortalException, 600 com.liferay.portal.kernel.exception.SystemException { 601 return _userService.getRoleUserIds(roleId); 602 } 603 604 /** 605 * Returns the user with the email address. 606 * 607 * @param companyId the primary key of the user's company 608 * @param emailAddress the user's email address 609 * @return the user with the email address 610 * @throws PortalException if a user with the email address could not be 611 found or if the current user did not have permission to view the 612 user 613 * @throws SystemException if a system exception occurred 614 */ 615 public com.liferay.portal.model.User getUserByEmailAddress(long companyId, 616 java.lang.String emailAddress) 617 throws com.liferay.portal.kernel.exception.PortalException, 618 com.liferay.portal.kernel.exception.SystemException { 619 return _userService.getUserByEmailAddress(companyId, emailAddress); 620 } 621 622 /** 623 * Returns the user with the primary key. 624 * 625 * @param userId the primary key of the user 626 * @return the user with the primary key 627 * @throws PortalException if a user with the primary key could not be found 628 or if the current user did not have permission to view the user 629 * @throws SystemException if a system exception occurred 630 */ 631 public com.liferay.portal.model.User getUserById(long userId) 632 throws com.liferay.portal.kernel.exception.PortalException, 633 com.liferay.portal.kernel.exception.SystemException { 634 return _userService.getUserById(userId); 635 } 636 637 /** 638 * Returns the user with the screen name. 639 * 640 * @param companyId the primary key of the user's company 641 * @param screenName the user's screen name 642 * @return the user with the screen name 643 * @throws PortalException if a user with the screen name could not be found 644 or if the current user did not have permission to veiw the user 645 * @throws SystemException if a system exception occurred 646 */ 647 public com.liferay.portal.model.User getUserByScreenName(long companyId, 648 java.lang.String screenName) 649 throws com.liferay.portal.kernel.exception.PortalException, 650 com.liferay.portal.kernel.exception.SystemException { 651 return _userService.getUserByScreenName(companyId, screenName); 652 } 653 654 public java.util.List<com.liferay.portal.model.User> getUserGroupUsers( 655 long userGroupId) 656 throws com.liferay.portal.kernel.exception.PortalException, 657 com.liferay.portal.kernel.exception.SystemException { 658 return _userService.getUserGroupUsers(userGroupId); 659 } 660 661 /** 662 * Returns the primary key of the user with the email address. 663 * 664 * @param companyId the primary key of the user's company 665 * @param emailAddress the user's email address 666 * @return the primary key of the user with the email address 667 * @throws PortalException if a user with the email address could not be 668 found 669 * @throws SystemException if a system exception occurred 670 */ 671 public long getUserIdByEmailAddress(long companyId, 672 java.lang.String emailAddress) 673 throws com.liferay.portal.kernel.exception.PortalException, 674 com.liferay.portal.kernel.exception.SystemException { 675 return _userService.getUserIdByEmailAddress(companyId, emailAddress); 676 } 677 678 /** 679 * Returns the primary key of the user with the screen name. 680 * 681 * @param companyId the primary key of the user's company 682 * @param screenName the user's screen name 683 * @return the primary key of the user with the screen name 684 * @throws PortalException if a user with the screen name could not be found 685 * @throws SystemException if a system exception occurred 686 */ 687 public long getUserIdByScreenName(long companyId, 688 java.lang.String screenName) 689 throws com.liferay.portal.kernel.exception.PortalException, 690 com.liferay.portal.kernel.exception.SystemException { 691 return _userService.getUserIdByScreenName(companyId, screenName); 692 } 693 694 /** 695 * Returns <code>true</code> if the user is a member of the group. 696 * 697 * @param groupId the primary key of the group 698 * @param userId the primary key of the user 699 * @return <code>true</code> if the user is a member of the group; 700 <code>false</code> otherwise 701 * @throws PortalException if the current user did not have permission to 702 view the user or group members 703 * @throws SystemException if a system exception occurred 704 */ 705 public boolean hasGroupUser(long groupId, long userId) 706 throws com.liferay.portal.kernel.exception.PortalException, 707 com.liferay.portal.kernel.exception.SystemException { 708 return _userService.hasGroupUser(groupId, userId); 709 } 710 711 /** 712 * Returns <code>true</code> if the user is a member of the role. 713 * 714 * @param roleId the primary key of the role 715 * @param userId the primary key of the user 716 * @return <code>true</code> if the user is a member of the role; 717 <code>false</code> otherwise 718 * @throws PortalException if the current user did not have permission to 719 view the user or role members 720 * @throws SystemException if a system exception occurred 721 */ 722 public boolean hasRoleUser(long roleId, long userId) 723 throws com.liferay.portal.kernel.exception.PortalException, 724 com.liferay.portal.kernel.exception.SystemException { 725 return _userService.hasRoleUser(roleId, userId); 726 } 727 728 /** 729 * Returns <code>true</code> if the user has the role with the name, 730 * optionally through inheritance. 731 * 732 * @param companyId the primary key of the role's company 733 * @param name the name of the role (must be a regular role, not an 734 organization, site or provider role) 735 * @param userId the primary key of the user 736 * @param inherited whether to include roles inherited from organizations, 737 sites, etc. 738 * @return <code>true</code> if the user has the role; <code>false</code> 739 otherwise 740 * @throws PortalException if a role with the name could not be found 741 * @throws SystemException if a system exception occurred 742 */ 743 public boolean hasRoleUser(long companyId, java.lang.String name, 744 long userId, boolean inherited) 745 throws com.liferay.portal.kernel.exception.PortalException, 746 com.liferay.portal.kernel.exception.SystemException { 747 return _userService.hasRoleUser(companyId, name, userId, inherited); 748 } 749 750 /** 751 * Sets the users in the role, removing and adding users to the role as 752 * necessary. 753 * 754 * @param roleId the primary key of the role 755 * @param userIds the primary keys of the users 756 * @throws PortalException if the current user did not have permission to 757 assign role members 758 * @throws SystemException if a system exception occurred 759 */ 760 public void setRoleUsers(long roleId, long[] userIds) 761 throws com.liferay.portal.kernel.exception.PortalException, 762 com.liferay.portal.kernel.exception.SystemException { 763 _userService.setRoleUsers(roleId, userIds); 764 } 765 766 /** 767 * Sets the users in the user group, removing and adding users to the user 768 * group as necessary. 769 * 770 * @param userGroupId the primary key of the user group 771 * @param userIds the primary keys of the users 772 * @throws PortalException if the current user did not have permission to 773 assign group members 774 * @throws SystemException if a system exception occurred 775 */ 776 public void setUserGroupUsers(long userGroupId, long[] userIds) 777 throws com.liferay.portal.kernel.exception.PortalException, 778 com.liferay.portal.kernel.exception.SystemException { 779 _userService.setUserGroupUsers(userGroupId, userIds); 780 } 781 782 /** 783 * Removes the users from the teams of a group. 784 * 785 * @param groupId the primary key of the group 786 * @param userIds the primary keys of the users 787 * @throws PortalException if the current user did not have permission to 788 modify user group assignments 789 * @throws SystemException if a system exception occurred 790 */ 791 public void unsetGroupTeamsUsers(long groupId, long[] userIds) 792 throws com.liferay.portal.kernel.exception.PortalException, 793 com.liferay.portal.kernel.exception.SystemException { 794 _userService.unsetGroupTeamsUsers(groupId, userIds); 795 } 796 797 /** 798 * Removes the users from the group. 799 * 800 * @param groupId the primary key of the group 801 * @param userIds the primary keys of the users 802 * @param serviceContext the service context to be applied (optionally 803 <code>null</code>) 804 * @throws PortalException if the current user did not have permission to 805 modify group assignments 806 * @throws SystemException if a system exception occurred 807 */ 808 public void unsetGroupUsers(long groupId, long[] userIds, 809 com.liferay.portal.service.ServiceContext serviceContext) 810 throws com.liferay.portal.kernel.exception.PortalException, 811 com.liferay.portal.kernel.exception.SystemException { 812 _userService.unsetGroupUsers(groupId, userIds, serviceContext); 813 } 814 815 /** 816 * Removes the users from the organization. 817 * 818 * @param organizationId the primary key of the organization 819 * @param userIds the primary keys of the users 820 * @throws PortalException if the current user did not have permission to 821 modify organization assignments 822 * @throws SystemException if a system exception occurred 823 */ 824 public void unsetOrganizationUsers(long organizationId, long[] userIds) 825 throws com.liferay.portal.kernel.exception.PortalException, 826 com.liferay.portal.kernel.exception.SystemException { 827 _userService.unsetOrganizationUsers(organizationId, userIds); 828 } 829 830 /** 831 * Removes the users from the password policy. 832 * 833 * @param passwordPolicyId the primary key of the password policy 834 * @param userIds the primary keys of the users 835 * @throws PortalException if the current user did not have permission to 836 modify policy assignments 837 * @throws SystemException if a system exception occurred 838 */ 839 public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds) 840 throws com.liferay.portal.kernel.exception.PortalException, 841 com.liferay.portal.kernel.exception.SystemException { 842 _userService.unsetPasswordPolicyUsers(passwordPolicyId, userIds); 843 } 844 845 /** 846 * Removes the users from the role. 847 * 848 * @param roleId the primary key of the role 849 * @param userIds the primary keys of the users 850 * @throws PortalException if the current user did not have permission to 851 modify role assignments 852 * @throws SystemException if a system exception occurred 853 */ 854 public void unsetRoleUsers(long roleId, long[] userIds) 855 throws com.liferay.portal.kernel.exception.PortalException, 856 com.liferay.portal.kernel.exception.SystemException { 857 _userService.unsetRoleUsers(roleId, userIds); 858 } 859 860 /** 861 * Removes the users from the team. 862 * 863 * @param teamId the primary key of the team 864 * @param userIds the primary keys of the users 865 * @throws PortalException if the current user did not have permission to 866 modify team assignments 867 * @throws SystemException if a system exception occurred 868 */ 869 public void unsetTeamUsers(long teamId, long[] userIds) 870 throws com.liferay.portal.kernel.exception.PortalException, 871 com.liferay.portal.kernel.exception.SystemException { 872 _userService.unsetTeamUsers(teamId, userIds); 873 } 874 875 /** 876 * Removes the users from the user group. 877 * 878 * @param userGroupId the primary key of the user group 879 * @param userIds the primary keys of the users 880 * @throws PortalException if the current user did not have permission to 881 modify user group assignments 882 * @throws SystemException if a system exception occurred 883 */ 884 public void unsetUserGroupUsers(long userGroupId, long[] userIds) 885 throws com.liferay.portal.kernel.exception.PortalException, 886 com.liferay.portal.kernel.exception.SystemException { 887 _userService.unsetUserGroupUsers(userGroupId, userIds); 888 } 889 890 /** 891 * Updates the user's response to the terms of use agreement. 892 * 893 * @param userId the primary key of the user 894 * @param agreedToTermsOfUse whether the user has agree to the terms of use 895 * @return the user 896 * @throws PortalException if the current user did not have permission to 897 update the user's agreement to terms-of-use 898 * @throws SystemException if a system exception occurred 899 */ 900 public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId, 901 boolean agreedToTermsOfUse) 902 throws com.liferay.portal.kernel.exception.PortalException, 903 com.liferay.portal.kernel.exception.SystemException { 904 return _userService.updateAgreedToTermsOfUse(userId, agreedToTermsOfUse); 905 } 906 907 /** 908 * Updates the user's email address. 909 * 910 * @param userId the primary key of the user 911 * @param password the user's password 912 * @param emailAddress1 the user's new email address 913 * @param emailAddress2 the user's new email address confirmation 914 * @param serviceContext the service context to be applied. Must set the 915 portal URL, main path, primary key of the layout, remote address, 916 remote host, and agent for the user. 917 * @return the user 918 * @throws PortalException if a user with the primary key could not be found 919 or if the current user did not have permission to update the user 920 * @throws SystemException if a system exception occurred 921 */ 922 public com.liferay.portal.model.User updateEmailAddress(long userId, 923 java.lang.String password, java.lang.String emailAddress1, 924 java.lang.String emailAddress2, 925 com.liferay.portal.service.ServiceContext serviceContext) 926 throws com.liferay.portal.kernel.exception.PortalException, 927 com.liferay.portal.kernel.exception.SystemException { 928 return _userService.updateEmailAddress(userId, password, emailAddress1, 929 emailAddress2, serviceContext); 930 } 931 932 /** 933 * Updates a user account that was automatically created when a guest user 934 * participated in an action (e.g. posting a comment) and only provided his 935 * name and email address. 936 * 937 * @param companyId the primary key of the user's company 938 * @param autoPassword whether a password should be automatically generated 939 for the user 940 * @param password1 the user's password 941 * @param password2 the user's password confirmation 942 * @param autoScreenName whether a screen name should be automatically 943 generated for the user 944 * @param screenName the user's screen name 945 * @param emailAddress the user's email address 946 * @param facebookId the user's facebook ID 947 * @param openId the user's OpenID 948 * @param locale the user's locale 949 * @param firstName the user's first name 950 * @param middleName the user's middle name 951 * @param lastName the user's last name 952 * @param prefixId the user's name prefix ID 953 * @param suffixId the user's name suffix ID 954 * @param male whether the user is male 955 * @param birthdayMonth the user's birthday month (0-based, meaning 0 for 956 January) 957 * @param birthdayDay the user's birthday day 958 * @param birthdayYear the user's birthday year 959 * @param jobTitle the user's job title 960 * @param updateUserInformation whether to update the user's information 961 * @param sendEmail whether to send the user an email notification about 962 their new account 963 * @param serviceContext the user's service context (optionally 964 <code>null</code>). Can set the expando bridge attributes for the 965 user. 966 * @return the user 967 * @throws PortalException if the user's information was invalid or if the 968 email address was reserved 969 * @throws SystemException if a system exception occurred 970 */ 971 public com.liferay.portal.model.User updateIncompleteUser(long companyId, 972 boolean autoPassword, java.lang.String password1, 973 java.lang.String password2, boolean autoScreenName, 974 java.lang.String screenName, java.lang.String emailAddress, 975 long facebookId, java.lang.String openId, java.util.Locale locale, 976 java.lang.String firstName, java.lang.String middleName, 977 java.lang.String lastName, int prefixId, int suffixId, boolean male, 978 int birthdayMonth, int birthdayDay, int birthdayYear, 979 java.lang.String jobTitle, boolean updateUserInformation, 980 boolean sendEmail, 981 com.liferay.portal.service.ServiceContext serviceContext) 982 throws com.liferay.portal.kernel.exception.PortalException, 983 com.liferay.portal.kernel.exception.SystemException { 984 return _userService.updateIncompleteUser(companyId, autoPassword, 985 password1, password2, autoScreenName, screenName, emailAddress, 986 facebookId, openId, locale, firstName, middleName, lastName, 987 prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear, 988 jobTitle, updateUserInformation, sendEmail, serviceContext); 989 } 990 991 /** 992 * Updates whether the user is locked out from logging in. 993 * 994 * @param userId the primary key of the user 995 * @param lockout whether the user is locked out 996 * @return the user 997 * @throws PortalException if the user did not have permission to lock out 998 the user 999 * @throws SystemException if a system exception occurred 1000 */ 1001 public com.liferay.portal.model.User updateLockoutById(long userId, 1002 boolean lockout) 1003 throws com.liferay.portal.kernel.exception.PortalException, 1004 com.liferay.portal.kernel.exception.SystemException { 1005 return _userService.updateLockoutById(userId, lockout); 1006 } 1007 1008 /** 1009 * Updates the user's OpenID. 1010 * 1011 * @param userId the primary key of the user 1012 * @param openId the new OpenID 1013 * @return the user 1014 * @throws PortalException if a user with the primary key could not be found 1015 or if the current user did not have permission to update the user 1016 * @throws SystemException if a system exception occurred 1017 */ 1018 public com.liferay.portal.model.User updateOpenId(long userId, 1019 java.lang.String openId) 1020 throws com.liferay.portal.kernel.exception.PortalException, 1021 com.liferay.portal.kernel.exception.SystemException { 1022 return _userService.updateOpenId(userId, openId); 1023 } 1024 1025 /** 1026 * Sets the organizations that the user is in, removing and adding 1027 * organizations as necessary. 1028 * 1029 * @param userId the primary key of the user 1030 * @param organizationIds the primary keys of the organizations 1031 * @param serviceContext the service context to be applied. Must set 1032 whether user indexing is enabled. 1033 * @throws PortalException if a user with the primary key could not be found 1034 or if the current user did not have permission to update the user 1035 * @throws SystemException if a system exception occurred 1036 */ 1037 public void updateOrganizations(long userId, long[] organizationIds, 1038 com.liferay.portal.service.ServiceContext serviceContext) 1039 throws com.liferay.portal.kernel.exception.PortalException, 1040 com.liferay.portal.kernel.exception.SystemException { 1041 _userService.updateOrganizations(userId, organizationIds, serviceContext); 1042 } 1043 1044 /** 1045 * Updates the user's password without tracking or validation of the change. 1046 * 1047 * @param userId the primary key of the user 1048 * @param password1 the user's new password 1049 * @param password2 the user's new password confirmation 1050 * @param passwordReset whether the user should be asked to reset their 1051 password the next time they log in 1052 * @return the user 1053 * @throws PortalException if a user with the primary key could not be found 1054 or if the current user did not have permission to update the user 1055 * @throws SystemException if a system exception occurred 1056 */ 1057 public com.liferay.portal.model.User updatePassword(long userId, 1058 java.lang.String password1, java.lang.String password2, 1059 boolean passwordReset) 1060 throws com.liferay.portal.kernel.exception.PortalException, 1061 com.liferay.portal.kernel.exception.SystemException { 1062 return _userService.updatePassword(userId, password1, password2, 1063 passwordReset); 1064 } 1065 1066 /** 1067 * Updates the user's portrait image. 1068 * 1069 * @param userId the primary key of the user 1070 * @param bytes the new portrait image data 1071 * @return the user 1072 * @throws PortalException if a user with the primary key could not be 1073 found, if the new portrait was invalid, or if the current user 1074 did not have permission to update the user 1075 * @throws SystemException if a system exception occurred 1076 */ 1077 public com.liferay.portal.model.User updatePortrait(long userId, 1078 byte[] bytes) 1079 throws com.liferay.portal.kernel.exception.PortalException, 1080 com.liferay.portal.kernel.exception.SystemException { 1081 return _userService.updatePortrait(userId, bytes); 1082 } 1083 1084 /** 1085 * Updates the user's password reset question and answer. 1086 * 1087 * @param userId the primary key of the user 1088 * @param question the user's new password reset question 1089 * @param answer the user's new password reset answer 1090 * @return the user 1091 * @throws PortalException if a user with the primary key could not be 1092 found, if the new question or answer were invalid, or if the 1093 current user did not have permission to update the user 1094 * @throws SystemException if a system exception occurred 1095 */ 1096 public com.liferay.portal.model.User updateReminderQuery(long userId, 1097 java.lang.String question, java.lang.String answer) 1098 throws com.liferay.portal.kernel.exception.PortalException, 1099 com.liferay.portal.kernel.exception.SystemException { 1100 return _userService.updateReminderQuery(userId, question, answer); 1101 } 1102 1103 /** 1104 * Updates the user's screen name. 1105 * 1106 * @param userId the primary key of the user 1107 * @param screenName the user's new screen name 1108 * @return the user 1109 * @throws PortalException if a user with the primary key could not be 1110 found, if the new screen name was invalid, or if the current user 1111 did not have permission to update the user 1112 * @throws SystemException if a system exception occurred 1113 */ 1114 public com.liferay.portal.model.User updateScreenName(long userId, 1115 java.lang.String screenName) 1116 throws com.liferay.portal.kernel.exception.PortalException, 1117 com.liferay.portal.kernel.exception.SystemException { 1118 return _userService.updateScreenName(userId, screenName); 1119 } 1120 1121 /** 1122 * Updates the user's workflow status. 1123 * 1124 * @param userId the primary key of the user 1125 * @param status the user's new workflow status 1126 * @return the user 1127 * @throws PortalException if a user with the primary key could not be 1128 found, if the current user was updating her own status to 1129 anything but {@link WorkflowConstants.STATUS_APPROVED}, or if the 1130 current user did not have permission to update the user's 1131 workflow status. 1132 * @throws SystemException if a system exception occurred 1133 */ 1134 public com.liferay.portal.model.User updateStatus(long userId, int status) 1135 throws com.liferay.portal.kernel.exception.PortalException, 1136 com.liferay.portal.kernel.exception.SystemException { 1137 return _userService.updateStatus(userId, status); 1138 } 1139 1140 /** 1141 * Updates the user with additional parameters. 1142 * 1143 * @param userId the primary key of the user 1144 * @param oldPassword the user's old password 1145 * @param newPassword1 the user's new password (optionally 1146 <code>null</code>) 1147 * @param newPassword2 the user's new password confirmation (optionally 1148 <code>null</code>) 1149 * @param passwordReset whether the user should be asked to reset their 1150 password the next time they login 1151 * @param reminderQueryQuestion the user's new password reset question 1152 * @param reminderQueryAnswer the user's new password reset answer 1153 * @param screenName the user's new screen name 1154 * @param emailAddress the user's new email address 1155 * @param facebookId the user's new Facebook ID 1156 * @param openId the user's new OpenID 1157 * @param languageId the user's new language ID 1158 * @param timeZoneId the user's new time zone ID 1159 * @param greeting the user's new greeting 1160 * @param comments the user's new comments 1161 * @param firstName the user's new first name 1162 * @param middleName the user's new middle name 1163 * @param lastName the user's new last name 1164 * @param prefixId the user's new name prefix ID 1165 * @param suffixId the user's new name suffix ID 1166 * @param male whether user is male 1167 * @param birthdayMonth the user's new birthday month (0-based, meaning 0 1168 for January) 1169 * @param birthdayDay the user's new birthday day 1170 * @param birthdayYear the user's birthday year 1171 * @param smsSn the user's new SMS screen name 1172 * @param aimSn the user's new AIM screen name 1173 * @param facebookSn the user's new Facebook screen name 1174 * @param icqSn the user's new ICQ screen name 1175 * @param jabberSn the user's new Jabber screen name 1176 * @param msnSn the user's new MSN screen name 1177 * @param mySpaceSn the user's new MySpace screen name 1178 * @param skypeSn the user's new Skype screen name 1179 * @param twitterSn the user's new Twitter screen name 1180 * @param ymSn the user's new Yahoo! Messenger screen name 1181 * @param jobTitle the user's new job title 1182 * @param groupIds the primary keys of the user's groups 1183 * @param organizationIds the primary keys of the user's organizations 1184 * @param roleIds the primary keys of the user's roles 1185 * @param userGroupRoles the user user's group roles 1186 * @param userGroupIds the primary keys of the user's user groups 1187 * @param addresses the user's addresses 1188 * @param emailAddresses the user's email addresses 1189 * @param phones the user's phone numbers 1190 * @param websites the user's websites 1191 * @param announcementsDelivers the announcements deliveries 1192 * @param serviceContext the user's service context (optionally 1193 <code>null</code>). Can set the universally unique identifier 1194 (with the <code>uuid</code> attribute), asset category IDs, asset 1195 tag names, and expando bridge attributes for the user. 1196 * @return the user 1197 * @throws PortalException if a user with the primary key could not be 1198 found, if the new information was invalid, or if the current user 1199 did not have permission to update the user 1200 * @throws SystemException if a system exception occurred 1201 */ 1202 public com.liferay.portal.model.User updateUser(long userId, 1203 java.lang.String oldPassword, java.lang.String newPassword1, 1204 java.lang.String newPassword2, boolean passwordReset, 1205 java.lang.String reminderQueryQuestion, 1206 java.lang.String reminderQueryAnswer, java.lang.String screenName, 1207 java.lang.String emailAddress, long facebookId, 1208 java.lang.String openId, java.lang.String languageId, 1209 java.lang.String timeZoneId, java.lang.String greeting, 1210 java.lang.String comments, java.lang.String firstName, 1211 java.lang.String middleName, java.lang.String lastName, int prefixId, 1212 int suffixId, boolean male, int birthdayMonth, int birthdayDay, 1213 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn, 1214 java.lang.String facebookSn, java.lang.String icqSn, 1215 java.lang.String jabberSn, java.lang.String msnSn, 1216 java.lang.String mySpaceSn, java.lang.String skypeSn, 1217 java.lang.String twitterSn, java.lang.String ymSn, 1218 java.lang.String jobTitle, long[] groupIds, long[] organizationIds, 1219 long[] roleIds, 1220 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles, 1221 long[] userGroupIds, 1222 java.util.List<com.liferay.portal.model.Address> addresses, 1223 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses, 1224 java.util.List<com.liferay.portal.model.Phone> phones, 1225 java.util.List<com.liferay.portal.model.Website> websites, 1226 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers, 1227 com.liferay.portal.service.ServiceContext serviceContext) 1228 throws com.liferay.portal.kernel.exception.PortalException, 1229 com.liferay.portal.kernel.exception.SystemException { 1230 return _userService.updateUser(userId, oldPassword, newPassword1, 1231 newPassword2, passwordReset, reminderQueryQuestion, 1232 reminderQueryAnswer, screenName, emailAddress, facebookId, openId, 1233 languageId, timeZoneId, greeting, comments, firstName, middleName, 1234 lastName, prefixId, suffixId, male, birthdayMonth, birthdayDay, 1235 birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn, 1236 mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds, 1237 organizationIds, roleIds, userGroupRoles, userGroupIds, addresses, 1238 emailAddresses, phones, websites, announcementsDelivers, 1239 serviceContext); 1240 } 1241 1242 /** 1243 * Updates the user. 1244 * 1245 * @param userId the primary key of the user 1246 * @param oldPassword the user's old password 1247 * @param newPassword1 the user's new password (optionally 1248 <code>null</code>) 1249 * @param newPassword2 the user's new password confirmation (optionally 1250 <code>null</code>) 1251 * @param passwordReset whether the user should be asked to reset their 1252 password the next time they login 1253 * @param reminderQueryQuestion the user's new password reset question 1254 * @param reminderQueryAnswer the user's new password reset answer 1255 * @param screenName the user's new screen name 1256 * @param emailAddress the user's new email address 1257 * @param facebookId the user's new Facebook ID 1258 * @param openId the user's new OpenID 1259 * @param languageId the user's new language ID 1260 * @param timeZoneId the user's new time zone ID 1261 * @param greeting the user's new greeting 1262 * @param comments the user's new comments 1263 * @param firstName the user's new first name 1264 * @param middleName the user's new middle name 1265 * @param lastName the user's new last name 1266 * @param prefixId the user's new name prefix ID 1267 * @param suffixId the user's new name suffix ID 1268 * @param male whether user is male 1269 * @param birthdayMonth the user's new birthday month (0-based, meaning 0 1270 for January) 1271 * @param birthdayDay the user's new birthday day 1272 * @param birthdayYear the user's birthday year 1273 * @param smsSn the user's new SMS screen name 1274 * @param aimSn the user's new AIM screen name 1275 * @param facebookSn the user's new Facebook screen name 1276 * @param icqSn the user's new ICQ screen name 1277 * @param jabberSn the user's new Jabber screen name 1278 * @param msnSn the user's new MSN screen name 1279 * @param mySpaceSn the user's new MySpace screen name 1280 * @param skypeSn the user's new Skype screen name 1281 * @param twitterSn the user's new Twitter screen name 1282 * @param ymSn the user's new Yahoo! Messenger screen name 1283 * @param jobTitle the user's new job title 1284 * @param groupIds the primary keys of the user's groups 1285 * @param organizationIds the primary keys of the user's organizations 1286 * @param roleIds the primary keys of the user's roles 1287 * @param userGroupRoles the user user's group roles 1288 * @param userGroupIds the primary keys of the user's user groups 1289 * @param serviceContext the user's service context (optionally 1290 <code>null</code>). Can set the universally unique identifier 1291 (with the <code>uuid</code> attribute), asset category IDs, asset 1292 tag names, and expando bridge attributes for the user. 1293 * @return the user 1294 * @throws PortalException if a user with the primary key could not be 1295 found, if the new information was invalid, or if the current user 1296 did not have permission to update the user 1297 * @throws SystemException if a system exception occurred 1298 */ 1299 public com.liferay.portal.model.User updateUser(long userId, 1300 java.lang.String oldPassword, java.lang.String newPassword1, 1301 java.lang.String newPassword2, boolean passwordReset, 1302 java.lang.String reminderQueryQuestion, 1303 java.lang.String reminderQueryAnswer, java.lang.String screenName, 1304 java.lang.String emailAddress, long facebookId, 1305 java.lang.String openId, java.lang.String languageId, 1306 java.lang.String timeZoneId, java.lang.String greeting, 1307 java.lang.String comments, java.lang.String firstName, 1308 java.lang.String middleName, java.lang.String lastName, int prefixId, 1309 int suffixId, boolean male, int birthdayMonth, int birthdayDay, 1310 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn, 1311 java.lang.String facebookSn, java.lang.String icqSn, 1312 java.lang.String jabberSn, java.lang.String msnSn, 1313 java.lang.String mySpaceSn, java.lang.String skypeSn, 1314 java.lang.String twitterSn, java.lang.String ymSn, 1315 java.lang.String jobTitle, long[] groupIds, long[] organizationIds, 1316 long[] roleIds, 1317 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles, 1318 long[] userGroupIds, 1319 com.liferay.portal.service.ServiceContext serviceContext) 1320 throws com.liferay.portal.kernel.exception.PortalException, 1321 com.liferay.portal.kernel.exception.SystemException { 1322 return _userService.updateUser(userId, oldPassword, newPassword1, 1323 newPassword2, passwordReset, reminderQueryQuestion, 1324 reminderQueryAnswer, screenName, emailAddress, facebookId, openId, 1325 languageId, timeZoneId, greeting, comments, firstName, middleName, 1326 lastName, prefixId, suffixId, male, birthdayMonth, birthdayDay, 1327 birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn, 1328 mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds, 1329 organizationIds, roleIds, userGroupRoles, userGroupIds, 1330 serviceContext); 1331 } 1332 1333 /** 1334 * @deprecated Renamed to {@link #getWrappedService} 1335 */ 1336 public UserService getWrappedUserService() { 1337 return _userService; 1338 } 1339 1340 /** 1341 * @deprecated Renamed to {@link #setWrappedService} 1342 */ 1343 public void setWrappedUserService(UserService userService) { 1344 _userService = userService; 1345 } 1346 1347 public UserService getWrappedService() { 1348 return _userService; 1349 } 1350 1351 public void setWrappedService(UserService userService) { 1352 _userService = userService; 1353 } 1354 1355 private UserService _userService; 1356 }