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