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

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