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