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