001
014
015 package com.liferay.portal.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021 import com.liferay.portal.kernel.util.LocalizationUtil;
022 import com.liferay.portal.service.GroupServiceUtil;
023
024 import java.rmi.RemoteException;
025
026 import java.util.Locale;
027 import java.util.Map;
028
029
069 @ProviderType
070 public class GroupServiceSoap {
071 public static com.liferay.portal.model.GroupSoap addGroup(
072 long parentGroupId, long liveGroupId,
073 java.lang.String[] nameMapLanguageIds,
074 java.lang.String[] nameMapValues,
075 java.lang.String[] descriptionMapLanguageIds,
076 java.lang.String[] descriptionMapValues, int type,
077 boolean manualMembership, int membershipRestriction,
078 java.lang.String friendlyURL, boolean site, boolean inheritContent,
079 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
080 throws RemoteException {
081 try {
082 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
083 nameMapValues);
084 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
085 descriptionMapValues);
086
087 com.liferay.portal.model.Group returnValue = GroupServiceUtil.addGroup(parentGroupId,
088 liveGroupId, nameMap, descriptionMap, type,
089 manualMembership, membershipRestriction, friendlyURL, site,
090 inheritContent, active, serviceContext);
091
092 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
093 }
094 catch (Exception e) {
095 _log.error(e, e);
096
097 throw new RemoteException(e.getMessage());
098 }
099 }
100
101 public static com.liferay.portal.model.GroupSoap addGroup(
102 long parentGroupId, long liveGroupId,
103 java.lang.String[] nameMapLanguageIds,
104 java.lang.String[] nameMapValues,
105 java.lang.String[] descriptionMapLanguageIds,
106 java.lang.String[] descriptionMapValues, int type,
107 boolean manualMembership, int membershipRestriction,
108 java.lang.String friendlyURL, boolean site, boolean active,
109 com.liferay.portal.service.ServiceContext serviceContext)
110 throws RemoteException {
111 try {
112 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
113 nameMapValues);
114 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
115 descriptionMapValues);
116
117 com.liferay.portal.model.Group returnValue = GroupServiceUtil.addGroup(parentGroupId,
118 liveGroupId, nameMap, descriptionMap, type,
119 manualMembership, membershipRestriction, friendlyURL, site,
120 active, serviceContext);
121
122 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
123 }
124 catch (Exception e) {
125 _log.error(e, e);
126
127 throw new RemoteException(e.getMessage());
128 }
129 }
130
131
158 @Deprecated
159 public static com.liferay.portal.model.GroupSoap addGroup(
160 long parentGroupId, long liveGroupId, java.lang.String name,
161 java.lang.String description, int type, boolean manualMembership,
162 int membershipRestriction, java.lang.String friendlyURL, boolean site,
163 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
164 throws RemoteException {
165 try {
166 com.liferay.portal.model.Group returnValue = GroupServiceUtil.addGroup(parentGroupId,
167 liveGroupId, name, description, type, manualMembership,
168 membershipRestriction, friendlyURL, site, active,
169 serviceContext);
170
171 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
172 }
173 catch (Exception e) {
174 _log.error(e, e);
175
176 throw new RemoteException(e.getMessage());
177 }
178 }
179
180
201 @Deprecated
202 public static com.liferay.portal.model.GroupSoap addGroup(
203 long parentGroupId, java.lang.String name,
204 java.lang.String description, int type, java.lang.String friendlyURL,
205 boolean site, boolean active,
206 com.liferay.portal.service.ServiceContext serviceContext)
207 throws RemoteException {
208 try {
209 com.liferay.portal.model.Group returnValue = GroupServiceUtil.addGroup(parentGroupId,
210 name, description, type, friendlyURL, site, active,
211 serviceContext);
212
213 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
214 }
215 catch (Exception e) {
216 _log.error(e, e);
217
218 throw new RemoteException(e.getMessage());
219 }
220 }
221
222
226 @Deprecated
227 public static com.liferay.portal.model.GroupSoap addGroup(
228 java.lang.String name, java.lang.String description, int type,
229 java.lang.String friendlyURL, boolean site, boolean active,
230 com.liferay.portal.service.ServiceContext serviceContext)
231 throws RemoteException {
232 try {
233 com.liferay.portal.model.Group returnValue = GroupServiceUtil.addGroup(name,
234 description, type, friendlyURL, site, active, serviceContext);
235
236 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
237 }
238 catch (Exception e) {
239 _log.error(e, e);
240
241 throw new RemoteException(e.getMessage());
242 }
243 }
244
245
251 public static void addRoleGroups(long roleId, long[] groupIds)
252 throws RemoteException {
253 try {
254 GroupServiceUtil.addRoleGroups(roleId, groupIds);
255 }
256 catch (Exception e) {
257 _log.error(e, e);
258
259 throw new RemoteException(e.getMessage());
260 }
261 }
262
263
269 public static void checkRemoteStagingGroup(long groupId)
270 throws RemoteException {
271 try {
272 GroupServiceUtil.checkRemoteStagingGroup(groupId);
273 }
274 catch (Exception e) {
275 _log.error(e, e);
276
277 throw new RemoteException(e.getMessage());
278 }
279 }
280
281
293 public static void deleteGroup(long groupId) throws RemoteException {
294 try {
295 GroupServiceUtil.deleteGroup(groupId);
296 }
297 catch (Exception e) {
298 _log.error(e, e);
299
300 throw new RemoteException(e.getMessage());
301 }
302 }
303
304 public static void disableStaging(long groupId) throws RemoteException {
305 try {
306 GroupServiceUtil.disableStaging(groupId);
307 }
308 catch (Exception e) {
309 _log.error(e, e);
310
311 throw new RemoteException(e.getMessage());
312 }
313 }
314
315 public static void enableStaging(long groupId) throws RemoteException {
316 try {
317 GroupServiceUtil.enableStaging(groupId);
318 }
319 catch (Exception e) {
320 _log.error(e, e);
321
322 throw new RemoteException(e.getMessage());
323 }
324 }
325
326
332 public static com.liferay.portal.model.GroupSoap getCompanyGroup(
333 long companyId) throws RemoteException {
334 try {
335 com.liferay.portal.model.Group returnValue = GroupServiceUtil.getCompanyGroup(companyId);
336
337 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
338 }
339 catch (Exception e) {
340 _log.error(e, e);
341
342 throw new RemoteException(e.getMessage());
343 }
344 }
345
346
352 public static com.liferay.portal.model.GroupSoap getGroup(long groupId)
353 throws RemoteException {
354 try {
355 com.liferay.portal.model.Group returnValue = GroupServiceUtil.getGroup(groupId);
356
357 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
358 }
359 catch (Exception e) {
360 _log.error(e, e);
361
362 throw new RemoteException(e.getMessage());
363 }
364 }
365
366
373 public static com.liferay.portal.model.GroupSoap getGroup(long companyId,
374 java.lang.String groupKey) throws RemoteException {
375 try {
376 com.liferay.portal.model.Group returnValue = GroupServiceUtil.getGroup(companyId,
377 groupKey);
378
379 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
380 }
381 catch (Exception e) {
382 _log.error(e, e);
383
384 throw new RemoteException(e.getMessage());
385 }
386 }
387
388 public static java.lang.String getGroupDisplayURL(long groupId,
389 boolean privateLayout, boolean secureConnection)
390 throws RemoteException {
391 try {
392 java.lang.String returnValue = GroupServiceUtil.getGroupDisplayURL(groupId,
393 privateLayout, secureConnection);
394
395 return returnValue;
396 }
397 catch (Exception e) {
398 _log.error(e, e);
399
400 throw new RemoteException(e.getMessage());
401 }
402 }
403
404
413 public static com.liferay.portal.model.GroupSoap[] getGroups(
414 long companyId, long parentGroupId, boolean site)
415 throws RemoteException {
416 try {
417 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getGroups(companyId,
418 parentGroupId, site);
419
420 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
421 }
422 catch (Exception e) {
423 _log.error(e, e);
424
425 throw new RemoteException(e.getMessage());
426 }
427 }
428
429
439 public static com.liferay.portal.model.GroupSoap[] getManageableSiteGroups(
440 java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max)
441 throws RemoteException {
442 try {
443 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getManageableSiteGroups(portlets,
444 max);
445
446 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
447 }
448 catch (Exception e) {
449 _log.error(e, e);
450
451 throw new RemoteException(e.getMessage());
452 }
453 }
454
455
467 @Deprecated
468 public static com.liferay.portal.model.GroupSoap[] getManageableSites(
469 java.util.Collection<com.liferay.portal.model.Portlet> portlets, int max)
470 throws RemoteException {
471 try {
472 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getManageableSites(portlets,
473 max);
474
475 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
476 }
477 catch (Exception e) {
478 _log.error(e, e);
479
480 throw new RemoteException(e.getMessage());
481 }
482 }
483
484
490 public static com.liferay.portal.model.GroupSoap[] getOrganizationsGroups(
491 com.liferay.portal.model.OrganizationSoap[] organizations)
492 throws RemoteException {
493 try {
494 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getOrganizationsGroups(com.liferay.portal.model.impl.OrganizationModelImpl.toModels(
495 organizations));
496
497 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
498 }
499 catch (Exception e) {
500 _log.error(e, e);
501
502 throw new RemoteException(e.getMessage());
503 }
504 }
505
506
513 public static com.liferay.portal.model.GroupSoap getUserGroup(
514 long companyId, long userId) throws RemoteException {
515 try {
516 com.liferay.portal.model.Group returnValue = GroupServiceUtil.getUserGroup(companyId,
517 userId);
518
519 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
520 }
521 catch (Exception e) {
522 _log.error(e, e);
523
524 throw new RemoteException(e.getMessage());
525 }
526 }
527
528
534 public static com.liferay.portal.model.GroupSoap[] getUserGroupsGroups(
535 com.liferay.portal.model.UserGroupSoap[] userGroups)
536 throws RemoteException {
537 try {
538 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getUserGroupsGroups(com.liferay.portal.model.impl.UserGroupModelImpl.toModels(
539 userGroups));
540
541 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
542 }
543 catch (Exception e) {
544 _log.error(e, e);
545
546 throw new RemoteException(e.getMessage());
547 }
548 }
549
550
571 public static com.liferay.portal.model.GroupSoap[] getUserOrganizationsGroups(
572 long userId, int start, int end) throws RemoteException {
573 try {
574 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getUserOrganizationsGroups(userId,
575 start, end);
576
577 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
578 }
579 catch (Exception e) {
580 _log.error(e, e);
581
582 throw new RemoteException(e.getMessage());
583 }
584 }
585
586
590 @Deprecated
591 public static com.liferay.portal.model.GroupSoap[] getUserPlaces(
592 long userId, java.lang.String[] classNames,
593 boolean includeControlPanel, int max) throws RemoteException {
594 try {
595 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getUserPlaces(userId,
596 classNames, includeControlPanel, max);
597
598 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
599 }
600 catch (Exception e) {
601 _log.error(e, e);
602
603 throw new RemoteException(e.getMessage());
604 }
605 }
606
607
641 @Deprecated
642 public static com.liferay.portal.model.GroupSoap[] getUserPlaces(
643 long userId, java.lang.String[] classNames, int max)
644 throws RemoteException {
645 try {
646 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getUserPlaces(userId,
647 classNames, max);
648
649 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
650 }
651 catch (Exception e) {
652 _log.error(e, e);
653
654 throw new RemoteException(e.getMessage());
655 }
656 }
657
658
691 @Deprecated
692 public static com.liferay.portal.model.GroupSoap[] getUserPlaces(
693 java.lang.String[] classNames, int max) throws RemoteException {
694 try {
695 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getUserPlaces(classNames,
696 max);
697
698 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
699 }
700 catch (Exception e) {
701 _log.error(e, e);
702
703 throw new RemoteException(e.getMessage());
704 }
705 }
706
707
716 @Deprecated
717 public static int getUserPlacesCount() throws RemoteException {
718 try {
719 int returnValue = GroupServiceUtil.getUserPlacesCount();
720
721 return returnValue;
722 }
723 catch (Exception e) {
724 _log.error(e, e);
725
726 throw new RemoteException(e.getMessage());
727 }
728 }
729
730
738 @Deprecated
739 public static com.liferay.portal.model.GroupSoap[] getUserSites()
740 throws RemoteException {
741 try {
742 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getUserSites();
743
744 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
745 }
746 catch (Exception e) {
747 _log.error(e, e);
748
749 throw new RemoteException(e.getMessage());
750 }
751 }
752
753 public static com.liferay.portal.model.GroupSoap[] getUserSitesGroups()
754 throws RemoteException {
755 try {
756 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getUserSitesGroups();
757
758 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
759 }
760 catch (Exception e) {
761 _log.error(e, e);
762
763 throw new RemoteException(e.getMessage());
764 }
765 }
766
767
799 public static com.liferay.portal.model.GroupSoap[] getUserSitesGroups(
800 long userId, java.lang.String[] classNames, int max)
801 throws RemoteException {
802 try {
803 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getUserSitesGroups(userId,
804 classNames, max);
805
806 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
807 }
808 catch (Exception e) {
809 _log.error(e, e);
810
811 throw new RemoteException(e.getMessage());
812 }
813 }
814
815
846 public static com.liferay.portal.model.GroupSoap[] getUserSitesGroups(
847 java.lang.String[] classNames, int max) throws RemoteException {
848 try {
849 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.getUserSitesGroups(classNames,
850 max);
851
852 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
853 }
854 catch (Exception e) {
855 _log.error(e, e);
856
857 throw new RemoteException(e.getMessage());
858 }
859 }
860
861
869 public static int getUserSitesGroupsCount() throws RemoteException {
870 try {
871 int returnValue = GroupServiceUtil.getUserSitesGroupsCount();
872
873 return returnValue;
874 }
875 catch (Exception e) {
876 _log.error(e, e);
877
878 throw new RemoteException(e.getMessage());
879 }
880 }
881
882
892 public static boolean hasUserGroup(long userId, long groupId)
893 throws RemoteException {
894 try {
895 boolean returnValue = GroupServiceUtil.hasUserGroup(userId, groupId);
896
897 return returnValue;
898 }
899 catch (Exception e) {
900 _log.error(e, e);
901
902 throw new RemoteException(e.getMessage());
903 }
904 }
905
906
936 public static com.liferay.portal.model.GroupSoap[] search(long companyId,
937 java.lang.String name, java.lang.String description,
938 java.lang.String[] params, int start, int end)
939 throws RemoteException {
940 try {
941 java.util.List<com.liferay.portal.model.Group> returnValue = GroupServiceUtil.search(companyId,
942 name, description, params, start, end);
943
944 return com.liferay.portal.model.GroupSoap.toSoapModels(returnValue);
945 }
946 catch (Exception e) {
947 _log.error(e, e);
948
949 throw new RemoteException(e.getMessage());
950 }
951 }
952
953
970 public static int searchCount(long companyId, java.lang.String name,
971 java.lang.String description, java.lang.String[] params)
972 throws RemoteException {
973 try {
974 int returnValue = GroupServiceUtil.searchCount(companyId, name,
975 description, params);
976
977 return returnValue;
978 }
979 catch (Exception e) {
980 _log.error(e, e);
981
982 throw new RemoteException(e.getMessage());
983 }
984 }
985
986
993 public static void setRoleGroups(long roleId, long[] groupIds)
994 throws RemoteException {
995 try {
996 GroupServiceUtil.setRoleGroups(roleId, groupIds);
997 }
998 catch (Exception e) {
999 _log.error(e, e);
1000
1001 throw new RemoteException(e.getMessage());
1002 }
1003 }
1004
1005
1011 public static void unsetRoleGroups(long roleId, long[] groupIds)
1012 throws RemoteException {
1013 try {
1014 GroupServiceUtil.unsetRoleGroups(roleId, groupIds);
1015 }
1016 catch (Exception e) {
1017 _log.error(e, e);
1018
1019 throw new RemoteException(e.getMessage());
1020 }
1021 }
1022
1023
1031 public static com.liferay.portal.model.GroupSoap updateFriendlyURL(
1032 long groupId, java.lang.String friendlyURL) throws RemoteException {
1033 try {
1034 com.liferay.portal.model.Group returnValue = GroupServiceUtil.updateFriendlyURL(groupId,
1035 friendlyURL);
1036
1037 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
1038 }
1039 catch (Exception e) {
1040 _log.error(e, e);
1041
1042 throw new RemoteException(e.getMessage());
1043 }
1044 }
1045
1046 public static com.liferay.portal.model.GroupSoap updateGroup(long groupId,
1047 long parentGroupId, java.lang.String[] nameMapLanguageIds,
1048 java.lang.String[] nameMapValues,
1049 java.lang.String[] descriptionMapLanguageIds,
1050 java.lang.String[] descriptionMapValues, int type,
1051 boolean manualMembership, int membershipRestriction,
1052 java.lang.String friendlyURL, boolean inheritContent, boolean active,
1053 com.liferay.portal.service.ServiceContext serviceContext)
1054 throws RemoteException {
1055 try {
1056 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
1057 nameMapValues);
1058 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
1059 descriptionMapValues);
1060
1061 com.liferay.portal.model.Group returnValue = GroupServiceUtil.updateGroup(groupId,
1062 parentGroupId, nameMap, descriptionMap, type,
1063 manualMembership, membershipRestriction, friendlyURL,
1064 inheritContent, active, serviceContext);
1065
1066 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
1067 }
1068 catch (Exception e) {
1069 _log.error(e, e);
1070
1071 throw new RemoteException(e.getMessage());
1072 }
1073 }
1074
1075
1100 @Deprecated
1101 public static com.liferay.portal.model.GroupSoap updateGroup(long groupId,
1102 long parentGroupId, java.lang.String name,
1103 java.lang.String description, int type, boolean manualMembership,
1104 int membershipRestriction, java.lang.String friendlyURL,
1105 boolean inheritContent, boolean active,
1106 com.liferay.portal.service.ServiceContext serviceContext)
1107 throws RemoteException {
1108 try {
1109 com.liferay.portal.model.Group returnValue = GroupServiceUtil.updateGroup(groupId,
1110 parentGroupId, name, description, type, manualMembership,
1111 membershipRestriction, friendlyURL, inheritContent, active,
1112 serviceContext);
1113
1114 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
1115 }
1116 catch (Exception e) {
1117 _log.error(e, e);
1118
1119 throw new RemoteException(e.getMessage());
1120 }
1121 }
1122
1123
1131 public static com.liferay.portal.model.GroupSoap updateGroup(long groupId,
1132 java.lang.String typeSettings) throws RemoteException {
1133 try {
1134 com.liferay.portal.model.Group returnValue = GroupServiceUtil.updateGroup(groupId,
1135 typeSettings);
1136
1137 return com.liferay.portal.model.GroupSoap.toSoapModel(returnValue);
1138 }
1139 catch (Exception e) {
1140 _log.error(e, e);
1141
1142 throw new RemoteException(e.getMessage());
1143 }
1144 }
1145
1146 private static Log _log = LogFactoryUtil.getLog(GroupServiceSoap.class);
1147 }