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