/
UserServiceSoap.java
2058 lines (1811 loc) · 63.5 KB
/
UserServiceSoap.java
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
/**
* Copyright (c) 2000-present Liferay, Inc. All rights reserved.
*
* This library is free software; you can redistribute it and/or modify it under
* the terms of the GNU Lesser General Public License as published by the Free
* Software Foundation; either version 2.1 of the License, or (at your option)
* any later version.
*
* This library is distributed in the hope that it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
* FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
* details.
*/
package com.liferay.portal.service.http;
import com.liferay.portal.kernel.log.Log;
import com.liferay.portal.kernel.log.LogFactoryUtil;
import com.liferay.portal.kernel.service.UserServiceUtil;
import com.liferay.portal.kernel.util.LocaleUtil;
import java.rmi.RemoteException;
/**
* Provides the SOAP utility for the
* <code>UserServiceUtil</code> service
* utility. The static methods of this class call the same methods of the
* service utility. However, the signatures are different because it is
* difficult for SOAP to support certain types.
*
* <p>
* ServiceBuilder follows certain rules in translating the methods. For example,
* if the method in the service utility returns a <code>java.util.List</code>,
* that is translated to an array of
* <code>com.liferay.portal.kernel.model.UserSoap</code>. If the method in the
* service utility returns a
* <code>com.liferay.portal.kernel.model.User</code>, that is translated to a
* <code>com.liferay.portal.kernel.model.UserSoap</code>. Methods that SOAP
* cannot safely wire are skipped.
* </p>
*
* <p>
* The benefits of using the SOAP utility is that it is cross platform
* compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
* even Perl, to call the generated services. One drawback of SOAP is that it is
* slow because it needs to serialize all calls into a text format (XML).
* </p>
*
* <p>
* You can see a list of services at http://localhost:8080/api/axis. Set the
* property <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
* security.
* </p>
*
* <p>
* The SOAP utility is only generated for remote services.
* </p>
*
* @author Brian Wing Shun Chan
* @see UserServiceHttp
* @generated
*/
public class UserServiceSoap {
/**
* Adds the users to the group.
*
* @param groupId the primary key of the group
* @param userIds the primary keys of the users
* @param serviceContext the service context to be applied (optionally
<code>null</code>)
*/
public static void addGroupUsers(
long groupId, long[] userIds,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws RemoteException {
try {
UserServiceUtil.addGroupUsers(groupId, userIds, serviceContext);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Adds the users to the organization.
*
* @param organizationId the primary key of the organization
* @param userIds the primary keys of the users
*/
public static void addOrganizationUsers(long organizationId, long[] userIds)
throws RemoteException {
try {
UserServiceUtil.addOrganizationUsers(organizationId, userIds);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Assigns the password policy to the users, removing any other currently
* assigned password policies.
*
* @param passwordPolicyId the primary key of the password policy
* @param userIds the primary keys of the users
*/
public static void addPasswordPolicyUsers(
long passwordPolicyId, long[] userIds)
throws RemoteException {
try {
UserServiceUtil.addPasswordPolicyUsers(passwordPolicyId, userIds);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Adds the users to the role.
*
* @param roleId the primary key of the role
* @param userIds the primary keys of the users
*/
public static void addRoleUsers(long roleId, long[] userIds)
throws RemoteException {
try {
UserServiceUtil.addRoleUsers(roleId, userIds);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Adds the users to the team.
*
* @param teamId the primary key of the team
* @param userIds the primary keys of the users
*/
public static void addTeamUsers(long teamId, long[] userIds)
throws RemoteException {
try {
UserServiceUtil.addTeamUsers(teamId, userIds);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Adds a user.
*
* <p>
* This method handles the creation and bookkeeping of the user including
* its resources, metadata, and internal data structures. It is not
* necessary to make subsequent calls to any methods to setup default
* groups, resources, etc.
* </p>
*
* @param companyId the primary key of the user's company
* @param autoPassword whether a password should be automatically generated
for the user
* @param password1 the user's password
* @param password2 the user's password confirmation
* @param autoScreenName whether a screen name should be automatically
generated for the user
* @param screenName the user's screen name
* @param emailAddress the user's email address
* @param facebookId the user's facebook ID
* @param openId the user's OpenID
* @param locale the user's locale
* @param firstName the user's first name
* @param middleName the user's middle name
* @param lastName the user's last name
* @param prefixId the user's name prefix ID
* @param suffixId the user's name suffix ID
* @param male whether the user is male
* @param birthdayMonth the user's birthday month (0-based, meaning 0 for
January)
* @param birthdayDay the user's birthday day
* @param birthdayYear the user's birthday year
* @param jobTitle the user's job title
* @param groupIds the primary keys of the user's groups
* @param organizationIds the primary keys of the user's organizations
* @param roleIds the primary keys of the roles this user possesses
* @param userGroupIds the primary keys of the user's user groups
* @param sendEmail whether to send the user an email notification about
their new account
* @param serviceContext the service context to be applied (optionally
<code>null</code>). Can set the UUID (with the <code>uuid</code>
attribute), asset category IDs, asset tag names, and expando
bridge attributes for the user.
* @return the new user
*/
public static com.liferay.portal.kernel.model.UserSoap addUser(
long companyId, boolean autoPassword, String password1,
String password2, boolean autoScreenName, String screenName,
String emailAddress, long facebookId, String openId, String locale,
String firstName, String middleName, String lastName, long prefixId,
long suffixId, boolean male, int birthdayMonth, int birthdayDay,
int birthdayYear, String jobTitle, long[] groupIds,
long[] organizationIds, long[] roleIds, long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws RemoteException {
try {
com.liferay.portal.kernel.model.User returnValue =
UserServiceUtil.addUser(
companyId, autoPassword, password1, password2,
autoScreenName, screenName, emailAddress, facebookId,
openId, LocaleUtil.fromLanguageId(locale), firstName,
middleName, lastName, prefixId, suffixId, male,
birthdayMonth, birthdayDay, birthdayYear, jobTitle,
groupIds, organizationIds, roleIds, userGroupIds, sendEmail,
serviceContext);
return com.liferay.portal.kernel.model.UserSoap.toSoapModel(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Adds a user with additional parameters.
*
* <p>
* This method handles the creation and bookkeeping of the user including
* its resources, metadata, and internal data structures. It is not
* necessary to make subsequent calls to any methods to setup default
* groups, resources, etc.
* </p>
*
* @param companyId the primary key of the user's company
* @param autoPassword whether a password should be automatically generated
for the user
* @param password1 the user's password
* @param password2 the user's password confirmation
* @param autoScreenName whether a screen name should be automatically
generated for the user
* @param screenName the user's screen name
* @param emailAddress the user's email address
* @param facebookId the user's facebook ID
* @param openId the user's OpenID
* @param locale the user's locale
* @param firstName the user's first name
* @param middleName the user's middle name
* @param lastName the user's last name
* @param prefixId the user's name prefix ID
* @param suffixId the user's name suffix ID
* @param male whether the user is male
* @param birthdayMonth the user's birthday month (0-based, meaning 0 for
January)
* @param birthdayDay the user's birthday day
* @param birthdayYear the user's birthday year
* @param jobTitle the user's job title
* @param groupIds the primary keys of the user's groups
* @param organizationIds the primary keys of the user's organizations
* @param roleIds the primary keys of the roles this user possesses
* @param userGroupIds the primary keys of the user's user groups
* @param addresses the user's addresses
* @param emailAddresses the user's email addresses
* @param phones the user's phone numbers
* @param websites the user's websites
* @param announcementsDelivers the announcements deliveries
* @param sendEmail whether to send the user an email notification about
their new account
* @param serviceContext the service context to be applied (optionally
<code>null</code>). Can set the UUID (with the <code>uuid</code>
attribute), asset category IDs, asset tag names, and expando
bridge attributes for the user.
* @return the new user
*/
public static com.liferay.portal.kernel.model.UserSoap addUser(
long companyId, boolean autoPassword, String password1,
String password2, boolean autoScreenName, String screenName,
String emailAddress, long facebookId, String openId, String locale,
String firstName, String middleName, String lastName, long prefixId,
long suffixId, boolean male, int birthdayMonth, int birthdayDay,
int birthdayYear, String jobTitle, long[] groupIds,
long[] organizationIds, long[] roleIds, long[] userGroupIds,
com.liferay.portal.kernel.model.AddressSoap[] addresses,
com.liferay.portal.kernel.model.EmailAddressSoap[] emailAddresses,
com.liferay.portal.kernel.model.PhoneSoap[] phones,
com.liferay.portal.kernel.model.WebsiteSoap[] websites,
com.liferay.announcements.kernel.model.AnnouncementsDeliverySoap[]
announcementsDelivers,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws RemoteException {
try {
com.liferay.portal.kernel.model.User returnValue =
UserServiceUtil.addUser(
companyId, autoPassword, password1, password2,
autoScreenName, screenName, emailAddress, facebookId,
openId, LocaleUtil.fromLanguageId(locale), firstName,
middleName, lastName, prefixId, suffixId, male,
birthdayMonth, birthdayDay, birthdayYear, jobTitle,
groupIds, organizationIds, roleIds, userGroupIds,
com.liferay.portal.model.impl.AddressModelImpl.toModels(
addresses),
com.liferay.portal.model.impl.EmailAddressModelImpl.
toModels(emailAddresses),
com.liferay.portal.model.impl.PhoneModelImpl.toModels(
phones),
com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
websites),
com.liferay.portlet.announcements.model.impl.
AnnouncementsDeliveryModelImpl.toModels(
announcementsDelivers),
sendEmail, serviceContext);
return com.liferay.portal.kernel.model.UserSoap.toSoapModel(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Adds the users to the user group.
*
* @param userGroupId the primary key of the user group
* @param userIds the primary keys of the users
*/
public static void addUserGroupUsers(long userGroupId, long[] userIds)
throws RemoteException {
try {
UserServiceUtil.addUserGroupUsers(userGroupId, userIds);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Adds a user with workflow.
*
* <p>
* This method handles the creation and bookkeeping of the user including
* its resources, metadata, and internal data structures. It is not
* necessary to make subsequent calls to any methods to setup default
* groups, resources, etc.
* </p>
*
* @param companyId the primary key of the user's company
* @param autoPassword whether a password should be automatically generated
for the user
* @param password1 the user's password
* @param password2 the user's password confirmation
* @param autoScreenName whether a screen name should be automatically
generated for the user
* @param screenName the user's screen name
* @param emailAddress the user's email address
* @param facebookId the user's facebook ID
* @param openId the user's OpenID
* @param locale the user's locale
* @param firstName the user's first name
* @param middleName the user's middle name
* @param lastName the user's last name
* @param prefixId the user's name prefix ID
* @param suffixId the user's name suffix ID
* @param male whether the user is male
* @param birthdayMonth the user's birthday month (0-based, meaning 0 for
January)
* @param birthdayDay the user's birthday day
* @param birthdayYear the user's birthday year
* @param jobTitle the user's job title
* @param groupIds the primary keys of the user's groups
* @param organizationIds the primary keys of the user's organizations
* @param roleIds the primary keys of the roles this user possesses
* @param userGroupIds the primary keys of the user's user groups
* @param sendEmail whether to send the user an email notification about
their new account
* @param serviceContext the service context to be applied (optionally
<code>null</code>). Can set the UUID (with the <code>uuid</code>
attribute), asset category IDs, asset tag names, and expando
bridge attributes for the user.
* @return the new user
*/
public static com.liferay.portal.kernel.model.UserSoap addUserWithWorkflow(
long companyId, boolean autoPassword, String password1,
String password2, boolean autoScreenName, String screenName,
String emailAddress, long facebookId, String openId, String locale,
String firstName, String middleName, String lastName, long prefixId,
long suffixId, boolean male, int birthdayMonth, int birthdayDay,
int birthdayYear, String jobTitle, long[] groupIds,
long[] organizationIds, long[] roleIds, long[] userGroupIds,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws RemoteException {
try {
com.liferay.portal.kernel.model.User returnValue =
UserServiceUtil.addUserWithWorkflow(
companyId, autoPassword, password1, password2,
autoScreenName, screenName, emailAddress, facebookId,
openId, LocaleUtil.fromLanguageId(locale), firstName,
middleName, lastName, prefixId, suffixId, male,
birthdayMonth, birthdayDay, birthdayYear, jobTitle,
groupIds, organizationIds, roleIds, userGroupIds, sendEmail,
serviceContext);
return com.liferay.portal.kernel.model.UserSoap.toSoapModel(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Adds a user with workflow and additional parameters.
*
* <p>
* This method handles the creation and bookkeeping of the user including
* its resources, metadata, and internal data structures. It is not
* necessary to make subsequent calls to any methods to setup default
* groups, resources, etc.
* </p>
*
* @param companyId the primary key of the user's company
* @param autoPassword whether a password should be automatically generated
for the user
* @param password1 the user's password
* @param password2 the user's password confirmation
* @param autoScreenName whether a screen name should be automatically
generated for the user
* @param screenName the user's screen name
* @param emailAddress the user's email address
* @param facebookId the user's facebook ID
* @param openId the user's OpenID
* @param locale the user's locale
* @param firstName the user's first name
* @param middleName the user's middle name
* @param lastName the user's last name
* @param prefixId the user's name prefix ID
* @param suffixId the user's name suffix ID
* @param male whether the user is male
* @param birthdayMonth the user's birthday month (0-based, meaning 0 for
January)
* @param birthdayDay the user's birthday day
* @param birthdayYear the user's birthday year
* @param jobTitle the user's job title
* @param groupIds the primary keys of the user's groups
* @param organizationIds the primary keys of the user's organizations
* @param roleIds the primary keys of the roles this user possesses
* @param userGroupIds the primary keys of the user's user groups
* @param addresses the user's addresses
* @param emailAddresses the user's email addresses
* @param phones the user's phone numbers
* @param websites the user's websites
* @param announcementsDelivers the announcements deliveries
* @param sendEmail whether to send the user an email notification about
their new account
* @param serviceContext the service context to be applied (optionally
<code>null</code>). Can set the UUID (with the <code>uuid</code>
attribute), asset category IDs, asset tag names, and expando
bridge attributes for the user.
* @return the new user
*/
public static com.liferay.portal.kernel.model.UserSoap addUserWithWorkflow(
long companyId, boolean autoPassword, String password1,
String password2, boolean autoScreenName, String screenName,
String emailAddress, long facebookId, String openId, String locale,
String firstName, String middleName, String lastName, long prefixId,
long suffixId, boolean male, int birthdayMonth, int birthdayDay,
int birthdayYear, String jobTitle, long[] groupIds,
long[] organizationIds, long[] roleIds, long[] userGroupIds,
com.liferay.portal.kernel.model.AddressSoap[] addresses,
com.liferay.portal.kernel.model.EmailAddressSoap[] emailAddresses,
com.liferay.portal.kernel.model.PhoneSoap[] phones,
com.liferay.portal.kernel.model.WebsiteSoap[] websites,
com.liferay.announcements.kernel.model.AnnouncementsDeliverySoap[]
announcementsDelivers,
boolean sendEmail,
com.liferay.portal.kernel.service.ServiceContext serviceContext)
throws RemoteException {
try {
com.liferay.portal.kernel.model.User returnValue =
UserServiceUtil.addUserWithWorkflow(
companyId, autoPassword, password1, password2,
autoScreenName, screenName, emailAddress, facebookId,
openId, LocaleUtil.fromLanguageId(locale), firstName,
middleName, lastName, prefixId, suffixId, male,
birthdayMonth, birthdayDay, birthdayYear, jobTitle,
groupIds, organizationIds, roleIds, userGroupIds,
com.liferay.portal.model.impl.AddressModelImpl.toModels(
addresses),
com.liferay.portal.model.impl.EmailAddressModelImpl.
toModels(emailAddresses),
com.liferay.portal.model.impl.PhoneModelImpl.toModels(
phones),
com.liferay.portal.model.impl.WebsiteModelImpl.toModels(
websites),
com.liferay.portlet.announcements.model.impl.
AnnouncementsDeliveryModelImpl.toModels(
announcementsDelivers),
sendEmail, serviceContext);
return com.liferay.portal.kernel.model.UserSoap.toSoapModel(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Deletes the user's portrait image.
*
* @param userId the primary key of the user
*/
public static void deletePortrait(long userId) throws RemoteException {
try {
UserServiceUtil.deletePortrait(userId);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Removes the user from the role.
*
* @param roleId the primary key of the role
* @param userId the primary key of the user
*/
public static void deleteRoleUser(long roleId, long userId)
throws RemoteException {
try {
UserServiceUtil.deleteRoleUser(roleId, userId);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Deletes the user.
*
* @param userId the primary key of the user
*/
public static void deleteUser(long userId) throws RemoteException {
try {
UserServiceUtil.deleteUser(userId);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.portal.kernel.model.UserSoap[] getCompanyUsers(
long companyId, int start, int end)
throws RemoteException {
try {
java.util.List<com.liferay.portal.kernel.model.User> returnValue =
UserServiceUtil.getCompanyUsers(companyId, start, end);
return com.liferay.portal.kernel.model.UserSoap.toSoapModels(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static int getCompanyUsersCount(long companyId)
throws RemoteException {
try {
int returnValue = UserServiceUtil.getCompanyUsersCount(companyId);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.portal.kernel.model.UserSoap getCurrentUser()
throws RemoteException {
try {
com.liferay.portal.kernel.model.User returnValue =
UserServiceUtil.getCurrentUser();
return com.liferay.portal.kernel.model.UserSoap.toSoapModel(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns the primary keys of all the users belonging to the group.
*
* @param groupId the primary key of the group
* @return the primary keys of the users belonging to the group
*/
public static long[] getGroupUserIds(long groupId) throws RemoteException {
try {
long[] returnValue = UserServiceUtil.getGroupUserIds(groupId);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns all the users belonging to the group.
*
* @param groupId the primary key of the group
* @return the users belonging to the group
*/
public static com.liferay.portal.kernel.model.UserSoap[] getGroupUsers(
long groupId)
throws RemoteException {
try {
java.util.List<com.liferay.portal.kernel.model.User> returnValue =
UserServiceUtil.getGroupUsers(groupId);
return com.liferay.portal.kernel.model.UserSoap.toSoapModels(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns the users belonging to a group.
*
* @param groupId the primary key of the group
* @param status the workflow status
* @param start the lower bound of the range of users
* @param end the upper bound of the range of users (not inclusive)
* @param obc the comparator to order the users by (optionally
<code>null</code>)
* @return the matching users
*/
public static com.liferay.portal.kernel.model.UserSoap[] getGroupUsers(
long groupId, int status, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
<com.liferay.portal.kernel.model.User> obc)
throws RemoteException {
try {
java.util.List<com.liferay.portal.kernel.model.User> returnValue =
UserServiceUtil.getGroupUsers(groupId, status, start, end, obc);
return com.liferay.portal.kernel.model.UserSoap.toSoapModels(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns the users belonging to a group.
*
* @param groupId the primary key of the group
* @param status the workflow status
* @param obc the comparator to order the users by (optionally
<code>null</code>)
* @return the matching users
*/
public static com.liferay.portal.kernel.model.UserSoap[] getGroupUsers(
long groupId, int status,
com.liferay.portal.kernel.util.OrderByComparator
<com.liferay.portal.kernel.model.User> obc)
throws RemoteException {
try {
java.util.List<com.liferay.portal.kernel.model.User> returnValue =
UserServiceUtil.getGroupUsers(groupId, status, obc);
return com.liferay.portal.kernel.model.UserSoap.toSoapModels(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns the number of users with the status belonging to the group.
*
* @param groupId the primary key of the group
* @param status the workflow status
* @return the number of users with the status belonging to the group
*/
public static int getGroupUsersCount(long groupId, int status)
throws RemoteException {
try {
int returnValue = UserServiceUtil.getGroupUsersCount(
groupId, status);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.portal.kernel.model.UserSoap[] getGtCompanyUsers(
long gtUserId, long companyId, int size)
throws RemoteException {
try {
java.util.List<com.liferay.portal.kernel.model.User> returnValue =
UserServiceUtil.getGtCompanyUsers(gtUserId, companyId, size);
return com.liferay.portal.kernel.model.UserSoap.toSoapModels(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.portal.kernel.model.UserSoap[]
getGtOrganizationUsers(long gtUserId, long organizationId, int size)
throws RemoteException {
try {
java.util.List<com.liferay.portal.kernel.model.User> returnValue =
UserServiceUtil.getGtOrganizationUsers(
gtUserId, organizationId, size);
return com.liferay.portal.kernel.model.UserSoap.toSoapModels(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static com.liferay.portal.kernel.model.UserSoap[]
getGtUserGroupUsers(long gtUserId, long userGroupId, int size)
throws RemoteException {
try {
java.util.List<com.liferay.portal.kernel.model.User> returnValue =
UserServiceUtil.getGtUserGroupUsers(
gtUserId, userGroupId, size);
return com.liferay.portal.kernel.model.UserSoap.toSoapModels(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
public static int getOrganizationsAndUserGroupsUsersCount(
long[] organizationIds, long[] userGroupIds)
throws RemoteException {
try {
int returnValue =
UserServiceUtil.getOrganizationsAndUserGroupsUsersCount(
organizationIds, userGroupIds);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns the primary keys of all the users belonging to the organization.
*
* @param organizationId the primary key of the organization
* @return the primary keys of the users belonging to the organization
*/
public static long[] getOrganizationUserIds(long organizationId)
throws RemoteException {
try {
long[] returnValue = UserServiceUtil.getOrganizationUserIds(
organizationId);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns all the users belonging to the organization.
*
* @param organizationId the primary key of the organization
* @return users belonging to the organization
*/
public static com.liferay.portal.kernel.model.UserSoap[]
getOrganizationUsers(long organizationId)
throws RemoteException {
try {
java.util.List<com.liferay.portal.kernel.model.User> returnValue =
UserServiceUtil.getOrganizationUsers(organizationId);
return com.liferay.portal.kernel.model.UserSoap.toSoapModels(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns the users belonging to the organization with the status.
*
* @param organizationId the primary key of the organization
* @param status the workflow status
* @param start the lower bound of the range of users
* @param end the upper bound of the range of users (not inclusive)
* @param obc the comparator to order the users by (optionally
<code>null</code>)
* @return the matching users
*/
public static com.liferay.portal.kernel.model.UserSoap[]
getOrganizationUsers(
long organizationId, int status, int start, int end,
com.liferay.portal.kernel.util.OrderByComparator
<com.liferay.portal.kernel.model.User> obc)
throws RemoteException {
try {
java.util.List<com.liferay.portal.kernel.model.User> returnValue =
UserServiceUtil.getOrganizationUsers(
organizationId, status, start, end, obc);
return com.liferay.portal.kernel.model.UserSoap.toSoapModels(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns the users belonging to the organization with the status.
*
* @param organizationId the primary key of the organization
* @param status the workflow status
* @param obc the comparator to order the users by (optionally
<code>null</code>)
* @return the matching users
*/
public static com.liferay.portal.kernel.model.UserSoap[]
getOrganizationUsers(
long organizationId, int status,
com.liferay.portal.kernel.util.OrderByComparator
<com.liferay.portal.kernel.model.User> obc)
throws RemoteException {
try {
java.util.List<com.liferay.portal.kernel.model.User> returnValue =
UserServiceUtil.getOrganizationUsers(
organizationId, status, obc);
return com.liferay.portal.kernel.model.UserSoap.toSoapModels(
returnValue);
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns the number of users with the status belonging to the
* organization.
*
* @param organizationId the primary key of the organization
* @param status the workflow status
* @return the number of users with the status belonging to the organization
*/
public static int getOrganizationUsersCount(long organizationId, int status)
throws RemoteException {
try {
int returnValue = UserServiceUtil.getOrganizationUsersCount(
organizationId, status);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns the primary keys of all the users belonging to the role.
*
* @param roleId the primary key of the role
* @return the primary keys of the users belonging to the role
*/
public static long[] getRoleUserIds(long roleId) throws RemoteException {
try {
long[] returnValue = UserServiceUtil.getRoleUserIds(roleId);
return returnValue;
}
catch (Exception e) {
_log.error(e, e);
throw new RemoteException(e.getMessage());
}
}
/**
* Returns the user with the email address.
*
* @param companyId the primary key of the user's company
* @param emailAddress the user's email address
* @return the user with the email address