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

https://github.com/danielreuther/liferay-portal · Java · 1328 lines · 486 code · 117 blank · 725 comment · 0 complexity · 42beb2844ddf3cb6d1cab889d2b87889 MD5 · raw file

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