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, com.liferay.portal.service.ServiceContext serviceContext)
105 throws RemoteException {
106 try {
107 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
108 nameMapValues);
109
110 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.addLayoutPrototype(nameMap,
111 description, active, serviceContext);
112
113 return com.liferay.portal.model.LayoutPrototypeSoap.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 void deleteLayoutPrototype(long layoutPrototypeId)
123 throws RemoteException {
124 try {
125 LayoutPrototypeServiceUtil.deleteLayoutPrototype(layoutPrototypeId);
126 }
127 catch (Exception e) {
128 _log.error(e, e);
129
130 throw new RemoteException(e.getMessage());
131 }
132 }
133
134 public static com.liferay.portal.model.LayoutPrototypeSoap fetchLayoutPrototype(
135 long layoutPrototypeId) throws RemoteException {
136 try {
137 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.fetchLayoutPrototype(layoutPrototypeId);
138
139 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
140 }
141 catch (Exception e) {
142 _log.error(e, e);
143
144 throw new RemoteException(e.getMessage());
145 }
146 }
147
148 public static com.liferay.portal.model.LayoutPrototypeSoap getLayoutPrototype(
149 long layoutPrototypeId) throws RemoteException {
150 try {
151 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.getLayoutPrototype(layoutPrototypeId);
152
153 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
154 }
155 catch (Exception e) {
156 _log.error(e, e);
157
158 throw new RemoteException(e.getMessage());
159 }
160 }
161
162 public static com.liferay.portal.model.LayoutPrototypeSoap[] search(
163 long companyId, java.lang.Boolean active,
164 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutPrototype> obc)
165 throws RemoteException {
166 try {
167 java.util.List<com.liferay.portal.model.LayoutPrototype> returnValue =
168 LayoutPrototypeServiceUtil.search(companyId, active, obc);
169
170 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModels(returnValue);
171 }
172 catch (Exception e) {
173 _log.error(e, e);
174
175 throw new RemoteException(e.getMessage());
176 }
177 }
178
179 public static com.liferay.portal.model.LayoutPrototypeSoap updateLayoutPrototype(
180 long layoutPrototypeId, java.lang.String[] nameMapLanguageIds,
181 java.lang.String[] nameMapValues,
182 java.lang.String[] descriptionMapLanguageIds,
183 java.lang.String[] descriptionMapValues, boolean active,
184 com.liferay.portal.service.ServiceContext serviceContext)
185 throws RemoteException {
186 try {
187 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
188 nameMapValues);
189 Map<Locale, String> descriptionMap = LocalizationUtil.getLocalizationMap(descriptionMapLanguageIds,
190 descriptionMapValues);
191
192 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.updateLayoutPrototype(layoutPrototypeId,
193 nameMap, descriptionMap, active, serviceContext);
194
195 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
196 }
197 catch (Exception e) {
198 _log.error(e, e);
199
200 throw new RemoteException(e.getMessage());
201 }
202 }
203
204
208 @Deprecated
209 public static com.liferay.portal.model.LayoutPrototypeSoap updateLayoutPrototype(
210 long layoutPrototypeId, java.lang.String[] nameMapLanguageIds,
211 java.lang.String[] nameMapValues, java.lang.String description,
212 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
213 throws RemoteException {
214 try {
215 Map<Locale, String> nameMap = LocalizationUtil.getLocalizationMap(nameMapLanguageIds,
216 nameMapValues);
217
218 com.liferay.portal.model.LayoutPrototype returnValue = LayoutPrototypeServiceUtil.updateLayoutPrototype(layoutPrototypeId,
219 nameMap, description, active, serviceContext);
220
221 return com.liferay.portal.model.LayoutPrototypeSoap.toSoapModel(returnValue);
222 }
223 catch (Exception e) {
224 _log.error(e, e);
225
226 throw new RemoteException(e.getMessage());
227 }
228 }
229
230 private static Log _log = LogFactoryUtil.getLog(LayoutPrototypeServiceSoap.class);
231 }