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.LayoutPrototypeServiceUtil;
023
024 import java.rmi.RemoteException;
025
026 import java.util.Locale;
027 import java.util.Map;
028
029
069 @ProviderType
070 public class LayoutPrototypeServiceSoap {
071 public static com.liferay.portal.model.LayoutPrototypeSoap addLayoutPrototype(
072 java.lang.String[] nameMapLanguageIds,
073 java.lang.String[] nameMapValues,
074 java.lang.String[] descriptionMapLanguageIds,
075 java.lang.String[] descriptionMapValues, boolean active,
076 com.liferay.portal.service.ServiceContext serviceContext)
077 throws RemoteException {
078 try {
079 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
080 nameMapValues);
081 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
082 descriptionMapValues);
083
084 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.addLayoutPrototype(nameMap,
085 descriptionMap, active, serviceContext);
086
087 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
088 }
089 catch (Exception e) {
090 _log.error(e, e);
091
092 throw new RemoteException(e.getMessage());
093 }
094 }
095
096
100 @Deprecated
101 public static com.liferay.portal.model.LayoutPrototypeSoap addLayoutPrototype(
102 java.lang.String[] nameMapLanguageIds,
103 java.lang.String[] nameMapValues, java.lang.String description,
104 boolean active) throws RemoteException {
105 try {
106 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
107 nameMapValues);
108
109 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.addLayoutPrototype(nameMap,
110 description, active);
111
112 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
113 }
114 catch (Exception e) {
115 _log.error(e, e);
116
117 throw new RemoteException(e.getMessage());
118 }
119 }
120
121
125 @Deprecated
126 public static com.liferay.portal.model.LayoutPrototypeSoap addLayoutPrototype(
127 java.lang.String[] nameMapLanguageIds,
128 java.lang.String[] nameMapValues, java.lang.String description,
129 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
130 throws RemoteException {
131 try {
132 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
133 nameMapValues);
134
135 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.addLayoutPrototype(nameMap,
136 description, active, serviceContext);
137
138 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
139 }
140 catch (Exception e) {
141 _log.error(e, e);
142
143 throw new RemoteException(e.getMessage());
144 }
145 }
146
147 public static void deleteLayoutPrototype(long layoutPrototypeId)
148 throws RemoteException {
149 try {
150 LayoutPrototypeServiceUtil.deleteLayoutPrototype(layoutPrototypeId);
151 }
152 catch (Exception e) {
153 _log.error(e, e);
154
155 throw new RemoteException(e.getMessage());
156 }
157 }
158
159 public static com.liferay.portal.model.LayoutPrototypeSoap fetchLayoutPrototype(
160 long layoutPrototypeId) throws RemoteException {
161 try {
162 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.fetchLayoutPrototype(layoutPrototypeId);
163
164 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
165 }
166 catch (Exception e) {
167 _log.error(e, e);
168
169 throw new RemoteException(e.getMessage());
170 }
171 }
172
173 public static com.liferay.portal.model.LayoutPrototypeSoap getLayoutPrototype(
174 long layoutPrototypeId) throws RemoteException {
175 try {
176 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.getLayoutPrototype(layoutPrototypeId);
177
178 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
179 }
180 catch (Exception e) {
181 _log.error(e, e);
182
183 throw new RemoteException(e.getMessage());
184 }
185 }
186
187 public static com.liferay.portal.model.LayoutPrototypeSoap[] search(
188 long companyId, java.lang.Boolean active,
189 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutPrototype> obc)
190 throws RemoteException {
191 try {
192 java.util.List<com.liferay.portal.model.LayoutPrototype> returnValue =
193 LayoutPrototypeServiceUtil.search(companyId, active, obc);
194
195 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModels(returnValue);
196 }
197 catch (Exception e) {
198 _log.error(e, e);
199
200 throw new RemoteException(e.getMessage());
201 }
202 }
203
204 public static com.liferay.portal.model.LayoutPrototypeSoap updateLayoutPrototype(
205 long layoutPrototypeId, java.lang.String[] nameMapLanguageIds,
206 java.lang.String[] nameMapValues,
207 java.lang.String[] descriptionMapLanguageIds,
208 java.lang.String[] descriptionMapValues, boolean active,
209 com.liferay.portal.service.ServiceContext serviceContext)
210 throws RemoteException {
211 try {
212 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
213 nameMapValues);
214 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
215 descriptionMapValues);
216
217 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.updateLayoutPrototype(layoutPrototypeId,
218 nameMap, descriptionMap, active, serviceContext);
219
220 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
221 }
222 catch (Exception e) {
223 _log.error(e, e);
224
225 throw new RemoteException(e.getMessage());
226 }
227 }
228
229
233 @Deprecated
234 public static com.liferay.portal.model.LayoutPrototypeSoap updateLayoutPrototype(
235 long layoutPrototypeId, java.lang.String[] nameMapLanguageIds,
236 java.lang.String[] nameMapValues, java.lang.String description,
237 boolean active) throws RemoteException {
238 try {
239 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
240 nameMapValues);
241
242 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.updateLayoutPrototype(layoutPrototypeId,
243 nameMap, description, active);
244
245 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
246 }
247 catch (Exception e) {
248 _log.error(e, e);
249
250 throw new RemoteException(e.getMessage());
251 }
252 }
253
254
258 @Deprecated
259 public static com.liferay.portal.model.LayoutPrototypeSoap updateLayoutPrototype(
260 long layoutPrototypeId, java.lang.String[] nameMapLanguageIds,
261 java.lang.String[] nameMapValues, java.lang.String description,
262 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
263 throws RemoteException {
264 try {
265 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
266 nameMapValues);
267
268 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.updateLayoutPrototype(layoutPrototypeId,
269 nameMap, description, active, serviceContext);
270
271 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
272 }
273 catch (Exception e) {
274 _log.error(e, e);
275
276 throw new RemoteException(e.getMessage());
277 }
278 }
279
280 private static Log _log = LogFactoryUtil.getLog(LayoutPrototypeServiceSoap.class);
281 }