001
014
015 package com.liferay.portlet.dynamicdatalists.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.kernel.util.LocalizationUtil;
020
021 import com.liferay.portlet.dynamicdatalists.service.DDLRecordSetServiceUtil;
022
023 import java.rmi.RemoteException;
024
025 import java.util.Locale;
026 import java.util.Map;
027
028
068 public class DDLRecordSetServiceSoap {
069 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSetSoap addRecordSet(
070 long groupId, long ddmStructureId, java.lang.String recordSetKey,
071 java.lang.String[] nameMapLanguageIds,
072 java.lang.String[] nameMapValues,
073 java.lang.String[] descriptionMapLanguageIds,
074 java.lang.String[] descriptionMapValues, int minDisplayRows, int scope,
075 com.liferay.portal.service.ServiceContext serviceContext)
076 throws RemoteException {
077 try {
078 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
079 nameMapValues);
080 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
081 descriptionMapValues);
082
083 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet returnValue = DDLRecordSetServiceUtil.addRecordSet(groupId,
084 ddmStructureId, recordSetKey, nameMap, descriptionMap,
085 minDisplayRows, scope, serviceContext);
086
087 return com.liferay.portlet.dynamicdatalists.model.DDLRecordSetSoap.toSoapModel(returnValue);
088 }
089 catch (Exception e) {
090 _log.error(e, e);
091
092 throw new RemoteException(e.getMessage());
093 }
094 }
095
096 public static void deleteRecordSet(long recordSetId)
097 throws RemoteException {
098 try {
099 DDLRecordSetServiceUtil.deleteRecordSet(recordSetId);
100 }
101 catch (Exception e) {
102 _log.error(e, e);
103
104 throw new RemoteException(e.getMessage());
105 }
106 }
107
108 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSetSoap getRecordSet(
109 long recordSetId) throws RemoteException {
110 try {
111 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet returnValue = DDLRecordSetServiceUtil.getRecordSet(recordSetId);
112
113 return com.liferay.portlet.dynamicdatalists.model.DDLRecordSetSoap.toSoapModel(returnValue);
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSetSoap updateMinDisplayRows(
123 long recordSetId, int minDisplayRows,
124 com.liferay.portal.service.ServiceContext serviceContext)
125 throws RemoteException {
126 try {
127 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet returnValue = DDLRecordSetServiceUtil.updateMinDisplayRows(recordSetId,
128 minDisplayRows, serviceContext);
129
130 return com.liferay.portlet.dynamicdatalists.model.DDLRecordSetSoap.toSoapModel(returnValue);
131 }
132 catch (Exception e) {
133 _log.error(e, e);
134
135 throw new RemoteException(e.getMessage());
136 }
137 }
138
139 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSetSoap updateRecordSet(
140 long recordSetId, long ddmStructureId,
141 java.lang.String[] nameMapLanguageIds,
142 java.lang.String[] nameMapValues,
143 java.lang.String[] descriptionMapLanguageIds,
144 java.lang.String[] descriptionMapValues, int minDisplayRows,
145 com.liferay.portal.service.ServiceContext serviceContext)
146 throws RemoteException {
147 try {
148 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
149 nameMapValues);
150 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
151 descriptionMapValues);
152
153 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet returnValue = DDLRecordSetServiceUtil.updateRecordSet(recordSetId,
154 ddmStructureId, nameMap, descriptionMap, minDisplayRows,
155 serviceContext);
156
157 return com.liferay.portlet.dynamicdatalists.model.DDLRecordSetSoap.toSoapModel(returnValue);
158 }
159 catch (Exception e) {
160 _log.error(e, e);
161
162 throw new RemoteException(e.getMessage());
163 }
164 }
165
166 public static com.liferay.portlet.dynamicdatalists.model.DDLRecordSetSoap updateRecordSet(
167 long groupId, long ddmStructureId, java.lang.String recordSetKey,
168 java.lang.String[] nameMapLanguageIds,
169 java.lang.String[] nameMapValues,
170 java.lang.String[] descriptionMapLanguageIds,
171 java.lang.String[] descriptionMapValues, int minDisplayRows,
172 com.liferay.portal.service.ServiceContext serviceContext)
173 throws RemoteException {
174 try {
175 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
176 nameMapValues);
177 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
178 descriptionMapValues);
179
180 com.liferay.portlet.dynamicdatalists.model.DDLRecordSet returnValue = DDLRecordSetServiceUtil.updateRecordSet(groupId,
181 ddmStructureId, recordSetKey, nameMap, descriptionMap,
182 minDisplayRows, serviceContext);
183
184 return com.liferay.portlet.dynamicdatalists.model.DDLRecordSetSoap.toSoapModel(returnValue);
185 }
186 catch (Exception e) {
187 _log.error(e, e);
188
189 throw new RemoteException(e.getMessage());
190 }
191 }
192
193 private static Log _log = LogFactoryUtil.getLog(DDLRecordSetServiceSoap.class);
194 }