001
014
015 package com.liferay.portal.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019 import com.liferay.portal.service.LayoutServiceUtil;
020
021 import java.rmi.RemoteException;
022
023
066 public class LayoutServiceSoap {
067 public static com.liferay.portal.model.LayoutSoap addLayout(long groupId,
068 boolean privateLayout, long parentLayoutId, java.lang.String name,
069 java.lang.String title, java.lang.String description,
070 java.lang.String type, boolean hidden, java.lang.String friendlyURL,
071 com.liferay.portal.service.ServiceContext serviceContext)
072 throws RemoteException {
073 try {
074 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.addLayout(groupId,
075 privateLayout, parentLayoutId, name, title, description,
076 type, hidden, friendlyURL, serviceContext);
077
078 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
079 }
080 catch (Exception e) {
081 _log.error(e, e);
082
083 throw new RemoteException(e.getMessage());
084 }
085 }
086
087 public static void deleteLayout(long plid) throws RemoteException {
088 try {
089 LayoutServiceUtil.deleteLayout(plid);
090 }
091 catch (Exception e) {
092 _log.error(e, e);
093
094 throw new RemoteException(e.getMessage());
095 }
096 }
097
098 public static void deleteLayout(long groupId, boolean privateLayout,
099 long layoutId) throws RemoteException {
100 try {
101 LayoutServiceUtil.deleteLayout(groupId, privateLayout, layoutId);
102 }
103 catch (Exception e) {
104 _log.error(e, e);
105
106 throw new RemoteException(e.getMessage());
107 }
108 }
109
110 public static java.lang.String getLayoutName(long groupId,
111 boolean privateLayout, long layoutId, java.lang.String languageId)
112 throws RemoteException {
113 try {
114 java.lang.String returnValue = LayoutServiceUtil.getLayoutName(groupId,
115 privateLayout, layoutId, languageId);
116
117 return returnValue;
118 }
119 catch (Exception e) {
120 _log.error(e, e);
121
122 throw new RemoteException(e.getMessage());
123 }
124 }
125
126 public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
127 long companyId, java.lang.String portletId,
128 java.lang.String preferencesKey, java.lang.String preferencesValue)
129 throws RemoteException {
130 try {
131 com.liferay.portal.model.LayoutReference[] returnValue = LayoutServiceUtil.getLayoutReferences(companyId,
132 portletId, preferencesKey, preferencesValue);
133
134 return returnValue;
135 }
136 catch (Exception e) {
137 _log.error(e, e);
138
139 throw new RemoteException(e.getMessage());
140 }
141 }
142
143 public static void setLayouts(long groupId, boolean privateLayout,
144 long parentLayoutId, long[] layoutIds) throws RemoteException {
145 try {
146 LayoutServiceUtil.setLayouts(groupId, privateLayout,
147 parentLayoutId, layoutIds);
148 }
149 catch (Exception e) {
150 _log.error(e, e);
151
152 throw new RemoteException(e.getMessage());
153 }
154 }
155
156 public static void unschedulePublishToLive(long groupId,
157 java.lang.String jobName, java.lang.String groupName)
158 throws RemoteException {
159 try {
160 LayoutServiceUtil.unschedulePublishToLive(groupId, jobName,
161 groupName);
162 }
163 catch (Exception e) {
164 _log.error(e, e);
165
166 throw new RemoteException(e.getMessage());
167 }
168 }
169
170 public static void unschedulePublishToRemote(long groupId,
171 java.lang.String jobName, java.lang.String groupName)
172 throws RemoteException {
173 try {
174 LayoutServiceUtil.unschedulePublishToRemote(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 com.liferay.portal.model.LayoutSoap updateLayout(
185 long groupId, boolean privateLayout, long layoutId,
186 java.lang.String typeSettings) throws RemoteException {
187 try {
188 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateLayout(groupId,
189 privateLayout, layoutId, typeSettings);
190
191 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
192 }
193 catch (Exception e) {
194 _log.error(e, e);
195
196 throw new RemoteException(e.getMessage());
197 }
198 }
199
200 public static com.liferay.portal.model.LayoutSoap updateLookAndFeel(
201 long groupId, boolean privateLayout, long layoutId,
202 java.lang.String themeId, java.lang.String colorSchemeId,
203 java.lang.String css, boolean wapTheme) throws RemoteException {
204 try {
205 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateLookAndFeel(groupId,
206 privateLayout, layoutId, themeId, colorSchemeId, css,
207 wapTheme);
208
209 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
210 }
211 catch (Exception e) {
212 _log.error(e, e);
213
214 throw new RemoteException(e.getMessage());
215 }
216 }
217
218 public static com.liferay.portal.model.LayoutSoap updateName(long groupId,
219 boolean privateLayout, long layoutId, java.lang.String name,
220 java.lang.String languageId) throws RemoteException {
221 try {
222 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateName(groupId,
223 privateLayout, layoutId, name, languageId);
224
225 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
226 }
227 catch (Exception e) {
228 _log.error(e, e);
229
230 throw new RemoteException(e.getMessage());
231 }
232 }
233
234 public static com.liferay.portal.model.LayoutSoap updateName(long plid,
235 java.lang.String name, java.lang.String languageId)
236 throws RemoteException {
237 try {
238 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateName(plid,
239 name, languageId);
240
241 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
242 }
243 catch (Exception e) {
244 _log.error(e, e);
245
246 throw new RemoteException(e.getMessage());
247 }
248 }
249
250 public static com.liferay.portal.model.LayoutSoap updateParentLayoutId(
251 long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
252 throws RemoteException {
253 try {
254 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateParentLayoutId(groupId,
255 privateLayout, layoutId, parentLayoutId);
256
257 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
258 }
259 catch (Exception e) {
260 _log.error(e, e);
261
262 throw new RemoteException(e.getMessage());
263 }
264 }
265
266 public static com.liferay.portal.model.LayoutSoap updateParentLayoutId(
267 long plid, long parentPlid) throws RemoteException {
268 try {
269 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updateParentLayoutId(plid,
270 parentPlid);
271
272 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
273 }
274 catch (Exception e) {
275 _log.error(e, e);
276
277 throw new RemoteException(e.getMessage());
278 }
279 }
280
281 public static com.liferay.portal.model.LayoutSoap updatePriority(
282 long groupId, boolean privateLayout, long layoutId, int priority)
283 throws RemoteException {
284 try {
285 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updatePriority(groupId,
286 privateLayout, layoutId, priority);
287
288 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
289 }
290 catch (Exception e) {
291 _log.error(e, e);
292
293 throw new RemoteException(e.getMessage());
294 }
295 }
296
297 public static com.liferay.portal.model.LayoutSoap updatePriority(
298 long plid, int priority) throws RemoteException {
299 try {
300 com.liferay.portal.model.Layout returnValue = LayoutServiceUtil.updatePriority(plid,
301 priority);
302
303 return com.liferay.portal.model.LayoutSoap.toSoapModel(returnValue);
304 }
305 catch (Exception e) {
306 _log.error(e, e);
307
308 throw new RemoteException(e.getMessage());
309 }
310 }
311
312 private static Log _log = LogFactoryUtil.getLog(LayoutServiceSoap.class);
313 }