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