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