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