1
22
23 package com.liferay.portal.service;
24
25
26
47 public class LayoutServiceUtil {
48 public static com.liferay.portal.model.Layout addLayout(long groupId,
49 boolean privateLayout, long parentLayoutId, java.lang.String name,
50 java.lang.String title, java.lang.String description,
51 java.lang.String type, boolean hidden, java.lang.String friendlyURL)
52 throws com.liferay.portal.PortalException,
53 com.liferay.portal.SystemException, java.rmi.RemoteException {
54 return _service.addLayout(groupId, privateLayout, parentLayoutId, name,
55 title, description, type, hidden, friendlyURL);
56 }
57
58 public static com.liferay.portal.model.Layout addLayout(long groupId,
59 boolean privateLayout, long parentLayoutId,
60 java.util.Map<java.util.Locale, String> localeNamesMap,
61 java.util.Map<java.util.Locale, String> localeTitlesMap,
62 java.lang.String description, java.lang.String type, boolean hidden,
63 java.lang.String friendlyURL)
64 throws com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException, java.rmi.RemoteException {
66 return _service.addLayout(groupId, privateLayout, parentLayoutId,
67 localeNamesMap, localeTitlesMap, description, type, hidden,
68 friendlyURL);
69 }
70
71 public static void deleteLayout(long plid)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException, java.rmi.RemoteException {
74 _service.deleteLayout(plid);
75 }
76
77 public static void deleteLayout(long groupId, boolean privateLayout,
78 long layoutId)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException, java.rmi.RemoteException {
81 _service.deleteLayout(groupId, privateLayout, layoutId);
82 }
83
84 public static java.lang.String getLayoutName(long groupId,
85 boolean privateLayout, long layoutId, java.lang.String languageId)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException, java.rmi.RemoteException {
88 return _service.getLayoutName(groupId, privateLayout, layoutId,
89 languageId);
90 }
91
92 public static com.liferay.portal.model.LayoutReference[] getLayoutReferences(
93 long companyId, java.lang.String portletId, java.lang.String prefsKey,
94 java.lang.String prefsValue)
95 throws com.liferay.portal.SystemException, java.rmi.RemoteException {
96 return _service.getLayoutReferences(companyId, portletId, prefsKey,
97 prefsValue);
98 }
99
100 public static byte[] exportLayouts(long groupId, boolean privateLayout,
101 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
102 java.util.Date endDate)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException, java.rmi.RemoteException {
105 return _service.exportLayouts(groupId, privateLayout, parameterMap,
106 startDate, endDate);
107 }
108
109 public static byte[] exportLayouts(long groupId, boolean privateLayout,
110 long[] layoutIds, java.util.Map<String, String[]> parameterMap,
111 java.util.Date startDate, java.util.Date endDate)
112 throws com.liferay.portal.PortalException,
113 com.liferay.portal.SystemException, java.rmi.RemoteException {
114 return _service.exportLayouts(groupId, privateLayout, layoutIds,
115 parameterMap, startDate, endDate);
116 }
117
118 public static byte[] exportPortletInfo(long plid,
119 java.lang.String portletId,
120 java.util.Map<String, String[]> parameterMap, java.util.Date startDate,
121 java.util.Date endDate)
122 throws com.liferay.portal.PortalException,
123 com.liferay.portal.SystemException, java.rmi.RemoteException {
124 return _service.exportPortletInfo(plid, portletId, parameterMap,
125 startDate, endDate);
126 }
127
128 public static void importLayouts(long groupId, boolean privateLayout,
129 java.util.Map<String, String[]> parameterMap, java.io.File file)
130 throws com.liferay.portal.PortalException,
131 com.liferay.portal.SystemException, java.rmi.RemoteException {
132 _service.importLayouts(groupId, privateLayout, parameterMap, file);
133 }
134
135 public static void importLayouts(long groupId, boolean privateLayout,
136 java.util.Map<String, String[]> parameterMap, byte[] bytes)
137 throws com.liferay.portal.PortalException,
138 com.liferay.portal.SystemException, java.rmi.RemoteException {
139 _service.importLayouts(groupId, privateLayout, parameterMap, bytes);
140 }
141
142 public static void importLayouts(long groupId, boolean privateLayout,
143 java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
144 throws com.liferay.portal.PortalException,
145 com.liferay.portal.SystemException, java.rmi.RemoteException {
146 _service.importLayouts(groupId, privateLayout, parameterMap, is);
147 }
148
149 public static void importPortletInfo(long plid, java.lang.String portletId,
150 java.util.Map<String, String[]> parameterMap, java.io.File file)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException, java.rmi.RemoteException {
153 _service.importPortletInfo(plid, portletId, parameterMap, file);
154 }
155
156 public static void importPortletInfo(long plid, java.lang.String portletId,
157 java.util.Map<String, String[]> parameterMap, java.io.InputStream is)
158 throws com.liferay.portal.PortalException,
159 com.liferay.portal.SystemException, java.rmi.RemoteException {
160 _service.importPortletInfo(plid, portletId, parameterMap, is);
161 }
162
163 public static void schedulePublishToLive(long sourceGroupId,
164 long targetGroupId, boolean privateLayout,
165 java.util.Map<Long, Boolean> layoutIdMap,
166 java.util.Map<String, String[]> parameterMap, java.lang.String scope,
167 java.util.Date startDate, java.util.Date endDate,
168 java.lang.String groupName, java.lang.String cronText,
169 java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
170 java.lang.String description)
171 throws com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException, java.rmi.RemoteException {
173 _service.schedulePublishToLive(sourceGroupId, targetGroupId,
174 privateLayout, layoutIdMap, parameterMap, scope, startDate,
175 endDate, groupName, cronText, schedulerStartDate, schedulerEndDate,
176 description);
177 }
178
179 public static void schedulePublishToRemote(long sourceGroupId,
180 boolean privateLayout, java.util.Map<Long, Boolean> layoutIdMap,
181 java.util.Map<String, String[]> parameterMap,
182 java.lang.String remoteAddress, int remotePort,
183 boolean secureConnection, long remoteGroupId,
184 boolean remotePrivateLayout, java.util.Date startDate,
185 java.util.Date endDate, java.lang.String groupName,
186 java.lang.String cronText, java.util.Date schedulerStartDate,
187 java.util.Date schedulerEndDate, java.lang.String description)
188 throws com.liferay.portal.PortalException,
189 com.liferay.portal.SystemException, java.rmi.RemoteException {
190 _service.schedulePublishToRemote(sourceGroupId, privateLayout,
191 layoutIdMap, parameterMap, remoteAddress, remotePort,
192 secureConnection, remoteGroupId, remotePrivateLayout, startDate,
193 endDate, groupName, cronText, schedulerStartDate, schedulerEndDate,
194 description);
195 }
196
197 public static void setLayouts(long groupId, boolean privateLayout,
198 long parentLayoutId, long[] layoutIds)
199 throws com.liferay.portal.PortalException,
200 com.liferay.portal.SystemException, java.rmi.RemoteException {
201 _service.setLayouts(groupId, privateLayout, parentLayoutId, layoutIds);
202 }
203
204 public static void unschedulePublishToLive(long groupId,
205 java.lang.String jobName, java.lang.String groupName)
206 throws com.liferay.portal.PortalException,
207 com.liferay.portal.SystemException, java.rmi.RemoteException {
208 _service.unschedulePublishToLive(groupId, jobName, groupName);
209 }
210
211 public static void unschedulePublishToRemote(long groupId,
212 java.lang.String jobName, java.lang.String groupName)
213 throws com.liferay.portal.PortalException,
214 com.liferay.portal.SystemException, java.rmi.RemoteException {
215 _service.unschedulePublishToRemote(groupId, jobName, groupName);
216 }
217
218 public static com.liferay.portal.model.Layout updateLayout(long groupId,
219 boolean privateLayout, long layoutId, long parentLayoutId,
220 java.util.Map<java.util.Locale, String> localeNamesMap,
221 java.util.Map<java.util.Locale, String> localeTitlesMap,
222 java.lang.String description, java.lang.String type, boolean hidden,
223 java.lang.String friendlyURL)
224 throws com.liferay.portal.PortalException,
225 com.liferay.portal.SystemException, java.rmi.RemoteException {
226 return _service.updateLayout(groupId, privateLayout, layoutId,
227 parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
228 hidden, friendlyURL);
229 }
230
231 public static com.liferay.portal.model.Layout updateLayout(long groupId,
232 boolean privateLayout, long layoutId, long parentLayoutId,
233 java.util.Map<java.util.Locale, String> localeNamesMap,
234 java.util.Map<java.util.Locale, String> localeTitlesMap,
235 java.lang.String description, java.lang.String type, boolean hidden,
236 java.lang.String friendlyURL, java.lang.Boolean iconImage,
237 byte[] iconBytes)
238 throws com.liferay.portal.PortalException,
239 com.liferay.portal.SystemException, java.rmi.RemoteException {
240 return _service.updateLayout(groupId, privateLayout, layoutId,
241 parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
242 hidden, friendlyURL, iconImage, iconBytes);
243 }
244
245 public static com.liferay.portal.model.Layout updateLayout(long groupId,
246 boolean privateLayout, long layoutId, java.lang.String typeSettings)
247 throws com.liferay.portal.PortalException,
248 com.liferay.portal.SystemException, java.rmi.RemoteException {
249 return _service.updateLayout(groupId, privateLayout, layoutId,
250 typeSettings);
251 }
252
253 public static com.liferay.portal.model.Layout updateLookAndFeel(
254 long groupId, boolean privateLayout, long layoutId,
255 java.lang.String themeId, java.lang.String colorSchemeId,
256 java.lang.String css, boolean wapTheme)
257 throws com.liferay.portal.PortalException,
258 com.liferay.portal.SystemException, java.rmi.RemoteException {
259 return _service.updateLookAndFeel(groupId, privateLayout, layoutId,
260 themeId, colorSchemeId, css, wapTheme);
261 }
262
263 public static com.liferay.portal.model.Layout updateName(long plid,
264 java.lang.String name, java.lang.String languageId)
265 throws com.liferay.portal.PortalException,
266 com.liferay.portal.SystemException, java.rmi.RemoteException {
267 return _service.updateName(plid, name, languageId);
268 }
269
270 public static com.liferay.portal.model.Layout updateName(long groupId,
271 boolean privateLayout, long layoutId, java.lang.String name,
272 java.lang.String languageId)
273 throws com.liferay.portal.PortalException,
274 com.liferay.portal.SystemException, java.rmi.RemoteException {
275 return _service.updateName(groupId, privateLayout, layoutId, name,
276 languageId);
277 }
278
279 public static com.liferay.portal.model.Layout updateParentLayoutId(
280 long plid, long parentPlid)
281 throws com.liferay.portal.PortalException,
282 com.liferay.portal.SystemException, java.rmi.RemoteException {
283 return _service.updateParentLayoutId(plid, parentPlid);
284 }
285
286 public static com.liferay.portal.model.Layout updateParentLayoutId(
287 long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
288 throws com.liferay.portal.PortalException,
289 com.liferay.portal.SystemException, java.rmi.RemoteException {
290 return _service.updateParentLayoutId(groupId, privateLayout, layoutId,
291 parentLayoutId);
292 }
293
294 public static com.liferay.portal.model.Layout updatePriority(long plid,
295 int priority)
296 throws com.liferay.portal.PortalException,
297 com.liferay.portal.SystemException, java.rmi.RemoteException {
298 return _service.updatePriority(plid, priority);
299 }
300
301 public static com.liferay.portal.model.Layout updatePriority(long groupId,
302 boolean privateLayout, long layoutId, int priority)
303 throws com.liferay.portal.PortalException,
304 com.liferay.portal.SystemException, java.rmi.RemoteException {
305 return _service.updatePriority(groupId, privateLayout, layoutId,
306 priority);
307 }
308
309 public static LayoutService getService() {
310 return _service;
311 }
312
313 public void setService(LayoutService service) {
314 _service = service;
315 }
316
317 private static LayoutService _service;
318 }