/portal-service/src/com/liferay/portal/service/UserServiceWrapper.java

https://github.com/Oggi/liferay-portal · Java · 1186 lines · 369 code · 48 blank · 769 comment · 0 complexity · 5efda32eb70d966bb4aa32f3a701ef8d MD5 · raw file

  1. /**
  2. * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.portal.service;
  15. /**
  16. * <p>
  17. * This class is a wrapper for {@link UserService}.
  18. * </p>
  19. *
  20. * @author Brian Wing Shun Chan
  21. * @see UserService
  22. * @generated
  23. */
  24. public class UserServiceWrapper implements UserService,
  25. ServiceWrapper<UserService> {
  26. public UserServiceWrapper(UserService userService) {
  27. _userService = userService;
  28. }
  29. /**
  30. * Adds the users to the group.
  31. *
  32. * @param groupId the primary key of the group
  33. * @param userIds the primary keys of the users
  34. * @throws PortalException if a group or user with the primary key could
  35. not be found, or if the user did not have permission to assign
  36. group members
  37. * @throws SystemException if a system exception occurred
  38. */
  39. public void addGroupUsers(long groupId, long[] userIds)
  40. throws com.liferay.portal.kernel.exception.PortalException,
  41. com.liferay.portal.kernel.exception.SystemException {
  42. _userService.addGroupUsers(groupId, userIds);
  43. }
  44. /**
  45. * Adds the users to the organization.
  46. *
  47. * @param organizationId the primary key of the organization
  48. * @param userIds the primary keys of the users
  49. * @throws PortalException if an organization or user with the primary key
  50. could not be found, if the user did not have permission to
  51. assign organization members, or if current user did not have an
  52. organization in common with a given user
  53. * @throws SystemException if a system exception occurred
  54. */
  55. public void addOrganizationUsers(long organizationId, long[] userIds)
  56. throws com.liferay.portal.kernel.exception.PortalException,
  57. com.liferay.portal.kernel.exception.SystemException {
  58. _userService.addOrganizationUsers(organizationId, userIds);
  59. }
  60. /**
  61. * Assigns the password policy to the users, removing any other currently
  62. * assigned password policies.
  63. *
  64. * @param passwordPolicyId the primary key of the password policy
  65. * @param userIds the primary keys of the users
  66. * @throws PortalException if the user did not have permission to assign
  67. policy members
  68. * @throws SystemException if a system exception occurred
  69. */
  70. public void addPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
  71. throws com.liferay.portal.kernel.exception.PortalException,
  72. com.liferay.portal.kernel.exception.SystemException {
  73. _userService.addPasswordPolicyUsers(passwordPolicyId, userIds);
  74. }
  75. /**
  76. * Adds the users to the role.
  77. *
  78. * @param roleId the primary key of the role
  79. * @param userIds the primary keys of the users
  80. * @throws PortalException if a role or user with the primary key could not
  81. be found or if the user did not have permission to assign role
  82. members
  83. * @throws SystemException if a system exception occurred
  84. */
  85. public void addRoleUsers(long roleId, long[] userIds)
  86. throws com.liferay.portal.kernel.exception.PortalException,
  87. com.liferay.portal.kernel.exception.SystemException {
  88. _userService.addRoleUsers(roleId, userIds);
  89. }
  90. /**
  91. * Adds the users to the team.
  92. *
  93. * @param teamId the primary key of the team
  94. * @param userIds the primary keys of the users
  95. * @throws PortalException if a team or user with the primary key could not
  96. be found or if the user did not have permission to assign team
  97. members
  98. * @throws SystemException if a system exception occurred
  99. */
  100. public void addTeamUsers(long teamId, long[] userIds)
  101. throws com.liferay.portal.kernel.exception.PortalException,
  102. com.liferay.portal.kernel.exception.SystemException {
  103. _userService.addTeamUsers(teamId, userIds);
  104. }
  105. /**
  106. * Adds a user with additional parameters.
  107. *
  108. * <p>
  109. * This method handles the creation and bookkeeping of the user including
  110. * its resources, metadata, and internal data structures. It is not
  111. * necessary to make subsequent calls to any methods to setup default
  112. * groups, resources, etc.
  113. * </p>
  114. *
  115. * @param companyId the primary key of the user's company
  116. * @param autoPassword whether a password should be automatically
  117. generated for the user
  118. * @param password1 the user's password
  119. * @param password2 the user's password confirmation
  120. * @param autoScreenName whether a screen name should be automatically
  121. generated for the user
  122. * @param screenName the user's screen name
  123. * @param emailAddress the user's email address
  124. * @param facebookId the user's facebook ID
  125. * @param openId the user's OpenID
  126. * @param locale the user's locale
  127. * @param firstName the user's first name
  128. * @param middleName the user's middle name
  129. * @param lastName the user's last name
  130. * @param prefixId the user's name prefix ID
  131. * @param suffixId the user's name suffix ID
  132. * @param male whether the user is male
  133. * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
  134. January)
  135. * @param birthdayDay the user's birthday day
  136. * @param birthdayYear the user's birthday year
  137. * @param jobTitle the user's job title
  138. * @param groupIds the primary keys of the user's groups
  139. * @param organizationIds the primary keys of the user's organizations
  140. * @param roleIds the primary keys of the roles this user possesses
  141. * @param userGroupIds the primary keys of the user's user groups
  142. * @param addresses the user's addresses
  143. * @param emailAddresses the user's email addresses
  144. * @param phones the user's phone numbers
  145. * @param websites the user's websites
  146. * @param announcementsDelivers the announcements deliveries
  147. * @param sendEmail whether to send the user an email notification about
  148. their new account
  149. * @param serviceContext the user's service context (optionally
  150. <code>null</code>). Can specify the user's universally unique
  151. identifier (with the <code>uuid</code> attribute), asset
  152. category IDs, asset tag names, and expando bridge attributes.
  153. * @return the new user
  154. * @throws PortalException if the user's information was invalid, if the
  155. creator did not have permission to add users, if the email
  156. address was reserved, or some other portal exception occurred
  157. * @throws SystemException if a system exception occurred
  158. */
  159. public com.liferay.portal.model.User addUser(long companyId,
  160. boolean autoPassword, java.lang.String password1,
  161. java.lang.String password2, boolean autoScreenName,
  162. java.lang.String screenName, java.lang.String emailAddress,
  163. long facebookId, java.lang.String openId, java.util.Locale locale,
  164. java.lang.String firstName, java.lang.String middleName,
  165. java.lang.String lastName, int prefixId, int suffixId, boolean male,
  166. int birthdayMonth, int birthdayDay, int birthdayYear,
  167. java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
  168. long[] roleIds, long[] userGroupIds,
  169. java.util.List<com.liferay.portal.model.Address> addresses,
  170. java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
  171. java.util.List<com.liferay.portal.model.Phone> phones,
  172. java.util.List<com.liferay.portal.model.Website> websites,
  173. java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
  174. boolean sendEmail,
  175. com.liferay.portal.service.ServiceContext serviceContext)
  176. throws com.liferay.portal.kernel.exception.PortalException,
  177. com.liferay.portal.kernel.exception.SystemException {
  178. return _userService.addUser(companyId, autoPassword, password1,
  179. password2, autoScreenName, screenName, emailAddress, facebookId,
  180. openId, locale, firstName, middleName, lastName, prefixId,
  181. suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
  182. groupIds, organizationIds, roleIds, userGroupIds, addresses,
  183. emailAddresses, phones, websites, announcementsDelivers, sendEmail,
  184. serviceContext);
  185. }
  186. /**
  187. * Adds a user.
  188. *
  189. * <p>
  190. * This method handles the creation and bookkeeping of the user including
  191. * its resources, metadata, and internal data structures. It is not
  192. * necessary to make subsequent calls to any methods to setup default
  193. * groups, resources, etc.
  194. * </p>
  195. *
  196. * @param companyId the primary key of the user's company
  197. * @param autoPassword whether a password should be automatically
  198. generated for the user
  199. * @param password1 the user's password
  200. * @param password2 the user's password confirmation
  201. * @param autoScreenName whether a screen name should be automatically
  202. generated for the user
  203. * @param screenName the user's screen name
  204. * @param emailAddress the user's email address
  205. * @param facebookId the user's facebook ID
  206. * @param openId the user's OpenID
  207. * @param locale the user's locale
  208. * @param firstName the user's first name
  209. * @param middleName the user's middle name
  210. * @param lastName the user's last name
  211. * @param prefixId the user's name prefix ID
  212. * @param suffixId the user's name suffix ID
  213. * @param male whether the user is male
  214. * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
  215. January)
  216. * @param birthdayDay the user's birthday day
  217. * @param birthdayYear the user's birthday year
  218. * @param jobTitle the user's job title
  219. * @param groupIds the primary keys of the user's groups
  220. * @param organizationIds the primary keys of the user's organizations
  221. * @param roleIds the primary keys of the roles this user possesses
  222. * @param userGroupIds the primary keys of the user's user groups
  223. * @param sendEmail whether to send the user an email notification about
  224. their new account
  225. * @param serviceContext the user's service context (optionally
  226. <code>null</code>). Can specify the user's universally unique
  227. identifier (with the <code>uuid</code> attribute), asset
  228. category IDs, asset tag names, and expando bridge attributes.
  229. * @return the new user
  230. * @throws PortalException if the user's information was invalid, if the
  231. creator did not have permission to add users, or if the email
  232. address was reserved
  233. * @throws SystemException if a system exception occurred
  234. */
  235. public com.liferay.portal.model.User addUser(long companyId,
  236. boolean autoPassword, java.lang.String password1,
  237. java.lang.String password2, boolean autoScreenName,
  238. java.lang.String screenName, java.lang.String emailAddress,
  239. long facebookId, java.lang.String openId, java.util.Locale locale,
  240. java.lang.String firstName, java.lang.String middleName,
  241. java.lang.String lastName, int prefixId, int suffixId, boolean male,
  242. int birthdayMonth, int birthdayDay, int birthdayYear,
  243. java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
  244. long[] roleIds, long[] userGroupIds, boolean sendEmail,
  245. com.liferay.portal.service.ServiceContext serviceContext)
  246. throws com.liferay.portal.kernel.exception.PortalException,
  247. com.liferay.portal.kernel.exception.SystemException {
  248. return _userService.addUser(companyId, autoPassword, password1,
  249. password2, autoScreenName, screenName, emailAddress, facebookId,
  250. openId, locale, firstName, middleName, lastName, prefixId,
  251. suffixId, male, birthdayMonth, birthdayDay, birthdayYear, jobTitle,
  252. groupIds, organizationIds, roleIds, userGroupIds, sendEmail,
  253. serviceContext);
  254. }
  255. /**
  256. * Adds a user with workflow and additional parameters.
  257. *
  258. * <p>
  259. * This method handles the creation and bookkeeping of the user including
  260. * its resources, metadata, and internal data structures. It is not
  261. * necessary to make subsequent calls to any methods to setup default
  262. * groups, resources, etc.
  263. * </p>
  264. *
  265. * @param companyId the primary key of the user's company
  266. * @param autoPassword whether a password should be automatically
  267. generated for the user
  268. * @param password1 the user's password
  269. * @param password2 the user's password confirmation
  270. * @param autoScreenName whether a screen name should be automatically
  271. generated for the user
  272. * @param screenName the user's screen name
  273. * @param emailAddress the user's email address
  274. * @param facebookId the user's facebook ID
  275. * @param openId the user's OpenID
  276. * @param locale the user's locale
  277. * @param firstName the user's first name
  278. * @param middleName the user's middle name
  279. * @param lastName the user's last name
  280. * @param prefixId the user's name prefix ID
  281. * @param suffixId the user's name suffix ID
  282. * @param male whether the user is male
  283. * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
  284. January)
  285. * @param birthdayDay the user's birthday day
  286. * @param birthdayYear the user's birthday year
  287. * @param jobTitle the user's job title
  288. * @param groupIds the primary keys of the user's groups
  289. * @param organizationIds the primary keys of the user's organizations
  290. * @param roleIds the primary keys of the roles this user possesses
  291. * @param userGroupIds the primary keys of the user's user groups
  292. * @param addresses the user's addresses
  293. * @param emailAddresses the user's email addresses
  294. * @param phones the user's phone numbers
  295. * @param websites the user's websites
  296. * @param announcementsDelivers the announcements deliveries
  297. * @param sendEmail whether to send the user an email notification about
  298. their new account
  299. * @param serviceContext the user's service context (optionally
  300. <code>null</code>). Can specify the user's universally unique
  301. identifier (with the <code>uuid</code> attribute), asset
  302. category IDs, asset tag names, and expando bridge attributes.
  303. * @return the new user
  304. * @throws PortalException if the user's information was invalid, if the
  305. creator did not have permission to add users, if the email
  306. address was reserved, or some other portal exception occurred
  307. * @throws SystemException if a system exception occurred
  308. */
  309. public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
  310. boolean autoPassword, java.lang.String password1,
  311. java.lang.String password2, boolean autoScreenName,
  312. java.lang.String screenName, java.lang.String emailAddress,
  313. long facebookId, java.lang.String openId, java.util.Locale locale,
  314. java.lang.String firstName, java.lang.String middleName,
  315. java.lang.String lastName, int prefixId, int suffixId, boolean male,
  316. int birthdayMonth, int birthdayDay, int birthdayYear,
  317. java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
  318. long[] roleIds, long[] userGroupIds,
  319. java.util.List<com.liferay.portal.model.Address> addresses,
  320. java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
  321. java.util.List<com.liferay.portal.model.Phone> phones,
  322. java.util.List<com.liferay.portal.model.Website> websites,
  323. java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
  324. boolean sendEmail,
  325. com.liferay.portal.service.ServiceContext serviceContext)
  326. throws com.liferay.portal.kernel.exception.PortalException,
  327. com.liferay.portal.kernel.exception.SystemException {
  328. return _userService.addUserWithWorkflow(companyId, autoPassword,
  329. password1, password2, autoScreenName, screenName, emailAddress,
  330. facebookId, openId, locale, firstName, middleName, lastName,
  331. prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
  332. jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
  333. addresses, emailAddresses, phones, websites, announcementsDelivers,
  334. sendEmail, serviceContext);
  335. }
  336. /**
  337. * Adds a user with workflow.
  338. *
  339. * <p>
  340. * This method handles the creation and bookkeeping of the user including
  341. * its resources, metadata, and internal data structures. It is not
  342. * necessary to make subsequent calls to any methods to setup default
  343. * groups, resources, etc.
  344. * </p>
  345. *
  346. * @param companyId the primary key of the user's company
  347. * @param autoPassword whether a password should be automatically
  348. generated for the user
  349. * @param password1 the user's password
  350. * @param password2 the user's password confirmation
  351. * @param autoScreenName whether a screen name should be automatically
  352. generated for the user
  353. * @param screenName the user's screen name
  354. * @param emailAddress the user's email address
  355. * @param facebookId the user's facebook ID
  356. * @param openId the user's OpenID
  357. * @param locale the user's locale
  358. * @param firstName the user's first name
  359. * @param middleName the user's middle name
  360. * @param lastName the user's last name
  361. * @param prefixId the user's name prefix ID
  362. * @param suffixId the user's name suffix ID
  363. * @param male whether the user is male
  364. * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
  365. January)
  366. * @param birthdayDay the user's birthday day
  367. * @param birthdayYear the user's birthday year
  368. * @param jobTitle the user's job title
  369. * @param groupIds the primary keys of the user's groups
  370. * @param organizationIds the primary keys of the user's organizations
  371. * @param roleIds the primary keys of the roles this user possesses
  372. * @param userGroupIds the primary keys of the user's user groups
  373. * @param sendEmail whether to send the user an email notification about
  374. their new account
  375. * @param serviceContext the user's service context (optionally
  376. <code>null</code>). Can specify the user's universally unique
  377. identifier (with the <code>uuid</code> attribute), asset
  378. category IDs, asset tag names, and expando bridge attributes.
  379. * @return the new user
  380. * @throws PortalException if the user's information was invalid, if the
  381. creator did not have permission to add users, or if the email
  382. address was reserved
  383. * @throws SystemException if a system exception occurred
  384. */
  385. public com.liferay.portal.model.User addUserWithWorkflow(long companyId,
  386. boolean autoPassword, java.lang.String password1,
  387. java.lang.String password2, boolean autoScreenName,
  388. java.lang.String screenName, java.lang.String emailAddress,
  389. long facebookId, java.lang.String openId, java.util.Locale locale,
  390. java.lang.String firstName, java.lang.String middleName,
  391. java.lang.String lastName, int prefixId, int suffixId, boolean male,
  392. int birthdayMonth, int birthdayDay, int birthdayYear,
  393. java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
  394. long[] roleIds, long[] userGroupIds, boolean sendEmail,
  395. com.liferay.portal.service.ServiceContext serviceContext)
  396. throws com.liferay.portal.kernel.exception.PortalException,
  397. com.liferay.portal.kernel.exception.SystemException {
  398. return _userService.addUserWithWorkflow(companyId, autoPassword,
  399. password1, password2, autoScreenName, screenName, emailAddress,
  400. facebookId, openId, locale, firstName, middleName, lastName,
  401. prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
  402. jobTitle, groupIds, organizationIds, roleIds, userGroupIds,
  403. sendEmail, serviceContext);
  404. }
  405. /**
  406. * Adds the users to the user group.
  407. *
  408. * @param userGroupId the primary key of the user group
  409. * @param userIds the primary keys of the users
  410. * @throws PortalException if a user group or user with the primary could
  411. could not be found, or if the current user did not have
  412. permission to assign group members
  413. * @throws SystemException if a system exception occurred
  414. */
  415. public void addUserGroupUsers(long userGroupId, long[] userIds)
  416. throws com.liferay.portal.kernel.exception.PortalException,
  417. com.liferay.portal.kernel.exception.SystemException {
  418. _userService.addUserGroupUsers(userGroupId, userIds);
  419. }
  420. /**
  421. * Deletes the user's portrait image.
  422. *
  423. * @param userId the primary key of the user
  424. * @throws PortalException if a user with the primary key could not be
  425. found, if the user's portrait could not be found, or if the
  426. current user did not have permission to update the user
  427. * @throws SystemException if a system exception occurred
  428. */
  429. public void deletePortrait(long userId)
  430. throws com.liferay.portal.kernel.exception.PortalException,
  431. com.liferay.portal.kernel.exception.SystemException {
  432. _userService.deletePortrait(userId);
  433. }
  434. /**
  435. * Removes the user from the role.
  436. *
  437. * @param roleId the primary key of the role
  438. * @param userId the primary key of the user
  439. * @throws PortalException if a role or user with the primary key could not
  440. be found, or if the current user did not have permission to
  441. assign role members
  442. * @throws SystemException if a system exception occurred
  443. */
  444. public void deleteRoleUser(long roleId, long userId)
  445. throws com.liferay.portal.kernel.exception.PortalException,
  446. com.liferay.portal.kernel.exception.SystemException {
  447. _userService.deleteRoleUser(roleId, userId);
  448. }
  449. /**
  450. * Deletes the user.
  451. *
  452. * @param userId the primary key of the user
  453. * @throws PortalException if a user with the primary key could not be
  454. found or if the current user did not have permission to delete
  455. the user
  456. * @throws SystemException if a system exception occurred
  457. */
  458. public void deleteUser(long userId)
  459. throws com.liferay.portal.kernel.exception.PortalException,
  460. com.liferay.portal.kernel.exception.SystemException {
  461. _userService.deleteUser(userId);
  462. }
  463. /**
  464. * Returns the primary key of the default user for the company.
  465. *
  466. * @param companyId the primary key of the company
  467. * @return the primary key of the default user for the company
  468. * @throws PortalException if a default user for the company could not be
  469. found
  470. * @throws SystemException if a system exception occurred
  471. */
  472. public long getDefaultUserId(long companyId)
  473. throws com.liferay.portal.kernel.exception.PortalException,
  474. com.liferay.portal.kernel.exception.SystemException {
  475. return _userService.getDefaultUserId(companyId);
  476. }
  477. /**
  478. * Returns the primary keys of all the users belonging to the group.
  479. *
  480. * @param groupId the primary key of the group
  481. * @return the primary keys of the users belonging to the group
  482. * @throws PortalException if the current user did not have permission to
  483. view group assignments
  484. * @throws SystemException if a system exception occurred
  485. */
  486. public long[] getGroupUserIds(long groupId)
  487. throws com.liferay.portal.kernel.exception.PortalException,
  488. com.liferay.portal.kernel.exception.SystemException {
  489. return _userService.getGroupUserIds(groupId);
  490. }
  491. /**
  492. * Returns the primary keys of all the users belonging to the organization.
  493. *
  494. * @param organizationId the primary key of the organization
  495. * @return the primary keys of the users belonging to the organization
  496. * @throws PortalException if the current user did not have permission to
  497. view organization assignments
  498. * @throws SystemException if a system exception occurred
  499. */
  500. public long[] getOrganizationUserIds(long organizationId)
  501. throws com.liferay.portal.kernel.exception.PortalException,
  502. com.liferay.portal.kernel.exception.SystemException {
  503. return _userService.getOrganizationUserIds(organizationId);
  504. }
  505. /**
  506. * Returns the primary keys of all the users belonging to the role.
  507. *
  508. * @param roleId the primary key of the role
  509. * @return the primary keys of the users belonging to the role
  510. * @throws PortalException if the current user did not have permission to
  511. view role members
  512. * @throws SystemException if a system exception occurred
  513. */
  514. public long[] getRoleUserIds(long roleId)
  515. throws com.liferay.portal.kernel.exception.PortalException,
  516. com.liferay.portal.kernel.exception.SystemException {
  517. return _userService.getRoleUserIds(roleId);
  518. }
  519. /**
  520. * Returns the user with the email address.
  521. *
  522. * @param companyId the primary key of the user's company
  523. * @param emailAddress the user's email address
  524. * @return the user with the email address
  525. * @throws PortalException if a user with the email address could not be
  526. found or if the current user did not have permission to view the
  527. user
  528. * @throws SystemException if a system exception occurred
  529. */
  530. public com.liferay.portal.model.User getUserByEmailAddress(long companyId,
  531. java.lang.String emailAddress)
  532. throws com.liferay.portal.kernel.exception.PortalException,
  533. com.liferay.portal.kernel.exception.SystemException {
  534. return _userService.getUserByEmailAddress(companyId, emailAddress);
  535. }
  536. /**
  537. * Returns the user with the primary key.
  538. *
  539. * @param userId the primary key of the user
  540. * @return the user with the primary key
  541. * @throws PortalException if a user with the primary key could not be
  542. found or if the current user did not have permission to view the
  543. user
  544. * @throws SystemException if a system exception occurred
  545. */
  546. public com.liferay.portal.model.User getUserById(long userId)
  547. throws com.liferay.portal.kernel.exception.PortalException,
  548. com.liferay.portal.kernel.exception.SystemException {
  549. return _userService.getUserById(userId);
  550. }
  551. /**
  552. * Returns the user with the screen name.
  553. *
  554. * @param companyId the primary key of the user's company
  555. * @param screenName the user's screen name
  556. * @return the user with the screen name
  557. * @throws PortalException if a user with the screen name could not be
  558. found or if the current user did not have permission to veiw the
  559. user
  560. * @throws SystemException if a system exception occurred
  561. */
  562. public com.liferay.portal.model.User getUserByScreenName(long companyId,
  563. java.lang.String screenName)
  564. throws com.liferay.portal.kernel.exception.PortalException,
  565. com.liferay.portal.kernel.exception.SystemException {
  566. return _userService.getUserByScreenName(companyId, screenName);
  567. }
  568. /**
  569. * Returns the primary key of the user with the email address.
  570. *
  571. * @param companyId the primary key of the user's company
  572. * @param emailAddress the user's email address
  573. * @return the primary key of the user with the email address
  574. * @throws PortalException if a user with the email address could not be
  575. found
  576. * @throws SystemException if a system exception occurred
  577. */
  578. public long getUserIdByEmailAddress(long companyId,
  579. java.lang.String emailAddress)
  580. throws com.liferay.portal.kernel.exception.PortalException,
  581. com.liferay.portal.kernel.exception.SystemException {
  582. return _userService.getUserIdByEmailAddress(companyId, emailAddress);
  583. }
  584. /**
  585. * Returns the primary key of the user with the screen name.
  586. *
  587. * @param companyId the primary key of the user's company
  588. * @param screenName the user's screen name
  589. * @return the primary key of the user with the screen name
  590. * @throws PortalException if a user with the screen name could not be
  591. found
  592. * @throws SystemException if a system exception occurred
  593. */
  594. public long getUserIdByScreenName(long companyId,
  595. java.lang.String screenName)
  596. throws com.liferay.portal.kernel.exception.PortalException,
  597. com.liferay.portal.kernel.exception.SystemException {
  598. return _userService.getUserIdByScreenName(companyId, screenName);
  599. }
  600. /**
  601. * Returns <code>true</code> if the user is a member of the group.
  602. *
  603. * @param groupId the primary key of the group
  604. * @param userId the primary key of the user
  605. * @return <code>true</code> if the user is a member of the group;
  606. <code>false</code> otherwise
  607. * @throws SystemException if a system exception occurred
  608. */
  609. public boolean hasGroupUser(long groupId, long userId)
  610. throws com.liferay.portal.kernel.exception.SystemException {
  611. return _userService.hasGroupUser(groupId, userId);
  612. }
  613. /**
  614. * Returns <code>true</code> if the user is a member of the role.
  615. *
  616. * @param roleId the primary key of the role
  617. * @param userId the primary key of the user
  618. * @return <code>true</code> if the user is a member of the role;
  619. <code>false</code> otherwise
  620. * @throws SystemException if a system exception occurred
  621. */
  622. public boolean hasRoleUser(long roleId, long userId)
  623. throws com.liferay.portal.kernel.exception.SystemException {
  624. return _userService.hasRoleUser(roleId, userId);
  625. }
  626. /**
  627. * Returns <code>true</code> if the user has the role with the name,
  628. * optionally through inheritance.
  629. *
  630. * @param companyId the primary key of the role's company
  631. * @param name the name of the role (must be a regular role, not an
  632. organization, site or provider role)
  633. * @param userId the primary key of the user
  634. * @param inherited whether to include roles inherited from organizations,
  635. sites, etc.
  636. * @return <code>true</code> if the user has the role; <code>false</code>
  637. otherwise
  638. * @throws PortalException if a role with the name could not be found
  639. * @throws SystemException if a system exception occurred
  640. */
  641. public boolean hasRoleUser(long companyId, java.lang.String name,
  642. long userId, boolean inherited)
  643. throws com.liferay.portal.kernel.exception.PortalException,
  644. com.liferay.portal.kernel.exception.SystemException {
  645. return _userService.hasRoleUser(companyId, name, userId, inherited);
  646. }
  647. /**
  648. * Updates a user account that was automatically created when a guest user
  649. * participated in an action (e.g. posting a comment) and only provided his
  650. * name and email address.
  651. *
  652. * @param companyId the primary key of the user's company
  653. * @param autoPassword whether a password should be automatically
  654. generated for the user
  655. * @param password1 the user's password
  656. * @param password2 the user's password confirmation
  657. * @param autoScreenName whether a screen name should be automatically
  658. generated for the user
  659. * @param screenName the user's screen name
  660. * @param emailAddress the user's email address
  661. * @param facebookId the user's facebook ID
  662. * @param openId the user's OpenID
  663. * @param locale the user's locale
  664. * @param firstName the user's first name
  665. * @param middleName the user's middle name
  666. * @param lastName the user's last name
  667. * @param prefixId the user's name prefix ID
  668. * @param suffixId the user's name suffix ID
  669. * @param male whether the user is male
  670. * @param birthdayMonth the user's birthday month (0-based, meaning 0 for
  671. January)
  672. * @param birthdayDay the user's birthday day
  673. * @param birthdayYear the user's birthday year
  674. * @param jobTitle the user's job title
  675. * @param updateUserInformation whether to update the user's information
  676. * @param sendEmail whether to send the user an email notification about
  677. their new account
  678. * @param serviceContext the user's service context (optionally
  679. <code>null</code>). Can specify the user's expando bridge
  680. attributes.
  681. * @return the user
  682. * @throws PortalException if the user's information was invalid or if the
  683. email address was reserved
  684. * @throws SystemException if a system exception occurred
  685. */
  686. public com.liferay.portal.model.User updateIncompleteUser(long companyId,
  687. boolean autoPassword, java.lang.String password1,
  688. java.lang.String password2, boolean autoScreenName,
  689. java.lang.String screenName, java.lang.String emailAddress,
  690. long facebookId, java.lang.String openId, java.util.Locale locale,
  691. java.lang.String firstName, java.lang.String middleName,
  692. java.lang.String lastName, int prefixId, int suffixId, boolean male,
  693. int birthdayMonth, int birthdayDay, int birthdayYear,
  694. java.lang.String jobTitle, boolean updateUserInformation,
  695. boolean sendEmail,
  696. com.liferay.portal.service.ServiceContext serviceContext)
  697. throws com.liferay.portal.kernel.exception.PortalException,
  698. com.liferay.portal.kernel.exception.SystemException {
  699. return _userService.updateIncompleteUser(companyId, autoPassword,
  700. password1, password2, autoScreenName, screenName, emailAddress,
  701. facebookId, openId, locale, firstName, middleName, lastName,
  702. prefixId, suffixId, male, birthdayMonth, birthdayDay, birthdayYear,
  703. jobTitle, updateUserInformation, sendEmail, serviceContext);
  704. }
  705. /**
  706. * Sets the users in the role, removing and adding users to the role as
  707. * necessary.
  708. *
  709. * @param roleId the primary key of the role
  710. * @param userIds the primary keys of the users
  711. * @throws PortalException if the current user did not have permission to
  712. assign role members
  713. * @throws SystemException if a system exception occurred
  714. */
  715. public void setRoleUsers(long roleId, long[] userIds)
  716. throws com.liferay.portal.kernel.exception.PortalException,
  717. com.liferay.portal.kernel.exception.SystemException {
  718. _userService.setRoleUsers(roleId, userIds);
  719. }
  720. /**
  721. * Sets the users in the user group, removing and adding users to the user
  722. * group as necessary.
  723. *
  724. * @param userGroupId the primary key of the user group
  725. * @param userIds the primary keys of the users
  726. * @throws PortalException if the current user did not have permission to
  727. assign group members
  728. * @throws SystemException if a system exception occurred
  729. */
  730. public void setUserGroupUsers(long userGroupId, long[] userIds)
  731. throws com.liferay.portal.kernel.exception.PortalException,
  732. com.liferay.portal.kernel.exception.SystemException {
  733. _userService.setUserGroupUsers(userGroupId, userIds);
  734. }
  735. /**
  736. * Removes the users from the group.
  737. *
  738. * @param groupId the primary key of the group
  739. * @param userIds the primary keys of the users
  740. * @throws PortalException if the current user did not have permission to
  741. modify group assignments
  742. * @throws SystemException if a system exception occurred
  743. */
  744. public void unsetGroupUsers(long groupId, long[] userIds)
  745. throws com.liferay.portal.kernel.exception.PortalException,
  746. com.liferay.portal.kernel.exception.SystemException {
  747. _userService.unsetGroupUsers(groupId, userIds);
  748. }
  749. /**
  750. * Removes the users from the organization.
  751. *
  752. * @param organizationId the primary key of the organization
  753. * @param userIds the primary keys of the users
  754. * @throws PortalException if the current user did not have permission to
  755. modify organization assignments
  756. * @throws SystemException if a system exception occurred
  757. */
  758. public void unsetOrganizationUsers(long organizationId, long[] userIds)
  759. throws com.liferay.portal.kernel.exception.PortalException,
  760. com.liferay.portal.kernel.exception.SystemException {
  761. _userService.unsetOrganizationUsers(organizationId, userIds);
  762. }
  763. /**
  764. * Removes the users from the password policy.
  765. *
  766. * @param passwordPolicyId the primary key of the password policy
  767. * @param userIds the primary keys of the users
  768. * @throws PortalException if the current user did not have permission to
  769. modify policy assignments
  770. * @throws SystemException if a system exception occurred
  771. */
  772. public void unsetPasswordPolicyUsers(long passwordPolicyId, long[] userIds)
  773. throws com.liferay.portal.kernel.exception.PortalException,
  774. com.liferay.portal.kernel.exception.SystemException {
  775. _userService.unsetPasswordPolicyUsers(passwordPolicyId, userIds);
  776. }
  777. /**
  778. * Removes the users from the role.
  779. *
  780. * @param roleId the primary key of the role
  781. * @param userIds the primary keys of the users
  782. * @throws PortalException if the current user did not have permission to
  783. modify role assignments
  784. * @throws SystemException if a system exception occurred
  785. */
  786. public void unsetRoleUsers(long roleId, long[] userIds)
  787. throws com.liferay.portal.kernel.exception.PortalException,
  788. com.liferay.portal.kernel.exception.SystemException {
  789. _userService.unsetRoleUsers(roleId, userIds);
  790. }
  791. /**
  792. * Removes the users from the team.
  793. *
  794. * @param teamId the primary key of the team
  795. * @param userIds the primary keys of the users
  796. * @throws PortalException if the current user did not have permission to
  797. modify team assignments
  798. * @throws SystemException if a system exception occurred
  799. */
  800. public void unsetTeamUsers(long teamId, long[] userIds)
  801. throws com.liferay.portal.kernel.exception.PortalException,
  802. com.liferay.portal.kernel.exception.SystemException {
  803. _userService.unsetTeamUsers(teamId, userIds);
  804. }
  805. /**
  806. * Removes the users from the user group.
  807. *
  808. * @param userGroupId the primary key of the user group
  809. * @param userIds the primary keys of the users
  810. * @throws PortalException if the current user did not have permission to
  811. modify user group assignments
  812. * @throws SystemException if a system exception occurred
  813. */
  814. public void unsetUserGroupUsers(long userGroupId, long[] userIds)
  815. throws com.liferay.portal.kernel.exception.PortalException,
  816. com.liferay.portal.kernel.exception.SystemException {
  817. _userService.unsetUserGroupUsers(userGroupId, userIds);
  818. }
  819. /**
  820. * Updates the user's response to the terms of use agreement.
  821. *
  822. * @param userId the primary key of the user
  823. * @param agreedToTermsOfUse whether the user has agree to the terms of
  824. use
  825. * @return the user
  826. * @throws PortalException if the current user did not have permission to
  827. update the user's agreement to terms-of-use
  828. * @throws SystemException if a system exception occurred
  829. */
  830. public com.liferay.portal.model.User updateAgreedToTermsOfUse(long userId,
  831. boolean agreedToTermsOfUse)
  832. throws com.liferay.portal.kernel.exception.PortalException,
  833. com.liferay.portal.kernel.exception.SystemException {
  834. return _userService.updateAgreedToTermsOfUse(userId, agreedToTermsOfUse);
  835. }
  836. /**
  837. * Updates the user's email address.
  838. *
  839. * @param userId the primary key of the user
  840. * @param password the user's password
  841. * @param emailAddress1 the user's new email address
  842. * @param emailAddress2 the user's new email address confirmation
  843. * @return the user
  844. * @throws PortalException if a user with the primary key could not be
  845. found or if the current user did not have permission to update
  846. the user
  847. * @throws SystemException if a system exception occurred
  848. */
  849. public com.liferay.portal.model.User updateEmailAddress(long userId,
  850. java.lang.String password, java.lang.String emailAddress1,
  851. java.lang.String emailAddress2)
  852. throws com.liferay.portal.kernel.exception.PortalException,
  853. com.liferay.portal.kernel.exception.SystemException {
  854. return _userService.updateEmailAddress(userId, password, emailAddress1,
  855. emailAddress2);
  856. }
  857. /**
  858. * Updates whether the user is locked out from logging in.
  859. *
  860. * @param userId the primary key of the user
  861. * @param lockout whether the user is locked out
  862. * @return the user
  863. * @throws PortalException if the user did not have permission to lock out
  864. the user
  865. * @throws SystemException if a system exception occurred
  866. */
  867. public com.liferay.portal.model.User updateLockoutById(long userId,
  868. boolean lockout)
  869. throws com.liferay.portal.kernel.exception.PortalException,
  870. com.liferay.portal.kernel.exception.SystemException {
  871. return _userService.updateLockoutById(userId, lockout);
  872. }
  873. /**
  874. * Updates the user's OpenID.
  875. *
  876. * @param userId the primary key of the user
  877. * @param openId the new OpenID
  878. * @return the user
  879. * @throws PortalException if a user with the primary key could not be
  880. found or if the current user did not have permission to update
  881. the user
  882. * @throws SystemException if a system exception occurred
  883. */
  884. public com.liferay.portal.model.User updateOpenId(long userId,
  885. java.lang.String openId)
  886. throws com.liferay.portal.kernel.exception.PortalException,
  887. com.liferay.portal.kernel.exception.SystemException {
  888. return _userService.updateOpenId(userId, openId);
  889. }
  890. /**
  891. * Sets the organizations that the user is in, removing and adding
  892. * organizations as necessary.
  893. *
  894. * @param userId the primary key of the user
  895. * @param organizationIds the primary keys of the organizations
  896. * @throws PortalException if a user with the primary key could not be
  897. found or if the current user did not have permission to update
  898. the user
  899. * @throws SystemException if a system exception occurred
  900. */
  901. public void updateOrganizations(long userId, long[] organizationIds,
  902. com.liferay.portal.service.ServiceContext serviceContext)
  903. throws com.liferay.portal.kernel.exception.PortalException,
  904. com.liferay.portal.kernel.exception.SystemException {
  905. _userService.updateOrganizations(userId, organizationIds, serviceContext);
  906. }
  907. /**
  908. * Updates the user's password without tracking or validation of the
  909. * change.
  910. *
  911. * @param userId the primary key of the user
  912. * @param password1 the user's new password
  913. * @param password2 the user's new password confirmation
  914. * @param passwordReset whether the user should be asked to reset their
  915. password the next time they log in
  916. * @return the user
  917. * @throws PortalException if a user with the primary key could not be
  918. found or if the current user did not have permission to update
  919. the user
  920. * @throws SystemException if a system exception occurred
  921. */
  922. public com.liferay.portal.model.User updatePassword(long userId,
  923. java.lang.String password1, java.lang.String password2,
  924. boolean passwordReset)
  925. throws com.liferay.portal.kernel.exception.PortalException,
  926. com.liferay.portal.kernel.exception.SystemException {
  927. return _userService.updatePassword(userId, password1, password2,
  928. passwordReset);
  929. }
  930. /**
  931. * Updates the user's portrait image.
  932. *
  933. * @param userId the primary key of the user
  934. * @param bytes the new portrait image data
  935. * @return the user
  936. * @throws PortalException if a user with the primary key could not be
  937. found, if the new portrait was invalid, or if the current user
  938. did not have permission to update the user
  939. * @throws SystemException if a system exception occurred
  940. */
  941. public com.liferay.portal.model.User updatePortrait(long userId,
  942. byte[] bytes)
  943. throws com.liferay.portal.kernel.exception.PortalException,
  944. com.liferay.portal.kernel.exception.SystemException {
  945. return _userService.updatePortrait(userId, bytes);
  946. }
  947. /**
  948. * Updates the user's password reset question and answer.
  949. *
  950. * @param userId the primary key of the user
  951. * @param question the user's new password reset question
  952. * @param answer the user's new password reset answer
  953. * @return the user
  954. * @throws PortalException if a user with the primary key could not be
  955. found, if the new question or answer were invalid, or if the
  956. current user did not have permission to update the user
  957. * @throws SystemException if a system exception occurred
  958. */
  959. public com.liferay.portal.model.User updateReminderQuery(long userId,
  960. java.lang.String question, java.lang.String answer)
  961. throws com.liferay.portal.kernel.exception.PortalException,
  962. com.liferay.portal.kernel.exception.SystemException {
  963. return _userService.updateReminderQuery(userId, question, answer);
  964. }
  965. /**
  966. * Updates the user's screen name.
  967. *
  968. * @param userId the primary key of the user
  969. * @param screenName the user's new screen name
  970. * @return the user
  971. * @throws PortalException if a user with the primary key could not be
  972. found, if the new screen name was invalid, or if the current
  973. user did not have permission to update the user
  974. * @throws SystemException if a system exception occurred
  975. */
  976. public com.liferay.portal.model.User updateScreenName(long userId,
  977. java.lang.String screenName)
  978. throws com.liferay.portal.kernel.exception.PortalException,
  979. com.liferay.portal.kernel.exception.SystemException {
  980. return _userService.updateScreenName(userId, screenName);
  981. }
  982. /**
  983. * Updates the user's workflow status.
  984. *
  985. * @param userId the primary key of the user
  986. * @param status the user's new workflow status
  987. * @return the user
  988. * @throws PortalException if a user with the primary key could not be
  989. found, if the current user was updating her own status to
  990. anything but {@link WorkflowConstants.STATUS_APPROVED}, or if
  991. the current user did not have permission to update the user's
  992. workflow status.
  993. * @throws SystemException if a system exception occurred
  994. */
  995. public com.liferay.portal.model.User updateStatus(long userId, int status)
  996. throws com.liferay.portal.kernel.exception.PortalException,
  997. com.liferay.portal.kernel.exception.SystemException {
  998. return _userService.updateStatus(userId, status);
  999. }
  1000. /**
  1001. * Updates the user with additional parameters.
  1002. *
  1003. * @param userId the primary key of the user
  1004. * @param oldPassword the user's old password
  1005. * @param newPassword1 the user's new password (optionally
  1006. <code>null</code>)
  1007. * @param newPassword2 the user's new password confirmation (optionally
  1008. <code>null</code>)
  1009. * @param passwordReset whether the user should be asked to reset their
  1010. password the next time they login
  1011. * @param reminderQueryQuestion the user's new password reset question
  1012. * @param reminderQueryAnswer the user's new password reset answer
  1013. * @param screenName the user's new screen name
  1014. * @param emailAddress the user's new email address
  1015. * @param facebookId the user's new Facebook ID
  1016. * @param openId the user's new OpenID
  1017. * @param languageId the user's new language ID
  1018. * @param timeZoneId the user's new time zone ID
  1019. * @param greeting the user's new greeting
  1020. * @param comments the user's new comments
  1021. * @param firstName the user's new first name
  1022. * @param middleName the user's new middle name
  1023. * @param lastName the user's new last name
  1024. * @param prefixId the user's new name prefix ID
  1025. * @param suffixId the user's new name suffix ID
  1026. * @param male whether user is male
  1027. * @param birthdayMonth the user's new birthday month (0-based, meaning 0
  1028. for January)
  1029. * @param birthdayDay the user's new birthday day
  1030. * @param birthdayYear the user's birthday year
  1031. * @param smsSn the user's new SMS screen name
  1032. * @param aimSn the user's new AIM screen name
  1033. * @param facebookSn the user's new Facebook screen name
  1034. * @param icqSn the user's new ICQ screen name
  1035. * @param jabberSn the user's new Jabber screen name
  1036. * @param msnSn the user's new MSN screen name
  1037. * @param mySpaceSn the user's new MySpace screen name
  1038. * @param skypeSn the user's new Skype screen name
  1039. * @param twitterSn the user's new Twitter screen name
  1040. * @param ymSn the user's new Yahoo! Messenger screen name
  1041. * @param jobTitle the user's new job title
  1042. * @param groupIds the primary keys of the user's groups
  1043. * @param organizationIds the primary keys of the user's organizations
  1044. * @param roleIds the primary keys of the user's roles
  1045. * @param userGroupRoles the user user's group roles
  1046. * @param userGroupIds the primary keys of the user's user groups
  1047. * @param addresses the user's addresses
  1048. * @param emailAddresses the user's email addresses
  1049. * @param phones the user's phone numbers
  1050. * @param websites the user's websites
  1051. * @param announcementsDelivers the announcements deliveries
  1052. * @param serviceContext the user's service context (optionally
  1053. <code>null</code>). Can specify the user's universally unique
  1054. identifier (with the <code>uuid</code> attribute), replacement
  1055. asset category IDs, replacement asset tag names, and new expando
  1056. bridge attributes.
  1057. * @return the user
  1058. * @throws PortalException if a user with the primary key could not be
  1059. found, if the new information was invalid, or if the current
  1060. user did not have permission to update the user
  1061. * @throws SystemException if a system exception occurred
  1062. */
  1063. public com.liferay.portal.model.User updateUser(long userId,
  1064. java.lang.String oldPassword, java.lang.String newPassword1,
  1065. java.lang.String newPassword2, boolean passwordReset,
  1066. java.lang.String reminderQueryQuestion,
  1067. java.lang.String reminderQueryAnswer, java.lang.String screenName,
  1068. java.lang.String emailAddress, long facebookId,
  1069. java.lang.String openId, java.lang.String languageId,
  1070. java.lang.String timeZoneId, java.lang.String greeting,
  1071. java.lang.String comments, java.lang.String firstName,
  1072. java.lang.String middleName, java.lang.String lastName, int prefixId,
  1073. int suffixId, boolean male, int birthdayMonth, int birthdayDay,
  1074. int birthdayYear, java.lang.String smsSn, java.lang.String aimSn,
  1075. java.lang.String facebookSn, java.lang.String icqSn,
  1076. java.lang.String jabberSn, java.lang.String msnSn,
  1077. java.lang.String mySpaceSn, java.lang.String skypeSn,
  1078. java.lang.String twitterSn, java.lang.String ymSn,
  1079. java.lang.String jobTitle, long[] groupIds, long[] organizationIds,
  1080. long[] roleIds,
  1081. java.util.List<com.liferay.portal.model.UserGroupRole> userGroupRoles,
  1082. long[] userGroupIds,
  1083. java.util.List<com.liferay.portal.model.Address> addresses,
  1084. java.util.List<com.liferay.portal.model.EmailAddress> emailAddresses,
  1085. java.util.List<com.liferay.portal.model.Phone> phones,
  1086. java.util.List<com.liferay.portal.model.Website> websites,
  1087. java.util.List<com.liferay.portlet.announcements.model.AnnouncementsDelivery> announcementsDelivers,
  1088. com.liferay.portal.service.ServiceContext serviceContext)
  1089. throws com.liferay.portal.kernel.exception.PortalException,
  1090. com.liferay.portal.kernel.exception.SystemException {
  1091. return _userService.updateUser(userId, oldPassword, newPassword1,
  1092. newPassword2, passwordReset, reminderQueryQuestion,
  1093. reminderQueryAnswer, screenName, emailAddress, facebookId, openId,
  1094. languageId, timeZoneId, greeting, comments, firstName, middleName,
  1095. lastName, prefixId, suffixId, male, birthdayMonth, birthdayDay,
  1096. birthdayYear, smsSn, aimSn, facebookSn, icqSn, jabberSn, msnSn,
  1097. mySpaceSn, skypeSn, twitterSn, ymSn, jobTitle, groupIds,
  1098. organizationIds, roleIds, userGroupRoles, userGroupIds, addresses,
  1099. emailAddresses, phones, websites, announcementsDelivers,
  1100. serviceContext);
  1101. }
  1102. /**
  1103. * Updates the user.
  1104. *
  1105. * @param userId the primary key of the user
  1106. * @param oldPassword the user's old password
  1107. * @param newPassword1 the user's new password (optionally
  1108. <code>null</code>)
  1109. * @param newPassword2 the user's new password confirmation (optionally
  1110. <code>null</code>)
  1111. * @param passwordReset whether the user should be asked to reset their
  1112. password the next time they login
  1113. * @param reminderQueryQuestion the user's new password reset question
  1114. * @param reminderQueryAnswer the user's new password reset answer
  1115. * @param screenName the user's new screen name
  1116. * @param emailAddress the user's new email address
  1117. * @param facebookId the user's new Facebook ID
  1118. * @param openId the user's new OpenID
  1119. * @param languageId the user's new language ID
  1120. * @param timeZoneId the user's new time zone ID
  1121. * @param greeting the user's new greeting
  1122. * @param comments the user's new comments
  1123. * @param firstName the user's new first name
  1124. * @param middleName the user's new middle name
  1125. * @param lastName the user's new last name
  1126. * @param prefixId the user's new name prefix ID
  1127. * @param suffixId the user's new name suffix ID
  1128. * @param male whether user is male
  1129. * @param birthdayMonth the user's new birthday month (0-based, meaning 0
  1130. for January)
  1131. * @param birthdayDay the user's new birthday day
  1132. * @param birthdayYear the user's birthday year
  1133. * @param smsSn the user's new SMS screen name
  1134. * @param aimSn the user's new AIM screen name
  1135. * @param facebookSn the user's new Facebook screen name
  1136. * @param icqSn the user's new ICQ screen name
  1137. * @param jabberSn the user's new Jabber screen name
  1138. * @param msnSn the user's