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,
143 java.lang.String preferencesKey, java.lang.String preferencesValue)
144 throws RemoteException {
145 try {
146 com.liferay.portal.model.LayoutReference[] returnValue = LayoutServiceUtil.getLayoutReferences(companyId,
147 portletId, preferencesKey, preferencesValue);
148
149 return returnValue;
150 }
151 catch (Exception e) {
152 _log.error(e, e);
153
154 throw new RemoteException(e.getMessage());
155 }
156 }
157
158 public static void setLayouts(long groupId, boolean privateLayout,
159 long parentLayoutId, long[] layoutIds) throws RemoteException {
160 try {
161 LayoutServiceUtil.setLayouts(groupId, privateLayout,
162 parentLayoutId, layoutIds);
163 }
164 catch (Exception e) {
165 _log.error(e, e);
166
167 throw new RemoteException(e.getMessage());
168 }
169 }
170
171 public static void unschedulePublishToLive(long groupId,
172 java.lang.String jobName, java.lang.String groupName)
173 throws RemoteException {
174 try {
175 LayoutServiceUtil.unschedulePublishToLive(groupId, jobName,
176 groupName);
177 }
178 catch (Exception e) {
179 _log.error(e, e);
180
181 throw new RemoteException(e.getMessage());
182 }
183 }
184
185 public static void unschedulePublishToRemote(long groupId,
186 java.lang.String jobName, java.lang.String groupName)
187 throws RemoteException {
188 try {
189 LayoutServiceUtil.unschedulePublishToRemote(groupId, jobName,
190 groupName);
191 }
192 catch (Exception e) {
193 _log.error(e, e);
194
195 throw new RemoteException(e.getMessage());
196 }
197 }
198
199 public static com.liferay.portal.model.LayoutSoap updateLayout(
200 long groupId, boolean privateLayout, long layoutId,
201 java.lang.String typeSettings) throws RemoteException {
202 try {
203 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateLayout(groupId,
204 privateLayout, layoutId, typeSettings);
205
206 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
207 }
208 catch (Exception e) {
209 _log.error(e, e);
210
211 throw new RemoteException(e.getMessage());
212 }
213 }
214
215 public static com.liferay.portal.model.LayoutSoap updateLookAndFeel(
216 long groupId, boolean privateLayout, long layoutId,
217 java.lang.String themeId, java.lang.String colorSchemeId,
218 java.lang.String css, boolean wapTheme) throws RemoteException {
219 try {
220 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateLookAndFeel(groupId,
221 privateLayout, layoutId, themeId, colorSchemeId, css,
222 wapTheme);
223
224 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
225 }
226 catch (Exception e) {
227 _log.error(e, e);
228
229 throw new RemoteException(e.getMessage());
230 }
231 }
232
233 public static com.liferay.portal.model.LayoutSoap updateName(long plid,
234 java.lang.String name, java.lang.String languageId)
235 throws RemoteException {
236 try {
237 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateName(plid,
238 name, languageId);
239
240 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
241 }
242 catch (Exception e) {
243 _log.error(e, e);
244
245 throw new RemoteException(e.getMessage());
246 }
247 }
248
249 public static com.liferay.portal.model.LayoutSoap updateName(long groupId,
250 boolean privateLayout, long layoutId, java.lang.String name,
251 java.lang.String languageId) throws RemoteException {
252 try {
253 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateName(groupId,
254 privateLayout, layoutId, name, languageId);
255
256 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
257 }
258 catch (Exception e) {
259 _log.error(e, e);
260
261 throw new RemoteException(e.getMessage());
262 }
263 }
264
265 public static com.liferay.portal.model.LayoutSoap updateParentLayoutId(
266 long plid, long parentPlid) throws RemoteException {
267 try {
268 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateParentLayoutId(plid,
269 parentPlid);
270
271 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
272 }
273 catch (Exception e) {
274 _log.error(e, e);
275
276 throw new RemoteException(e.getMessage());
277 }
278 }
279
280 public static com.liferay.portal.model.LayoutSoap updateParentLayoutId(
281 long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
282 throws RemoteException {
283 try {
284 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateParentLayoutId(groupId,
285 privateLayout, layoutId, parentLayoutId);
286
287 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
288 }
289 catch (Exception e) {
290 _log.error(e, e);
291
292 throw new RemoteException(e.getMessage());
293 }
294 }
295
296 public static com.liferay.portal.model.LayoutSoap updatePriority(
297 long plid, int priority) throws RemoteException {
298 try {
299 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updatePriority(plid,
300 priority);
301
302 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
303 }
304 catch (Exception e) {
305 _log.error(e, e);
306
307 throw new RemoteException(e.getMessage());
308 }
309 }
310
311 public static com.liferay.portal.model.LayoutSoap updatePriority(
312 long groupId, boolean privateLayout, long layoutId, int priority)
313 throws RemoteException {
314 try {
315 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updatePriority(groupId,
316 privateLayout, layoutId, priority);
317
318 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
319 }
320 catch (Exception e) {
321 _log.error(e, e);
322
323 throw new RemoteException(e.getMessage());
324 }
325 }
326
327 private static Log _log = LogFactoryUtil.getLog(LayoutServiceSoap.class);
328 }