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.security.auth.HttpPrincipal;
022 import com.liferay.portal.kernel.util.MethodHandler;
023 import com.liferay.portal.kernel.util.MethodKey;
024 import com.liferay.portal.service.LayoutPrototypeServiceUtil;
025
026
054 @ProviderType
055 public class LayoutPrototypeServiceHttp {
056 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
057 HttpPrincipal httpPrincipal,
058 java.util.Map<java.util.Locale, java.lang.String> nameMap,
059 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
060 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
061 throws com.liferay.portal.kernel.exception.PortalException {
062 try {
063 MethodKey methodKey = new MethodKey(LayoutPrototypeServiceUtil.class,
064 "addLayoutPrototype", _addLayoutPrototypeParameterTypes0);
065
066 MethodHandler methodHandler = new MethodHandler(methodKey, nameMap,
067 descriptionMap, active, serviceContext);
068
069 Object returnObj = null;
070
071 try {
072 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
073 }
074 catch (Exception e) {
075 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
076 throw (com.liferay.portal.kernel.exception.PortalException)e;
077 }
078
079 throw new com.liferay.portal.kernel.exception.SystemException(e);
080 }
081
082 return (com.liferay.portal.model.LayoutPrototype)returnObj;
083 }
084 catch (com.liferay.portal.kernel.exception.SystemException se) {
085 _log.error(se, se);
086
087 throw se;
088 }
089 }
090
091 public static com.liferay.portal.model.LayoutPrototype addLayoutPrototype(
092 HttpPrincipal httpPrincipal,
093 java.util.Map<java.util.Locale, java.lang.String> nameMap,
094 java.lang.String description, boolean active,
095 com.liferay.portal.service.ServiceContext serviceContext)
096 throws com.liferay.portal.kernel.exception.PortalException {
097 try {
098 MethodKey methodKey = new MethodKey(LayoutPrototypeServiceUtil.class,
099 "addLayoutPrototype", _addLayoutPrototypeParameterTypes1);
100
101 MethodHandler methodHandler = new MethodHandler(methodKey, nameMap,
102 description, active, serviceContext);
103
104 Object returnObj = null;
105
106 try {
107 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
108 }
109 catch (Exception e) {
110 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
111 throw (com.liferay.portal.kernel.exception.PortalException)e;
112 }
113
114 throw new com.liferay.portal.kernel.exception.SystemException(e);
115 }
116
117 return (com.liferay.portal.model.LayoutPrototype)returnObj;
118 }
119 catch (com.liferay.portal.kernel.exception.SystemException se) {
120 _log.error(se, se);
121
122 throw se;
123 }
124 }
125
126 public static void deleteLayoutPrototype(HttpPrincipal httpPrincipal,
127 long layoutPrototypeId)
128 throws com.liferay.portal.kernel.exception.PortalException {
129 try {
130 MethodKey methodKey = new MethodKey(LayoutPrototypeServiceUtil.class,
131 "deleteLayoutPrototype",
132 _deleteLayoutPrototypeParameterTypes2);
133
134 MethodHandler methodHandler = new MethodHandler(methodKey,
135 layoutPrototypeId);
136
137 try {
138 TunnelUtil.invoke(httpPrincipal, methodHandler);
139 }
140 catch (Exception e) {
141 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
142 throw (com.liferay.portal.kernel.exception.PortalException)e;
143 }
144
145 throw new com.liferay.portal.kernel.exception.SystemException(e);
146 }
147 }
148 catch (com.liferay.portal.kernel.exception.SystemException se) {
149 _log.error(se, se);
150
151 throw se;
152 }
153 }
154
155 public static com.liferay.portal.model.LayoutPrototype fetchLayoutPrototype(
156 HttpPrincipal httpPrincipal, long layoutPrototypeId)
157 throws com.liferay.portal.kernel.exception.PortalException {
158 try {
159 MethodKey methodKey = new MethodKey(LayoutPrototypeServiceUtil.class,
160 "fetchLayoutPrototype", _fetchLayoutPrototypeParameterTypes3);
161
162 MethodHandler methodHandler = new MethodHandler(methodKey,
163 layoutPrototypeId);
164
165 Object returnObj = null;
166
167 try {
168 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
169 }
170 catch (Exception e) {
171 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
172 throw (com.liferay.portal.kernel.exception.PortalException)e;
173 }
174
175 throw new com.liferay.portal.kernel.exception.SystemException(e);
176 }
177
178 return (com.liferay.portal.model.LayoutPrototype)returnObj;
179 }
180 catch (com.liferay.portal.kernel.exception.SystemException se) {
181 _log.error(se, se);
182
183 throw se;
184 }
185 }
186
187 public static com.liferay.portal.model.LayoutPrototype getLayoutPrototype(
188 HttpPrincipal httpPrincipal, long layoutPrototypeId)
189 throws com.liferay.portal.kernel.exception.PortalException {
190 try {
191 MethodKey methodKey = new MethodKey(LayoutPrototypeServiceUtil.class,
192 "getLayoutPrototype", _getLayoutPrototypeParameterTypes4);
193
194 MethodHandler methodHandler = new MethodHandler(methodKey,
195 layoutPrototypeId);
196
197 Object returnObj = null;
198
199 try {
200 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
201 }
202 catch (Exception e) {
203 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
204 throw (com.liferay.portal.kernel.exception.PortalException)e;
205 }
206
207 throw new com.liferay.portal.kernel.exception.SystemException(e);
208 }
209
210 return (com.liferay.portal.model.LayoutPrototype)returnObj;
211 }
212 catch (com.liferay.portal.kernel.exception.SystemException se) {
213 _log.error(se, se);
214
215 throw se;
216 }
217 }
218
219 public static java.util.List<com.liferay.portal.model.LayoutPrototype> search(
220 HttpPrincipal httpPrincipal, long companyId, java.lang.Boolean active,
221 com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.LayoutPrototype> obc)
222 throws com.liferay.portal.kernel.exception.PortalException {
223 try {
224 MethodKey methodKey = new MethodKey(LayoutPrototypeServiceUtil.class,
225 "search", _searchParameterTypes5);
226
227 MethodHandler methodHandler = new MethodHandler(methodKey,
228 companyId, active, obc);
229
230 Object returnObj = null;
231
232 try {
233 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
234 }
235 catch (Exception e) {
236 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
237 throw (com.liferay.portal.kernel.exception.PortalException)e;
238 }
239
240 throw new com.liferay.portal.kernel.exception.SystemException(e);
241 }
242
243 return (java.util.List<com.liferay.portal.model.LayoutPrototype>)returnObj;
244 }
245 catch (com.liferay.portal.kernel.exception.SystemException se) {
246 _log.error(se, se);
247
248 throw se;
249 }
250 }
251
252 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
253 HttpPrincipal httpPrincipal, long layoutPrototypeId,
254 java.util.Map<java.util.Locale, java.lang.String> nameMap,
255 java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
256 boolean active, com.liferay.portal.service.ServiceContext serviceContext)
257 throws com.liferay.portal.kernel.exception.PortalException {
258 try {
259 MethodKey methodKey = new MethodKey(LayoutPrototypeServiceUtil.class,
260 "updateLayoutPrototype",
261 _updateLayoutPrototypeParameterTypes6);
262
263 MethodHandler methodHandler = new MethodHandler(methodKey,
264 layoutPrototypeId, nameMap, descriptionMap, active,
265 serviceContext);
266
267 Object returnObj = null;
268
269 try {
270 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
271 }
272 catch (Exception e) {
273 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
274 throw (com.liferay.portal.kernel.exception.PortalException)e;
275 }
276
277 throw new com.liferay.portal.kernel.exception.SystemException(e);
278 }
279
280 return (com.liferay.portal.model.LayoutPrototype)returnObj;
281 }
282 catch (com.liferay.portal.kernel.exception.SystemException se) {
283 _log.error(se, se);
284
285 throw se;
286 }
287 }
288
289 public static com.liferay.portal.model.LayoutPrototype updateLayoutPrototype(
290 HttpPrincipal httpPrincipal, long layoutPrototypeId,
291 java.util.Map<java.util.Locale, java.lang.String> nameMap,
292 java.lang.String description, boolean active,
293 com.liferay.portal.service.ServiceContext serviceContext)
294 throws com.liferay.portal.kernel.exception.PortalException {
295 try {
296 MethodKey methodKey = new MethodKey(LayoutPrototypeServiceUtil.class,
297 "updateLayoutPrototype",
298 _updateLayoutPrototypeParameterTypes7);
299
300 MethodHandler methodHandler = new MethodHandler(methodKey,
301 layoutPrototypeId, nameMap, description, active,
302 serviceContext);
303
304 Object returnObj = null;
305
306 try {
307 returnObj = TunnelUtil.invoke(httpPrincipal, methodHandler);
308 }
309 catch (Exception e) {
310 if (e instanceof com.liferay.portal.kernel.exception.PortalException) {
311 throw (com.liferay.portal.kernel.exception.PortalException)e;
312 }
313
314 throw new com.liferay.portal.kernel.exception.SystemException(e);
315 }
316
317 return (com.liferay.portal.model.LayoutPrototype)returnObj;
318 }
319 catch (com.liferay.portal.kernel.exception.SystemException se) {
320 _log.error(se, se);
321
322 throw se;
323 }
324 }
325
326 private static Log _log = LogFactoryUtil.getLog(LayoutPrototypeServiceHttp.class);
327 private static final Class<?>[] _addLayoutPrototypeParameterTypes0 = new Class[] {
328 java.util.Map.class, java.util.Map.class, boolean.class,
329 com.liferay.portal.service.ServiceContext.class
330 };
331 private static final Class<?>[] _addLayoutPrototypeParameterTypes1 = new Class[] {
332 java.util.Map.class, java.lang.String.class, boolean.class,
333 com.liferay.portal.service.ServiceContext.class
334 };
335 private static final Class<?>[] _deleteLayoutPrototypeParameterTypes2 = new Class[] {
336 long.class
337 };
338 private static final Class<?>[] _fetchLayoutPrototypeParameterTypes3 = new Class[] {
339 long.class
340 };
341 private static final Class<?>[] _getLayoutPrototypeParameterTypes4 = new Class[] {
342 long.class
343 };
344 private static final Class<?>[] _searchParameterTypes5 = new Class[] {
345 long.class, java.lang.Boolean.class,
346 com.liferay.portal.kernel.util.OrderByComparator.class
347 };
348 private static final Class<?>[] _updateLayoutPrototypeParameterTypes6 = new Class[] {
349 long.class, java.util.Map.class, java.util.Map.class, boolean.class,
350 com.liferay.portal.service.ServiceContext.class
351 };
352 private static final Class<?>[] _updateLayoutPrototypeParameterTypes7 = new Class[] {
353 long.class, java.util.Map.class, java.lang.String.class,
354 boolean.class, com.liferay.portal.service.ServiceContext.class
355 };
356 }