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