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