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