1
14
15 package com.liferay.portal.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19 import com.liferay.portal.service.LayoutServiceUtil;
20
21 import java.rmi.RemoteException;
22
23
73 public class LayoutServiceSoap {
74 public static com.liferay.portal.model.LayoutSoap addLayout(long groupId,
75 boolean privateLayout, long parentLayoutId, java.lang.String name,
76 java.lang.String title, java.lang.String description,
77 java.lang.String type, boolean hidden, java.lang.String friendlyURL)
78 throws RemoteException {
79 try {
80 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.addLayout(groupId,
81 privateLayout, parentLayoutId, name, title, description,
82 type, hidden, friendlyURL);
83
84 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
85 }
86 catch (Exception e) {
87 _log.error(e, e);
88
89 throw new RemoteException(e.getMessage());
90 }
91 }
92
93 public static void deleteLayout(long plid) throws RemoteException {
94 try {
95 LayoutServiceUtil.deleteLayout(plid);
96 }
97 catch (Exception e) {
98 _log.error(e, e);
99
100 throw new RemoteException(e.getMessage());
101 }
102 }
103
104 public static void deleteLayout(long groupId, boolean privateLayout,
105 long layoutId) throws RemoteException {
106 try {
107 LayoutServiceUtil.deleteLayout(groupId, privateLayout, layoutId);
108 }
109 catch (Exception e) {
110 _log.error(e, e);
111
112 throw new RemoteException(e.getMessage());
113 }
114 }
115
116 public static java.lang.String getLayoutName(long groupId,
117 boolean privateLayout, long layoutId, java.lang.String languageId)
118 throws RemoteException {
119 try {
120 java.lang.String returnValue = LayoutServiceUtil.getLayoutName(groupId,
121 privateLayout, layoutId, languageId);
122
123 return returnValue;
124 }
125 catch (Exception e) {
126 _log.error(e, e);
127
128 throw new RemoteException(e.getMessage());
129 }
130 }
131
132 public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
133 long companyId, java.lang.String portletId,
134 java.lang.String preferencesKey, java.lang.String preferencesValue)
135 throws RemoteException {
136 try {
137 com.liferay.portal.model.LayoutReference[] returnValue = LayoutServiceUtil.getLayoutReferences(companyId,
138 portletId, preferencesKey, preferencesValue);
139
140 return returnValue;
141 }
142 catch (Exception e) {
143 _log.error(e, e);
144
145 throw new RemoteException(e.getMessage());
146 }
147 }
148
149 public static void setLayouts(long groupId, boolean privateLayout,
150 long parentLayoutId, long[] layoutIds) throws RemoteException {
151 try {
152 LayoutServiceUtil.setLayouts(groupId, privateLayout,
153 parentLayoutId, layoutIds);
154 }
155 catch (Exception e) {
156 _log.error(e, e);
157
158 throw new RemoteException(e.getMessage());
159 }
160 }
161
162 public static void unschedulePublishToLive(long groupId,
163 java.lang.String jobName, java.lang.String groupName)
164 throws RemoteException {
165 try {
166 LayoutServiceUtil.unschedulePublishToLive(groupId, jobName,
167 groupName);
168 }
169 catch (Exception e) {
170 _log.error(e, e);
171
172 throw new RemoteException(e.getMessage());
173 }
174 }
175
176 public static void unschedulePublishToRemote(long groupId,
177 java.lang.String jobName, java.lang.String groupName)
178 throws RemoteException {
179 try {
180 LayoutServiceUtil.unschedulePublishToRemote(groupId, jobName,
181 groupName);
182 }
183 catch (Exception e) {
184 _log.error(e, e);
185
186 throw new RemoteException(e.getMessage());
187 }
188 }
189
190 public static com.liferay.portal.model.LayoutSoap updateLayout(
191 long groupId, boolean privateLayout, long layoutId,
192 java.lang.String typeSettings) throws RemoteException {
193 try {
194 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateLayout(groupId,
195 privateLayout, layoutId, typeSettings);
196
197 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
198 }
199 catch (Exception e) {
200 _log.error(e, e);
201
202 throw new RemoteException(e.getMessage());
203 }
204 }
205
206 public static com.liferay.portal.model.LayoutSoap updateLookAndFeel(
207 long groupId, boolean privateLayout, long layoutId,
208 java.lang.String themeId, java.lang.String colorSchemeId,
209 java.lang.String css, boolean wapTheme) throws RemoteException {
210 try {
211 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateLookAndFeel(groupId,
212 privateLayout, layoutId, themeId, colorSchemeId, css,
213 wapTheme);
214
215 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
216 }
217 catch (Exception e) {
218 _log.error(e, e);
219
220 throw new RemoteException(e.getMessage());
221 }
222 }
223
224 public static com.liferay.portal.model.LayoutSoap updateName(long groupId,
225 boolean privateLayout, long layoutId, java.lang.String name,
226 java.lang.String languageId) throws RemoteException {
227 try {
228 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateName(groupId,
229 privateLayout, layoutId, name, languageId);
230
231 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
232 }
233 catch (Exception e) {
234 _log.error(e, e);
235
236 throw new RemoteException(e.getMessage());
237 }
238 }
239
240 public static com.liferay.portal.model.LayoutSoap updateName(long plid,
241 java.lang.String name, java.lang.String languageId)
242 throws RemoteException {
243 try {
244 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateName(plid,
245 name, languageId);
246
247 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
248 }
249 catch (Exception e) {
250 _log.error(e, e);
251
252 throw new RemoteException(e.getMessage());
253 }
254 }
255
256 public static com.liferay.portal.model.LayoutSoap updateParentLayoutId(
257 long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
258 throws RemoteException {
259 try {
260 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateParentLayoutId(groupId,
261 privateLayout, layoutId, parentLayoutId);
262
263 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
264 }
265 catch (Exception e) {
266 _log.error(e, e);
267
268 throw new RemoteException(e.getMessage());
269 }
270 }
271
272 public static com.liferay.portal.model.LayoutSoap updateParentLayoutId(
273 long plid, long parentPlid) throws RemoteException {
274 try {
275 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateParentLayoutId(plid,
276 parentPlid);
277
278 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
279 }
280 catch (Exception e) {
281 _log.error(e, e);
282
283 throw new RemoteException(e.getMessage());
284 }
285 }
286
287 public static com.liferay.portal.model.LayoutSoap updatePriority(
288 long groupId, boolean privateLayout, long layoutId, int priority)
289 throws RemoteException {
290 try {
291 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updatePriority(groupId,
292 privateLayout, layoutId, priority);
293
294 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
295 }
296 catch (Exception e) {
297 _log.error(e, e);
298
299 throw new RemoteException(e.getMessage());
300 }
301 }
302
303 public static com.liferay.portal.model.LayoutSoap updatePriority(
304 long plid, int priority) throws RemoteException {
305 try {
306 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updatePriority(plid,
307 priority);
308
309 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
310 }
311 catch (Exception e) {
312 _log.error(e, e);
313
314 throw new RemoteException(e.getMessage());
315 }
316 }
317
318 private static Log _log = LogFactoryUtil.getLog(LayoutServiceSoap.class);
319 }