001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * Provides a wrapper for {@link LayoutService}.
019     *
020     * @author Brian Wing Shun Chan
021     * @see LayoutService
022     * @generated
023     */
024    public class LayoutServiceWrapper implements LayoutService,
025            ServiceWrapper<LayoutService> {
026            public LayoutServiceWrapper(LayoutService layoutService) {
027                    _layoutService = layoutService;
028            }
029    
030            /**
031            * Returns the Spring bean ID for this bean.
032            *
033            * @return the Spring bean ID for this bean
034            */
035            @Override
036            public java.lang.String getBeanIdentifier() {
037                    return _layoutService.getBeanIdentifier();
038            }
039    
040            /**
041            * Sets the Spring bean ID for this bean.
042            *
043            * @param beanIdentifier the Spring bean ID for this bean
044            */
045            @Override
046            public void setBeanIdentifier(java.lang.String beanIdentifier) {
047                    _layoutService.setBeanIdentifier(beanIdentifier);
048            }
049    
050            /**
051            * Adds a layout with additional parameters.
052            *
053            * <p>
054            * This method handles the creation of the layout including its resources,
055            * metadata, and internal data structures. It is not necessary to make
056            * subsequent calls to any methods to setup default groups, resources, ...
057            * etc.
058            * </p>
059            *
060            * @param groupId the primary key of the group
061            * @param privateLayout whether the layout is private to the group
062            * @param parentLayoutId the primary key of the parent layout
063            (optionally {@link
064            com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID})
065            * @param localeNamesMap the layout's locales and localized names
066            * @param localeTitlesMap the layout's locales and localized titles
067            * @param descriptionMap the layout's locales and localized
068            descriptions
069            * @param keywordsMap the layout's locales and localized keywords
070            * @param robotsMap the layout's locales and localized robots
071            * @param type the layout's type (optionally {@link
072            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The
073            possible types can be found in {@link
074            com.liferay.portal.model.LayoutConstants}.
075            * @param hidden whether the layout is hidden
076            * @param friendlyURL the layout's locales and localized friendly URLs.
077            To see how the URL is normalized when accessed, see {@link
078            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
079            String)}.
080            * @param serviceContext the service context to be applied. Must set
081            the UUID for the layout. Can set the creation date,
082            modification date, and expando bridge attributes for the
083            layout. For layouts that belong to a layout set prototype, an
084            attribute named <code>layoutUpdateable</code> can be used to
085            specify whether site administrators can modify this page
086            within their site.
087            * @return the layout
088            * @throws PortalException if a group with the primary key could not be
089            found, if the group did not have permission to manage the
090            layouts involved, if layout values were invalid, or if a
091            portal exception occurred
092            * @throws SystemException if a system exception occurred
093            * @deprecated As of 6.2.0, replaced by {@link #addLayout(long, boolean,
094            long, Map, Map, Map, Map, Map, String, String, boolean, Map,
095            ServiceContext)}
096            */
097            @Override
098            public com.liferay.portal.model.Layout addLayout(long groupId,
099                    boolean privateLayout, long parentLayoutId,
100                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
101                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
102                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
103                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
104                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
105                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
106                    com.liferay.portal.service.ServiceContext serviceContext)
107                    throws com.liferay.portal.kernel.exception.PortalException,
108                            com.liferay.portal.kernel.exception.SystemException {
109                    return _layoutService.addLayout(groupId, privateLayout, parentLayoutId,
110                            localeNamesMap, localeTitlesMap, descriptionMap, keywordsMap,
111                            robotsMap, type, hidden, friendlyURL, serviceContext);
112            }
113    
114            /**
115            * Adds a layout with additional parameters.
116            *
117            * <p>
118            * This method handles the creation of the layout including its resources,
119            * metadata, and internal data structures. It is not necessary to make
120            * subsequent calls to any methods to setup default groups, resources, ...
121            * etc.
122            * </p>
123            *
124            * @param groupId the primary key of the group
125            * @param privateLayout whether the layout is private to the group
126            * @param parentLayoutId the primary key of the parent layout (optionally
127            {@link
128            com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID})
129            * @param localeNamesMap the layout's locales and localized names
130            * @param localeTitlesMap the layout's locales and localized titles
131            * @param descriptionMap the layout's locales and localized descriptions
132            * @param keywordsMap the layout's locales and localized keywords
133            * @param robotsMap the layout's locales and localized robots
134            * @param type the layout's type (optionally {@link
135            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The
136            possible types can be found in {@link
137            com.liferay.portal.model.LayoutConstants}.
138            * @param typeSettings the settings to load the unicode properties object.
139            See {@link com.liferay.portal.kernel.util.UnicodeProperties
140            #fastLoad(String)}.
141            * @param hidden whether the layout is hidden
142            * @param friendlyURLMap the layout's locales and localized friendly URLs.
143            To see how the URL is normalized when accessed, see {@link
144            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
145            String)}.
146            * @param serviceContext the service context to be applied. Must set the
147            UUID for the layout. Can set the creation date, modification
148            date, and expando bridge attributes for the layout. For layouts
149            that belong to a layout set prototype, an attribute named
150            <code>layoutUpdateable</code> can be used to specify whether site
151            administrators can modify this page within their site.
152            * @return the layout
153            * @throws PortalException if a group with the primary key could not be
154            found, if the group did not have permission to manage the layouts
155            involved, if layout values were invalid, or if a portal exception
156            occurred
157            * @throws SystemException if a system exception occurred
158            */
159            @Override
160            public com.liferay.portal.model.Layout addLayout(long groupId,
161                    boolean privateLayout, long parentLayoutId,
162                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
163                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
164                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
165                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
166                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
167                    java.lang.String type, java.lang.String typeSettings, boolean hidden,
168                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
169                    com.liferay.portal.service.ServiceContext serviceContext)
170                    throws com.liferay.portal.kernel.exception.PortalException,
171                            com.liferay.portal.kernel.exception.SystemException {
172                    return _layoutService.addLayout(groupId, privateLayout, parentLayoutId,
173                            localeNamesMap, localeTitlesMap, descriptionMap, keywordsMap,
174                            robotsMap, type, typeSettings, hidden, friendlyURLMap,
175                            serviceContext);
176            }
177    
178            /**
179            * Adds a layout with single entry maps for name, title, and description to
180            * the default locale.
181            *
182            * <p>
183            * This method handles the creation of the layout including its resources,
184            * metadata, and internal data structures. It is not necessary to make
185            * subsequent calls to any methods to setup default groups, resources, ...
186            * etc.
187            * </p>
188            *
189            * @param groupId the primary key of the group
190            * @param privateLayout whether the layout is private to the group
191            * @param parentLayoutId the primary key of the parent layout (optionally
192            {@link
193            com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID})
194            * @param name Map the layout's locales and localized names
195            * @param title Map the layout's locales and localized titles
196            * @param description Map the layout's locales and localized descriptions
197            * @param type the layout's type (optionally {@link
198            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The
199            possible types can be found in {@link
200            com.liferay.portal.model.LayoutConstants}.
201            * @param hidden whether the layout is hidden
202            * @param friendlyURL the layout's locales and localized friendly URLs. To
203            see how the URL is normalized when accessed, see {@link
204            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
205            String)}.
206            * @param serviceContext the service context to be applied. Must set the
207            UUID for the layout. Can specify the creation date, modification
208            date, and expando bridge attributes for the layout. For layouts
209            that belong to a layout set prototype, an attribute named
210            <code>layoutUpdateable</code> can be used to specify whether site
211            administrators can modify this page within their site.
212            * @return the layout
213            * @throws PortalException if a group with the primary key could not be
214            found, if the group did not have permission to manage the layouts
215            involved, if layout values were invalid, or if a portal exception
216            occurred
217            * @throws SystemException if a system exception occurred
218            */
219            @Override
220            public com.liferay.portal.model.Layout addLayout(long groupId,
221                    boolean privateLayout, long parentLayoutId, java.lang.String name,
222                    java.lang.String title, java.lang.String description,
223                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
224                    com.liferay.portal.service.ServiceContext serviceContext)
225                    throws com.liferay.portal.kernel.exception.PortalException,
226                            com.liferay.portal.kernel.exception.SystemException {
227                    return _layoutService.addLayout(groupId, privateLayout, parentLayoutId,
228                            name, title, description, type, hidden, friendlyURL, serviceContext);
229            }
230    
231            @Override
232            public com.liferay.portal.kernel.repository.model.FileEntry addTempFileEntry(
233                    long groupId, java.lang.String fileName,
234                    java.lang.String tempFolderName, java.io.InputStream inputStream,
235                    java.lang.String mimeType)
236                    throws com.liferay.portal.kernel.exception.PortalException,
237                            com.liferay.portal.kernel.exception.SystemException {
238                    return _layoutService.addTempFileEntry(groupId, fileName,
239                            tempFolderName, inputStream, mimeType);
240            }
241    
242            /**
243            * Deletes the layout with the primary key, also deleting the layout's child
244            * layouts, and associated resources.
245            *
246            * @param groupId the primary key of the group
247            * @param privateLayout whether the layout is private to the group
248            * @param layoutId the primary key of the layout
249            * @param serviceContext the service context to be applied
250            * @throws PortalException if the user did not have permission to delete the
251            layout, if a matching layout could not be found , or if some
252            other portal exception occurred
253            * @throws SystemException if a system exception occurred
254            */
255            @Override
256            public void deleteLayout(long groupId, boolean privateLayout,
257                    long layoutId, com.liferay.portal.service.ServiceContext serviceContext)
258                    throws com.liferay.portal.kernel.exception.PortalException,
259                            com.liferay.portal.kernel.exception.SystemException {
260                    _layoutService.deleteLayout(groupId, privateLayout, layoutId,
261                            serviceContext);
262            }
263    
264            /**
265            * Deletes the layout with the plid, also deleting the layout's child
266            * layouts, and associated resources.
267            *
268            * @param plid the primary key of the layout
269            * @param serviceContext the service context to be applied
270            * @throws PortalException if the user did not have permission to delete the
271            layout, if a layout with the primary key could not be found , or
272            if some other portal exception occurred
273            * @throws SystemException if a system exception occurred
274            */
275            @Override
276            public void deleteLayout(long plid,
277                    com.liferay.portal.service.ServiceContext serviceContext)
278                    throws com.liferay.portal.kernel.exception.PortalException,
279                            com.liferay.portal.kernel.exception.SystemException {
280                    _layoutService.deleteLayout(plid, serviceContext);
281            }
282    
283            @Override
284            public void deleteTempFileEntry(long groupId, java.lang.String fileName,
285                    java.lang.String tempFolderName)
286                    throws com.liferay.portal.kernel.exception.PortalException,
287                            com.liferay.portal.kernel.exception.SystemException {
288                    _layoutService.deleteTempFileEntry(groupId, fileName, tempFolderName);
289            }
290    
291            /**
292            * Exports the layouts that match the primary keys and the criteria as a
293            * byte array.
294            *
295            * @param groupId the primary key of the group
296            * @param privateLayout whether the layout is private to the group
297            * @param layoutIds the primary keys of the layouts to be exported
298            * @param parameterMap the mapping of parameters indicating which
299            information to export. For information on the keys used in the
300            map see {@link
301            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
302            * @param startDate the export's start date
303            * @param endDate the export's end date
304            * @return the layouts as a byte array
305            * @throws PortalException if a group or any layout with the primary key
306            could not be found, if the group did not have permission to
307            manage the layouts, or if some other portal exception occurred
308            * @throws SystemException if a system exception occurred
309            */
310            @Override
311            public byte[] exportLayouts(long groupId, boolean privateLayout,
312                    long[] layoutIds,
313                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
314                    java.util.Date startDate, java.util.Date endDate)
315                    throws com.liferay.portal.kernel.exception.PortalException,
316                            com.liferay.portal.kernel.exception.SystemException {
317                    return _layoutService.exportLayouts(groupId, privateLayout, layoutIds,
318                            parameterMap, startDate, endDate);
319            }
320    
321            /**
322            * Exports all layouts that match the criteria as a byte array.
323            *
324            * @param groupId the primary key of the group
325            * @param privateLayout whether the layout is private to the group
326            * @param parameterMap the mapping of parameters indicating which
327            information to export. For information on the keys used in the
328            map see {@link
329            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
330            * @param startDate the export's start date
331            * @param endDate the export's end date
332            * @return the layout as a byte array
333            * @throws PortalException if a group with the primary key could not be
334            found, if the group did not have permission to manage the
335            layouts, or if some other portal exception occurred
336            * @throws SystemException if a system exception occurred
337            */
338            @Override
339            public byte[] exportLayouts(long groupId, boolean privateLayout,
340                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
341                    java.util.Date startDate, java.util.Date endDate)
342                    throws com.liferay.portal.kernel.exception.PortalException,
343                            com.liferay.portal.kernel.exception.SystemException {
344                    return _layoutService.exportLayouts(groupId, privateLayout,
345                            parameterMap, startDate, endDate);
346            }
347    
348            /**
349            * Exports all layouts that match the primary keys and criteria as a file.
350            *
351            * @param groupId the primary key of the group
352            * @param privateLayout whether the layout is private to the group
353            * @param layoutIds the primary keys of the layouts to be exported
354            (optionally <code>null</code>)
355            * @param parameterMap the mapping of parameters indicating which
356            information to export. For information on the keys used in the
357            map see {@link
358            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
359            * @param startDate the export's start date
360            * @param endDate the export's end date
361            * @return the layouts as a File
362            * @throws PortalException if a group or any layout with the primary key
363            could not be found, it the group did not have permission to
364            manage the layouts, or if some other portal exception occurred
365            * @throws SystemException if a system exception occurred
366            */
367            @Override
368            public java.io.File exportLayoutsAsFile(long groupId,
369                    boolean privateLayout, long[] layoutIds,
370                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
371                    java.util.Date startDate, java.util.Date endDate)
372                    throws com.liferay.portal.kernel.exception.PortalException,
373                            com.liferay.portal.kernel.exception.SystemException {
374                    return _layoutService.exportLayoutsAsFile(groupId, privateLayout,
375                            layoutIds, parameterMap, startDate, endDate);
376            }
377    
378            @Override
379            public long exportLayoutsAsFileInBackground(java.lang.String taskName,
380                    long groupId, boolean privateLayout, long[] layoutIds,
381                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
382                    java.util.Date startDate, java.util.Date endDate,
383                    java.lang.String fileName)
384                    throws com.liferay.portal.kernel.exception.PortalException,
385                            com.liferay.portal.kernel.exception.SystemException {
386                    return _layoutService.exportLayoutsAsFileInBackground(taskName,
387                            groupId, privateLayout, layoutIds, parameterMap, startDate,
388                            endDate, fileName);
389            }
390    
391            /**
392            * Exports the portlet information (categories, permissions, ... etc.) as a
393            * byte array.
394            *
395            * @param plid the primary key of the layout
396            * @param groupId the primary key of the group
397            * @param portletId the primary key of the portlet
398            * @param parameterMap the mapping of parameters indicating which
399            information to export. For information on the keys used in the
400            map see {@link
401            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
402            * @param startDate the export's start date
403            * @param endDate the export's end date
404            * @return the portlet information as a byte array
405            * @throws PortalException if a layout, group, or portlet with the primary
406            key could not be found, if the group did not have permission to
407            manage the layouts involved, or if some other portal exception
408            occurred
409            * @throws SystemException if a system exception occurred
410            */
411            @Override
412            public byte[] exportPortletInfo(long plid, long groupId,
413                    java.lang.String portletId,
414                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
415                    java.util.Date startDate, java.util.Date endDate)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    return _layoutService.exportPortletInfo(plid, groupId, portletId,
419                            parameterMap, startDate, endDate);
420            }
421    
422            @Override
423            public byte[] exportPortletInfo(long companyId, java.lang.String portletId,
424                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
425                    java.util.Date startDate, java.util.Date endDate)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException {
428                    return _layoutService.exportPortletInfo(companyId, portletId,
429                            parameterMap, startDate, endDate);
430            }
431    
432            /**
433            * Exports the portlet information (categories, permissions, ... etc.) as a
434            * file.
435            *
436            * @param plid the primary key of the layout
437            * @param groupId the primary key of the group
438            * @param portletId the primary key of the portlet
439            * @param parameterMap the mapping of parameters indicating which
440            information to export. For information on the keys used in the
441            map see {@link
442            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
443            * @param startDate the export's start date
444            * @param endDate the export's end date
445            * @return the portlet information as a file
446            * @throws PortalException if a layout, group, or portlet with the primary
447            key could not be found, it the group did not have permission to
448            manage the layouts involved, or if some other portal exception
449            occurred
450            * @throws SystemException if a system exception occurred
451            */
452            @Override
453            public java.io.File exportPortletInfoAsFile(long plid, long groupId,
454                    java.lang.String portletId,
455                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
456                    java.util.Date startDate, java.util.Date endDate)
457                    throws com.liferay.portal.kernel.exception.PortalException,
458                            com.liferay.portal.kernel.exception.SystemException {
459                    return _layoutService.exportPortletInfoAsFile(plid, groupId, portletId,
460                            parameterMap, startDate, endDate);
461            }
462    
463            @Override
464            public java.io.File exportPortletInfoAsFile(long companyId,
465                    java.lang.String portletId,
466                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
467                    java.util.Date startDate, java.util.Date endDate)
468                    throws com.liferay.portal.kernel.exception.PortalException,
469                            com.liferay.portal.kernel.exception.SystemException {
470                    return _layoutService.exportPortletInfoAsFile(companyId, portletId,
471                            parameterMap, startDate, endDate);
472            }
473    
474            @Override
475            public long exportPortletInfoAsFileInBackground(long userId,
476                    java.lang.String taskName, java.lang.String portletId,
477                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
478                    java.util.Date startDate, java.util.Date endDate,
479                    java.lang.String fileName)
480                    throws com.liferay.portal.kernel.exception.PortalException,
481                            com.liferay.portal.kernel.exception.SystemException {
482                    return _layoutService.exportPortletInfoAsFileInBackground(userId,
483                            taskName, portletId, parameterMap, startDate, endDate, fileName);
484            }
485    
486            @Override
487            public long exportPortletInfoAsFileInBackground(java.lang.String taskName,
488                    long plid, long groupId, java.lang.String portletId,
489                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
490                    java.util.Date startDate, java.util.Date endDate,
491                    java.lang.String fileName)
492                    throws com.liferay.portal.kernel.exception.PortalException,
493                            com.liferay.portal.kernel.exception.SystemException {
494                    return _layoutService.exportPortletInfoAsFileInBackground(taskName,
495                            plid, groupId, portletId, parameterMap, startDate, endDate, fileName);
496            }
497    
498            /**
499            * Returns all the ancestor layouts of the layout.
500            *
501            * @param plid the primary key of the layout
502            * @return the ancestor layouts of the layout
503            * @throws PortalException if a matching layout could not be found or if a
504            portal exception occurred
505            * @throws SystemException if a system exception occurred
506            */
507            @Override
508            public java.util.List<com.liferay.portal.model.Layout> getAncestorLayouts(
509                    long plid)
510                    throws com.liferay.portal.kernel.exception.PortalException,
511                            com.liferay.portal.kernel.exception.SystemException {
512                    return _layoutService.getAncestorLayouts(plid);
513            }
514    
515            /**
516            * Returns the primary key of the default layout for the group.
517            *
518            * @param groupId the primary key of the group
519            * @param scopeGroupId the primary key of the scope group. See {@link
520            com.liferay.portal.service.ServiceContext#getScopeGroupId()}.
521            * @param privateLayout whether the layout is private to the group
522            * @param portletId the primary key of the portlet
523            * @return Returns the primary key of the default layout group; {@link
524            com.liferay.portal.model.LayoutConstants#DEFAULT_PLID} otherwise
525            * @throws PortalException if a group, layout, or portlet with the primary
526            key could not be found
527            * @throws SystemException if a system exception occurred
528            */
529            @Override
530            public long getDefaultPlid(long groupId, long scopeGroupId,
531                    boolean privateLayout, java.lang.String portletId)
532                    throws com.liferay.portal.kernel.exception.PortalException,
533                            com.liferay.portal.kernel.exception.SystemException {
534                    return _layoutService.getDefaultPlid(groupId, scopeGroupId,
535                            privateLayout, portletId);
536            }
537    
538            @Override
539            public long getDefaultPlid(long groupId, long scopeGroupId,
540                    java.lang.String portletId)
541                    throws com.liferay.portal.kernel.exception.PortalException,
542                            com.liferay.portal.kernel.exception.SystemException {
543                    return _layoutService.getDefaultPlid(groupId, scopeGroupId, portletId);
544            }
545    
546            /**
547            * Returns the layout matching the UUID, group, and privacy.
548            *
549            * @param uuid the layout's UUID
550            * @param groupId the primary key of the group
551            * @param privateLayout whether the layout is private to the group
552            * @return the matching layout
553            * @throws PortalException if a matching layout could not be found, if the
554            user did not have permission to view the layout, or if some other
555            portal exception occurred
556            * @throws SystemException if a system exception occurred
557            */
558            @Override
559            public com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
560                    java.lang.String uuid, long groupId, boolean privateLayout)
561                    throws com.liferay.portal.kernel.exception.PortalException,
562                            com.liferay.portal.kernel.exception.SystemException {
563                    return _layoutService.getLayoutByUuidAndGroupId(uuid, groupId,
564                            privateLayout);
565            }
566    
567            /**
568            * Returns the name of the layout.
569            *
570            * @param groupId the primary key of the group
571            * @param privateLayout whether the layout is private to the group
572            * @param layoutId the primary key of the layout
573            * @param languageId the primary key of the language. For more information
574            See {@link java.util.Locale}.
575            * @return the layout's name
576            * @throws PortalException if a matching layout could not be found
577            * @throws SystemException if a system exception occurred
578            */
579            @Override
580            public java.lang.String getLayoutName(long groupId, boolean privateLayout,
581                    long layoutId, java.lang.String languageId)
582                    throws com.liferay.portal.kernel.exception.PortalException,
583                            com.liferay.portal.kernel.exception.SystemException {
584                    return _layoutService.getLayoutName(groupId, privateLayout, layoutId,
585                            languageId);
586            }
587    
588            /**
589            * Returns the layout references for all the layouts that belong to the
590            * company and belong to the portlet that matches the preferences.
591            *
592            * @param companyId the primary key of the company
593            * @param portletId the primary key of the portlet
594            * @param preferencesKey the portlet's preference key
595            * @param preferencesValue the portlet's preference value
596            * @return the layout references of the matching layouts
597            * @throws SystemException if a system exception occurred
598            */
599            @Override
600            public com.liferay.portal.model.LayoutReference[] getLayoutReferences(
601                    long companyId, java.lang.String portletId,
602                    java.lang.String preferencesKey, java.lang.String preferencesValue)
603                    throws com.liferay.portal.kernel.exception.SystemException {
604                    return _layoutService.getLayoutReferences(companyId, portletId,
605                            preferencesKey, preferencesValue);
606            }
607    
608            @Override
609            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
610                    long groupId, boolean privateLayout)
611                    throws com.liferay.portal.kernel.exception.SystemException {
612                    return _layoutService.getLayouts(groupId, privateLayout);
613            }
614    
615            @Override
616            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
617                    long groupId, boolean privateLayout, long parentLayoutId)
618                    throws com.liferay.portal.kernel.exception.SystemException {
619                    return _layoutService.getLayouts(groupId, privateLayout, parentLayoutId);
620            }
621    
622            @Override
623            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
624                    long groupId, boolean privateLayout, long parentLayoutId,
625                    boolean incomplete, int start, int end)
626                    throws com.liferay.portal.kernel.exception.PortalException,
627                            com.liferay.portal.kernel.exception.SystemException {
628                    return _layoutService.getLayouts(groupId, privateLayout,
629                            parentLayoutId, incomplete, start, end);
630            }
631    
632            @Override
633            public java.lang.String[] getTempFileEntryNames(long groupId,
634                    java.lang.String tempFolderName)
635                    throws com.liferay.portal.kernel.exception.PortalException,
636                            com.liferay.portal.kernel.exception.SystemException {
637                    return _layoutService.getTempFileEntryNames(groupId, tempFolderName);
638            }
639    
640            /**
641            * Imports the layouts from the byte array.
642            *
643            * @param groupId the primary key of the group
644            * @param privateLayout whether the layout is private to the group
645            * @param parameterMap the mapping of parameters indicating which
646            information will be imported. For information on the keys used in
647            the map see {@link
648            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
649            * @param bytes the byte array with the data
650            * @throws PortalException if a group with the primary key could not be
651            found, if the group did not have permission to manage the
652            layouts, or if some other portal exception occurred
653            * @throws SystemException if a system exception occurred
654            * @see com.liferay.portal.lar.LayoutImporter
655            */
656            @Override
657            public void importLayouts(long groupId, boolean privateLayout,
658                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
659                    byte[] bytes)
660                    throws com.liferay.portal.kernel.exception.PortalException,
661                            com.liferay.portal.kernel.exception.SystemException {
662                    _layoutService.importLayouts(groupId, privateLayout, parameterMap, bytes);
663            }
664    
665            /**
666            * Imports the layouts from the file.
667            *
668            * @param groupId the primary key of the group
669            * @param privateLayout whether the layout is private to the group
670            * @param parameterMap the mapping of parameters indicating which
671            information will be imported. For information on the keys used in
672            the map see {@link
673            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
674            * @param file the LAR file with the data
675            * @throws PortalException if a group with the primary key could not be
676            found, if the group did not have permission to manage the layouts
677            and publish, or if some other portal exception occurred
678            * @throws SystemException if a system exception occurred
679            * @see com.liferay.portal.lar.LayoutImporter
680            */
681            @Override
682            public void importLayouts(long groupId, boolean privateLayout,
683                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
684                    java.io.File file)
685                    throws com.liferay.portal.kernel.exception.PortalException,
686                            com.liferay.portal.kernel.exception.SystemException {
687                    _layoutService.importLayouts(groupId, privateLayout, parameterMap, file);
688            }
689    
690            /**
691            * Imports the layouts from the input stream.
692            *
693            * @param groupId the primary key of the group
694            * @param privateLayout whether the layout is private to the group
695            * @param parameterMap the mapping of parameters indicating which
696            information will be imported. For information on the keys used in
697            the map see {@link
698            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
699            * @param is the input stream
700            * @throws PortalException if a group with the primary key could not be
701            found, if the group did not have permission to manage the
702            layouts, or if some other portal exception occurred
703            * @throws SystemException if a system exception occurred
704            * @see com.liferay.portal.lar.LayoutImporter
705            */
706            @Override
707            public void importLayouts(long groupId, boolean privateLayout,
708                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
709                    java.io.InputStream is)
710                    throws com.liferay.portal.kernel.exception.PortalException,
711                            com.liferay.portal.kernel.exception.SystemException {
712                    _layoutService.importLayouts(groupId, privateLayout, parameterMap, is);
713            }
714    
715            @Override
716            public long importLayoutsInBackground(java.lang.String taskName,
717                    long groupId, boolean privateLayout,
718                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
719                    java.io.File file)
720                    throws com.liferay.portal.kernel.exception.PortalException,
721                            com.liferay.portal.kernel.exception.SystemException {
722                    return _layoutService.importLayoutsInBackground(taskName, groupId,
723                            privateLayout, parameterMap, file);
724            }
725    
726            /**
727            * Imports the portlet information (categories, permissions, ... etc.) from
728            * the file.
729            *
730            * @param plid the primary key of the layout
731            * @param groupId the primary key of the group
732            * @param portletId the primary key of the portlet
733            * @param parameterMap the mapping of parameters indicating which
734            information will be imported. For information on the keys used in
735            the map see {@link
736            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
737            * @param file the LAR file with the data
738            * @throws PortalException if a group, layout, or portlet with the primary
739            key could not be found, or if the group did not have permission
740            to manage the layouts
741            * @throws SystemException if a system exception occurred
742            */
743            @Override
744            public void importPortletInfo(long plid, long groupId,
745                    java.lang.String portletId,
746                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
747                    java.io.File file)
748                    throws com.liferay.portal.kernel.exception.PortalException,
749                            com.liferay.portal.kernel.exception.SystemException {
750                    _layoutService.importPortletInfo(plid, groupId, portletId,
751                            parameterMap, file);
752            }
753    
754            /**
755            * Imports the portlet information (categories, permissions, ... etc.) from
756            * the input stream.
757            *
758            * @param plid the primary key of the layout
759            * @param groupId the primary key of the group
760            * @param portletId the primary key of the portlet
761            * @param parameterMap the mapping of parameters indicating which
762            information will be imported. For information on the keys used in
763            the map see {@link
764            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
765            * @param is the input stream
766            * @throws PortalException if a group, portlet, or layout with the primary
767            key could not be found or if the group did not have permission to
768            manage the layouts
769            * @throws SystemException if a system exception occurred
770            */
771            @Override
772            public void importPortletInfo(long plid, long groupId,
773                    java.lang.String portletId,
774                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
775                    java.io.InputStream is)
776                    throws com.liferay.portal.kernel.exception.PortalException,
777                            com.liferay.portal.kernel.exception.SystemException {
778                    _layoutService.importPortletInfo(plid, groupId, portletId,
779                            parameterMap, is);
780            }
781    
782            @Override
783            public long importPortletInfoInBackground(java.lang.String taskName,
784                    long plid, long groupId, java.lang.String portletId,
785                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
786                    java.io.File file)
787                    throws com.liferay.portal.kernel.exception.PortalException,
788                            com.liferay.portal.kernel.exception.SystemException {
789                    return _layoutService.importPortletInfoInBackground(taskName, plid,
790                            groupId, portletId, parameterMap, file);
791            }
792    
793            @Override
794            public long importPortletInfoInBackground(java.lang.String taskName,
795                    long plid, long groupId, java.lang.String portletId,
796                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
797                    java.io.InputStream is)
798                    throws com.liferay.portal.kernel.exception.PortalException,
799                            com.liferay.portal.kernel.exception.SystemException {
800                    return _layoutService.importPortletInfoInBackground(taskName, plid,
801                            groupId, portletId, parameterMap, is);
802            }
803    
804            /**
805            * Schedules a range of layouts to be published.
806            *
807            * @param sourceGroupId the primary key of the source group
808            * @param targetGroupId the primary key of the target group
809            * @param privateLayout whether the layout is private to the group
810            * @param layoutIdMap the layouts considered for publishing, specified by
811            the layout IDs and booleans indicating whether they have children
812            * @param parameterMap the mapping of parameters indicating which
813            information will be used. See {@link
814            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}
815            * @param scope the scope of the pages. It can be <code>all-pages</code> or
816            <code>selected-pages</code>.
817            * @param startDate the start date
818            * @param endDate the end date
819            * @param groupName the group name (optionally {@link
820            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
821            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
822            * @param cronText the cron text. See {@link
823            com.liferay.portal.kernel.cal.RecurrenceSerializer #toCronText}
824            * @param schedulerStartDate the scheduler start date
825            * @param schedulerEndDate the scheduler end date
826            * @param description the scheduler description
827            * @throws PortalException if the group did not have permission to manage
828            and publish
829            * @throws SystemException if a system exception occurred
830            */
831            @Override
832            public void schedulePublishToLive(long sourceGroupId, long targetGroupId,
833                    boolean privateLayout,
834                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
835                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
836                    java.lang.String scope, java.util.Date startDate,
837                    java.util.Date endDate, java.lang.String groupName,
838                    java.lang.String cronText, java.util.Date schedulerStartDate,
839                    java.util.Date schedulerEndDate, java.lang.String description)
840                    throws com.liferay.portal.kernel.exception.PortalException,
841                            com.liferay.portal.kernel.exception.SystemException {
842                    _layoutService.schedulePublishToLive(sourceGroupId, targetGroupId,
843                            privateLayout, layoutIdMap, parameterMap, scope, startDate,
844                            endDate, groupName, cronText, schedulerStartDate, schedulerEndDate,
845                            description);
846            }
847    
848            /**
849            * Schedules a range of layouts to be stored.
850            *
851            * @param sourceGroupId the primary key of the source group
852            * @param privateLayout whether the layout is private to the group
853            * @param layoutIdMap the layouts considered for publishing, specified by
854            the layout IDs and booleans indicating whether they have children
855            * @param parameterMap the mapping of parameters indicating which
856            information will be used. See {@link
857            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}
858            * @param remoteAddress the remote address
859            * @param remotePort the remote port
860            * @param remotePathContext the remote path context
861            * @param secureConnection whether the connection is secure
862            * @param remoteGroupId the primary key of the remote group
863            * @param remotePrivateLayout whether remote group's layout is private
864            * @param startDate the start date
865            * @param endDate the end date
866            * @param groupName the group name. Optionally {@link
867            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
868            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
869            * @param cronText the cron text. See {@link
870            com.liferay.portal.kernel.cal.RecurrenceSerializer #toCronText}
871            * @param schedulerStartDate the scheduler start date
872            * @param schedulerEndDate the scheduler end date
873            * @param description the scheduler description
874            * @throws PortalException if a group with the source group primary key was
875            not found or if the group did not have permission to publish
876            * @throws SystemException if a system exception occurred
877            */
878            @Override
879            public void schedulePublishToRemote(long sourceGroupId,
880                    boolean privateLayout,
881                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
882                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
883                    java.lang.String remoteAddress, int remotePort,
884                    java.lang.String remotePathContext, boolean secureConnection,
885                    long remoteGroupId, boolean remotePrivateLayout,
886                    java.util.Date startDate, java.util.Date endDate,
887                    java.lang.String groupName, java.lang.String cronText,
888                    java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
889                    java.lang.String description)
890                    throws com.liferay.portal.kernel.exception.PortalException,
891                            com.liferay.portal.kernel.exception.SystemException {
892                    _layoutService.schedulePublishToRemote(sourceGroupId, privateLayout,
893                            layoutIdMap, parameterMap, remoteAddress, remotePort,
894                            remotePathContext, secureConnection, remoteGroupId,
895                            remotePrivateLayout, startDate, endDate, groupName, cronText,
896                            schedulerStartDate, schedulerEndDate, description);
897            }
898    
899            /**
900            * Sets the layouts for the group, replacing and prioritizing all layouts of
901            * the parent layout.
902            *
903            * @param groupId the primary key of the group
904            * @param privateLayout whether the layout is private to the group
905            * @param parentLayoutId the primary key of the parent layout
906            * @param layoutIds the primary keys of the layouts
907            * @param serviceContext the service context to be applied
908            * @throws PortalException if a group or layout with the primary key could
909            not be found, if the group did not have permission to manage the
910            layouts, if no layouts were specified, if the first layout was
911            not page-able, if the first layout was hidden, or if some other
912            portal exception occurred
913            * @throws SystemException if a system exception occurred
914            */
915            @Override
916            public void setLayouts(long groupId, boolean privateLayout,
917                    long parentLayoutId, long[] layoutIds,
918                    com.liferay.portal.service.ServiceContext serviceContext)
919                    throws com.liferay.portal.kernel.exception.PortalException,
920                            com.liferay.portal.kernel.exception.SystemException {
921                    _layoutService.setLayouts(groupId, privateLayout, parentLayoutId,
922                            layoutIds, serviceContext);
923            }
924    
925            /**
926            * Deletes the job from the scheduler's queue.
927            *
928            * @param groupId the primary key of the group
929            * @param jobName the job name
930            * @param groupName the group name (optionally {@link
931            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
932            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
933            * @throws PortalException if the group did not permission to manage staging
934            and publish
935            * @throws SystemException if a system exception occurred
936            */
937            @Override
938            public void unschedulePublishToLive(long groupId, java.lang.String jobName,
939                    java.lang.String groupName)
940                    throws com.liferay.portal.kernel.exception.PortalException,
941                            com.liferay.portal.kernel.exception.SystemException {
942                    _layoutService.unschedulePublishToLive(groupId, jobName, groupName);
943            }
944    
945            /**
946            * Deletes the job from the scheduler's persistent queue.
947            *
948            * @param groupId the primary key of the group
949            * @param jobName the job name
950            * @param groupName the group name (optionally {@link
951            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
952            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
953            * @throws PortalException if a group with the primary key could not be
954            found or if the group did not have permission to publish
955            * @throws SystemException if a system exception occurred
956            */
957            @Override
958            public void unschedulePublishToRemote(long groupId,
959                    java.lang.String jobName, java.lang.String groupName)
960                    throws com.liferay.portal.kernel.exception.PortalException,
961                            com.liferay.portal.kernel.exception.SystemException {
962                    _layoutService.unschedulePublishToRemote(groupId, jobName, groupName);
963            }
964    
965            /**
966            * Updates the layout with additional parameters.
967            *
968            * @param groupId the primary key of the group
969            * @param privateLayout whether the layout is private to the group
970            * @param layoutId the primary key of the layout
971            * @param parentLayoutId the primary key of the layout's new parent layout
972            * @param localeNamesMap the layout's locales and localized names
973            * @param localeTitlesMap the layout's locales and localized titles
974            * @param descriptionMap the locales and localized descriptions to merge
975            (optionally <code>null</code>)
976            * @param keywordsMap the locales and localized keywords to merge
977            (optionally <code>null</code>)
978            * @param robotsMap the locales and localized robots to merge (optionally
979            <code>null</code>)
980            * @param type the layout's new type (optionally {@link
981            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET})
982            * @param hidden whether the layout is hidden
983            * @param friendlyURLMap the layout's locales and localized friendly URLs.
984            To see how the URL is normalized when accessed see {@link
985            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
986            String)}.
987            * @param iconImage whether the icon image will be updated
988            * @param iconBytes the byte array of the layout's new icon image
989            * @param serviceContext the service context to be applied. Can set the
990            modification date and expando bridge attributes for the layout.
991            * @return the updated layout
992            * @throws PortalException if a group or layout with the primary key could
993            not be found, if the user did not have permission to update the
994            layout, if a unique friendly URL could not be generated, if a
995            valid parent layout ID to use could not be found, or if the
996            layout parameters were invalid
997            * @throws SystemException if a system exception occurred
998            */
999            @Override
1000            public com.liferay.portal.model.Layout updateLayout(long groupId,
1001                    boolean privateLayout, long layoutId, long parentLayoutId,
1002                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
1003                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
1004                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1005                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1006                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1007                    java.lang.String type, boolean hidden,
1008                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
1009                    java.lang.Boolean iconImage, byte[] iconBytes,
1010                    com.liferay.portal.service.ServiceContext serviceContext)
1011                    throws com.liferay.portal.kernel.exception.PortalException,
1012                            com.liferay.portal.kernel.exception.SystemException {
1013                    return _layoutService.updateLayout(groupId, privateLayout, layoutId,
1014                            parentLayoutId, localeNamesMap, localeTitlesMap, descriptionMap,
1015                            keywordsMap, robotsMap, type, hidden, friendlyURLMap, iconImage,
1016                            iconBytes, serviceContext);
1017            }
1018    
1019            /**
1020            * Updates the layout with additional parameters.
1021            *
1022            * @param groupId the primary key of the group
1023            * @param privateLayout whether the layout is private to the group
1024            * @param layoutId the primary key of the layout
1025            * @param parentLayoutId the primary key of the layout's new parent
1026            layout
1027            * @param localeNamesMap the layout's locales and localized names
1028            * @param localeTitlesMap the layout's locales and localized titles
1029            * @param descriptionMap the locales and localized descriptions to
1030            merge (optionally <code>null</code>)
1031            * @param keywordsMap the locales and localized keywords to merge
1032            (optionally <code>null</code>)
1033            * @param robotsMap the locales and localized robots to merge
1034            (optionally <code>null</code>)
1035            * @param type the layout's new type (optionally {@link
1036            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET})
1037            * @param hidden whether the layout is hidden
1038            * @param friendlyURL the layout's locales and new friendly URLs. To
1039            see how the URL is normalized when accessed, see {@link
1040            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1041            String)}.
1042            * @param iconImage whether the icon image will be updated
1043            * @param iconBytes the byte array of the layout's new icon image
1044            * @param serviceContext the service context to be applied. Can set the
1045            modification date and expando bridge attributes for the
1046            layout.
1047            * @return the updated layout
1048            * @throws PortalException if a group or layout with the primary key
1049            could not be found, if the user did not have permission to
1050            update the layout, if a unique friendly URL could not be
1051            generated, if a valid parent layout ID to use could not be
1052            found, or if the layout parameters were invalid
1053            * @throws SystemException if a system exception occurred
1054            * @deprecated As of 6.2.0, replaced by {@link #updateLayout(long, boolean,
1055            long, long, Map, Map, Map, Map, Map, String, boolean, Map,
1056            Boolean, byte[], ServiceContext)}
1057            */
1058            @Override
1059            public com.liferay.portal.model.Layout updateLayout(long groupId,
1060                    boolean privateLayout, long layoutId, long parentLayoutId,
1061                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
1062                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
1063                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1064                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1065                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1066                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
1067                    java.lang.Boolean iconImage, byte[] iconBytes,
1068                    com.liferay.portal.service.ServiceContext serviceContext)
1069                    throws com.liferay.portal.kernel.exception.PortalException,
1070                            com.liferay.portal.kernel.exception.SystemException {
1071                    return _layoutService.updateLayout(groupId, privateLayout, layoutId,
1072                            parentLayoutId, localeNamesMap, localeTitlesMap, descriptionMap,
1073                            keywordsMap, robotsMap, type, hidden, friendlyURL, iconImage,
1074                            iconBytes, serviceContext);
1075            }
1076    
1077            /**
1078            * Updates the layout replacing its type settings.
1079            *
1080            * @param groupId the primary key of the group
1081            * @param privateLayout whether the layout is private to the group
1082            * @param layoutId the primary key of the layout
1083            * @param typeSettings the settings to load the unicode properties object.
1084            See {@link com.liferay.portal.kernel.util.UnicodeProperties
1085            #fastLoad(String)}.
1086            * @return the updated layout
1087            * @throws PortalException if a matching layout could not be found or if the
1088            user did not have permission to update the layout
1089            * @throws SystemException if a system exception occurred
1090            */
1091            @Override
1092            public com.liferay.portal.model.Layout updateLayout(long groupId,
1093                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
1094                    throws com.liferay.portal.kernel.exception.PortalException,
1095                            com.liferay.portal.kernel.exception.SystemException {
1096                    return _layoutService.updateLayout(groupId, privateLayout, layoutId,
1097                            typeSettings);
1098            }
1099    
1100            /**
1101            * Updates the look and feel of the layout.
1102            *
1103            * @param groupId the primary key of the group
1104            * @param privateLayout whether the layout is private to the group
1105            * @param layoutId the primary key of the layout
1106            * @param themeId the primary key of the layout's new theme
1107            * @param colorSchemeId the primary key of the layout's new color scheme
1108            * @param css the layout's new CSS
1109            * @param wapTheme whether the theme is for WAP browsers
1110            * @return the updated layout
1111            * @throws PortalException if a matching layout could not be found, or if
1112            the user did not have permission to update the layout and
1113            permission to apply the theme
1114            * @throws SystemException if a system exception occurred
1115            */
1116            @Override
1117            public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
1118                    boolean privateLayout, long layoutId, java.lang.String themeId,
1119                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1120                    throws com.liferay.portal.kernel.exception.PortalException,
1121                            com.liferay.portal.kernel.exception.SystemException {
1122                    return _layoutService.updateLookAndFeel(groupId, privateLayout,
1123                            layoutId, themeId, colorSchemeId, css, wapTheme);
1124            }
1125    
1126            /**
1127            * Updates the name of the layout matching the group, layout ID, and
1128            * privacy.
1129            *
1130            * @param groupId the primary key of the group
1131            * @param privateLayout whether the layout is private to the group
1132            * @param layoutId the primary key of the layout
1133            * @param name the layout's new name
1134            * @param languageId the primary key of the language. For more information
1135            see {@link java.util.Locale}.
1136            * @return the updated layout
1137            * @throws PortalException if a matching layout could not be found, if the
1138            user did not have permission to update the layout, or if the new
1139            name was <code>null</code>
1140            * @throws SystemException if a system exception occurred
1141            */
1142            @Override
1143            public com.liferay.portal.model.Layout updateName(long groupId,
1144                    boolean privateLayout, long layoutId, java.lang.String name,
1145                    java.lang.String languageId)
1146                    throws com.liferay.portal.kernel.exception.PortalException,
1147                            com.liferay.portal.kernel.exception.SystemException {
1148                    return _layoutService.updateName(groupId, privateLayout, layoutId,
1149                            name, languageId);
1150            }
1151    
1152            /**
1153            * Updates the name of the layout matching the primary key.
1154            *
1155            * @param plid the primary key of the layout
1156            * @param name the name to be assigned
1157            * @param languageId the primary key of the language. For more information
1158            see {@link java.util.Locale}.
1159            * @return the updated layout
1160            * @throws PortalException if a layout with the primary key could not be
1161            found, or if the user did not have permission to update the
1162            layout, or if the name was <code>null</code>
1163            * @throws SystemException if a system exception occurred
1164            */
1165            @Override
1166            public com.liferay.portal.model.Layout updateName(long plid,
1167                    java.lang.String name, java.lang.String languageId)
1168                    throws com.liferay.portal.kernel.exception.PortalException,
1169                            com.liferay.portal.kernel.exception.SystemException {
1170                    return _layoutService.updateName(plid, name, languageId);
1171            }
1172    
1173            /**
1174            * Updates the parent layout ID of the layout matching the group, layout ID,
1175            * and privacy.
1176            *
1177            * @param groupId the primary key of the group
1178            * @param privateLayout whether the layout is private to the group
1179            * @param layoutId the primary key of the layout
1180            * @param parentLayoutId the primary key to be assigned to the parent
1181            layout
1182            * @return the matching layout
1183            * @throws PortalException if a valid parent layout ID to use could not be
1184            found, if a matching layout could not be found, or if the user
1185            did not have permission to update the layout
1186            * @throws SystemException if a system exception occurred
1187            */
1188            @Override
1189            public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
1190                    boolean privateLayout, long layoutId, long parentLayoutId)
1191                    throws com.liferay.portal.kernel.exception.PortalException,
1192                            com.liferay.portal.kernel.exception.SystemException {
1193                    return _layoutService.updateParentLayoutId(groupId, privateLayout,
1194                            layoutId, parentLayoutId);
1195            }
1196    
1197            /**
1198            * Updates the parent layout ID of the layout matching the primary key. If a
1199            * layout matching the parent primary key is found, the layout ID of that
1200            * layout is assigned, otherwise {@link
1201            * com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID} is
1202            * assigned.
1203            *
1204            * @param plid the primary key of the layout
1205            * @param parentPlid the primary key of the parent layout
1206            * @return the layout matching the primary key
1207            * @throws PortalException if a layout with the primary key could not be
1208            found, if the user did not have permission to update the layout,
1209            or if a valid parent layout ID to use could not be found
1210            * @throws SystemException if a system exception occurred
1211            */
1212            @Override
1213            public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
1214                    long parentPlid)
1215                    throws com.liferay.portal.kernel.exception.PortalException,
1216                            com.liferay.portal.kernel.exception.SystemException {
1217                    return _layoutService.updateParentLayoutId(plid, parentPlid);
1218            }
1219    
1220            /**
1221            * Updates the priority of the layout matching the group, layout ID, and
1222            * privacy.
1223            *
1224            * @param groupId the primary key of the group
1225            * @param privateLayout whether the layout is private to the group
1226            * @param layoutId the primary key of the layout
1227            * @param priority the layout's new priority
1228            * @return the updated layout
1229            * @throws PortalException if a matching layout could not be found or if the
1230            user did not have permission to update the layout
1231            * @throws SystemException if a system exception occurred
1232            */
1233            @Override
1234            public com.liferay.portal.model.Layout updatePriority(long groupId,
1235                    boolean privateLayout, long layoutId, int priority)
1236                    throws com.liferay.portal.kernel.exception.PortalException,
1237                            com.liferay.portal.kernel.exception.SystemException {
1238                    return _layoutService.updatePriority(groupId, privateLayout, layoutId,
1239                            priority);
1240            }
1241    
1242            /**
1243            * Updates the priority of the layout matching the primary key.
1244            *
1245            * @param plid the primary key of the layout
1246            * @param priority the layout's new priority
1247            * @return the updated layout
1248            * @throws PortalException if a layout with the primary key could not be
1249            found
1250            * @throws SystemException if a system exception occurred
1251            */
1252            @Override
1253            public com.liferay.portal.model.Layout updatePriority(long plid,
1254                    int priority)
1255                    throws com.liferay.portal.kernel.exception.PortalException,
1256                            com.liferay.portal.kernel.exception.SystemException {
1257                    return _layoutService.updatePriority(plid, priority);
1258            }
1259    
1260            @Override
1261            public com.liferay.portal.kernel.lar.MissingReferences validateImportLayoutsFile(
1262                    long groupId, boolean privateLayout,
1263                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1264                    java.io.File file)
1265                    throws com.liferay.portal.kernel.exception.PortalException,
1266                            com.liferay.portal.kernel.exception.SystemException {
1267                    return _layoutService.validateImportLayoutsFile(groupId, privateLayout,
1268                            parameterMap, file);
1269            }
1270    
1271            @Override
1272            public com.liferay.portal.kernel.lar.MissingReferences validateImportPortletInfo(
1273                    long plid, long groupId, java.lang.String portletId,
1274                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1275                    java.io.File file)
1276                    throws com.liferay.portal.kernel.exception.PortalException,
1277                            com.liferay.portal.kernel.exception.SystemException {
1278                    return _layoutService.validateImportPortletInfo(plid, groupId,
1279                            portletId, parameterMap, file);
1280            }
1281    
1282            /**
1283             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
1284             */
1285            public LayoutService getWrappedLayoutService() {
1286                    return _layoutService;
1287            }
1288    
1289            /**
1290             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
1291             */
1292            public void setWrappedLayoutService(LayoutService layoutService) {
1293                    _layoutService = layoutService;
1294            }
1295    
1296            @Override
1297            public LayoutService getWrappedService() {
1298                    return _layoutService;
1299            }
1300    
1301            @Override
1302            public void setWrappedService(LayoutService layoutService) {
1303                    _layoutService = layoutService;
1304            }
1305    
1306            private LayoutService _layoutService;
1307    }