001
014
015 package com.liferay.portal.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface LayoutLocalService {
043
050 public com.liferay.portal.model.Layout addLayout(
051 com.liferay.portal.model.Layout layout)
052 throws com.liferay.portal.kernel.exception.SystemException;
053
054
060 public com.liferay.portal.model.Layout createLayout(long plid);
061
062
069 public void deleteLayout(long plid)
070 throws com.liferay.portal.kernel.exception.PortalException,
071 com.liferay.portal.kernel.exception.SystemException;
072
073
079 public void deleteLayout(com.liferay.portal.model.Layout layout)
080 throws com.liferay.portal.kernel.exception.SystemException;
081
082
089 @SuppressWarnings("rawtypes")
090 public java.util.List dynamicQuery(
091 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092 throws com.liferay.portal.kernel.exception.SystemException;
093
094
107 @SuppressWarnings("rawtypes")
108 public java.util.List dynamicQuery(
109 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110 int end) throws com.liferay.portal.kernel.exception.SystemException;
111
112
126 @SuppressWarnings("rawtypes")
127 public java.util.List dynamicQuery(
128 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129 int end,
130 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131 throws com.liferay.portal.kernel.exception.SystemException;
132
133
140 public long dynamicQueryCount(
141 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
142 throws com.liferay.portal.kernel.exception.SystemException;
143
144
152 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153 public com.liferay.portal.model.Layout getLayout(long plid)
154 throws com.liferay.portal.kernel.exception.PortalException,
155 com.liferay.portal.kernel.exception.SystemException;
156
157
166 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167 public com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
168 java.lang.String uuid, long groupId)
169 throws com.liferay.portal.kernel.exception.PortalException,
170 com.liferay.portal.kernel.exception.SystemException;
171
172
184 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
186 int start, int end)
187 throws com.liferay.portal.kernel.exception.SystemException;
188
189
195 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196 public int getLayoutsCount()
197 throws com.liferay.portal.kernel.exception.SystemException;
198
199
206 public com.liferay.portal.model.Layout updateLayout(
207 com.liferay.portal.model.Layout layout)
208 throws com.liferay.portal.kernel.exception.SystemException;
209
210
218 public com.liferay.portal.model.Layout updateLayout(
219 com.liferay.portal.model.Layout layout, boolean merge)
220 throws com.liferay.portal.kernel.exception.SystemException;
221
222 public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
223 boolean privateLayout, long parentLayoutId,
224 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
225 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
226 java.lang.String description, java.lang.String type, boolean hidden,
227 java.lang.String friendlyURL, long dlFolderId,
228 com.liferay.portal.service.ServiceContext serviceContext)
229 throws com.liferay.portal.kernel.exception.PortalException,
230 com.liferay.portal.kernel.exception.SystemException;
231
232 public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
233 boolean privateLayout, long parentLayoutId,
234 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
235 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
236 java.lang.String description, java.lang.String type, boolean hidden,
237 java.lang.String friendlyURL,
238 com.liferay.portal.service.ServiceContext serviceContext)
239 throws com.liferay.portal.kernel.exception.PortalException,
240 com.liferay.portal.kernel.exception.SystemException;
241
242 public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
243 boolean privateLayout, long parentLayoutId, java.lang.String name,
244 java.lang.String title, java.lang.String description,
245 java.lang.String type, boolean hidden, java.lang.String friendlyURL,
246 long dlFolderId,
247 com.liferay.portal.service.ServiceContext serviceContext)
248 throws com.liferay.portal.kernel.exception.PortalException,
249 com.liferay.portal.kernel.exception.SystemException;
250
251 public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
252 boolean privateLayout, long parentLayoutId, java.lang.String name,
253 java.lang.String title, java.lang.String description,
254 java.lang.String type, boolean hidden, java.lang.String friendlyURL,
255 com.liferay.portal.service.ServiceContext serviceContext)
256 throws com.liferay.portal.kernel.exception.PortalException,
257 com.liferay.portal.kernel.exception.SystemException;
258
259 public void deleteLayout(com.liferay.portal.model.Layout layout,
260 boolean updateLayoutSet)
261 throws com.liferay.portal.kernel.exception.PortalException,
262 com.liferay.portal.kernel.exception.SystemException;
263
264 public void deleteLayout(long groupId, boolean privateLayout, long layoutId)
265 throws com.liferay.portal.kernel.exception.PortalException,
266 com.liferay.portal.kernel.exception.SystemException;
267
268 public void deleteLayouts(long groupId, boolean privateLayout)
269 throws com.liferay.portal.kernel.exception.PortalException,
270 com.liferay.portal.kernel.exception.SystemException;
271
272 public byte[] exportLayouts(long groupId, boolean privateLayout,
273 long[] layoutIds,
274 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
275 java.util.Date startDate, java.util.Date endDate)
276 throws com.liferay.portal.kernel.exception.PortalException,
277 com.liferay.portal.kernel.exception.SystemException;
278
279 public byte[] exportLayouts(long groupId, boolean privateLayout,
280 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
281 java.util.Date startDate, java.util.Date endDate)
282 throws com.liferay.portal.kernel.exception.PortalException,
283 com.liferay.portal.kernel.exception.SystemException;
284
285 public java.io.File exportLayoutsAsFile(long groupId,
286 boolean privateLayout, long[] layoutIds,
287 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
288 java.util.Date startDate, java.util.Date endDate)
289 throws com.liferay.portal.kernel.exception.PortalException,
290 com.liferay.portal.kernel.exception.SystemException;
291
292 public byte[] exportPortletInfo(long plid, long groupId,
293 java.lang.String portletId,
294 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
295 java.util.Date startDate, java.util.Date endDate)
296 throws com.liferay.portal.kernel.exception.PortalException,
297 com.liferay.portal.kernel.exception.SystemException;
298
299 public java.io.File exportPortletInfoAsFile(long plid, long groupId,
300 java.lang.String portletId,
301 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
302 java.util.Date startDate, java.util.Date endDate)
303 throws com.liferay.portal.kernel.exception.PortalException,
304 com.liferay.portal.kernel.exception.SystemException;
305
306 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307 public long getDefaultPlid(long groupId)
308 throws com.liferay.portal.kernel.exception.SystemException;
309
310 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311 public long getDefaultPlid(long groupId, boolean privateLayout)
312 throws com.liferay.portal.kernel.exception.SystemException;
313
314 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315 public long getDefaultPlid(long groupId, boolean privateLayout,
316 java.lang.String portletId)
317 throws com.liferay.portal.kernel.exception.PortalException,
318 com.liferay.portal.kernel.exception.SystemException;
319
320 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321 public com.liferay.portal.model.Layout getDLFolderLayout(long dlFolderId)
322 throws com.liferay.portal.kernel.exception.PortalException,
323 com.liferay.portal.kernel.exception.SystemException;
324
325 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326 public com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId,
327 boolean privateLayout, java.lang.String friendlyURL)
328 throws com.liferay.portal.kernel.exception.PortalException,
329 com.liferay.portal.kernel.exception.SystemException;
330
331 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332 public com.liferay.portal.model.Layout getLayout(long groupId,
333 boolean privateLayout, long layoutId)
334 throws com.liferay.portal.kernel.exception.PortalException,
335 com.liferay.portal.kernel.exception.SystemException;
336
337 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338 public com.liferay.portal.model.Layout getLayoutByIconImageId(
339 long iconImageId)
340 throws com.liferay.portal.kernel.exception.PortalException,
341 com.liferay.portal.kernel.exception.SystemException;
342
343 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
345 long groupId, boolean privateLayout)
346 throws com.liferay.portal.kernel.exception.SystemException;
347
348 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
350 long groupId, boolean privateLayout, long parentLayoutId)
351 throws com.liferay.portal.kernel.exception.SystemException;
352
353 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
355 long groupId, boolean privateLayout, long parentLayoutId, int start,
356 int end) throws com.liferay.portal.kernel.exception.SystemException;
357
358 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
360 long groupId, boolean privateLayout, long[] layoutIds)
361 throws com.liferay.portal.kernel.exception.PortalException,
362 com.liferay.portal.kernel.exception.SystemException;
363
364 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365 public java.util.List<com.liferay.portal.model.Layout> getLayouts(
366 long groupId, boolean privateLayout, java.lang.String type)
367 throws com.liferay.portal.kernel.exception.SystemException;
368
369 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370 public com.liferay.portal.model.LayoutReference[] getLayouts(
371 long companyId, java.lang.String portletId,
372 java.lang.String preferencesKey, java.lang.String preferencesValue)
373 throws com.liferay.portal.kernel.exception.SystemException;
374
375 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376 public long getNextLayoutId(long groupId, boolean privateLayout)
377 throws com.liferay.portal.kernel.exception.SystemException;
378
379 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380 public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
381 throws com.liferay.portal.kernel.exception.SystemException;
382
383 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384 public boolean hasLayouts(long groupId, boolean privateLayout,
385 long parentLayoutId)
386 throws com.liferay.portal.kernel.exception.SystemException;
387
388 public void importLayouts(long userId, long groupId, boolean privateLayout,
389 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
390 byte[] bytes)
391 throws com.liferay.portal.kernel.exception.PortalException,
392 com.liferay.portal.kernel.exception.SystemException;
393
394 public void importLayouts(long userId, long groupId, boolean privateLayout,
395 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
396 java.io.File file)
397 throws com.liferay.portal.kernel.exception.PortalException,
398 com.liferay.portal.kernel.exception.SystemException;
399
400 public void importLayouts(long userId, long groupId, boolean privateLayout,
401 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
402 java.io.InputStream is)
403 throws com.liferay.portal.kernel.exception.PortalException,
404 com.liferay.portal.kernel.exception.SystemException;
405
406 public void importPortletInfo(long userId, long plid, long groupId,
407 java.lang.String portletId,
408 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
409 java.io.File file)
410 throws com.liferay.portal.kernel.exception.PortalException,
411 com.liferay.portal.kernel.exception.SystemException;
412
413 public void importPortletInfo(long userId, long plid, long groupId,
414 java.lang.String portletId,
415 java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
416 java.io.InputStream is)
417 throws com.liferay.portal.kernel.exception.PortalException,
418 com.liferay.portal.kernel.exception.SystemException;
419
420 public void setLayouts(long groupId, boolean privateLayout,
421 long parentLayoutId, long[] layoutIds)
422 throws com.liferay.portal.kernel.exception.PortalException,
423 com.liferay.portal.kernel.exception.SystemException;
424
425 public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
426 java.lang.String friendlyURL)
427 throws com.liferay.portal.kernel.exception.PortalException,
428 com.liferay.portal.kernel.exception.SystemException;
429
430 public com.liferay.portal.model.Layout updateLayout(long groupId,
431 boolean privateLayout, long layoutId, long parentLayoutId,
432 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
433 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
434 java.lang.String description, java.lang.String type, boolean hidden,
435 java.lang.String friendlyURL, java.lang.Boolean iconImage,
436 byte[] iconBytes,
437 com.liferay.portal.service.ServiceContext serviceContext)
438 throws com.liferay.portal.kernel.exception.PortalException,
439 com.liferay.portal.kernel.exception.SystemException;
440
441 public com.liferay.portal.model.Layout updateLayout(long groupId,
442 boolean privateLayout, long layoutId, long parentLayoutId,
443 java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
444 java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
445 java.lang.String description, java.lang.String type, boolean hidden,
446 java.lang.String friendlyURL,
447 com.liferay.portal.service.ServiceContext serviceContext)
448 throws com.liferay.portal.kernel.exception.PortalException,
449 com.liferay.portal.kernel.exception.SystemException;
450
451 public com.liferay.portal.model.Layout updateLayout(long groupId,
452 boolean privateLayout, long layoutId, java.lang.String typeSettings)
453 throws com.liferay.portal.kernel.exception.PortalException,
454 com.liferay.portal.kernel.exception.SystemException;
455
456 public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
457 boolean privateLayout, long layoutId, java.lang.String themeId,
458 java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
459 throws com.liferay.portal.kernel.exception.PortalException,
460 com.liferay.portal.kernel.exception.SystemException;
461
462 public com.liferay.portal.model.Layout updateName(
463 com.liferay.portal.model.Layout layout, java.lang.String name,
464 java.lang.String languageId)
465 throws com.liferay.portal.kernel.exception.PortalException,
466 com.liferay.portal.kernel.exception.SystemException;
467
468 public com.liferay.portal.model.Layout updateName(long groupId,
469 boolean privateLayout, long layoutId, java.lang.String name,
470 java.lang.String languageId)
471 throws com.liferay.portal.kernel.exception.PortalException,
472 com.liferay.portal.kernel.exception.SystemException;
473
474 public com.liferay.portal.model.Layout updateName(long plid,
475 java.lang.String name, java.lang.String languageId)
476 throws com.liferay.portal.kernel.exception.PortalException,
477 com.liferay.portal.kernel.exception.SystemException;
478
479 public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
480 boolean privateLayout, long layoutId, long parentLayoutId)
481 throws com.liferay.portal.kernel.exception.PortalException,
482 com.liferay.portal.kernel.exception.SystemException;
483
484 public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
485 long parentPlid)
486 throws com.liferay.portal.kernel.exception.PortalException,
487 com.liferay.portal.kernel.exception.SystemException;
488
489 public com.liferay.portal.model.Layout updatePriority(
490 com.liferay.portal.model.Layout layout, int priority)
491 throws com.liferay.portal.kernel.exception.SystemException;
492
493 public com.liferay.portal.model.Layout updatePriority(long groupId,
494 boolean privateLayout, long layoutId, int priority)
495 throws com.liferay.portal.kernel.exception.PortalException,
496 com.liferay.portal.kernel.exception.SystemException;
497
498 public com.liferay.portal.model.Layout updatePriority(long plid,
499 int priority)
500 throws com.liferay.portal.kernel.exception.PortalException,
501 com.liferay.portal.kernel.exception.SystemException;
502 }