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