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 com.liferay.portal.model.LayoutSoap updateLayout(
171 long groupId, boolean privateLayout, long layoutId,
172 java.lang.String typeSettings) throws RemoteException {
173 try {
174 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateLayout(groupId,
175 privateLayout, layoutId, typeSettings);
176
177 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
178 }
179 catch (Exception e) {
180 _log.error(e, e);
181
182 throw new RemoteException(e.getMessage());
183 }
184 }
185
186 public static com.liferay.portal.model.LayoutSoap updateLookAndFeel(
187 long groupId, boolean privateLayout, long layoutId,
188 java.lang.String themeId, java.lang.String colorSchemeId,
189 java.lang.String css, boolean wapTheme) throws RemoteException {
190 try {
191 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateLookAndFeel(groupId,
192 privateLayout, layoutId, themeId, colorSchemeId, css,
193 wapTheme);
194
195 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
196 }
197 catch (Exception e) {
198 _log.error(e, e);
199
200 throw new RemoteException(e.getMessage());
201 }
202 }
203
204 public static com.liferay.portal.model.LayoutSoap updateName(long plid,
205 java.lang.String name, java.lang.String languageId)
206 throws RemoteException {
207 try {
208 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateName(plid,
209 name, languageId);
210
211 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
212 }
213 catch (Exception e) {
214 _log.error(e, e);
215
216 throw new RemoteException(e.getMessage());
217 }
218 }
219
220 public static com.liferay.portal.model.LayoutSoap updateName(long groupId,
221 boolean privateLayout, long layoutId, java.lang.String name,
222 java.lang.String languageId) throws RemoteException {
223 try {
224 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateName(groupId,
225 privateLayout, layoutId, name, languageId);
226
227 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
228 }
229 catch (Exception e) {
230 _log.error(e, e);
231
232 throw new RemoteException(e.getMessage());
233 }
234 }
235
236 public static com.liferay.portal.model.LayoutSoap updateParentLayoutId(
237 long plid, long parentPlid) throws RemoteException {
238 try {
239 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateParentLayoutId(plid,
240 parentPlid);
241
242 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
243 }
244 catch (Exception e) {
245 _log.error(e, e);
246
247 throw new RemoteException(e.getMessage());
248 }
249 }
250
251 public static com.liferay.portal.model.LayoutSoap updateParentLayoutId(
252 long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
253 throws RemoteException {
254 try {
255 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateParentLayoutId(groupId,
256 privateLayout, layoutId, parentLayoutId);
257
258 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
259 }
260 catch (Exception e) {
261 _log.error(e, e);
262
263 throw new RemoteException(e.getMessage());
264 }
265 }
266
267 public static com.liferay.portal.model.LayoutSoap updatePriority(
268 long plid, int priority) throws RemoteException {
269 try {
270 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updatePriority(plid,
271 priority);
272
273 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
274 }
275 catch (Exception e) {
276 _log.error(e, e);
277
278 throw new RemoteException(e.getMessage());
279 }
280 }
281
282 public static com.liferay.portal.model.LayoutSoap updatePriority(
283 long groupId, boolean privateLayout, long layoutId, int priority)
284 throws RemoteException {
285 try {
286 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updatePriority(groupId,
287 privateLayout, layoutId, priority);
288
289 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
290 }
291 catch (Exception e) {
292 _log.error(e, e);
293
294 throw new RemoteException(e.getMessage());
295 }
296 }
297
298 private static Log _log = LogFactoryUtil.getLog(LayoutServiceSoap.class);
299 }