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