001
014
015 package com.liferay.portlet.dynamicdatamapping.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
023 import com.liferay.portlet.dynamicdatamapping.service.DDMStructureServiceUtil;
024
025 import java.rmi.RemoteException;
026
027 import java.util.Locale;
028 import java.util.Map;
029
030
070 @ProviderType
071 public class DDMStructureServiceSoap {
072 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap addStructure(
073 long userId, long groupId, long classNameId,
074 java.lang.String[] nameMapLanguageIds,
075 java.lang.String[] nameMapValues,
076 java.lang.String[] descriptionMapLanguageIds,
077 java.lang.String[] descriptionMapValues,
078 com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
079 com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout ddmFormLayout,
080 com.liferay.portal.service.ServiceContext serviceContext)
081 throws RemoteException {
082 try {
083 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
084 nameMapValues);
085 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
086 descriptionMapValues);
087
088 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
089 DDMStructureServiceUtil.addStructure(userId, groupId,
090 classNameId, nameMap, descriptionMap, ddmForm,
091 ddmFormLayout, serviceContext);
092
093 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
094 }
095 catch (Exception e) {
096 _log.error(e, e);
097
098 throw new RemoteException(e.getMessage());
099 }
100 }
101
102
126 @Deprecated
127 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap addStructure(
128 long userId, long groupId, long classNameId,
129 java.lang.String[] nameMapLanguageIds,
130 java.lang.String[] nameMapValues,
131 java.lang.String[] descriptionMapLanguageIds,
132 java.lang.String[] descriptionMapValues, java.lang.String xsd,
133 com.liferay.portal.service.ServiceContext serviceContext)
134 throws RemoteException {
135 try {
136 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
137 nameMapValues);
138 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
139 descriptionMapValues);
140
141 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
142 DDMStructureServiceUtil.addStructure(userId, groupId,
143 classNameId, nameMap, descriptionMap, xsd, serviceContext);
144
145 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
146 }
147 catch (Exception e) {
148 _log.error(e, e);
149
150 throw new RemoteException(e.getMessage());
151 }
152 }
153
154 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap addStructure(
155 long groupId, long parentStructureId, long classNameId,
156 java.lang.String structureKey, java.lang.String[] nameMapLanguageIds,
157 java.lang.String[] nameMapValues,
158 java.lang.String[] descriptionMapLanguageIds,
159 java.lang.String[] descriptionMapValues,
160 com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
161 com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout ddmFormLayout,
162 java.lang.String storageType, int type,
163 com.liferay.portal.service.ServiceContext serviceContext)
164 throws RemoteException {
165 try {
166 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
167 nameMapValues);
168 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
169 descriptionMapValues);
170
171 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
172 DDMStructureServiceUtil.addStructure(groupId,
173 parentStructureId, classNameId, structureKey, nameMap,
174 descriptionMap, ddmForm, ddmFormLayout, storageType, type,
175 serviceContext);
176
177 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
178 }
179 catch (Exception e) {
180 _log.error(e, e);
181
182 throw new RemoteException(e.getMessage());
183 }
184 }
185
186
217 @Deprecated
218 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap addStructure(
219 long groupId, long parentStructureId, long classNameId,
220 java.lang.String structureKey, java.lang.String[] nameMapLanguageIds,
221 java.lang.String[] nameMapValues,
222 java.lang.String[] descriptionMapLanguageIds,
223 java.lang.String[] descriptionMapValues, java.lang.String xsd,
224 java.lang.String storageType, int type,
225 com.liferay.portal.service.ServiceContext serviceContext)
226 throws RemoteException {
227 try {
228 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
229 nameMapValues);
230 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
231 descriptionMapValues);
232
233 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
234 DDMStructureServiceUtil.addStructure(groupId,
235 parentStructureId, classNameId, structureKey, nameMap,
236 descriptionMap, xsd, storageType, type, serviceContext);
237
238 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
239 }
240 catch (Exception e) {
241 _log.error(e, e);
242
243 throw new RemoteException(e.getMessage());
244 }
245 }
246
247 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap addStructure(
248 long userId, long groupId, java.lang.String parentStructureKey,
249 long classNameId, java.lang.String structureKey,
250 java.lang.String[] nameMapLanguageIds,
251 java.lang.String[] nameMapValues,
252 java.lang.String[] descriptionMapLanguageIds,
253 java.lang.String[] descriptionMapValues,
254 com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
255 com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout ddmFormLayout,
256 java.lang.String storageType, int type,
257 com.liferay.portal.service.ServiceContext serviceContext)
258 throws RemoteException {
259 try {
260 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
261 nameMapValues);
262 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
263 descriptionMapValues);
264
265 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
266 DDMStructureServiceUtil.addStructure(userId, groupId,
267 parentStructureKey, classNameId, structureKey, nameMap,
268 descriptionMap, ddmForm, ddmFormLayout, storageType, type,
269 serviceContext);
270
271 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
272 }
273 catch (Exception e) {
274 _log.error(e, e);
275
276 throw new RemoteException(e.getMessage());
277 }
278 }
279
280
315 @Deprecated
316 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap addStructure(
317 long userId, long groupId, java.lang.String parentStructureKey,
318 long classNameId, java.lang.String structureKey,
319 java.lang.String[] nameMapLanguageIds,
320 java.lang.String[] nameMapValues,
321 java.lang.String[] descriptionMapLanguageIds,
322 java.lang.String[] descriptionMapValues, java.lang.String xsd,
323 java.lang.String storageType, int type,
324 com.liferay.portal.service.ServiceContext serviceContext)
325 throws RemoteException {
326 try {
327 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
328 nameMapValues);
329 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
330 descriptionMapValues);
331
332 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
333 DDMStructureServiceUtil.addStructure(userId, groupId,
334 parentStructureKey, classNameId, structureKey, nameMap,
335 descriptionMap, xsd, storageType, type, serviceContext);
336
337 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
338 }
339 catch (Exception e) {
340 _log.error(e, e);
341
342 throw new RemoteException(e.getMessage());
343 }
344 }
345
346
362 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap copyStructure(
363 long structureId, java.lang.String[] nameMapLanguageIds,
364 java.lang.String[] nameMapValues,
365 java.lang.String[] descriptionMapLanguageIds,
366 java.lang.String[] descriptionMapValues,
367 com.liferay.portal.service.ServiceContext serviceContext)
368 throws RemoteException {
369 try {
370 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
371 nameMapValues);
372 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
373 descriptionMapValues);
374
375 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
376 DDMStructureServiceUtil.copyStructure(structureId, nameMap,
377 descriptionMap, serviceContext);
378
379 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.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 com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap copyStructure(
389 long structureId,
390 com.liferay.portal.service.ServiceContext serviceContext)
391 throws RemoteException {
392 try {
393 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
394 DDMStructureServiceUtil.copyStructure(structureId,
395 serviceContext);
396
397 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
398 }
399 catch (Exception e) {
400 _log.error(e, e);
401
402 throw new RemoteException(e.getMessage());
403 }
404 }
405
406
418 public static void deleteStructure(long structureId)
419 throws RemoteException {
420 try {
421 DDMStructureServiceUtil.deleteStructure(structureId);
422 }
423 catch (Exception e) {
424 _log.error(e, e);
425
426 throw new RemoteException(e.getMessage());
427 }
428 }
429
430
443 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap fetchStructure(
444 long groupId, long classNameId, java.lang.String structureKey)
445 throws RemoteException {
446 try {
447 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
448 DDMStructureServiceUtil.fetchStructure(groupId, classNameId,
449 structureKey);
450
451 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
452 }
453 catch (Exception e) {
454 _log.error(e, e);
455
456 throw new RemoteException(e.getMessage());
457 }
458 }
459
460 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap fetchStructure(
461 long groupId, long classNameId, java.lang.String structureKey,
462 boolean includeAncestorStructures) throws RemoteException {
463 try {
464 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
465 DDMStructureServiceUtil.fetchStructure(groupId, classNameId,
466 structureKey, includeAncestorStructures);
467
468 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
469 }
470 catch (Exception e) {
471 _log.error(e, e);
472
473 throw new RemoteException(e.getMessage());
474 }
475 }
476
477
485 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap getStructure(
486 long structureId) throws RemoteException {
487 try {
488 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
489 DDMStructureServiceUtil.getStructure(structureId);
490
491 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
492 }
493 catch (Exception e) {
494 _log.error(e, e);
495
496 throw new RemoteException(e.getMessage());
497 }
498 }
499
500
512 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap getStructure(
513 long groupId, long classNameId, java.lang.String structureKey)
514 throws RemoteException {
515 try {
516 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
517 DDMStructureServiceUtil.getStructure(groupId, classNameId,
518 structureKey);
519
520 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
521 }
522 catch (Exception e) {
523 _log.error(e, e);
524
525 throw new RemoteException(e.getMessage());
526 }
527 }
528
529
552 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap getStructure(
553 long groupId, long classNameId, java.lang.String structureKey,
554 boolean includeAncestorStructures) throws RemoteException {
555 try {
556 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
557 DDMStructureServiceUtil.getStructure(groupId, classNameId,
558 structureKey, includeAncestorStructures);
559
560 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
561 }
562 catch (Exception e) {
563 _log.error(e, e);
564
565 throw new RemoteException(e.getMessage());
566 }
567 }
568
569
576 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap[] getStructures(
577 long groupId) throws RemoteException {
578 try {
579 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> returnValue =
580 DDMStructureServiceUtil.getStructures(groupId);
581
582 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModels(returnValue);
583 }
584 catch (Exception e) {
585 _log.error(e, e);
586
587 throw new RemoteException(e.getMessage());
588 }
589 }
590
591
598 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap[] getStructures(
599 long[] groupIds) throws RemoteException {
600 try {
601 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> returnValue =
602 DDMStructureServiceUtil.getStructures(groupIds);
603
604 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModels(returnValue);
605 }
606 catch (Exception e) {
607 _log.error(e, e);
608
609 throw new RemoteException(e.getMessage());
610 }
611 }
612
613
623 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap[] getStructures(
624 long[] groupIds, long classNameId) throws RemoteException {
625 try {
626 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> returnValue =
627 DDMStructureServiceUtil.getStructures(groupIds, classNameId);
628
629 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModels(returnValue);
630 }
631 catch (Exception e) {
632 _log.error(e, e);
633
634 throw new RemoteException(e.getMessage());
635 }
636 }
637
638 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap[] getStructures(
639 long[] groupIds, long classNameId, int start, int end)
640 throws RemoteException {
641 try {
642 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> returnValue =
643 DDMStructureServiceUtil.getStructures(groupIds, classNameId,
644 start, end);
645
646 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModels(returnValue);
647 }
648 catch (Exception e) {
649 _log.error(e, e);
650
651 throw new RemoteException(e.getMessage());
652 }
653 }
654
655 public static void revertStructure(long structureId,
656 java.lang.String version,
657 com.liferay.portal.service.ServiceContext serviceContext)
658 throws RemoteException {
659 try {
660 DDMStructureServiceUtil.revertStructure(structureId, version,
661 serviceContext);
662 }
663 catch (Exception e) {
664 _log.error(e, e);
665
666 throw new RemoteException(e.getMessage());
667 }
668 }
669
670
698 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap[] search(
699 long companyId, long[] groupIds, long classNameId,
700 java.lang.String keywords, int start, int end,
701 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> orderByComparator)
702 throws RemoteException {
703 try {
704 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> returnValue =
705 DDMStructureServiceUtil.search(companyId, groupIds,
706 classNameId, keywords, start, end, orderByComparator);
707
708 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModels(returnValue);
709 }
710 catch (Exception e) {
711 _log.error(e, e);
712
713 throw new RemoteException(e.getMessage());
714 }
715 }
716
717
751 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap[] search(
752 long companyId, long[] groupIds, long classNameId,
753 java.lang.String name, java.lang.String description,
754 java.lang.String storageType, int type, boolean andOperator, int start,
755 int end,
756 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> orderByComparator)
757 throws RemoteException {
758 try {
759 java.util.List<com.liferay.portlet.dynamicdatamapping.model.DDMStructure> returnValue =
760 DDMStructureServiceUtil.search(companyId, groupIds,
761 classNameId, name, description, storageType, type,
762 andOperator, start, end, orderByComparator);
763
764 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModels(returnValue);
765 }
766 catch (Exception e) {
767 _log.error(e, e);
768
769 throw new RemoteException(e.getMessage());
770 }
771 }
772
773
785 public static int searchCount(long companyId, long[] groupIds,
786 long classNameId, java.lang.String keywords) throws RemoteException {
787 try {
788 int returnValue = DDMStructureServiceUtil.searchCount(companyId,
789 groupIds, classNameId, keywords);
790
791 return returnValue;
792 }
793 catch (Exception e) {
794 _log.error(e, e);
795
796 throw new RemoteException(e.getMessage());
797 }
798 }
799
800
819 public static int searchCount(long companyId, long[] groupIds,
820 long classNameId, java.lang.String name, java.lang.String description,
821 java.lang.String storageType, int type, boolean andOperator)
822 throws RemoteException {
823 try {
824 int returnValue = DDMStructureServiceUtil.searchCount(companyId,
825 groupIds, classNameId, name, description, storageType,
826 type, andOperator);
827
828 return returnValue;
829 }
830 catch (Exception e) {
831 _log.error(e, e);
832
833 throw new RemoteException(e.getMessage());
834 }
835 }
836
837 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap updateStructure(
838 long groupId, long parentStructureId, long classNameId,
839 java.lang.String structureKey, java.lang.String[] nameMapLanguageIds,
840 java.lang.String[] nameMapValues,
841 java.lang.String[] descriptionMapLanguageIds,
842 java.lang.String[] descriptionMapValues,
843 com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
844 com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout ddmFormLayout,
845 com.liferay.portal.service.ServiceContext serviceContext)
846 throws RemoteException {
847 try {
848 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
849 nameMapValues);
850 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
851 descriptionMapValues);
852
853 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
854 DDMStructureServiceUtil.updateStructure(groupId,
855 parentStructureId, classNameId, structureKey, nameMap,
856 descriptionMap, ddmForm, ddmFormLayout, serviceContext);
857
858 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
859 }
860 catch (Exception e) {
861 _log.error(e, e);
862
863 throw new RemoteException(e.getMessage());
864 }
865 }
866
867
890 @Deprecated
891 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap updateStructure(
892 long groupId, long parentStructureId, long classNameId,
893 java.lang.String structureKey, java.lang.String[] nameMapLanguageIds,
894 java.lang.String[] nameMapValues,
895 java.lang.String[] descriptionMapLanguageIds,
896 java.lang.String[] descriptionMapValues, java.lang.String definition,
897 com.liferay.portal.service.ServiceContext serviceContext)
898 throws RemoteException {
899 try {
900 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
901 nameMapValues);
902 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
903 descriptionMapValues);
904
905 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
906 DDMStructureServiceUtil.updateStructure(groupId,
907 parentStructureId, classNameId, structureKey, nameMap,
908 descriptionMap, definition, serviceContext);
909
910 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
911 }
912 catch (Exception e) {
913 _log.error(e, e);
914
915 throw new RemoteException(e.getMessage());
916 }
917 }
918
919 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap updateStructure(
920 long structureId, long parentStructureId,
921 java.lang.String[] nameMapLanguageIds,
922 java.lang.String[] nameMapValues,
923 java.lang.String[] descriptionMapLanguageIds,
924 java.lang.String[] descriptionMapValues,
925 com.liferay.portlet.dynamicdatamapping.model.DDMForm ddmForm,
926 com.liferay.portlet.dynamicdatamapping.model.DDMFormLayout ddmFormLayout,
927 com.liferay.portal.service.ServiceContext serviceContext)
928 throws RemoteException {
929 try {
930 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
931 nameMapValues);
932 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
933 descriptionMapValues);
934
935 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
936 DDMStructureServiceUtil.updateStructure(structureId,
937 parentStructureId, nameMap, descriptionMap, ddmForm,
938 ddmFormLayout, serviceContext);
939
940 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
941 }
942 catch (Exception e) {
943 _log.error(e, e);
944
945 throw new RemoteException(e.getMessage());
946 }
947 }
948
949
967 @Deprecated
968 public static com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap updateStructure(
969 long structureId, long parentStructureId,
970 java.lang.String[] nameMapLanguageIds,
971 java.lang.String[] nameMapValues,
972 java.lang.String[] descriptionMapLanguageIds,
973 java.lang.String[] descriptionMapValues, java.lang.String definition,
974 com.liferay.portal.service.ServiceContext serviceContext)
975 throws RemoteException {
976 try {
977 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
978 nameMapValues);
979 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
980 descriptionMapValues);
981
982 com.liferay.portlet.dynamicdatamapping.model.DDMStructure returnValue =
983 DDMStructureServiceUtil.updateStructure(structureId,
984 parentStructureId, nameMap, descriptionMap, definition,
985 serviceContext);
986
987 return com.liferay.portlet.dynamicdatamapping.model.DDMStructureSoap.toSoapModel(returnValue);
988 }
989 catch (Exception e) {
990 _log.error(e, e);
991
992 throw new RemoteException(e.getMessage());
993 }
994 }
995
996 private static Log _log = LogFactoryUtil.getLog(DDMStructureServiceSoap.class);
997 }