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                    throws com.liferay.portal.kernel.exception.PortalException {
608                    return _layoutService.getLayouts(groupId, privateLayout,
609                            parentLayoutId, incomplete, start, end);
610            }
611    
612            @Override
613            public int getLayoutsCount(long groupId, boolean privateLayout,
614                    long parentLayoutId) {
615                    return _layoutService.getLayoutsCount(groupId, privateLayout,
616                            parentLayoutId);
617            }
618    
619            @Override
620            public java.lang.String[] getTempFileNames(long groupId,
621                    java.lang.String folderName)
622                    throws com.liferay.portal.kernel.exception.PortalException {
623                    return _layoutService.getTempFileNames(groupId, folderName);
624            }
625    
626            /**
627            * Imports the layouts from the byte array.
628            *
629            * @param groupId the primary key of the group
630            * @param privateLayout whether the layout is private to the group
631            * @param parameterMap the mapping of parameters indicating which
632            information will be imported. For information on the keys used in
633            the map see {@link
634            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
635            * @param bytes the byte array with the data
636            * @throws PortalException if a group with the primary key could not be
637            found, if the group did not have permission to manage the
638            layouts, or if some other portal exception occurred
639            * @see com.liferay.portal.lar.LayoutImporter
640            */
641            @Override
642            public void importLayouts(long groupId, boolean privateLayout,
643                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
644                    byte[] bytes)
645                    throws com.liferay.portal.kernel.exception.PortalException {
646                    _layoutService.importLayouts(groupId, privateLayout, parameterMap, bytes);
647            }
648    
649            /**
650            * Imports the layouts from the file.
651            *
652            * @param groupId the primary key of the group
653            * @param privateLayout whether the layout is private to the group
654            * @param parameterMap the mapping of parameters indicating which
655            information will be imported. For information on the keys used in
656            the map see {@link
657            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
658            * @param file the LAR file with the data
659            * @throws PortalException if a group with the primary key could not be
660            found, if the group did not have permission to manage the layouts
661            and publish, or if some other portal exception occurred
662            * @see com.liferay.portal.lar.LayoutImporter
663            */
664            @Override
665            public void importLayouts(long groupId, boolean privateLayout,
666                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
667                    java.io.File file)
668                    throws com.liferay.portal.kernel.exception.PortalException {
669                    _layoutService.importLayouts(groupId, privateLayout, parameterMap, file);
670            }
671    
672            /**
673            * Imports the layouts from the input stream.
674            *
675            * @param groupId the primary key of the group
676            * @param privateLayout whether the layout is private to the group
677            * @param parameterMap the mapping of parameters indicating which
678            information will be imported. For information on the keys used in
679            the map see {@link
680            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
681            * @param is the input stream
682            * @throws PortalException if a group with the primary key could not be
683            found, if the group did not have permission to manage the
684            layouts, or if some other portal exception occurred
685            * @see com.liferay.portal.lar.LayoutImporter
686            */
687            @Override
688            public void importLayouts(long groupId, boolean privateLayout,
689                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
690                    java.io.InputStream is)
691                    throws com.liferay.portal.kernel.exception.PortalException {
692                    _layoutService.importLayouts(groupId, privateLayout, parameterMap, is);
693            }
694    
695            @Override
696            public long importLayoutsInBackground(java.lang.String taskName,
697                    long groupId, boolean privateLayout,
698                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
699                    java.io.File file)
700                    throws com.liferay.portal.kernel.exception.PortalException {
701                    return _layoutService.importLayoutsInBackground(taskName, groupId,
702                            privateLayout, parameterMap, file);
703            }
704    
705            @Override
706            public long importLayoutsInBackground(java.lang.String taskName,
707                    long groupId, boolean privateLayout,
708                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
709                    java.io.InputStream inputStream)
710                    throws com.liferay.portal.kernel.exception.PortalException {
711                    return _layoutService.importLayoutsInBackground(taskName, groupId,
712                            privateLayout, parameterMap, inputStream);
713            }
714    
715            /**
716            * Imports the portlet information (categories, permissions, ... etc.) from
717            * the file.
718            *
719            * @param plid the primary key of the layout
720            * @param groupId the primary key of the group
721            * @param portletId the primary key of the portlet
722            * @param parameterMap the mapping of parameters indicating which
723            information will be imported. For information on the keys used in
724            the map see {@link
725            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
726            * @param file the LAR file with the data
727            * @throws PortalException if a group, layout, or portlet with the primary
728            key could not be found, or if the group did not have permission
729            to manage the layouts
730            */
731            @Override
732            public void importPortletInfo(long plid, long groupId,
733                    java.lang.String portletId,
734                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
735                    java.io.File file)
736                    throws com.liferay.portal.kernel.exception.PortalException {
737                    _layoutService.importPortletInfo(plid, groupId, portletId,
738                            parameterMap, file);
739            }
740    
741            /**
742            * Imports the portlet information (categories, permissions, ... etc.) from
743            * the input stream.
744            *
745            * @param plid the primary key of the layout
746            * @param groupId the primary key of the group
747            * @param portletId the primary key of the portlet
748            * @param parameterMap the mapping of parameters indicating which
749            information will be imported. For information on the keys used in
750            the map see {@link
751            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
752            * @param is the input stream
753            * @throws PortalException if a group, portlet, or layout with the primary
754            key could not be found or if the group did not have permission to
755            manage the layouts
756            */
757            @Override
758            public void importPortletInfo(long plid, long groupId,
759                    java.lang.String portletId,
760                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
761                    java.io.InputStream is)
762                    throws com.liferay.portal.kernel.exception.PortalException {
763                    _layoutService.importPortletInfo(plid, groupId, portletId,
764                            parameterMap, is);
765            }
766    
767            @Override
768            public void importPortletInfo(java.lang.String portletId,
769                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
770                    java.io.File file)
771                    throws com.liferay.portal.kernel.exception.PortalException {
772                    _layoutService.importPortletInfo(portletId, parameterMap, file);
773            }
774    
775            @Override
776            public void importPortletInfo(java.lang.String portletId,
777                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
778                    java.io.InputStream is)
779                    throws com.liferay.portal.kernel.exception.PortalException {
780                    _layoutService.importPortletInfo(portletId, parameterMap, is);
781            }
782    
783            @Override
784            public long importPortletInfoInBackground(java.lang.String taskName,
785                    long plid, long groupId, java.lang.String portletId,
786                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
787                    java.io.File file)
788                    throws com.liferay.portal.kernel.exception.PortalException {
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                    return _layoutService.importPortletInfoInBackground(taskName, plid,
800                            groupId, portletId, parameterMap, is);
801            }
802    
803            @Override
804            public void importPortletInfoInBackground(java.lang.String taskName,
805                    java.lang.String portletId,
806                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
807                    java.io.File file)
808                    throws com.liferay.portal.kernel.exception.PortalException {
809                    _layoutService.importPortletInfoInBackground(taskName, portletId,
810                            parameterMap, file);
811            }
812    
813            @Override
814            public void importPortletInfoInBackground(java.lang.String taskName,
815                    java.lang.String portletId,
816                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
817                    java.io.InputStream is)
818                    throws com.liferay.portal.kernel.exception.PortalException {
819                    _layoutService.importPortletInfoInBackground(taskName, portletId,
820                            parameterMap, is);
821            }
822    
823            /**
824            * Schedules a range of layouts to be published.
825            *
826            * @param sourceGroupId the primary key of the source group
827            * @param targetGroupId the primary key of the target group
828            * @param privateLayout whether the layout is private to the group
829            * @param layoutIdMap the layouts considered for publishing, specified
830            by the layout IDs and booleans indicating whether they have
831            children
832            * @param parameterMap the mapping of parameters indicating which
833            information will be used. See {@link
834            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}
835            * @param scope the scope of the pages. It can be
836            <code>all-pages</code> or <code>selected-pages</code>.
837            * @param startDate the start date
838            * @param endDate the end date
839            * @param groupName the group name (optionally {@link
840            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
841            See {@link
842            com.liferay.portal.kernel.messaging.DestinationNames}.
843            * @param cronText the cron text. See {@link
844            com.liferay.portal.kernel.cal.RecurrenceSerializer
845            #toCronText}
846            * @param schedulerStartDate the scheduler start date
847            * @param schedulerEndDate the scheduler end date
848            * @param description the scheduler description
849            * @throws PortalException if the group did not have permission to
850            manage and publish
851            * @deprecated As of 7.0.0, replaced by {@link #schedulePublishToLive(long,
852            long, boolean, long[], Map, String, Date, Date, String,
853            String, Date, Date, String)}
854            */
855            @Deprecated
856            @Override
857            public void schedulePublishToLive(long sourceGroupId, long targetGroupId,
858                    boolean privateLayout,
859                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
860                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
861                    java.lang.String scope, java.util.Date startDate,
862                    java.util.Date endDate, java.lang.String groupName,
863                    java.lang.String cronText, java.util.Date schedulerStartDate,
864                    java.util.Date schedulerEndDate, java.lang.String description)
865                    throws com.liferay.portal.kernel.exception.PortalException {
866                    _layoutService.schedulePublishToLive(sourceGroupId, targetGroupId,
867                            privateLayout, layoutIdMap, parameterMap, scope, startDate,
868                            endDate, groupName, cronText, schedulerStartDate, schedulerEndDate,
869                            description);
870            }
871    
872            /**
873            * Schedules a range of layouts to be published.
874            *
875            * @param sourceGroupId the primary key of the source group
876            * @param targetGroupId the primary key of the target group
877            * @param privateLayout whether the layout is private to the group
878            * @param layoutIds the layouts considered for publishing, specified by the
879            layout IDs
880            * @param parameterMap the mapping of parameters indicating which
881            information will be used. See {@link
882            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}
883            * @param scope the scope of the pages. It can be <code>all-pages</code> or
884            <code>selected-pages</code>.
885            * @param startDate the start date
886            * @param endDate the end date
887            * @param groupName the group name (optionally {@link
888            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
889            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
890            * @param cronText the cron text. See {@link
891            com.liferay.portal.kernel.cal.RecurrenceSerializer #toCronText}
892            * @param schedulerStartDate the scheduler start date
893            * @param schedulerEndDate the scheduler end date
894            * @param description the scheduler description
895            * @throws PortalException if the group did not have permission to manage
896            and publish
897            */
898            @Override
899            public void schedulePublishToLive(long sourceGroupId, long targetGroupId,
900                    boolean privateLayout, long[] layoutIds,
901                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
902                    java.lang.String scope, java.util.Date startDate,
903                    java.util.Date endDate, java.lang.String groupName,
904                    java.lang.String cronText, java.util.Date schedulerStartDate,
905                    java.util.Date schedulerEndDate, java.lang.String description)
906                    throws com.liferay.portal.kernel.exception.PortalException {
907                    _layoutService.schedulePublishToLive(sourceGroupId, targetGroupId,
908                            privateLayout, layoutIds, parameterMap, scope, startDate, endDate,
909                            groupName, cronText, schedulerStartDate, schedulerEndDate,
910                            description);
911            }
912    
913            /**
914            * Schedules a range of layouts to be stored.
915            *
916            * @param sourceGroupId the primary key of the source group
917            * @param privateLayout whether the layout is private to the group
918            * @param layoutIdMap the layouts considered for publishing, specified by
919            the layout IDs and booleans indicating whether they have children
920            * @param parameterMap the mapping of parameters indicating which
921            information will be used. See {@link
922            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}
923            * @param remoteAddress the remote address
924            * @param remotePort the remote port
925            * @param remotePathContext the remote path context
926            * @param secureConnection whether the connection is secure
927            * @param remoteGroupId the primary key of the remote group
928            * @param remotePrivateLayout whether remote group's layout is private
929            * @param startDate the start date
930            * @param endDate the end date
931            * @param groupName the group name. Optionally {@link
932            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
933            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
934            * @param cronText the cron text. See {@link
935            com.liferay.portal.kernel.cal.RecurrenceSerializer #toCronText}
936            * @param schedulerStartDate the scheduler start date
937            * @param schedulerEndDate the scheduler end date
938            * @param description the scheduler description
939            * @throws PortalException if a group with the source group primary key was
940            not found or if the group did not have permission to publish
941            */
942            @Override
943            public void schedulePublishToRemote(long sourceGroupId,
944                    boolean privateLayout,
945                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
946                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
947                    java.lang.String remoteAddress, int remotePort,
948                    java.lang.String remotePathContext, boolean secureConnection,
949                    long remoteGroupId, boolean remotePrivateLayout,
950                    java.util.Date startDate, java.util.Date endDate,
951                    java.lang.String groupName, java.lang.String cronText,
952                    java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
953                    java.lang.String description)
954                    throws com.liferay.portal.kernel.exception.PortalException {
955                    _layoutService.schedulePublishToRemote(sourceGroupId, privateLayout,
956                            layoutIdMap, parameterMap, remoteAddress, remotePort,
957                            remotePathContext, secureConnection, remoteGroupId,
958                            remotePrivateLayout, startDate, endDate, groupName, cronText,
959                            schedulerStartDate, schedulerEndDate, description);
960            }
961    
962            /**
963            * Sets the Spring bean ID for this bean.
964            *
965            * @param beanIdentifier the Spring bean ID for this bean
966            */
967            @Override
968            public void setBeanIdentifier(java.lang.String beanIdentifier) {
969                    _layoutService.setBeanIdentifier(beanIdentifier);
970            }
971    
972            /**
973            * Sets the layouts for the group, replacing and prioritizing all layouts of
974            * the parent layout.
975            *
976            * @param groupId the primary key of the group
977            * @param privateLayout whether the layout is private to the group
978            * @param parentLayoutId the primary key of the parent layout
979            * @param layoutIds the primary keys of the layouts
980            * @param serviceContext the service context to be applied
981            * @throws PortalException if a group or layout with the primary key could
982            not be found, if the group did not have permission to manage the
983            layouts, if no layouts were specified, if the first layout was
984            not page-able, if the first layout was hidden, or if some other
985            portal exception occurred
986            */
987            @Override
988            public void setLayouts(long groupId, boolean privateLayout,
989                    long parentLayoutId, long[] layoutIds,
990                    com.liferay.portal.service.ServiceContext serviceContext)
991                    throws com.liferay.portal.kernel.exception.PortalException {
992                    _layoutService.setLayouts(groupId, privateLayout, parentLayoutId,
993                            layoutIds, serviceContext);
994            }
995    
996            /**
997            * Deletes the job from the scheduler's queue.
998            *
999            * @param groupId the primary key of the group
1000            * @param jobName the job name
1001            * @param groupName the group name (optionally {@link
1002            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
1003            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
1004            * @throws PortalException if the group did not permission to manage staging
1005            and publish
1006            */
1007            @Override
1008            public void unschedulePublishToLive(long groupId, java.lang.String jobName,
1009                    java.lang.String groupName)
1010                    throws com.liferay.portal.kernel.exception.PortalException {
1011                    _layoutService.unschedulePublishToLive(groupId, jobName, groupName);
1012            }
1013    
1014            /**
1015            * Deletes the job from the scheduler's persistent queue.
1016            *
1017            * @param groupId the primary key of the group
1018            * @param jobName the job name
1019            * @param groupName the group name (optionally {@link
1020            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
1021            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
1022            * @throws PortalException if a group with the primary key could not be
1023            found or if the group did not have permission to publish
1024            */
1025            @Override
1026            public void unschedulePublishToRemote(long groupId,
1027                    java.lang.String jobName, java.lang.String groupName)
1028                    throws com.liferay.portal.kernel.exception.PortalException {
1029                    _layoutService.unschedulePublishToRemote(groupId, jobName, groupName);
1030            }
1031    
1032            @Override
1033            public com.liferay.portal.model.Layout updateIconImage(long plid,
1034                    byte[] bytes)
1035                    throws com.liferay.portal.kernel.exception.PortalException {
1036                    return _layoutService.updateIconImage(plid, bytes);
1037            }
1038    
1039            /**
1040            * Updates the layout with additional parameters.
1041            *
1042            * @param groupId the primary key of the group
1043            * @param privateLayout whether the layout is private to the group
1044            * @param layoutId the primary key of the layout
1045            * @param parentLayoutId the primary key of the layout's new parent
1046            layout
1047            * @param localeNamesMap the layout's locales and localized names
1048            * @param localeTitlesMap the layout's locales and localized titles
1049            * @param descriptionMap the locales and localized descriptions to
1050            merge (optionally <code>null</code>)
1051            * @param keywordsMap the locales and localized keywords to merge
1052            (optionally <code>null</code>)
1053            * @param robotsMap the locales and localized robots to merge
1054            (optionally <code>null</code>)
1055            * @param type the layout's new type (optionally {@link
1056            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET})
1057            * @param hidden whether the layout is hidden
1058            * @param friendlyURL the layout's locales and new friendly URLs. To
1059            see how the URL is normalized when accessed, see {@link
1060            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1061            String)}.
1062            * @param iconImage whether the icon image will be updated
1063            * @param iconBytes the byte array of the layout's new icon image
1064            * @param serviceContext the service context to be applied. Can set the
1065            modification date and expando bridge attributes for the
1066            layout.
1067            * @return the updated layout
1068            * @throws PortalException if a group or layout with the primary key
1069            could not be found, if the user did not have permission to
1070            update the layout, if a unique friendly URL could not be
1071            generated, if a valid parent layout ID to use could not be
1072            found, or if the layout parameters were invalid
1073            * @deprecated As of 6.2.0, replaced by {@link #updateLayout(long, boolean,
1074            long, long, Map, Map, Map, Map, Map, String, boolean, Map,
1075            Boolean, byte[], ServiceContext)}
1076            */
1077            @Deprecated
1078            @Override
1079            public com.liferay.portal.model.Layout updateLayout(long groupId,
1080                    boolean privateLayout, long layoutId, long parentLayoutId,
1081                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
1082                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
1083                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1084                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1085                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1086                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
1087                    java.lang.Boolean iconImage, byte[] iconBytes,
1088                    com.liferay.portal.service.ServiceContext serviceContext)
1089                    throws com.liferay.portal.kernel.exception.PortalException {
1090                    return _layoutService.updateLayout(groupId, privateLayout, layoutId,
1091                            parentLayoutId, localeNamesMap, localeTitlesMap, descriptionMap,
1092                            keywordsMap, robotsMap, type, hidden, friendlyURL, iconImage,
1093                            iconBytes, serviceContext);
1094            }
1095    
1096            /**
1097            * Updates the layout with additional parameters.
1098            *
1099            * @param groupId the primary key of the group
1100            * @param privateLayout whether the layout is private to the group
1101            * @param layoutId the primary key of the layout
1102            * @param parentLayoutId the primary key of the layout's new parent layout
1103            * @param localeNamesMap the layout's locales and localized names
1104            * @param localeTitlesMap the layout's locales and localized titles
1105            * @param descriptionMap the locales and localized descriptions to merge
1106            (optionally <code>null</code>)
1107            * @param keywordsMap the locales and localized keywords to merge
1108            (optionally <code>null</code>)
1109            * @param robotsMap the locales and localized robots to merge (optionally
1110            <code>null</code>)
1111            * @param type the layout's new type (optionally {@link
1112            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET})
1113            * @param hidden whether the layout is hidden
1114            * @param friendlyURLMap the layout's locales and localized friendly URLs.
1115            To see how the URL is normalized when accessed see {@link
1116            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1117            String)}.
1118            * @param iconImage whether the icon image will be updated
1119            * @param iconBytes the byte array of the layout's new icon image
1120            * @param serviceContext the service context to be applied. Can set the
1121            modification date and expando bridge attributes for the layout.
1122            * @return the updated layout
1123            * @throws PortalException if a group or layout with the primary key could
1124            not be found, if the user did not have permission to update the
1125            layout, if a unique friendly URL could not be generated, if a
1126            valid parent layout ID to use could not be found, or if the
1127            layout parameters were invalid
1128            */
1129            @Override
1130            public com.liferay.portal.model.Layout updateLayout(long groupId,
1131                    boolean privateLayout, long layoutId, long parentLayoutId,
1132                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
1133                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
1134                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1135                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1136                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1137                    java.lang.String type, boolean hidden,
1138                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
1139                    boolean iconImage, byte[] iconBytes,
1140                    com.liferay.portal.service.ServiceContext serviceContext)
1141                    throws com.liferay.portal.kernel.exception.PortalException {
1142                    return _layoutService.updateLayout(groupId, privateLayout, layoutId,
1143                            parentLayoutId, localeNamesMap, localeTitlesMap, descriptionMap,
1144                            keywordsMap, robotsMap, type, hidden, friendlyURLMap, iconImage,
1145                            iconBytes, serviceContext);
1146            }
1147    
1148            /**
1149            * Updates the layout replacing its type settings.
1150            *
1151            * @param groupId the primary key of the group
1152            * @param privateLayout whether the layout is private to the group
1153            * @param layoutId the primary key of the layout
1154            * @param typeSettings the settings to load the unicode properties object.
1155            See {@link com.liferay.portal.kernel.util.UnicodeProperties
1156            #fastLoad(String)}.
1157            * @return the updated layout
1158            * @throws PortalException if a matching layout could not be found or if the
1159            user did not have permission to update the layout
1160            */
1161            @Override
1162            public com.liferay.portal.model.Layout updateLayout(long groupId,
1163                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
1164                    throws com.liferay.portal.kernel.exception.PortalException {
1165                    return _layoutService.updateLayout(groupId, privateLayout, layoutId,
1166                            typeSettings);
1167            }
1168    
1169            /**
1170            * Updates the look and feel of the layout.
1171            *
1172            * @param groupId the primary key of the group
1173            * @param privateLayout whether the layout is private to the group
1174            * @param layoutId the primary key of the layout
1175            * @param themeId the primary key of the layout's new theme
1176            * @param colorSchemeId the primary key of the layout's new color scheme
1177            * @param css the layout's new CSS
1178            * @param wapTheme whether the theme is for WAP browsers
1179            * @return the updated layout
1180            * @throws PortalException if a matching layout could not be found, or if
1181            the user did not have permission to update the layout and
1182            permission to apply the theme
1183            */
1184            @Override
1185            public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
1186                    boolean privateLayout, long layoutId, java.lang.String themeId,
1187                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1188                    throws com.liferay.portal.kernel.exception.PortalException {
1189                    return _layoutService.updateLookAndFeel(groupId, privateLayout,
1190                            layoutId, themeId, colorSchemeId, css, wapTheme);
1191            }
1192    
1193            /**
1194            * Updates the name of the layout matching the group, layout ID, and
1195            * privacy.
1196            *
1197            * @param groupId the primary key of the group
1198            * @param privateLayout whether the layout is private to the group
1199            * @param layoutId the primary key of the layout
1200            * @param name the layout's new name
1201            * @param languageId the primary key of the language. For more information
1202            see {@link java.util.Locale}.
1203            * @return the updated layout
1204            * @throws PortalException if a matching layout could not be found, if the
1205            user did not have permission to update the layout, or if the new
1206            name was <code>null</code>
1207            */
1208            @Override
1209            public com.liferay.portal.model.Layout updateName(long groupId,
1210                    boolean privateLayout, long layoutId, java.lang.String name,
1211                    java.lang.String languageId)
1212                    throws com.liferay.portal.kernel.exception.PortalException {
1213                    return _layoutService.updateName(groupId, privateLayout, layoutId,
1214                            name, languageId);
1215            }
1216    
1217            /**
1218            * Updates the name of the layout matching the primary key.
1219            *
1220            * @param plid the primary key of the layout
1221            * @param name the name to be assigned
1222            * @param languageId the primary key of the language. For more information
1223            see {@link java.util.Locale}.
1224            * @return the updated layout
1225            * @throws PortalException if a layout with the primary key could not be
1226            found, or if the user did not have permission to update the
1227            layout, or if the name was <code>null</code>
1228            */
1229            @Override
1230            public com.liferay.portal.model.Layout updateName(long plid,
1231                    java.lang.String name, java.lang.String languageId)
1232                    throws com.liferay.portal.kernel.exception.PortalException {
1233                    return _layoutService.updateName(plid, name, languageId);
1234            }
1235    
1236            /**
1237            * Updates the parent layout ID of the layout matching the group, layout ID,
1238            * and privacy.
1239            *
1240            * @param groupId the primary key of the group
1241            * @param privateLayout whether the layout is private to the group
1242            * @param layoutId the primary key of the layout
1243            * @param parentLayoutId the primary key to be assigned to the parent
1244            layout
1245            * @return the matching layout
1246            * @throws PortalException if a valid parent layout ID to use could not be
1247            found, if a matching layout could not be found, or if the user
1248            did not have permission to update the layout
1249            */
1250            @Override
1251            public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
1252                    boolean privateLayout, long layoutId, long parentLayoutId)
1253                    throws com.liferay.portal.kernel.exception.PortalException {
1254                    return _layoutService.updateParentLayoutId(groupId, privateLayout,
1255                            layoutId, parentLayoutId);
1256            }
1257    
1258            /**
1259            * Updates the parent layout ID of the layout matching the primary key. If a
1260            * layout matching the parent primary key is found, the layout ID of that
1261            * layout is assigned, otherwise {@link
1262            * com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID} is
1263            * assigned.
1264            *
1265            * @param plid the primary key of the layout
1266            * @param parentPlid the primary key of the parent layout
1267            * @return the layout matching the primary key
1268            * @throws PortalException if a layout with the primary key could not be
1269            found, if the user did not have permission to update the layout,
1270            or if a valid parent layout ID to use could not be found
1271            */
1272            @Override
1273            public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
1274                    long parentPlid)
1275                    throws com.liferay.portal.kernel.exception.PortalException {
1276                    return _layoutService.updateParentLayoutId(plid, parentPlid);
1277            }
1278    
1279            /**
1280            * Updates the parent layout ID and priority of the layout.
1281            *
1282            * @param plid the primary key of the layout
1283            * @param parentPlid the primary key of the parent layout
1284            * @param priority the layout's new priority
1285            * @return the layout matching the primary key
1286            * @throws PortalException if a portal exception occurred
1287            */
1288            @Override
1289            public com.liferay.portal.model.Layout updateParentLayoutIdAndPriority(
1290                    long plid, long parentPlid, int priority)
1291                    throws com.liferay.portal.kernel.exception.PortalException {
1292                    return _layoutService.updateParentLayoutIdAndPriority(plid, parentPlid,
1293                            priority);
1294            }
1295    
1296            /**
1297            * Updates the priority of the layout matching the group, layout ID, and
1298            * privacy, setting the layout's priority based on the priorities of the
1299            * next and previous layouts.
1300            *
1301            * @param groupId the primary key of the group
1302            * @param privateLayout whether the layout is private to the group
1303            * @param layoutId the primary key of the layout
1304            * @param nextLayoutId the primary key of the next layout
1305            * @param previousLayoutId the primary key of the previous layout
1306            * @return the updated layout
1307            * @throws PortalException if a matching layout could not be found or if the
1308            user did not have permission to update the layout
1309            */
1310            @Override
1311            public com.liferay.portal.model.Layout updatePriority(long groupId,
1312                    boolean privateLayout, long layoutId, long nextLayoutId,
1313                    long previousLayoutId)
1314                    throws com.liferay.portal.kernel.exception.PortalException {
1315                    return _layoutService.updatePriority(groupId, privateLayout, layoutId,
1316                            nextLayoutId, previousLayoutId);
1317            }
1318    
1319            /**
1320            * Updates the priority of the layout matching the group, layout ID, and
1321            * privacy.
1322            *
1323            * @param groupId the primary key of the group
1324            * @param privateLayout whether the layout is private to the group
1325            * @param layoutId the primary key of the layout
1326            * @param priority the layout's new priority
1327            * @return the updated layout
1328            * @throws PortalException if a matching layout could not be found or if the
1329            user did not have permission to update the layout
1330            */
1331            @Override
1332            public com.liferay.portal.model.Layout updatePriority(long groupId,
1333                    boolean privateLayout, long layoutId, int priority)
1334                    throws com.liferay.portal.kernel.exception.PortalException {
1335                    return _layoutService.updatePriority(groupId, privateLayout, layoutId,
1336                            priority);
1337            }
1338    
1339            /**
1340            * Updates the priority of the layout matching the primary key.
1341            *
1342            * @param plid the primary key of the layout
1343            * @param priority the layout's new priority
1344            * @return the updated layout
1345            * @throws PortalException if a layout with the primary key could not be
1346            found
1347            */
1348            @Override
1349            public com.liferay.portal.model.Layout updatePriority(long plid,
1350                    int priority)
1351                    throws com.liferay.portal.kernel.exception.PortalException {
1352                    return _layoutService.updatePriority(plid, priority);
1353            }
1354    
1355            @Override
1356            public com.liferay.portal.kernel.lar.MissingReferences validateImportLayoutsFile(
1357                    long groupId, boolean privateLayout,
1358                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1359                    java.io.File file)
1360                    throws com.liferay.portal.kernel.exception.PortalException {
1361                    return _layoutService.validateImportLayoutsFile(groupId, privateLayout,
1362                            parameterMap, file);
1363            }
1364    
1365            @Override
1366            public com.liferay.portal.kernel.lar.MissingReferences validateImportLayoutsFile(
1367                    long groupId, boolean privateLayout,
1368                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1369                    java.io.InputStream inputStream)
1370                    throws com.liferay.portal.kernel.exception.PortalException {
1371                    return _layoutService.validateImportLayoutsFile(groupId, privateLayout,
1372                            parameterMap, inputStream);
1373            }
1374    
1375            @Override
1376            public com.liferay.portal.kernel.lar.MissingReferences validateImportPortletInfo(
1377                    long plid, long groupId, java.lang.String portletId,
1378                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1379                    java.io.File file)
1380                    throws com.liferay.portal.kernel.exception.PortalException {
1381                    return _layoutService.validateImportPortletInfo(plid, groupId,
1382                            portletId, parameterMap, file);
1383            }
1384    
1385            @Override
1386            public com.liferay.portal.kernel.lar.MissingReferences validateImportPortletInfo(
1387                    long plid, long groupId, java.lang.String portletId,
1388                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1389                    java.io.InputStream inputStream)
1390                    throws com.liferay.portal.kernel.exception.PortalException {
1391                    return _layoutService.validateImportPortletInfo(plid, groupId,
1392                            portletId, parameterMap, inputStream);
1393            }
1394    
1395            /**
1396             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
1397             */
1398            @Deprecated
1399            public LayoutService getWrappedLayoutService() {
1400                    return _layoutService;
1401            }
1402    
1403            /**
1404             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
1405             */
1406            @Deprecated
1407            public void setWrappedLayoutService(LayoutService layoutService) {
1408                    _layoutService = layoutService;
1409            }
1410    
1411            @Override
1412            public LayoutService getWrappedService() {
1413                    return _layoutService;
1414            }
1415    
1416            @Override
1417            public void setWrappedService(LayoutService layoutService) {
1418                    _layoutService = layoutService;
1419            }
1420    
1421            private LayoutService _layoutService;
1422    }