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, int prefixId, int 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, int prefixId, int 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, int prefixId, int 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, int prefixId, int 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 /** 501 * Returns the primary keys of all the users belonging to the group. 502 * 503 * @param groupId the primary key of the group 504 * @return the primary keys of the users belonging to the group 505 * @throws PortalException if the current user did not have permission to 506 view group assignments 507 */ 508 @Override 509 public long[] getGroupUserIds(long groupId) 510 throws com.liferay.portal.kernel.exception.PortalException { 511 return _userService.getGroupUserIds(groupId); 512 } 513 514 /** 515 * Returns all the users belonging to the group. 516 * 517 * @param groupId the primary key of the group 518 * @return the users belonging to the group 519 * @throws PortalException if the current user did not have permission to 520 view group assignments 521 */ 522 @Override 523 public java.util.List<com.liferay.portal.model.User> getGroupUsers( 524 long groupId) 525 throws com.liferay.portal.kernel.exception.PortalException { 526 return _userService.getGroupUsers(groupId); 527 } 528 529 /** 530 * Returns the primary keys of all the users belonging to the organization. 531 * 532 * @param organizationId the primary key of the organization 533 * @return the primary keys of the users belonging to the organization 534 * @throws PortalException if the current user did not have permission to 535 view organization assignments 536 */ 537 @Override 538 public long[] getOrganizationUserIds(long organizationId) 539 throws com.liferay.portal.kernel.exception.PortalException { 540 return _userService.getOrganizationUserIds(organizationId); 541 } 542 543 /** 544 * Returns all the users belonging to the organization. 545 * 546 * @param organizationId the primary key of the organization 547 * @return users belonging to the organization 548 * @throws PortalException if the current user did not have permission to 549 view organization assignments 550 */ 551 @Override 552 public java.util.List<com.liferay.portal.model.User> getOrganizationUsers( 553 long organizationId) 554 throws com.liferay.portal.kernel.exception.PortalException { 555 return _userService.getOrganizationUsers(organizationId); 556 } 557 558 /** 559 * Returns the primary keys of all the users belonging to the role. 560 * 561 * @param roleId the primary key of the role 562 * @return the primary keys of the users belonging to the role 563 * @throws PortalException if the current user did not have permission to 564 view role members 565 */ 566 @Override 567 public long[] getRoleUserIds(long roleId) 568 throws com.liferay.portal.kernel.exception.PortalException { 569 return _userService.getRoleUserIds(roleId); 570 } 571 572 /** 573 * Returns the user with the email address. 574 * 575 * @param companyId the primary key of the user's company 576 * @param emailAddress the user's email address 577 * @return the user with the email address 578 * @throws PortalException if a user with the email address could not be 579 found or if the current user did not have permission to view the 580 user 581 */ 582 @Override 583 public com.liferay.portal.model.User getUserByEmailAddress(long companyId, 584 java.lang.String emailAddress) 585 throws com.liferay.portal.kernel.exception.PortalException { 586 return _userService.getUserByEmailAddress(companyId, emailAddress); 587 } 588 589 /** 590 * Returns the user with the primary key. 591 * 592 * @param userId the primary key of the user 593 * @return the user with the primary key 594 * @throws PortalException if a user with the primary key could not be found 595 or if the current user did not have permission to view the user 596 */ 597 @Override 598 public com.liferay.portal.model.User getUserById(long userId) 599 throws com.liferay.portal.kernel.exception.PortalException { 600 return _userService.getUserById(userId); 601 } 602 603 /** 604 * Returns the user with the screen name. 605 * 606 * @param companyId the primary key of the user's company 607 * @param screenName the user's screen name 608 * @return the user with the screen name 609 * @throws PortalException if a user with the screen name could not be found 610 or if the current user did not have permission to view the user 611 */ 612 @Override 613 public com.liferay.portal.model.User getUserByScreenName(long companyId, 614 java.lang.String screenName) 615 throws com.liferay.portal.kernel.exception.PortalException { 616 return _userService.getUserByScreenName(companyId, screenName); 617 } 618 619 @Override 620 public java.util.List<com.liferay.portal.model.User> getUserGroupUsers( 621 long userGroupId) 622 throws com.liferay.portal.kernel.exception.PortalException { 623 return _userService.getUserGroupUsers(userGroupId); 624 } 625 626 /** 627 * Returns the primary key of the user with the email address. 628 * 629 * @param companyId the primary key of the user's company 630 * @param emailAddress the user's email address 631 * @return the primary key of the user with the email address 632 * @throws PortalException if a user with the email address could not be 633 found 634 */ 635 @Override 636 public long getUserIdByEmailAddress(long companyId, 637 java.lang.String emailAddress) 638 throws com.liferay.portal.kernel.exception.PortalException { 639 return _userService.getUserIdByEmailAddress(companyId, emailAddress); 640 } 641 642 /** 643 * Returns the primary key of the user with the screen name. 644 * 645 * @param companyId the primary key of the user's company 646 * @param screenName the user's screen name 647 * @return the primary key of the user with the screen name 648 * @throws PortalException if a user with the screen name could not be found 649 */ 650 @Override 651 public long getUserIdByScreenName(long companyId, 652 java.lang.String screenName) 653 throws com.liferay.portal.kernel.exception.PortalException { 654 return _userService.getUserIdByScreenName(companyId, screenName); 655 } 656 657 /** 658 * Returns <code>true</code> if the user is a member of the group. 659 * 660 * @param groupId the primary key of the group 661 * @param userId the primary key of the user 662 * @return <code>true</code> if the user is a member of the group; 663 <code>false</code> otherwise 664 * @throws PortalException if the current user did not have permission to 665 view the user or group members 666 */ 667 @Override 668 public boolean hasGroupUser(long groupId, long userId) 669 throws com.liferay.portal.kernel.exception.PortalException { 670 return _userService.hasGroupUser(groupId, userId); 671 } 672 673 /** 674 * Returns <code>true</code> if the user has the role with the name, 675 * optionally through inheritance. 676 * 677 * @param companyId the primary key of the role's company 678 * @param name the name of the role (must be a regular role, not an 679 organization, site or provider role) 680 * @param userId the primary key of the user 681 * @param inherited whether to include roles inherited from organizations, 682 sites, etc. 683 * @return <code>true</code> if the user has the role; <code>false</code> 684 otherwise 685 * @throws PortalException if a role with the name could not be found 686 */ 687 @Override 688 public boolean hasRoleUser(long companyId, java.lang.String name, 689 long userId, boolean inherited) 690 throws com.liferay.portal.kernel.exception.PortalException { 691 return _userService.hasRoleUser(companyId, name, userId, inherited); 692 } 693 694 /** 695 * Returns <code>true</code> if the user is a member of the role. 696 * 697 * @param roleId the primary key of the role 698 * @param userId the primary key of the user 699 * @return <code>true</code> if the user is a member of the role; 700 <code>false</code> otherwise 701 * @throws PortalException if the current user did not have permission to 702 view the user or role members 703 */ 704 @Override 705 public boolean hasRoleUser(long roleId, long userId) 706 throws com.liferay.portal.kernel.exception.PortalException { 707 return _userService.hasRoleUser(roleId, userId); 708 } 709 710 @Override 711 public boolean sendPasswordByEmailAddress(long companyId, 712 java.lang.String emailAddress) 713 throws com.liferay.portal.kernel.exception.PortalException { 714 return _userService.sendPasswordByEmailAddress(companyId, emailAddress); 715 } 716 717 @Override 718 public boolean sendPasswordByScreenName(long companyId, 719 java.lang.String screenName) 720 throws com.liferay.portal.kernel.exception.PortalException { 721 return _userService.sendPasswordByScreenName(companyId, screenName); 722 } 723 724 @Override 725 public boolean sendPasswordByUserId(long userId) 726 throws com.liferay.portal.kernel.exception.PortalException { 727 return _userService.sendPasswordByUserId(userId); 728 } 729 730 /** 731 * Sets the Spring bean ID for this bean. 732 * 733 * @param beanIdentifier the Spring bean ID for this bean 734 */ 735 @Override 736 public void setBeanIdentifier(java.lang.String beanIdentifier) { 737 _userService.setBeanIdentifier(beanIdentifier); 738 } 739 740 /** 741 * Sets the users in the role, removing and adding users to the role as 742 * necessary. 743 * 744 * @param roleId the primary key of the role 745 * @param userIds the primary keys of the users 746 * @throws PortalException if the current user did not have permission to 747 assign role members or if the operation was not allowed by the 748 membership policy 749 */ 750 @Override 751 public void setRoleUsers(long roleId, long[] userIds) 752 throws com.liferay.portal.kernel.exception.PortalException { 753 _userService.setRoleUsers(roleId, userIds); 754 } 755 756 /** 757 * Sets the users in the user group, removing and adding users to the user 758 * group as necessary. 759 * 760 * @param userGroupId the primary key of the user group 761 * @param userIds the primary keys of the users 762 * @throws PortalException if the current user did not have permission to 763 assign group members 764 */ 765 @Override 766 public void setUserGroupUsers(long userGroupId, long[] userIds) 767 throws com.liferay.portal.kernel.exception.PortalException { 768 _userService.setUserGroupUsers(userGroupId, userIds); 769 } 770 771 /** 772 * Removes the users from the teams of a group. 773 * 774 * @param groupId the primary key of the group 775 * @param userIds the primary keys of the users 776 * @throws PortalException if the current user did not have permission to 777 modify user group assignments 778 */ 779 @Override 780 public void unsetGroupTeamsUsers(long groupId, long[] userIds) 781 throws com.liferay.portal.kernel.exception.PortalException { 782 _userService.unsetGroupTeamsUsers(groupId, userIds); 783 } 784 785 /** 786 * Removes the users from the group. 787 * 788 * @param groupId the primary key of the group 789 * @param userIds the primary keys of the users 790 * @param serviceContext the service context to be applied (optionally 791 <code>null</code>) 792 * @throws PortalException if the current user did not have permission to 793 modify group assignments or if the operation was not allowed by 794 the membership policy 795 */ 796 @Override 797 public void unsetGroupUsers(long groupId, long[] userIds, 798 com.liferay.portal.service.ServiceContext serviceContext) 799 throws com.liferay.portal.kernel.exception.PortalException { 800 _userService.unsetGroupUsers(groupId, userIds, serviceContext); 801 } 802 803 /** 804 * Removes the users from the organization. 805 * 806 * @param organizationId the primary key of the organization 807 * @param userIds the primary keys of the users 808 * @throws PortalException if the current user did not have permission to 809 modify organization assignments or if the operation was not 810 allowed by the membership policy 811 */ 812 @Override 813 public void unsetOrganizationUsers(long organizationId, long[] userIds) 814 throws com.liferay.portal.kernel.exception.PortalException { 815 _userService.unsetOrganizationUsers(organizationId, userIds); 816 } 817 818 /** 819 * Removes the users from the password policy. 820 * 821 * @param passwordPolicyId the primary key of the password policy 822 * @param userIds the primary keys of the users 823 * @throws PortalException if the current user did not have permission to 824 modify policy assignments 825 */ 826 @Override 827 public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds) 828 throws com.liferay.portal.kernel.exception.PortalException { 829 _userService.unsetPasswordPolicyUsers(passwordPolicyId, userIds); 830 } 831 832 /** 833 * Removes the users from the role. 834 * 835 * @param roleId the primary key of the role 836 * @param userIds the primary keys of the users 837 * @throws PortalException if the current user did not have permission to 838 modify role assignments or if the operation was not allowed by 839 the membership policy 840 */ 841 @Override 842 public void unsetRoleUsers(long roleId, long[] userIds) 843 throws com.liferay.portal.kernel.exception.PortalException { 844 _userService.unsetRoleUsers(roleId, userIds); 845 } 846 847 /** 848 * Removes the users from the team. 849 * 850 * @param teamId the primary key of the team 851 * @param userIds the primary keys of the users 852 * @throws PortalException if the current user did not have permission to 853 modify team assignments 854 */ 855 @Override 856 public void unsetTeamUsers(long teamId, long[] userIds) 857 throws com.liferay.portal.kernel.exception.PortalException { 858 _userService.unsetTeamUsers(teamId, userIds); 859 } 860 861 /** 862 * Removes the users from the user group. 863 * 864 * @param userGroupId the primary key of the user group 865 * @param userIds the primary keys of the users 866 * @throws PortalException if the current user did not have permission to 867 modify user group assignments or if the operation was not allowed 868 by the membership policy 869 */ 870 @Override 871 public void unsetUserGroupUsers(long userGroupId, long[] userIds) 872 throws com.liferay.portal.kernel.exception.PortalException { 873 _userService.unsetUserGroupUsers(userGroupId, userIds); 874 } 875 876 /** 877 * Updates the user's response to the terms of use agreement. 878 * 879 * @param userId the primary key of the user 880 * @param agreedToTermsOfUse whether the user has agree to the terms of use 881 * @return the user 882 * @throws PortalException if the current user did not have permission to 883 update the user's agreement to terms-of-use 884 */ 885 @Override 886 public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId, 887 boolean agreedToTermsOfUse) 888 throws com.liferay.portal.kernel.exception.PortalException { 889 return _userService.updateAgreedToTermsOfUse(userId, agreedToTermsOfUse); 890 } 891 892 /** 893 * Updates the user's email address. 894 * 895 * @param userId the primary key of the user 896 * @param password the user's password 897 * @param emailAddress1 the user's new email address 898 * @param emailAddress2 the user's new email address confirmation 899 * @param serviceContext the service context to be applied. Must set the 900 portal URL, main path, primary key of the layout, remote address, 901 remote host, and agent for the user. 902 * @return the user 903 * @throws PortalException if a user with the primary key could not be found 904 or if the current user did not have permission to update the user 905 */ 906 @Override 907 public com.liferay.portal.model.User updateEmailAddress(long userId, 908 java.lang.String password, java.lang.String emailAddress1, 909 java.lang.String emailAddress2, 910 com.liferay.portal.service.ServiceContext serviceContext) 911 throws com.liferay.portal.kernel.exception.PortalException { 912 return _userService.updateEmailAddress(userId, password, emailAddress1, 913 emailAddress2, serviceContext); 914 } 915 916 /** 917 * Updates a user account that was automatically created when a guest user 918 * participated in an action (e.g. posting a comment) and only provided his 919 * name and email address. 920 * 921 * @param companyId the primary key of the user's company 922 * @param autoPassword whether a password should be automatically generated 923 for the user 924 * @param password1 the user's password 925 * @param password2 the user's password confirmation 926 * @param autoScreenName whether a screen name should be automatically 927 generated for the user 928 * @param screenName the user's screen name 929 * @param emailAddress the user's email address 930 * @param facebookId the user's facebook ID 931 * @param openId the user's OpenID 932 * @param locale the user's locale 933 * @param firstName the user's first name 934 * @param middleName the user's middle name 935 * @param lastName the user's last name 936 * @param prefixId the user's name prefix ID 937 * @param suffixId the user's name suffix ID 938 * @param male whether the user is male 939 * @param birthdayMonth the user's birthday month (0-based, meaning 0 for 940 January) 941 * @param birthdayDay the user's birthday day 942 * @param birthdayYear the user's birthday year 943 * @param jobTitle the user's job title 944 * @param updateUserInformation whether to update the user's information 945 * @param sendEmail whether to send the user an email notification about 946 their new account 947 * @param serviceContext the service context to be applied (optionally 948 <code>null</code>). Can set the expando bridge attributes for the 949 user. 950 * @return the user 951 * @throws PortalException if the user's information was invalid or if the 952 email address was reserved 953 */ 954 @Override 955 public com.liferay.portal.model.User updateIncompleteUser(long companyId, 956 boolean autoPassword, java.lang.String password1, 957 java.lang.String password2, boolean autoScreenName, 958 java.lang.String screenName, java.lang.String emailAddress, 959 long facebookId, java.lang.String openId, java.util.Locale locale, 960 java.lang.String firstName, java.lang.String middleName, 961 java.lang.String lastName, int prefixId, int suffixId, boolean male, 962 int birthdayMonth, int birthdayDay, int birthdayYear, 963 java.lang.String jobTitle, boolean updateUserInformation, 964 boolean sendEmail, 965 com.liferay.portal.service.ServiceContext serviceContext) 966 throws com.liferay.portal.kernel.exception.PortalException { 967 return _userService.updateIncompleteUser(companyId, autoPassword, 968 password1, password2, autoScreenName, screenName, emailAddress, 969 facebookId, openId, locale, firstName, middleName, lastName, 970 prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear, 971 jobTitle, updateUserInformation, sendEmail, serviceContext); 972 } 973 974 /** 975 * Updates whether the user is locked out from logging in. 976 * 977 * @param userId the primary key of the user 978 * @param lockout whether the user is locked out 979 * @return the user 980 * @throws PortalException if the user did not have permission to lock out 981 the user 982 */ 983 @Override 984 public com.liferay.portal.model.User updateLockoutById(long userId, 985 boolean lockout) 986 throws com.liferay.portal.kernel.exception.PortalException { 987 return _userService.updateLockoutById(userId, lockout); 988 } 989 990 /** 991 * Updates the user's OpenID. 992 * 993 * @param userId the primary key of the user 994 * @param openId the new OpenID 995 * @return the user 996 * @throws PortalException if a user with the primary key could not be found 997 or if the current user did not have permission to update the user 998 */ 999 @Override 1000 public com.liferay.portal.model.User updateOpenId(long userId, 1001 java.lang.String openId) 1002 throws com.liferay.portal.kernel.exception.PortalException { 1003 return _userService.updateOpenId(userId, openId); 1004 } 1005 1006 /** 1007 * Sets the organizations that the user is in, removing and adding 1008 * organizations as necessary. 1009 * 1010 * @param userId the primary key of the user 1011 * @param organizationIds the primary keys of the organizations 1012 * @param serviceContext the service context to be applied. Must set 1013 whether user indexing is enabled. 1014 * @throws PortalException if a user with the primary key could not be found 1015 or if the current user did not have permission to update the user 1016 */ 1017 @Override 1018 public void updateOrganizations(long userId, long[] organizationIds, 1019 com.liferay.portal.service.ServiceContext serviceContext) 1020 throws com.liferay.portal.kernel.exception.PortalException { 1021 _userService.updateOrganizations(userId, organizationIds, serviceContext); 1022 } 1023 1024 /** 1025 * Updates the user's password without tracking or validation of the change. 1026 * 1027 * @param userId the primary key of the user 1028 * @param password1 the user's new password 1029 * @param password2 the user's new password confirmation 1030 * @param passwordReset whether the user should be asked to reset their 1031 password the next time they log in 1032 * @return the user 1033 * @throws PortalException if a user with the primary key could not be found 1034 or if the current user did not have permission to update the user 1035 */ 1036 @Override 1037 public com.liferay.portal.model.User updatePassword(long userId, 1038 java.lang.String password1, java.lang.String password2, 1039 boolean passwordReset) 1040 throws com.liferay.portal.kernel.exception.PortalException { 1041 return _userService.updatePassword(userId, password1, password2, 1042 passwordReset); 1043 } 1044 1045 /** 1046 * Updates the user's portrait image. 1047 * 1048 * @param userId the primary key of the user 1049 * @param bytes the new portrait image data 1050 * @return the user 1051 * @throws PortalException if a user with the primary key could not be 1052 found, if the new portrait was invalid, or if the current user 1053 did not have permission to update the user 1054 */ 1055 @Override 1056 public com.liferay.portal.model.User updatePortrait(long userId, 1057 byte[] bytes) 1058 throws com.liferay.portal.kernel.exception.PortalException { 1059 return _userService.updatePortrait(userId, bytes); 1060 } 1061 1062 /** 1063 * Updates the user's password reset question and answer. 1064 * 1065 * @param userId the primary key of the user 1066 * @param question the user's new password reset question 1067 * @param answer the user's new password reset answer 1068 * @return the user 1069 * @throws PortalException if a user with the primary key could not be 1070 found, if the new question or answer were invalid, or if the 1071 current user did not have permission to update the user 1072 */ 1073 @Override 1074 public com.liferay.portal.model.User updateReminderQuery(long userId, 1075 java.lang.String question, java.lang.String answer) 1076 throws com.liferay.portal.kernel.exception.PortalException { 1077 return _userService.updateReminderQuery(userId, question, answer); 1078 } 1079 1080 /** 1081 * Updates the user's screen name. 1082 * 1083 * @param userId the primary key of the user 1084 * @param screenName the user's new screen name 1085 * @return the user 1086 * @throws PortalException if a user with the primary key could not be 1087 found, if the new screen name was invalid, or if the current user 1088 did not have permission to update the user 1089 */ 1090 @Override 1091 public com.liferay.portal.model.User updateScreenName(long userId, 1092 java.lang.String screenName) 1093 throws com.liferay.portal.kernel.exception.PortalException { 1094 return _userService.updateScreenName(userId, screenName); 1095 } 1096 1097 /** 1098 * Updates the user's workflow status. 1099 * 1100 * @param userId the primary key of the user 1101 * @param status the user's new workflow status 1102 * @return the user 1103 * @throws PortalException if a user with the primary key could not be 1104 found, if the current user was updating her own status to 1105 anything but {@link 1106 com.liferay.portal.kernel.workflow.WorkflowConstants#STATUS_APPROVED}, 1107 or if the current user did not have permission to update the 1108 user's workflow status. 1109 * @deprecated As of 7.0.0, replaced by {@link #updateStatus(long, int, 1110 ServiceContext)} 1111 */ 1112 @Deprecated 1113 @Override 1114 public com.liferay.portal.model.User updateStatus(long userId, int status) 1115 throws com.liferay.portal.kernel.exception.PortalException { 1116 return _userService.updateStatus(userId, status); 1117 } 1118 1119 /** 1120 * Updates the user's workflow status. 1121 * 1122 * @param userId the primary key of the user 1123 * @param status the user's new workflow status 1124 * @param serviceContext the service context to be applied. You can specify 1125 an unencrypted custom password (used by an LDAP listener) for the 1126 user via attribute <code>passwordUnencrypted</code>. 1127 * @return the user 1128 * @throws PortalException if a user with the primary key could not be 1129 found, if the current user was updating her own status to 1130 anything but {@link 1131 com.liferay.portal.kernel.workflow.WorkflowConstants#STATUS_APPROVED}, 1132 or if the current user did not have permission to update the 1133 user's workflow status. 1134 */ 1135 @Override 1136 public com.liferay.portal.model.User updateStatus(long userId, int status, 1137 com.liferay.portal.service.ServiceContext serviceContext) 1138 throws com.liferay.portal.kernel.exception.PortalException { 1139 return _userService.updateStatus(userId, status, serviceContext); 1140 } 1141 1142 /** 1143 * Updates the user with additional parameters. 1144 * 1145 * @param userId the primary key of the user 1146 * @param oldPassword the user's old password 1147 * @param newPassword1 the user's new password (optionally 1148 <code>null</code>) 1149 * @param newPassword2 the user's new password confirmation (optionally 1150 <code>null</code>) 1151 * @param passwordReset whether the user should be asked to reset their 1152 password the next time they login 1153 * @param reminderQueryQuestion the user's new password reset question 1154 * @param reminderQueryAnswer the user's new password reset answer 1155 * @param screenName the user's new screen name 1156 * @param emailAddress the user's new email address 1157 * @param facebookId the user's new Facebook ID 1158 * @param openId the user's new OpenID 1159 * @param languageId the user's new language ID 1160 * @param timeZoneId the user's new time zone ID 1161 * @param greeting the user's new greeting 1162 * @param comments the user's new comments 1163 * @param firstName the user's new first name 1164 * @param middleName the user's new middle name 1165 * @param lastName the user's new last name 1166 * @param prefixId the user's new name prefix ID 1167 * @param suffixId the user's new name suffix ID 1168 * @param male whether user is male 1169 * @param birthdayMonth the user's new birthday month (0-based, meaning 1170 0 for January) 1171 * @param birthdayDay the user's new birthday day 1172 * @param birthdayYear the user's birthday year 1173 * @param smsSn the user's new SMS screen name 1174 * @param aimSn the user's new AIM screen name 1175 * @param facebookSn the user's new Facebook screen name 1176 * @param icqSn the user's new ICQ screen name 1177 * @param jabberSn the user's new Jabber screen name 1178 * @param msnSn the user's new MSN screen name 1179 * @param mySpaceSn the user's new MySpace screen name 1180 * @param skypeSn the user's new Skype screen name 1181 * @param twitterSn the user's new Twitter screen name 1182 * @param ymSn the user's new Yahoo! Messenger screen name 1183 * @param jobTitle the user's new job title 1184 * @param groupIds the primary keys of the user's groups 1185 * @param organizationIds the primary keys of the user's organizations 1186 * @param roleIds the primary keys of the user's roles 1187 * @param userGroupRoles the user user's group roles 1188 * @param userGroupIds the primary keys of the user's user groups 1189 * @param addresses the user's addresses 1190 * @param emailAddresses the user's email addresses 1191 * @param phones the user's phone numbers 1192 * @param websites the user's websites 1193 * @param announcementsDelivers the announcements deliveries 1194 * @param serviceContext the service context to be applied (optionally 1195 <code>null</code>). Can set the UUID (with the 1196 <code>uuid</code> attribute), asset category IDs, asset tag 1197 names, and expando bridge attributes for the user. 1198 * @return the user 1199 * @throws PortalException if a user with the primary key could not be 1200 found, if the new information was invalid, if the current 1201 user did not have permission to update the user, or if the 1202 operation was not allowed by the membership policy 1203 * @deprecated As of 7.0.0, replaced by {@link #updateUser(long, String, 1204 String, String, boolean, String, String, String, String, 1205 long, String, String, String, String, String, String, String, 1206 String, int, int, boolean, int, int, int, String, String, 1207 String, String, String, String, String, String, String, 1208 String, String, long[], long[], long[], java.util.List, 1209 long[], java.util.List, java.util.List, java.util.List, 1210 java.util.List, java.util.List, boolean, byte[], 1211 com.liferay.portal.service.ServiceContext)} 1212 */ 1213 @Deprecated 1214 @Override 1215 public com.liferay.portal.model.User updateUser(long userId, 1216 java.lang.String oldPassword, java.lang.String newPassword1, 1217 java.lang.String newPassword2, boolean passwordReset, 1218 java.lang.String reminderQueryQuestion, 1219 java.lang.String reminderQueryAnswer, java.lang.String screenName, 1220 java.lang.String emailAddress, long facebookId, 1221 java.lang.String openId, java.lang.String languageId, 1222 java.lang.String timeZoneId, java.lang.String greeting, 1223 java.lang.String comments, java.lang.String firstName, 1224 java.lang.String middleName, java.lang.String lastName, int prefixId, 1225 int suffixId, boolean male, int birthdayMonth, int birthdayDay, 1226 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn, 1227 java.lang.String facebookSn, java.lang.String icqSn, 1228 java.lang.String jabberSn, java.lang.String msnSn, 1229 java.lang.String mySpaceSn, java.lang.String skypeSn, 1230 java.lang.String twitterSn, java.lang.String ymSn, 1231 java.lang.String jobTitle, long[] groupIds, long[] organizationIds, 1232 long[] roleIds, 1233 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles, 1234 long[] userGroupIds, 1235 java.util.List<com.liferay.portal.model.Address> addresses, 1236 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses, 1237 java.util.List<com.liferay.portal.model.Phone> phones, 1238 java.util.List<com.liferay.portal.model.Website> websites, 1239 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers, 1240 com.liferay.portal.service.ServiceContext serviceContext) 1241 throws com.liferay.portal.kernel.exception.PortalException { 1242 return _userService.updateUser(userId, oldPassword, newPassword1, 1243 newPassword2, passwordReset, reminderQueryQuestion, 1244 reminderQueryAnswer, screenName, emailAddress, facebookId, openId, 1245 languageId, timeZoneId, greeting, comments, firstName, middleName, 1246 lastName, prefixId, suffixId, male, birthdayMonth, birthdayDay, 1247 birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn, 1248 mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds, 1249 organizationIds, roleIds, userGroupRoles, userGroupIds, addresses, 1250 emailAddresses, phones, websites, announcementsDelivers, 1251 serviceContext); 1252 } 1253 1254 /** 1255 * Updates the user. 1256 * 1257 * @param userId the primary key of the user 1258 * @param oldPassword the user's old password 1259 * @param newPassword1 the user's new password (optionally 1260 <code>null</code>) 1261 * @param newPassword2 the user's new password confirmation (optionally 1262 <code>null</code>) 1263 * @param passwordReset whether the user should be asked to reset their 1264 password the next time they login 1265 * @param reminderQueryQuestion the user's new password reset question 1266 * @param reminderQueryAnswer the user's new password reset answer 1267 * @param screenName the user's new screen name 1268 * @param emailAddress the user's new email address 1269 * @param facebookId the user's new Facebook ID 1270 * @param openId the user's new OpenID 1271 * @param languageId the user's new language ID 1272 * @param timeZoneId the user's new time zone ID 1273 * @param greeting the user's new greeting 1274 * @param comments the user's new comments 1275 * @param firstName the user's new first name 1276 * @param middleName the user's new middle name 1277 * @param lastName the user's new last name 1278 * @param prefixId the user's new name prefix ID 1279 * @param suffixId the user's new name suffix ID 1280 * @param male whether user is male 1281 * @param birthdayMonth the user's new birthday month (0-based, meaning 0 1282 for January) 1283 * @param birthdayDay the user's new birthday day 1284 * @param birthdayYear the user's birthday year 1285 * @param smsSn the user's new SMS screen name 1286 * @param aimSn the user's new AIM screen name 1287 * @param facebookSn the user's new Facebook screen name 1288 * @param icqSn the user's new ICQ screen name 1289 * @param jabberSn the user's new Jabber screen name 1290 * @param msnSn the user's new MSN screen name 1291 * @param mySpaceSn the user's new MySpace screen name 1292 * @param skypeSn the user's new Skype screen name 1293 * @param twitterSn the user's new Twitter screen name 1294 * @param ymSn the user's new Yahoo! Messenger screen name 1295 * @param jobTitle the user's new job title 1296 * @param groupIds the primary keys of the user's groups 1297 * @param organizationIds the primary keys of the user's organizations 1298 * @param roleIds the primary keys of the user's roles 1299 * @param userGroupRoles the user user's group roles 1300 * @param userGroupIds the primary keys of the user's user groups 1301 * @param serviceContext the service context to be applied (optionally 1302 <code>null</code>). Can set the UUID (with the <code>uuid</code> 1303 attribute), asset category IDs, asset tag names, and expando 1304 bridge attributes for the user. 1305 * @return the user 1306 * @throws PortalException if a user with the primary key could not be 1307 found, if the new information was invalid, if the current user 1308 did not have permission to update the user, or if the operation 1309 was not allowed by the membership policy 1310 */ 1311 @Override 1312 public com.liferay.portal.model.User updateUser(long userId, 1313 java.lang.String oldPassword, java.lang.String newPassword1, 1314 java.lang.String newPassword2, boolean passwordReset, 1315 java.lang.String reminderQueryQuestion, 1316 java.lang.String reminderQueryAnswer, java.lang.String screenName, 1317 java.lang.String emailAddress, long facebookId, 1318 java.lang.String openId, java.lang.String languageId, 1319 java.lang.String timeZoneId, java.lang.String greeting, 1320 java.lang.String comments, java.lang.String firstName, 1321 java.lang.String middleName, java.lang.String lastName, int prefixId, 1322 int suffixId, boolean male, int birthdayMonth, int birthdayDay, 1323 int birthdayYear, java.lang.String smsSn, java.lang.String aimSn, 1324 java.lang.String facebookSn, java.lang.String icqSn, 1325 java.lang.String jabberSn, java.lang.String msnSn, 1326 java.lang.String mySpaceSn, java.lang.String skypeSn, 1327 java.lang.String twitterSn, java.lang.String ymSn, 1328 java.lang.String jobTitle, long[] groupIds, long[] organizationIds, 1329 long[] roleIds, 1330 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles, 1331 long[] userGroupIds, 1332 com.liferay.portal.service.ServiceContext serviceContext) 1333 throws com.liferay.portal.kernel.exception.PortalException { 1334 return _userService.updateUser(userId, oldPassword, newPassword1, 1335 newPassword2, passwordReset, reminderQueryQuestion, 1336 reminderQueryAnswer, screenName, emailAddress, facebookId, openId, 1337 languageId, timeZoneId, greeting, comments, firstName, middleName, 1338 lastName, prefixId, suffixId, male, birthdayMonth, birthdayDay, 1339 birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn, 1340 mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds, 1341 organizationIds, roleIds, userGroupRoles, userGroupIds, 1342 serviceContext); 1343 } 1344 1345 /** 1346 * Updates the user with additional parameters. 1347 * 1348 * @param userId the primary key of the user 1349 * @param oldPassword the user's old password 1350 * @param newPassword1 the user's new password (optionally 1351 <code>null</code>) 1352 * @param newPassword2 the user's new password confirmation (optionally 1353 <code>null</code>) 1354 * @param passwordReset whether the user should be asked to reset their 1355 password the next time they login 1356 * @param reminderQueryQuestion the user's new password reset question 1357 * @param reminderQueryAnswer the user's new password reset answer 1358 * @param screenName the user's new screen name 1359 * @param emailAddress the user's new email address 1360 * @param facebookId the user's new Facebook ID 1361 * @param openId the user's new OpenID 1362 * @param portrait whether to update the user's portrait image 1363 * @param portraitBytes the new portrait image data 1364 * @param languageId the user's new language ID 1365 * @param timeZoneId the user's new time zone ID 1366 * @param greeting the user's new greeting 1367 * @param comments the user's new comments 1368 * @param firstName the user's new first name 1369 * @param middleName the user's new middle name 1370 * @param lastName the user's new last name 1371 * @param prefixId the user's new name prefix ID 1372 * @param suffixId the user's new name suffix ID 1373 * @param male whether user is male 1374 * @param birthdayMonth the user's new birthday month (0-based, meaning 0 1375 for January) 1376 * @param birthdayDay the user's new birthday day 1377 * @param birthdayYear the user's birthday year 1378 * @param smsSn the user's new SMS screen name 1379 * @param aimSn the user's new AIM screen name 1380 * @param facebookSn the user's new Facebook screen name 1381 * @param icqSn the user's new ICQ screen name 1382 * @param jabberSn the user's new Jabber screen name 1383 * @param msnSn the user's new MSN screen name 1384 * @param mySpaceSn the user's new MySpace screen name 1385 * @param skypeSn the user's new Skype screen name 1386 * @param twitterSn the user's new Twitter screen name 1387 * @param ymSn the user's new Yahoo! Messenger screen name 1388 * @param jobTitle the user's new job title 1389 * @param groupIds the primary keys of the user's groups 1390 * @param organizationIds the primary keys of the user's organizations 1391 * @param roleIds the primary keys of the user's roles 1392 * @param userGroupRoles the user user's group roles 1393 * @param userGroupIds the primary keys of the user's user groups 1394 * @param addresses the user's addresses 1395 * @param emailAddresses the user's email addresses 1396 * @param phones the user's phone numbers 1397 * @param websites the user's websites 1398 * @param announcementsDelivers the announcements deliveries 1399 * @param serviceContext the service context to be applied (optionally 1400 <code>null</code>). Can set the UUID (with the <code>uuid</code> 1401 attribute), asset category IDs, asset tag names, and expando 1402 bridge attributes for the user. 1403 * @return the user 1404 * @throws PortalException if a user with the primary key could not be 1405 found, if the new information was invalid, if the current user 1406 did not have permission to update the user, or if the operation 1407 was not allowed by the membership policy 1408 */ 1409 @Override 1410 public com.liferay.portal.model.User updateUser(long userId, 1411 java.lang.String oldPassword, java.lang.String newPassword1, 1412 java.lang.String newPassword2, boolean passwordReset, 1413 java.lang.String reminderQueryQuestion, 1414 java.lang.String reminderQueryAnswer, java.lang.String screenName, 1415 java.lang.String emailAddress, long facebookId, 1416 java.lang.String openId, boolean portrait, byte[] portraitBytes, 1417 java.lang.String languageId, java.lang.String timeZoneId, 1418 java.lang.String greeting, java.lang.String comments, 1419 java.lang.String firstName, java.lang.String middleName, 1420 java.lang.String lastName, int prefixId, int suffixId, boolean male, 1421 int birthdayMonth, int birthdayDay, int birthdayYear, 1422 java.lang.String smsSn, java.lang.String aimSn, 1423 java.lang.String facebookSn, java.lang.String icqSn, 1424 java.lang.String jabberSn, java.lang.String msnSn, 1425 java.lang.String mySpaceSn, java.lang.String skypeSn, 1426 java.lang.String twitterSn, java.lang.String ymSn, 1427 java.lang.String jobTitle, long[] groupIds, long[] organizationIds, 1428 long[] roleIds, 1429 java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles, 1430 long[] userGroupIds, 1431 java.util.List<com.liferay.portal.model.Address> addresses, 1432 java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses, 1433 java.util.List<com.liferay.portal.model.Phone> phones, 1434 java.util.List<com.liferay.portal.model.Website> websites, 1435 java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers, 1436 com.liferay.portal.service.ServiceContext serviceContext) 1437 throws com.liferay.portal.kernel.exception.PortalException { 1438 return _userService.updateUser(userId, oldPassword, newPassword1, 1439 newPassword2, passwordReset, reminderQueryQuestion, 1440 reminderQueryAnswer, screenName, emailAddress, facebookId, openId, 1441 portrait, portraitBytes, languageId, timeZoneId, greeting, 1442 comments, firstName, middleName, lastName, prefixId, suffixId, 1443 male, birthdayMonth, birthdayDay, birthdayYear, smsSn, aimSn, 1444 facebookSn, icqSn, jabberSn, msnSn, mySpaceSn, skypeSn, twitterSn, 1445 ymSn, jobTitle, groupIds, organizationIds, roleIds, userGroupRoles, 1446 userGroupIds, addresses, emailAddresses, phones, websites, 1447 announcementsDelivers, serviceContext); 1448 } 1449 1450 /** 1451 * @deprecated As of 6.1.0, replaced by {@link #getWrappedService} 1452 */ 1453 @Deprecated 1454 public UserService getWrappedUserService() { 1455 return _userService; 1456 } 1457 1458 /** 1459 * @deprecated As of 6.1.0, replaced by {@link #setWrappedService} 1460 */ 1461 @Deprecated 1462 public void setWrappedUserService(UserService userService) { 1463 _userService = userService; 1464 } 1465 1466 @Override 1467 public UserService getWrappedService() { 1468 return _userService; 1469 } 1470 1471 @Override 1472 public void setWrappedService(UserService userService) { 1473 _userService = userService; 1474 } 1475 1476 private UserService _userService; 1477 }