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