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