001    /**
002     * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link LayoutLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see LayoutLocalService
024     * @generated
025     */
026    @ProviderType
027    public class LayoutLocalServiceWrapper implements LayoutLocalService,
028            ServiceWrapper<LayoutLocalService> {
029            public LayoutLocalServiceWrapper(LayoutLocalService layoutLocalService) {
030                    _layoutLocalService = layoutLocalService;
031            }
032    
033            /**
034            * Adds the layout to the database. Also notifies the appropriate model listeners.
035            *
036            * @param layout the layout
037            * @return the layout that was added
038            */
039            @Override
040            public com.liferay.portal.model.Layout addLayout(
041                    com.liferay.portal.model.Layout layout) {
042                    return _layoutLocalService.addLayout(layout);
043            }
044    
045            /**
046            * Adds a layout with single entry maps for name, title, and description to
047            * the default locale.
048            *
049            * <p>
050            * This method handles the creation of the layout including its resources,
051            * metadata, and internal data structures. It is not necessary to make
052            * subsequent calls to any methods to setup default groups, resources, ...
053            * etc.
054            * </p>
055            *
056            * @param userId the primary key of the user
057            * @param groupId the primary key of the group
058            * @param privateLayout whether the layout is private to the group
059            * @param parentLayoutId the primary key of the parent layout (optionally
060            {@link LayoutConstants#DEFAULT_PARENT_LAYOUT_ID}). The possible
061            values can be found in {@link LayoutConstants}.
062            * @param name the layout's name (optionally {@link
063            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_NAME} or {@link
064            PropsValues#DEFAULT_USER_PUBLIC_LAYOUT_NAME}). The default values
065            can be overridden in <code>portal-ext.properties</code> by
066            specifying new values for the corresponding properties defined in
067            {@link PropsValues}
068            * @param title the layout's title
069            * @param description the layout's description
070            * @param type the layout's type (optionally {@link
071            LayoutConstants#TYPE_PORTLET}). The possible types can be found
072            in {@link LayoutConstants}.
073            * @param hidden whether the layout is hidden
074            * @param friendlyURL the friendly URL of the layout (optionally {@link
075            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL} or {@link
076            PropsValues#DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL}). The
077            default values can be overridden in
078            <code>portal-ext.properties</code> by specifying new values for
079            the corresponding properties defined in {@link PropsValues}. To
080            see how the URL is normalized when accessed, see {@link
081            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
082            String)}.
083            * @param serviceContext the service context to be applied. Must set the
084            UUID for the layout. Can set the creation date and modification
085            date for the layout. For layouts that belong to a layout set
086            prototype, an attribute named <code>layoutUpdateable</code> can
087            be set to specify whether site administrators can modify this
088            page within their site.
089            * @return the layout
090            */
091            @Override
092            public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
093                    boolean privateLayout, long parentLayoutId, java.lang.String name,
094                    java.lang.String title, java.lang.String description,
095                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
096                    com.liferay.portal.service.ServiceContext serviceContext)
097                    throws com.liferay.portal.kernel.exception.PortalException {
098                    return _layoutLocalService.addLayout(userId, groupId, privateLayout,
099                            parentLayoutId, name, title, description, type, hidden,
100                            friendlyURL, serviceContext);
101            }
102    
103            /**
104            * Adds a layout.
105            *
106            * <p>
107            * This method handles the creation of the layout including its resources,
108            * metadata, and internal data structures. It is not necessary to make
109            * subsequent calls to any methods to setup default groups, resources, ...
110            * etc.
111            * </p>
112            *
113            * @param userId the primary key of the user
114            * @param groupId the primary key of the group
115            * @param privateLayout whether the layout is private to the group
116            * @param parentLayoutId the primary key of the parent layout
117            (optionally {@link LayoutConstants#DEFAULT_PARENT_LAYOUT_ID})
118            * @param nameMap the layout's locales and localized names
119            * @param titleMap the layout's locales and localized titles
120            * @param descriptionMap the layout's locales and localized
121            descriptions
122            * @param keywordsMap the layout's locales and localized keywords
123            * @param robotsMap the layout's locales and localized robots
124            * @param type the layout's type (optionally {@link
125            LayoutConstants#TYPE_PORTLET}). The possible types can be
126            found in {@link LayoutConstants}.
127            * @param hidden whether the layout is hidden
128            * @param friendlyURL the layout's friendly URL (optionally {@link
129            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL} or
130            {@link PropsValues#DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL}).
131            The default values can be overridden in
132            <code>portal-ext.properties</code> by specifying new values
133            for the corresponding properties defined in {@link
134            PropsValues}. To see how the URL is normalized when accessed,
135            see {@link
136            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
137            String)}.
138            * @param serviceContext the service context to be applied. Must set
139            the UUID for the layout. Can set the creation date,
140            modification date and the expando bridge attributes for the
141            layout. For layouts that belong to a layout set prototype, an
142            attribute named <code>layoutUpdateable</code> can be set to
143            specify whether site administrators can modify this page
144            within their site. For layouts that are created from a layout
145            prototype, attributes named <code>layoutPrototypeUuid</code>
146            and <code>layoutPrototypeLinkedEnabled</code> can be
147            specified to provide the unique identifier of the source
148            prototype and a boolean to determine whether a link to it
149            should be enabled to activate propagation of changes made to
150            the linked page in the prototype.
151            * @return the layout
152            * @deprecated As of 6.2.0, replaced by {@link #addLayout(long, long,
153            boolean, long, Map, Map, Map, Map, Map, String, String,
154            boolean, Map, ServiceContext)}
155            */
156            @Deprecated
157            @Override
158            public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
159                    boolean privateLayout, long parentLayoutId,
160                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
161                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
162                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
163                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
164                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
165                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
166                    com.liferay.portal.service.ServiceContext serviceContext)
167                    throws com.liferay.portal.kernel.exception.PortalException {
168                    return _layoutLocalService.addLayout(userId, groupId, privateLayout,
169                            parentLayoutId, nameMap, titleMap, descriptionMap, keywordsMap,
170                            robotsMap, type, hidden, friendlyURL, serviceContext);
171            }
172    
173            /**
174            * Adds a layout with additional parameters.
175            *
176            * <p>
177            * This method handles the creation of the layout including its resources,
178            * metadata, and internal data structures. It is not necessary to make
179            * subsequent calls to any methods to setup default groups, resources, ...
180            * etc.
181            * </p>
182            *
183            * @param userId the primary key of the user
184            * @param groupId the primary key of the group
185            * @param privateLayout whether the layout is private to the group
186            * @param parentLayoutId the primary key of the parent layout (optionally
187            {@link LayoutConstants#DEFAULT_PARENT_LAYOUT_ID})
188            * @param nameMap the layout's locales and localized names
189            * @param titleMap the layout's locales and localized titles
190            * @param descriptionMap the layout's locales and localized descriptions
191            * @param keywordsMap the layout's locales and localized keywords
192            * @param robotsMap the layout's locales and localized robots
193            * @param type the layout's type (optionally {@link
194            LayoutConstants#TYPE_PORTLET}). The possible types can be found
195            in {@link LayoutConstants}.
196            * @param typeSettings the settings to load the unicode properties object.
197            See {@link UnicodeProperties #fastLoad(String)}.
198            * @param hidden whether the layout is hidden
199            * @param friendlyURLMap the layout's locales and localized friendly URLs.
200            To see how the URL is normalized when accessed, see {@link
201            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
202            String)}.
203            * @param serviceContext the service context to be applied. Must set the
204            UUID for the layout. Can set the creation date, modification
205            date, and expando bridge attributes for the layout. For layouts
206            that belong to a layout set prototype, an attribute named
207            <code>layoutUpdateable</code> can be set to specify whether site
208            administrators can modify this page within their site. For
209            layouts that are created from a layout prototype, attributes
210            named <code>layoutPrototypeUuid</code> and
211            <code>layoutPrototypeLinkedEnabled</code> can be specified to
212            provide the unique identifier of the source prototype and a
213            boolean to determine whether a link to it should be enabled to
214            activate propagation of changes made to the linked page in the
215            prototype.
216            * @return the layout
217            */
218            @Override
219            public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
220                    boolean privateLayout, long parentLayoutId,
221                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
222                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
223                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
224                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
225                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
226                    java.lang.String type, java.lang.String typeSettings, boolean hidden,
227                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
228                    com.liferay.portal.service.ServiceContext serviceContext)
229                    throws com.liferay.portal.kernel.exception.PortalException {
230                    return _layoutLocalService.addLayout(userId, groupId, privateLayout,
231                            parentLayoutId, nameMap, titleMap, descriptionMap, keywordsMap,
232                            robotsMap, type, typeSettings, hidden, friendlyURLMap,
233                            serviceContext);
234            }
235    
236            /**
237            * Creates a new layout with the primary key. Does not add the layout to the database.
238            *
239            * @param plid the primary key for the new layout
240            * @return the new layout
241            */
242            @Override
243            public com.liferay.portal.model.Layout createLayout(long plid) {
244                    return _layoutLocalService.createLayout(plid);
245            }
246    
247            /**
248            * Deletes the layout with the primary key, also deleting the layout's child
249            * layouts, and associated resources.
250            *
251            * @param groupId the primary key of the group
252            * @param privateLayout whether the layout is private to the group
253            * @param layoutId the primary key of the layout
254            * @param serviceContext the service context to be applied
255            */
256            @Override
257            public void deleteLayout(long groupId, boolean privateLayout,
258                    long layoutId, com.liferay.portal.service.ServiceContext serviceContext)
259                    throws com.liferay.portal.kernel.exception.PortalException {
260                    _layoutLocalService.deleteLayout(groupId, privateLayout, layoutId,
261                            serviceContext);
262            }
263    
264            /**
265            * Deletes the layout from the database. Also notifies the appropriate model listeners.
266            *
267            * @param layout the layout
268            * @return the layout that was removed
269            */
270            @Override
271            public com.liferay.portal.model.Layout deleteLayout(
272                    com.liferay.portal.model.Layout layout) {
273                    return _layoutLocalService.deleteLayout(layout);
274            }
275    
276            /**
277            * Deletes the layout, its child layouts, and its associated resources.
278            *
279            * @param layout the layout
280            * @param updateLayoutSet whether the layout set's page counter needs to be
281            updated
282            * @param serviceContext the service context to be applied
283            */
284            @Override
285            public void deleteLayout(com.liferay.portal.model.Layout layout,
286                    boolean updateLayoutSet,
287                    com.liferay.portal.service.ServiceContext serviceContext)
288                    throws com.liferay.portal.kernel.exception.PortalException {
289                    _layoutLocalService.deleteLayout(layout, updateLayoutSet, serviceContext);
290            }
291    
292            /**
293            * Deletes the layout with the primary key from the database. Also notifies the appropriate model listeners.
294            *
295            * @param plid the primary key of the layout
296            * @return the layout that was removed
297            * @throws PortalException if a layout with the primary key could not be found
298            */
299            @Override
300            public com.liferay.portal.model.Layout deleteLayout(long plid)
301                    throws com.liferay.portal.kernel.exception.PortalException {
302                    return _layoutLocalService.deleteLayout(plid);
303            }
304    
305            /**
306            * Deletes the layout with the plid, also deleting the layout's child
307            * layouts, and associated resources.
308            *
309            * @param plid the primary key of the layout
310            * @param serviceContext the service context to be applied
311            */
312            @Override
313            public void deleteLayout(long plid,
314                    com.liferay.portal.service.ServiceContext serviceContext)
315                    throws com.liferay.portal.kernel.exception.PortalException {
316                    _layoutLocalService.deleteLayout(plid, serviceContext);
317            }
318    
319            /**
320            * Deletes the group's private or non-private layouts, also deleting the
321            * layouts' child layouts, and associated resources.
322            *
323            * @param groupId the primary key of the group
324            * @param privateLayout whether the layout is private to the group
325            * @param serviceContext the service context to be applied. The parent
326            layout set's page count will be updated by default, unless an
327            attribute named <code>updatePageCount</code> is set to
328            <code>false</code>.
329            */
330            @Override
331            public void deleteLayouts(long groupId, boolean privateLayout,
332                    com.liferay.portal.service.ServiceContext serviceContext)
333                    throws com.liferay.portal.kernel.exception.PortalException {
334                    _layoutLocalService.deleteLayouts(groupId, privateLayout, serviceContext);
335            }
336    
337            /**
338            * @throws PortalException
339            */
340            @Override
341            public com.liferay.portal.model.PersistedModel deletePersistedModel(
342                    com.liferay.portal.model.PersistedModel persistedModel)
343                    throws com.liferay.portal.kernel.exception.PortalException {
344                    return _layoutLocalService.deletePersistedModel(persistedModel);
345            }
346    
347            @Override
348            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
349                    return _layoutLocalService.dynamicQuery();
350            }
351    
352            /**
353            * Performs a dynamic query on the database and returns the matching rows.
354            *
355            * @param dynamicQuery the dynamic query
356            * @return the matching rows
357            */
358            @Override
359            public <T> java.util.List<T> dynamicQuery(
360                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
361                    return _layoutLocalService.dynamicQuery(dynamicQuery);
362            }
363    
364            /**
365            * Performs a dynamic query on the database and returns a range of the matching rows.
366            *
367            * <p>
368            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
369            * </p>
370            *
371            * @param dynamicQuery the dynamic query
372            * @param start the lower bound of the range of model instances
373            * @param end the upper bound of the range of model instances (not inclusive)
374            * @return the range of matching rows
375            */
376            @Override
377            public <T> java.util.List<T> dynamicQuery(
378                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
379                    int end) {
380                    return _layoutLocalService.dynamicQuery(dynamicQuery, start, end);
381            }
382    
383            /**
384            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
385            *
386            * <p>
387            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
388            * </p>
389            *
390            * @param dynamicQuery the dynamic query
391            * @param start the lower bound of the range of model instances
392            * @param end the upper bound of the range of model instances (not inclusive)
393            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
394            * @return the ordered range of matching rows
395            */
396            @Override
397            public <T> java.util.List<T> dynamicQuery(
398                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
399                    int end,
400                    com.liferay.portal.kernel.util.OrderByComparator<T> orderByComparator) {
401                    return _layoutLocalService.dynamicQuery(dynamicQuery, start, end,
402                            orderByComparator);
403            }
404    
405            /**
406            * Returns the number of rows matching the dynamic query.
407            *
408            * @param dynamicQuery the dynamic query
409            * @return the number of rows matching the dynamic query
410            */
411            @Override
412            public long dynamicQueryCount(
413                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery) {
414                    return _layoutLocalService.dynamicQueryCount(dynamicQuery);
415            }
416    
417            /**
418            * Returns the number of rows matching the dynamic query.
419            *
420            * @param dynamicQuery the dynamic query
421            * @param projection the projection to apply to the query
422            * @return the number of rows matching the dynamic query
423            */
424            @Override
425            public long dynamicQueryCount(
426                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
427                    com.liferay.portal.kernel.dao.orm.Projection projection) {
428                    return _layoutLocalService.dynamicQueryCount(dynamicQuery, projection);
429            }
430    
431            /**
432            * Exports layouts with the primary keys and criteria as a byte array.
433            *
434            * @param groupId the primary key of the group
435            * @param privateLayout whether the layout is private to the group
436            * @param layoutIds the primary keys of the layouts to be exported
437            * @param parameterMap the mapping of parameters indicating which
438            information to export. For information on the keys used in
439            the map see {@link
440            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
441            * @param startDate the export's start date
442            * @param endDate the export's end date
443            * @return the layouts as a byte array
444            * @throws PortalException
445            * @deprecated As of 7.0.0, with no direct replacement
446            */
447            @Deprecated
448            @Override
449            public byte[] exportLayouts(long groupId, boolean privateLayout,
450                    long[] layoutIds,
451                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
452                    java.util.Date startDate, java.util.Date endDate)
453                    throws com.liferay.portal.kernel.exception.PortalException {
454                    return _layoutLocalService.exportLayouts(groupId, privateLayout,
455                            layoutIds, parameterMap, startDate, endDate);
456            }
457    
458            /**
459            * Exports all layouts that match the criteria as a byte array.
460            *
461            * @param groupId the primary key of the group
462            * @param privateLayout whether the layout is private to the group
463            * @param parameterMap the mapping of parameters indicating which
464            information to export. For information on the keys used in
465            the map see {@link
466            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
467            * @param startDate the export's start date
468            * @param endDate the export's end date
469            * @return the layout as a byte array
470            * @throws PortalException
471            * @deprecated As of 7.0.0, with no direct replacement
472            */
473            @Deprecated
474            @Override
475            public byte[] exportLayouts(long groupId, boolean privateLayout,
476                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
477                    java.util.Date startDate, java.util.Date endDate)
478                    throws com.liferay.portal.kernel.exception.PortalException {
479                    return _layoutLocalService.exportLayouts(groupId, privateLayout,
480                            parameterMap, startDate, endDate);
481            }
482    
483            /**
484            * @throws PortalException
485            * @deprecated As of 7.0.0, replaced by {@link
486            com.liferay.portlet.exportimport.service.ExportImportLocalService#exportLayoutsAsFile(
487            ExportImportConfiguration)}
488            */
489            @Deprecated
490            @Override
491            public java.io.File exportLayoutsAsFile(
492                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
493                    throws com.liferay.portal.kernel.exception.PortalException {
494                    return _layoutLocalService.exportLayoutsAsFile(exportImportConfiguration);
495            }
496    
497            /**
498            * Exports the layouts that match the primary keys and criteria as a file.
499            *
500            * @param groupId the primary key of the group
501            * @param privateLayout whether the layout is private to the group
502            * @param layoutIds the primary keys of the layouts to be exported
503            (optionally <code>null</code>)
504            * @param parameterMap the mapping of parameters indicating which
505            information to export. For information on the keys used in
506            the map see {@link
507            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
508            * @param startDate the export's start date
509            * @param endDate the export's end date
510            * @return the layouts as a File
511            * @throws PortalException
512            * @deprecated As of 7.0.0, with no direct replacement
513            */
514            @Deprecated
515            @Override
516            public java.io.File exportLayoutsAsFile(long groupId,
517                    boolean privateLayout, long[] layoutIds,
518                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
519                    java.util.Date startDate, java.util.Date endDate)
520                    throws com.liferay.portal.kernel.exception.PortalException {
521                    return _layoutLocalService.exportLayoutsAsFile(groupId, privateLayout,
522                            layoutIds, parameterMap, startDate, endDate);
523            }
524    
525            /**
526            * @throws PortalException
527            * @deprecated As of 7.0.0, replaced by {@link
528            com.liferay.portlet.exportimport.service.ExportImportLocalService#exportLayoutsAsFileInBackground(
529            long, ExportImportConfiguration)}
530            */
531            @Deprecated
532            @Override
533            public long exportLayoutsAsFileInBackground(long userId,
534                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
535                    throws com.liferay.portal.kernel.exception.PortalException {
536                    return _layoutLocalService.exportLayoutsAsFileInBackground(userId,
537                            exportImportConfiguration);
538            }
539    
540            /**
541            * @throws PortalException
542            * @deprecated As of 7.0.0, replaced by {@link
543            com.liferay.portlet.exportimport.service.ExportImportLocalService#exportLayoutsAsFileInBackground(
544            long, long)}
545            */
546            @Deprecated
547            @Override
548            public long exportLayoutsAsFileInBackground(long userId,
549                    long exportImportConfigurationId)
550                    throws com.liferay.portal.kernel.exception.PortalException {
551                    return _layoutLocalService.exportLayoutsAsFileInBackground(userId,
552                            exportImportConfigurationId);
553            }
554    
555            /**
556            * @throws PortalException
557            * @deprecated As of 7.0.0, with no direct replacement
558            */
559            @Deprecated
560            @Override
561            public long exportLayoutsAsFileInBackground(long userId,
562                    java.lang.String taskName, long groupId, boolean privateLayout,
563                    long[] layoutIds,
564                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
565                    java.util.Date startDate, java.util.Date endDate)
566                    throws com.liferay.portal.kernel.exception.PortalException {
567                    return _layoutLocalService.exportLayoutsAsFileInBackground(userId,
568                            taskName, groupId, privateLayout, layoutIds, parameterMap,
569                            startDate, endDate);
570            }
571    
572            /**
573            * @throws PortalException
574            * @deprecated As of 7.0.0, with no direct replacement
575            */
576            @Deprecated
577            @Override
578            public long exportLayoutsAsFileInBackground(long userId,
579                    java.lang.String taskName, long groupId, boolean privateLayout,
580                    long[] layoutIds,
581                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
582                    java.util.Date startDate, java.util.Date endDate,
583                    java.lang.String fileName)
584                    throws com.liferay.portal.kernel.exception.PortalException {
585                    return _layoutLocalService.exportLayoutsAsFileInBackground(userId,
586                            taskName, groupId, privateLayout, layoutIds, parameterMap,
587                            startDate, endDate, fileName);
588            }
589    
590            /**
591            * @throws PortalException
592            * @deprecated As of 7.0.0, with no direct replacement
593            */
594            @Deprecated
595            @Override
596            public byte[] exportPortletInfo(long companyId, java.lang.String portletId,
597                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
598                    java.util.Date startDate, java.util.Date endDate)
599                    throws com.liferay.portal.kernel.exception.PortalException {
600                    return _layoutLocalService.exportPortletInfo(companyId, portletId,
601                            parameterMap, startDate, endDate);
602            }
603    
604            /**
605            * Exports the portlet information (categories, permissions, ... etc.) as a
606            * byte array.
607            *
608            * @param plid the primary key of the layout
609            * @param groupId the primary key of the group
610            * @param portletId the primary key of the portlet
611            * @param parameterMap the mapping of parameters indicating which
612            information to export. For information on the keys used in
613            the map see {@link
614            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
615            * @param startDate the export's start date
616            * @param endDate the export's end date
617            * @return the portlet information as a byte array
618            * @throws PortalException
619            * @deprecated As of 7.0.0, with no direct replacement
620            */
621            @Deprecated
622            @Override
623            public byte[] exportPortletInfo(long plid, long groupId,
624                    java.lang.String portletId,
625                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
626                    java.util.Date startDate, java.util.Date endDate)
627                    throws com.liferay.portal.kernel.exception.PortalException {
628                    return _layoutLocalService.exportPortletInfo(plid, groupId, portletId,
629                            parameterMap, startDate, endDate);
630            }
631    
632            /**
633            * @throws PortalException
634            * @deprecated As of 7.0.0, with no direct replacement
635            */
636            @Deprecated
637            @Override
638            public java.io.File exportPortletInfoAsFile(long companyId,
639                    java.lang.String portletId,
640                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
641                    java.util.Date startDate, java.util.Date endDate)
642                    throws com.liferay.portal.kernel.exception.PortalException {
643                    return _layoutLocalService.exportPortletInfoAsFile(companyId,
644                            portletId, parameterMap, startDate, endDate);
645            }
646    
647            /**
648            * @throws PortalException
649            * @deprecated As of 7.0.0, replaced by {@link
650            com.liferay.portlet.exportimport.service.ExportImportLocalService#exportPortletInfoAsFile(
651            ExportImportConfiguration)}}
652            */
653            @Deprecated
654            @Override
655            public java.io.File exportPortletInfoAsFile(
656                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
657                    throws com.liferay.portal.kernel.exception.PortalException {
658                    return _layoutLocalService.exportPortletInfoAsFile(exportImportConfiguration);
659            }
660    
661            /**
662            * Exports the portlet information (categories, permissions, ... etc.) as a
663            * file.
664            *
665            * @param plid the primary key of the layout
666            * @param groupId the primary key of the group
667            * @param portletId the primary key of the portlet
668            * @param parameterMap the mapping of parameters indicating which
669            information to export. For information on the keys used in
670            the map see {@link
671            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
672            * @param startDate the export's start date
673            * @param endDate the export's end date
674            * @return the portlet information as a file
675            * @throws PortalException
676            * @deprecated As of 7.0.0, with no direct replacement
677            */
678            @Deprecated
679            @Override
680            public java.io.File exportPortletInfoAsFile(long plid, long groupId,
681                    java.lang.String portletId,
682                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
683                    java.util.Date startDate, java.util.Date endDate)
684                    throws com.liferay.portal.kernel.exception.PortalException {
685                    return _layoutLocalService.exportPortletInfoAsFile(plid, groupId,
686                            portletId, parameterMap, startDate, endDate);
687            }
688    
689            /**
690            * @throws PortalException
691            * @deprecated As of 7.0.0, replaced by {@link
692            com.liferay.portlet.exportimport.service.ExportImportLocalService#exportPortletInfoAsFileInBackground(
693            long, ExportImportConfiguration)}}
694            */
695            @Deprecated
696            @Override
697            public long exportPortletInfoAsFileInBackground(long userId,
698                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration)
699                    throws com.liferay.portal.kernel.exception.PortalException {
700                    return _layoutLocalService.exportPortletInfoAsFileInBackground(userId,
701                            exportImportConfiguration);
702            }
703    
704            /**
705            * @throws PortalException
706            * @deprecated As of 7.0.0, replaced by {@link
707            com.liferay.portlet.exportimport.service.ExportImportLocalService#exportPortletInfoAsFileInBackground(
708            long, long)}}
709            */
710            @Deprecated
711            @Override
712            public long exportPortletInfoAsFileInBackground(long userId,
713                    long exportImportConfigurationId)
714                    throws com.liferay.portal.kernel.exception.PortalException {
715                    return _layoutLocalService.exportPortletInfoAsFileInBackground(userId,
716                            exportImportConfigurationId);
717            }
718    
719            /**
720            * @throws PortalException
721            * @deprecated As of 7.0.0, with no direct replacement
722            */
723            @Deprecated
724            @Override
725            public long exportPortletInfoAsFileInBackground(long userId,
726                    java.lang.String taskName, long plid, long groupId,
727                    java.lang.String portletId,
728                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
729                    java.util.Date startDate, java.util.Date endDate,
730                    java.lang.String fileName)
731                    throws com.liferay.portal.kernel.exception.PortalException {
732                    return _layoutLocalService.exportPortletInfoAsFileInBackground(userId,
733                            taskName, plid, groupId, portletId, parameterMap, startDate,
734                            endDate, fileName);
735            }
736    
737            /**
738            * @throws PortalException
739            * @deprecated As of 7.0.0, with no direct replacement
740            */
741            @Deprecated
742            @Override
743            public long exportPortletInfoAsFileInBackground(long userId,
744                    java.lang.String taskName, java.lang.String portletId,
745                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
746                    java.util.Date startDate, java.util.Date endDate,
747                    java.lang.String fileName)
748                    throws com.liferay.portal.kernel.exception.PortalException {
749                    return _layoutLocalService.exportPortletInfoAsFileInBackground(userId,
750                            taskName, portletId, parameterMap, startDate, endDate, fileName);
751            }
752    
753            @Override
754            public com.liferay.portal.model.Layout fetchFirstLayout(long groupId,
755                    boolean privateLayout, long parentLayoutId) {
756                    return _layoutLocalService.fetchFirstLayout(groupId, privateLayout,
757                            parentLayoutId);
758            }
759    
760            @Override
761            public com.liferay.portal.model.Layout fetchLayout(long groupId,
762                    boolean privateLayout, long layoutId) {
763                    return _layoutLocalService.fetchLayout(groupId, privateLayout, layoutId);
764            }
765    
766            @Override
767            public com.liferay.portal.model.Layout fetchLayout(long plid) {
768                    return _layoutLocalService.fetchLayout(plid);
769            }
770    
771            @Override
772            public com.liferay.portal.model.Layout fetchLayoutByFriendlyURL(
773                    long groupId, boolean privateLayout, java.lang.String friendlyURL) {
774                    return _layoutLocalService.fetchLayoutByFriendlyURL(groupId,
775                            privateLayout, friendlyURL);
776            }
777    
778            /**
779            * Returns the layout matching the UUID, group, and privacy.
780            *
781            * @param uuid the layout's UUID
782            * @param groupId the primary key of the group
783            * @param privateLayout whether the layout is private to the group
784            * @return the matching layout, or <code>null</code> if a matching layout could not be found
785            */
786            @Override
787            public com.liferay.portal.model.Layout fetchLayoutByUuidAndGroupId(
788                    java.lang.String uuid, long groupId, boolean privateLayout) {
789                    return _layoutLocalService.fetchLayoutByUuidAndGroupId(uuid, groupId,
790                            privateLayout);
791            }
792    
793            @Override
794            public com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery getActionableDynamicQuery() {
795                    return _layoutLocalService.getActionableDynamicQuery();
796            }
797    
798            /**
799            * Returns the primary key of the default layout for the group
800            *
801            * @param groupId the primary key of the group
802            * @return the primary key of the default layout for the group (optionally
803            {@link LayoutConstants#DEFAULT_PLID})
804            */
805            @Override
806            public long getDefaultPlid(long groupId) {
807                    return _layoutLocalService.getDefaultPlid(groupId);
808            }
809    
810            /**
811            * Returns primary key of the matching default layout for the group
812            *
813            * @param groupId the primary key of the group
814            * @param privateLayout whether the layout is private to the group
815            * @return the primary key of the default layout for the group; {@link
816            LayoutConstants#DEFAULT_PLID}) otherwise
817            */
818            @Override
819            public long getDefaultPlid(long groupId, boolean privateLayout) {
820                    return _layoutLocalService.getDefaultPlid(groupId, privateLayout);
821            }
822    
823            /**
824            * Returns primary key of the default portlet layout for the group
825            *
826            * @param groupId the primary key of the group
827            * @param privateLayout whether the layout is private to the group
828            * @param portletId the primary key of the portlet
829            * @return the primary key of the default portlet layout for the group;
830            {@link LayoutConstants#DEFAULT_PLID} otherwise
831            * @throws PortalException
832            */
833            @Override
834            public long getDefaultPlid(long groupId, boolean privateLayout,
835                    java.lang.String portletId)
836                    throws com.liferay.portal.kernel.exception.PortalException {
837                    return _layoutLocalService.getDefaultPlid(groupId, privateLayout,
838                            portletId);
839            }
840    
841            @Override
842            public com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery getExportActionableDynamicQuery(
843                    com.liferay.portlet.exportimport.lar.PortletDataContext portletDataContext) {
844                    return _layoutLocalService.getExportActionableDynamicQuery(portletDataContext);
845            }
846    
847            /**
848            * Returns the layout for the friendly URL
849            *
850            * @param groupId the primary key of the group
851            * @param privateLayout whether the layout is private to the group
852            * @param friendlyURL the friendly URL of the layout
853            * @return the layout for the friendly URL
854            */
855            @Override
856            public com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId,
857                    boolean privateLayout, java.lang.String friendlyURL)
858                    throws com.liferay.portal.kernel.exception.PortalException {
859                    return _layoutLocalService.getFriendlyURLLayout(groupId, privateLayout,
860                            friendlyURL);
861            }
862    
863            @Override
864            public com.liferay.portal.kernel.dao.orm.IndexableActionableDynamicQuery getIndexableActionableDynamicQuery() {
865                    return _layoutLocalService.getIndexableActionableDynamicQuery();
866            }
867    
868            /**
869            * Returns the layout matching the primary key, group, and privacy; throws a
870            * {@link NoSuchLayoutException} otherwise.
871            *
872            * @param groupId the primary key of the group
873            * @param privateLayout whether the layout is private to the group
874            * @param layoutId the primary key of the layout
875            * @return the matching layout
876            */
877            @Override
878            public com.liferay.portal.model.Layout getLayout(long groupId,
879                    boolean privateLayout, long layoutId)
880                    throws com.liferay.portal.kernel.exception.PortalException {
881                    return _layoutLocalService.getLayout(groupId, privateLayout, layoutId);
882            }
883    
884            /**
885            * Returns the layout with the primary key.
886            *
887            * @param plid the primary key of the layout
888            * @return the layout
889            * @throws PortalException if a layout with the primary key could not be found
890            */
891            @Override
892            public com.liferay.portal.model.Layout getLayout(long plid)
893                    throws com.liferay.portal.kernel.exception.PortalException {
894                    return _layoutLocalService.getLayout(plid);
895            }
896    
897            /**
898            * Returns the layout for the icon image; throws a {@link
899            * NoSuchLayoutException} otherwise.
900            *
901            * @param iconImageId the primary key of the icon image
902            * @return Returns the layout for the icon image
903            */
904            @Override
905            public com.liferay.portal.model.Layout getLayoutByIconImageId(
906                    long iconImageId)
907                    throws com.liferay.portal.kernel.exception.PortalException {
908                    return _layoutLocalService.getLayoutByIconImageId(iconImageId);
909            }
910    
911            /**
912            * Returns the layout matching the UUID, group, and privacy.
913            *
914            * @param uuid the layout's UUID
915            * @param groupId the primary key of the group
916            * @param privateLayout whether the layout is private to the group
917            * @return the matching layout
918            * @throws PortalException if a matching layout could not be found
919            */
920            @Override
921            public com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
922                    java.lang.String uuid, long groupId, boolean privateLayout)
923                    throws com.liferay.portal.kernel.exception.PortalException {
924                    return _layoutLocalService.getLayoutByUuidAndGroupId(uuid, groupId,
925                            privateLayout);
926            }
927    
928            /**
929            * Returns the layout references for all the layouts that belong to the
930            * company and belong to the portlet that matches the preferences.
931            *
932            * @param companyId the primary key of the company
933            * @param portletId the primary key of the portlet
934            * @param preferencesKey the portlet's preference key
935            * @param preferencesValue the portlet's preference value
936            * @return the layout references of the matching layouts
937            */
938            @Override
939            public com.liferay.portal.model.LayoutReference[] getLayouts(
940                    long companyId, java.lang.String portletId,
941                    java.lang.String preferencesKey, java.lang.String preferencesValue) {
942                    return _layoutLocalService.getLayouts(companyId, portletId,
943                            preferencesKey, preferencesValue);
944            }
945    
946            /**
947            * Returns all the layouts belonging to the group.
948            *
949            * @param groupId the primary key of the group
950            * @param privateLayout whether the layout is private to the group
951            * @return the matching layouts, or <code>null</code> if no matches were
952            found
953            */
954            @Override
955            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
956                    long groupId, boolean privateLayout) {
957                    return _layoutLocalService.getLayouts(groupId, privateLayout);
958            }
959    
960            /**
961            * Returns all the layouts that match the layout IDs and belong to the
962            * group.
963            *
964            * @param groupId the primary key of the group
965            * @param privateLayout whether the layout is private to the group
966            * @param layoutIds the primary keys of the layouts
967            * @return the matching layouts, or an empty list if no matches were found
968            */
969            @Override
970            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
971                    long groupId, boolean privateLayout, long[] layoutIds)
972                    throws com.liferay.portal.kernel.exception.PortalException {
973                    return _layoutLocalService.getLayouts(groupId, privateLayout, layoutIds);
974            }
975    
976            /**
977            * Returns all the layouts belonging to the group that are children of the
978            * parent layout.
979            *
980            * @param groupId the primary key of the group
981            * @param privateLayout whether the layout is private to the group
982            * @param parentLayoutId the primary key of the parent layout
983            * @return the matching layouts, or <code>null</code> if no matches were
984            found
985            */
986            @Override
987            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
988                    long groupId, boolean privateLayout, long parentLayoutId) {
989                    return _layoutLocalService.getLayouts(groupId, privateLayout,
990                            parentLayoutId);
991            }
992    
993            /**
994            * Returns a range of all the layouts belonging to the group that are
995            * children of the parent layout.
996            *
997            * <p>
998            * Useful when paginating results. Returns a maximum of <code>end -
999            * start</code> instances. <code>start</code> and <code>end</code> are not
1000            * primary keys, they are indexes in the result set. Thus, <code>0</code>
1001            * refers to the first result in the set. Setting both <code>start</code>
1002            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
1003            * result set.
1004            * </p>
1005            *
1006            * @param groupId the primary key of the group
1007            * @param privateLayout whether the layout is private to the group
1008            * @param parentLayoutId the primary key of the parent layout
1009            * @param incomplete whether the layout is incomplete
1010            * @param start the lower bound of the range of layouts
1011            * @param end the upper bound of the range of layouts (not inclusive)
1012            * @return the matching layouts, or <code>null</code> if no matches were
1013            found
1014            */
1015            @Override
1016            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
1017                    long groupId, boolean privateLayout, long parentLayoutId,
1018                    boolean incomplete, int start, int end) {
1019                    return _layoutLocalService.getLayouts(groupId, privateLayout,
1020                            parentLayoutId, incomplete, start, end);
1021            }
1022    
1023            /**
1024            * Returns all the layouts that match the type and belong to the group.
1025            *
1026            * @param groupId the primary key of the group
1027            * @param privateLayout whether the layout is private to the group
1028            * @param type the type of the layouts (optionally {@link
1029            LayoutConstants#TYPE_PORTLET})
1030            * @return the matching layouts, or <code>null</code> if no matches were
1031            found
1032            */
1033            @Override
1034            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
1035                    long groupId, boolean privateLayout, java.lang.String type) {
1036                    return _layoutLocalService.getLayouts(groupId, privateLayout, type);
1037            }
1038    
1039            /**
1040            * Returns a range of all the layouts.
1041            *
1042            * <p>
1043            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
1044            * </p>
1045            *
1046            * @param start the lower bound of the range of layouts
1047            * @param end the upper bound of the range of layouts (not inclusive)
1048            * @return the range of layouts
1049            */
1050            @Override
1051            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
1052                    int start, int end) {
1053                    return _layoutLocalService.getLayouts(start, end);
1054            }
1055    
1056            @Override
1057            public java.util.List<com.liferay.portal.model.Layout> getLayoutsByLayoutPrototypeUuid(
1058                    java.lang.String layoutPrototypeUuid) {
1059                    return _layoutLocalService.getLayoutsByLayoutPrototypeUuid(layoutPrototypeUuid);
1060            }
1061    
1062            @Override
1063            public int getLayoutsByLayoutPrototypeUuidCount(
1064                    java.lang.String layoutPrototypeUuid) {
1065                    return _layoutLocalService.getLayoutsByLayoutPrototypeUuidCount(layoutPrototypeUuid);
1066            }
1067    
1068            /**
1069            * Returns all the layouts matching the UUID and company.
1070            *
1071            * @param uuid the UUID of the layouts
1072            * @param companyId the primary key of the company
1073            * @return the matching layouts, or an empty list if no matches were found
1074            */
1075            @Override
1076            public java.util.List<com.liferay.portal.model.Layout> getLayoutsByUuidAndCompanyId(
1077                    java.lang.String uuid, long companyId) {
1078                    return _layoutLocalService.getLayoutsByUuidAndCompanyId(uuid, companyId);
1079            }
1080    
1081            /**
1082            * Returns a range of layouts matching the UUID and company.
1083            *
1084            * @param uuid the UUID of the layouts
1085            * @param companyId the primary key of the company
1086            * @param start the lower bound of the range of layouts
1087            * @param end the upper bound of the range of layouts (not inclusive)
1088            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
1089            * @return the range of matching layouts, or an empty list if no matches were found
1090            */
1091            @Override
1092            public java.util.List<com.liferay.portal.model.Layout> getLayoutsByUuidAndCompanyId(
1093                    java.lang.String uuid, long companyId, int start, int end,
1094                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Layout> orderByComparator) {
1095                    return _layoutLocalService.getLayoutsByUuidAndCompanyId(uuid,
1096                            companyId, start, end, orderByComparator);
1097            }
1098    
1099            /**
1100            * Returns the number of layouts.
1101            *
1102            * @return the number of layouts
1103            */
1104            @Override
1105            public int getLayoutsCount() {
1106                    return _layoutLocalService.getLayoutsCount();
1107            }
1108    
1109            @Override
1110            public int getLayoutsCount(com.liferay.portal.model.Group group,
1111                    boolean privateLayout)
1112                    throws com.liferay.portal.kernel.exception.PortalException {
1113                    return _layoutLocalService.getLayoutsCount(group, privateLayout);
1114            }
1115    
1116            @Override
1117            public int getLayoutsCount(com.liferay.portal.model.Group group,
1118                    boolean privateLayout, boolean includeUserGroups)
1119                    throws com.liferay.portal.kernel.exception.PortalException {
1120                    return _layoutLocalService.getLayoutsCount(group, privateLayout,
1121                            includeUserGroups);
1122            }
1123    
1124            @Override
1125            public int getLayoutsCount(com.liferay.portal.model.Group group,
1126                    boolean privateLayout, long parentLayoutId) {
1127                    return _layoutLocalService.getLayoutsCount(group, privateLayout,
1128                            parentLayoutId);
1129            }
1130    
1131            @Override
1132            public int getLayoutsCount(com.liferay.portal.model.User user,
1133                    boolean privateLayout)
1134                    throws com.liferay.portal.kernel.exception.PortalException {
1135                    return _layoutLocalService.getLayoutsCount(user, privateLayout);
1136            }
1137    
1138            @Override
1139            public int getLayoutsCount(com.liferay.portal.model.User user,
1140                    boolean privateLayout, boolean includeUserGroups)
1141                    throws com.liferay.portal.kernel.exception.PortalException {
1142                    return _layoutLocalService.getLayoutsCount(user, privateLayout,
1143                            includeUserGroups);
1144            }
1145    
1146            /**
1147            * Returns the primary key to use for the next layout.
1148            *
1149            * @param groupId the primary key of the group
1150            * @param privateLayout whether the layout is private to the group
1151            * @return the primary key to use for the next layout
1152            */
1153            @Override
1154            public long getNextLayoutId(long groupId, boolean privateLayout) {
1155                    return _layoutLocalService.getNextLayoutId(groupId, privateLayout);
1156            }
1157    
1158            /**
1159            * Returns all the layouts without resource permissions
1160            *
1161            * @param roleId the primary key of the role
1162            * @return all the layouts without resource permissions
1163            */
1164            @Override
1165            public java.util.List<com.liferay.portal.model.Layout> getNoPermissionLayouts(
1166                    long roleId) {
1167                    return _layoutLocalService.getNoPermissionLayouts(roleId);
1168            }
1169    
1170            /**
1171            * Returns all the layouts whose friendly URLs are <code>null</code>
1172            *
1173            * @return all the layouts whose friendly URLs are <code>null</code>
1174            */
1175            @Override
1176            public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts() {
1177                    return _layoutLocalService.getNullFriendlyURLLayouts();
1178            }
1179    
1180            /**
1181            * Returns the OSGi service identifier.
1182            *
1183            * @return the OSGi service identifier
1184            */
1185            @Override
1186            public java.lang.String getOSGiServiceIdentifier() {
1187                    return _layoutLocalService.getOSGiServiceIdentifier();
1188            }
1189    
1190            @Override
1191            public com.liferay.portal.model.Layout getParentLayout(
1192                    com.liferay.portal.model.Layout layout)
1193                    throws com.liferay.portal.kernel.exception.PortalException {
1194                    return _layoutLocalService.getParentLayout(layout);
1195            }
1196    
1197            @Override
1198            public com.liferay.portal.model.PersistedModel getPersistedModel(
1199                    java.io.Serializable primaryKeyObj)
1200                    throws com.liferay.portal.kernel.exception.PortalException {
1201                    return _layoutLocalService.getPersistedModel(primaryKeyObj);
1202            }
1203    
1204            /**
1205            * Returns all the layouts within scope of the group
1206            *
1207            * @param groupId the primary key of the group
1208            * @param privateLayout whether the layout is private to the group
1209            * @return the layouts within scope of the group
1210            */
1211            @Override
1212            public java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts(
1213                    long groupId, boolean privateLayout) {
1214                    return _layoutLocalService.getScopeGroupLayouts(groupId, privateLayout);
1215            }
1216    
1217            @Override
1218            public boolean hasLayoutSetPrototypeLayout(long layoutSetPrototypeId,
1219                    java.lang.String layoutUuid)
1220                    throws com.liferay.portal.kernel.exception.PortalException {
1221                    return _layoutLocalService.hasLayoutSetPrototypeLayout(layoutSetPrototypeId,
1222                            layoutUuid);
1223            }
1224    
1225            @Override
1226            public boolean hasLayoutSetPrototypeLayout(
1227                    java.lang.String layoutSetPrototypeUuid, long companyId,
1228                    java.lang.String layoutUuid)
1229                    throws com.liferay.portal.kernel.exception.PortalException {
1230                    return _layoutLocalService.hasLayoutSetPrototypeLayout(layoutSetPrototypeUuid,
1231                            companyId, layoutUuid);
1232            }
1233    
1234            @Override
1235            public boolean hasLayouts(com.liferay.portal.model.Group group)
1236                    throws com.liferay.portal.kernel.exception.PortalException {
1237                    return _layoutLocalService.hasLayouts(group);
1238            }
1239    
1240            @Override
1241            public boolean hasLayouts(com.liferay.portal.model.Group group,
1242                    boolean privateLayout)
1243                    throws com.liferay.portal.kernel.exception.PortalException {
1244                    return _layoutLocalService.hasLayouts(group, privateLayout);
1245            }
1246    
1247            @Override
1248            public boolean hasLayouts(com.liferay.portal.model.Group group,
1249                    boolean privateLayout, boolean includeUserGroups)
1250                    throws com.liferay.portal.kernel.exception.PortalException {
1251                    return _layoutLocalService.hasLayouts(group, privateLayout,
1252                            includeUserGroups);
1253            }
1254    
1255            /**
1256            * Returns <code>true</code> if the group has any layouts;
1257            * <code>false</code> otherwise.
1258            *
1259            * @param groupId the primary key of the group
1260            * @param privateLayout whether the layout is private to the group
1261            * @param parentLayoutId the primary key of the parent layout
1262            * @return <code>true</code> if the group has any layouts;
1263            <code>false</code> otherwise
1264            */
1265            @Override
1266            public boolean hasLayouts(long groupId, boolean privateLayout,
1267                    long parentLayoutId) {
1268                    return _layoutLocalService.hasLayouts(groupId, privateLayout,
1269                            parentLayoutId);
1270            }
1271    
1272            @Override
1273            public boolean hasLayouts(com.liferay.portal.model.User user,
1274                    boolean privateLayout)
1275                    throws com.liferay.portal.kernel.exception.PortalException {
1276                    return _layoutLocalService.hasLayouts(user, privateLayout);
1277            }
1278    
1279            @Override
1280            public boolean hasLayouts(com.liferay.portal.model.User user,
1281                    boolean privateLayout, boolean includeUserGroups)
1282                    throws com.liferay.portal.kernel.exception.PortalException {
1283                    return _layoutLocalService.hasLayouts(user, privateLayout,
1284                            includeUserGroups);
1285            }
1286    
1287            /**
1288            * @throws PortalException
1289            * @deprecated As of 7.0.0, replaced by {@link
1290            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayouts(
1291            ExportImportConfiguration, File)}}
1292            */
1293            @Deprecated
1294            @Override
1295            public void importLayouts(
1296                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1297                    java.io.File file)
1298                    throws com.liferay.portal.kernel.exception.PortalException {
1299                    _layoutLocalService.importLayouts(exportImportConfiguration, file);
1300            }
1301    
1302            /**
1303            * @throws PortalException
1304            * @deprecated As of 7.0.0, replaced by {@link
1305            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayouts(
1306            ExportImportConfiguration, InputStream)}}
1307            */
1308            @Deprecated
1309            @Override
1310            public void importLayouts(
1311                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1312                    java.io.InputStream is)
1313                    throws com.liferay.portal.kernel.exception.PortalException {
1314                    _layoutLocalService.importLayouts(exportImportConfiguration, is);
1315            }
1316    
1317            /**
1318            * Imports the layouts from the byte array.
1319            *
1320            * @param userId the primary key of the user
1321            * @param groupId the primary key of the group
1322            * @param privateLayout whether the layout is private to the group
1323            * @param parameterMap the mapping of parameters indicating which
1324            information will be imported. For information on the keys
1325            used in the map see {@link
1326            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1327            * @param bytes the byte array with the data
1328            * @throws PortalException
1329            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1330            * @deprecated As of 7.0.0, with no direct replacement
1331            */
1332            @Deprecated
1333            @Override
1334            public void importLayouts(long userId, long groupId, boolean privateLayout,
1335                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1336                    byte[] bytes)
1337                    throws com.liferay.portal.kernel.exception.PortalException {
1338                    _layoutLocalService.importLayouts(userId, groupId, privateLayout,
1339                            parameterMap, bytes);
1340            }
1341    
1342            /**
1343            * Imports the layouts from the file.
1344            *
1345            * @param userId the primary key of the user
1346            * @param groupId the primary key of the group
1347            * @param privateLayout whether the layout is private to the group
1348            * @param parameterMap the mapping of parameters indicating which
1349            information will be imported. For information on the keys
1350            used in the map see {@link
1351            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1352            * @param file the LAR file with the data
1353            * @throws PortalException
1354            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1355            * @deprecated As of 7.0.0, with no direct replacement
1356            */
1357            @Deprecated
1358            @Override
1359            public void importLayouts(long userId, long groupId, boolean privateLayout,
1360                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1361                    java.io.File file)
1362                    throws com.liferay.portal.kernel.exception.PortalException {
1363                    _layoutLocalService.importLayouts(userId, groupId, privateLayout,
1364                            parameterMap, file);
1365            }
1366    
1367            /**
1368            * Imports the layouts from the input stream.
1369            *
1370            * @param userId the primary key of the user
1371            * @param groupId the primary key of the group
1372            * @param privateLayout whether the layout is private to the group
1373            * @param parameterMap the mapping of parameters indicating which
1374            information will be imported. For information on the keys
1375            used in the map see {@link
1376            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1377            * @param is the input stream
1378            * @throws PortalException
1379            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1380            * @deprecated As of 7.0.0, with no direct replacement
1381            */
1382            @Deprecated
1383            @Override
1384            public void importLayouts(long userId, long groupId, boolean privateLayout,
1385                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1386                    java.io.InputStream is)
1387                    throws com.liferay.portal.kernel.exception.PortalException {
1388                    _layoutLocalService.importLayouts(userId, groupId, privateLayout,
1389                            parameterMap, is);
1390            }
1391    
1392            /**
1393            * @throws PortalException
1394            * @deprecated As of 7.0.0, replaced by {@link
1395            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsDataDeletions(
1396            ExportImportConfiguration, File)}
1397            */
1398            @Deprecated
1399            @Override
1400            public void importLayoutsDataDeletions(
1401                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1402                    java.io.File file)
1403                    throws com.liferay.portal.kernel.exception.PortalException {
1404                    _layoutLocalService.importLayoutsDataDeletions(exportImportConfiguration,
1405                            file);
1406            }
1407    
1408            /**
1409            * @throws PortalException
1410            * @deprecated As of 7.0.0, replaced by {@link
1411            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsInBackground(
1412            long, ExportImportConfiguration, File)}
1413            */
1414            @Deprecated
1415            @Override
1416            public long importLayoutsInBackground(long userId,
1417                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1418                    java.io.File file)
1419                    throws com.liferay.portal.kernel.exception.PortalException {
1420                    return _layoutLocalService.importLayoutsInBackground(userId,
1421                            exportImportConfiguration, file);
1422            }
1423    
1424            /**
1425            * @throws PortalException
1426            * @deprecated As of 7.0.0, replaced by {@link
1427            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsInBackground(
1428            long, long, File)}
1429            */
1430            @Deprecated
1431            @Override
1432            public long importLayoutsInBackground(long userId,
1433                    long exportImportConfigurationId, java.io.File file)
1434                    throws com.liferay.portal.kernel.exception.PortalException {
1435                    return _layoutLocalService.importLayoutsInBackground(userId,
1436                            exportImportConfigurationId, file);
1437            }
1438    
1439            /**
1440            * @throws PortalException
1441            * @deprecated As of 7.0.0, with no direct replacement
1442            */
1443            @Deprecated
1444            @Override
1445            public long importLayoutsInBackground(long userId,
1446                    java.lang.String taskName, long groupId, boolean privateLayout,
1447                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1448                    java.io.File file)
1449                    throws com.liferay.portal.kernel.exception.PortalException {
1450                    return _layoutLocalService.importLayoutsInBackground(userId, taskName,
1451                            groupId, privateLayout, parameterMap, file);
1452            }
1453    
1454            /**
1455            * @throws PortalException
1456            * @deprecated As of 7.0.0, with no direct replacement
1457            */
1458            @Deprecated
1459            @Override
1460            public long importLayoutsInBackground(long userId,
1461                    java.lang.String taskName, long groupId, boolean privateLayout,
1462                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1463                    java.io.InputStream is)
1464                    throws com.liferay.portal.kernel.exception.PortalException {
1465                    return _layoutLocalService.importLayoutsInBackground(userId, taskName,
1466                            groupId, privateLayout, parameterMap, is);
1467            }
1468    
1469            /**
1470            * @throws PortalException
1471            * @deprecated As of 7.0.0, replaced by {@link
1472            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletDataDeletions(
1473            ExportImportConfiguration, File)}
1474            */
1475            @Deprecated
1476            @Override
1477            public void importPortletDataDeletions(
1478                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1479                    java.io.File file)
1480                    throws com.liferay.portal.kernel.exception.PortalException {
1481                    _layoutLocalService.importPortletDataDeletions(exportImportConfiguration,
1482                            file);
1483            }
1484    
1485            /**
1486            * @throws PortalException
1487            * @deprecated As of 7.0.0, replaced by {@link
1488            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfo(
1489            ExportImportConfiguration, File)}
1490            */
1491            @Deprecated
1492            @Override
1493            public void importPortletInfo(
1494                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1495                    java.io.File file)
1496                    throws com.liferay.portal.kernel.exception.PortalException {
1497                    _layoutLocalService.importPortletInfo(exportImportConfiguration, file);
1498            }
1499    
1500            /**
1501            * @throws PortalException
1502            * @deprecated As of 7.0.0, replaced by {@link
1503            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfo(
1504            ExportImportConfiguration, InputStream)}
1505            */
1506            @Deprecated
1507            @Override
1508            public void importPortletInfo(
1509                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1510                    java.io.InputStream is)
1511                    throws com.liferay.portal.kernel.exception.PortalException {
1512                    _layoutLocalService.importPortletInfo(exportImportConfiguration, is);
1513            }
1514    
1515            /**
1516            * Imports the portlet information (categories, permissions, ... etc.) from
1517            * the file.
1518            *
1519            * @param userId the primary key of the user
1520            * @param plid the primary key of the target layout
1521            * @param groupId the primary key of the target group
1522            * @param portletId the primary key of the portlet
1523            * @param parameterMap the mapping of parameters indicating which
1524            information will be imported. For information on the keys
1525            used in the map see {@link
1526            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1527            * @param file the LAR file with the data
1528            * @throws PortalException
1529            * @deprecated As of 7.0.0, with no direct replacement
1530            */
1531            @Deprecated
1532            @Override
1533            public void importPortletInfo(long userId, long plid, long groupId,
1534                    java.lang.String portletId,
1535                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1536                    java.io.File file)
1537                    throws com.liferay.portal.kernel.exception.PortalException {
1538                    _layoutLocalService.importPortletInfo(userId, plid, groupId, portletId,
1539                            parameterMap, file);
1540            }
1541    
1542            /**
1543            * Imports the portlet information (categories, permissions, ... etc.) from
1544            * the input stream.
1545            *
1546            * @param userId the primary key of the user
1547            * @param plid the primary key of the layout
1548            * @param groupId the primary key of the group
1549            * @param portletId the primary key of the portlet
1550            * @param parameterMap the mapping of parameters indicating which
1551            information will be imported. For information on the keys
1552            used in the map see {@link
1553            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1554            * @param is the input stream
1555            * @throws PortalException
1556            * @deprecated As of 7.0.0, with no direct replacement
1557            */
1558            @Deprecated
1559            @Override
1560            public void importPortletInfo(long userId, long plid, long groupId,
1561                    java.lang.String portletId,
1562                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1563                    java.io.InputStream is)
1564                    throws com.liferay.portal.kernel.exception.PortalException {
1565                    _layoutLocalService.importPortletInfo(userId, plid, groupId, portletId,
1566                            parameterMap, is);
1567            }
1568    
1569            /**
1570            * @throws PortalException
1571            * @deprecated As of 7.0.0, with no direct replacement
1572            */
1573            @Deprecated
1574            @Override
1575            public void importPortletInfo(long userId, java.lang.String portletId,
1576                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1577                    java.io.File file)
1578                    throws com.liferay.portal.kernel.exception.PortalException {
1579                    _layoutLocalService.importPortletInfo(userId, portletId, parameterMap,
1580                            file);
1581            }
1582    
1583            /**
1584            * @throws PortalException
1585            * @deprecated As of 7.0.0, with no direct replacement
1586            */
1587            @Deprecated
1588            @Override
1589            public void importPortletInfo(long userId, java.lang.String portletId,
1590                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1591                    java.io.InputStream is)
1592                    throws com.liferay.portal.kernel.exception.PortalException {
1593                    _layoutLocalService.importPortletInfo(userId, portletId, parameterMap,
1594                            is);
1595            }
1596    
1597            /**
1598            * @throws PortalException
1599            * @deprecated As of 7.0.0, replaced by {@link
1600            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfoInBackground(
1601            long, ExportImportConfiguration, File)}
1602            */
1603            @Deprecated
1604            @Override
1605            public long importPortletInfoInBackground(long userId,
1606                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1607                    java.io.File file)
1608                    throws com.liferay.portal.kernel.exception.PortalException {
1609                    return _layoutLocalService.importPortletInfoInBackground(userId,
1610                            exportImportConfiguration, file);
1611            }
1612    
1613            /**
1614            * @throws PortalException
1615            * @deprecated As of 7.0.0, replaced by {@link
1616            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfoInBackground(
1617            long, long, File)}
1618            */
1619            @Deprecated
1620            @Override
1621            public long importPortletInfoInBackground(long userId,
1622                    long exportImportConfigurationId, java.io.File file)
1623                    throws com.liferay.portal.kernel.exception.PortalException {
1624                    return _layoutLocalService.importPortletInfoInBackground(userId,
1625                            exportImportConfigurationId, file);
1626            }
1627    
1628            /**
1629            * @throws PortalException
1630            * @deprecated As of 7.0.0, with no direct replacement
1631            */
1632            @Deprecated
1633            @Override
1634            public long importPortletInfoInBackground(long userId,
1635                    java.lang.String taskName, long plid, long groupId,
1636                    java.lang.String portletId,
1637                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1638                    java.io.File file)
1639                    throws com.liferay.portal.kernel.exception.PortalException {
1640                    return _layoutLocalService.importPortletInfoInBackground(userId,
1641                            taskName, plid, groupId, portletId, parameterMap, file);
1642            }
1643    
1644            /**
1645            * @throws PortalException
1646            * @deprecated As of 7.0.0, with no direct replacement
1647            */
1648            @Deprecated
1649            @Override
1650            public long importPortletInfoInBackground(long userId,
1651                    java.lang.String taskName, long plid, long groupId,
1652                    java.lang.String portletId,
1653                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1654                    java.io.InputStream is)
1655                    throws com.liferay.portal.kernel.exception.PortalException {
1656                    return _layoutLocalService.importPortletInfoInBackground(userId,
1657                            taskName, plid, groupId, portletId, parameterMap, is);
1658            }
1659    
1660            /**
1661            * @throws PortalException
1662            * @deprecated As of 7.0.0, with no direct replacement
1663            */
1664            @Deprecated
1665            @Override
1666            public long importPortletInfoInBackground(long userId,
1667                    java.lang.String taskName, java.lang.String portletId,
1668                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1669                    java.io.File file)
1670                    throws com.liferay.portal.kernel.exception.PortalException {
1671                    return _layoutLocalService.importPortletInfoInBackground(userId,
1672                            taskName, portletId, parameterMap, file);
1673            }
1674    
1675            /**
1676            * @throws PortalException
1677            * @deprecated As of 7.0.0, with no direct replacement
1678            */
1679            @Deprecated
1680            @Override
1681            public long importPortletInfoInBackground(long userId,
1682                    java.lang.String taskName, java.lang.String portletId,
1683                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1684                    java.io.InputStream is)
1685                    throws com.liferay.portal.kernel.exception.PortalException {
1686                    return _layoutLocalService.importPortletInfoInBackground(userId,
1687                            taskName, portletId, parameterMap, is);
1688            }
1689    
1690            /**
1691            * Sets the layouts for the group, replacing and prioritizing all layouts of
1692            * the parent layout.
1693            *
1694            * @param groupId the primary key of the group
1695            * @param privateLayout whether the layout is private to the group
1696            * @param parentLayoutId the primary key of the parent layout
1697            * @param layoutIds the primary keys of the layouts
1698            * @param serviceContext the service context to be applied
1699            */
1700            @Override
1701            public void setLayouts(long groupId, boolean privateLayout,
1702                    long parentLayoutId, long[] layoutIds,
1703                    com.liferay.portal.service.ServiceContext serviceContext)
1704                    throws com.liferay.portal.kernel.exception.PortalException {
1705                    _layoutLocalService.setLayouts(groupId, privateLayout, parentLayoutId,
1706                            layoutIds, serviceContext);
1707            }
1708    
1709            @Override
1710            public void updateAsset(long userId,
1711                    com.liferay.portal.model.Layout layout, long[] assetCategoryIds,
1712                    java.lang.String[] assetTagNames)
1713                    throws com.liferay.portal.kernel.exception.PortalException {
1714                    _layoutLocalService.updateAsset(userId, layout, assetCategoryIds,
1715                            assetTagNames);
1716            }
1717    
1718            /**
1719            * Updates the friendly URL of the layout.
1720            *
1721            * @param plid the primary key of the layout
1722            * @param friendlyURL the friendly URL to be assigned
1723            * @param languageId the primary key of the language
1724            * @return the updated layout
1725            * @deprecated As of 7.0.0, replaced by {@link #updateFriendlyURL(long,
1726            long, String, String)}
1727            */
1728            @Deprecated
1729            @Override
1730            public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
1731                    java.lang.String friendlyURL, java.lang.String languageId)
1732                    throws com.liferay.portal.kernel.exception.PortalException {
1733                    return _layoutLocalService.updateFriendlyURL(plid, friendlyURL,
1734                            languageId);
1735            }
1736    
1737            /**
1738            * Updates the friendly URL of the layout.
1739            *
1740            * @param userId the primary key of the user
1741            * @param plid the primary key of the layout
1742            * @param friendlyURL the friendly URL to be assigned
1743            * @param languageId the primary key of the language
1744            * @return the updated layout
1745            */
1746            @Override
1747            public com.liferay.portal.model.Layout updateFriendlyURL(long userId,
1748                    long plid, java.lang.String friendlyURL, java.lang.String languageId)
1749                    throws com.liferay.portal.kernel.exception.PortalException {
1750                    return _layoutLocalService.updateFriendlyURL(userId, plid, friendlyURL,
1751                            languageId);
1752            }
1753    
1754            @Override
1755            public com.liferay.portal.model.Layout updateIconImage(long plid,
1756                    byte[] bytes)
1757                    throws com.liferay.portal.kernel.exception.PortalException {
1758                    return _layoutLocalService.updateIconImage(plid, bytes);
1759            }
1760    
1761            /**
1762            * Updates the layout.
1763            *
1764            * @param groupId the primary key of the group
1765            * @param privateLayout whether the layout is private to the group
1766            * @param layoutId the primary key of the layout
1767            * @param parentLayoutId the primary key of the layout's new parent
1768            layout
1769            * @param nameMap the locales and localized names to merge (optionally
1770            <code>null</code>)
1771            * @param titleMap the locales and localized titles to merge
1772            (optionally <code>null</code>)
1773            * @param descriptionMap the locales and localized descriptions to
1774            merge (optionally <code>null</code>)
1775            * @param keywordsMap the locales and localized keywords to merge
1776            (optionally <code>null</code>)
1777            * @param robotsMap the locales and localized robots to merge
1778            (optionally <code>null</code>)
1779            * @param type the layout's new type (optionally {@link
1780            LayoutConstants#TYPE_PORTLET})
1781            * @param hidden whether the layout is hidden
1782            * @param friendlyURL the layout's new friendly URL (optionally {@link
1783            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL} or
1784            {@link
1785            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL}). The
1786            default values can be overridden in
1787            <code>portal-ext.properties</code> by specifying new values
1788            for the corresponding properties defined in {@link
1789            PropsValues}. To see how the URL is normalized when accessed,
1790            see {@link
1791            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1792            String)}.
1793            * @param iconImage whether the icon image will be updated
1794            * @param iconBytes the byte array of the layout's new icon image
1795            * @param serviceContext the service context to be applied. Can set the
1796            modification date and expando bridge attributes for the
1797            layout. For layouts that are linked to a layout prototype,
1798            attributes named <code>layoutPrototypeUuid</code> and
1799            <code>layoutPrototypeLinkedEnabled</code> can be specified to
1800            provide the unique identifier of the source prototype and a
1801            boolean to determine whether a link to it should be enabled
1802            to activate propagation of changes made to the linked page in
1803            the prototype.
1804            * @return the updated layout
1805            * @deprecated As of 6.2.0, replaced by {@link #updateLayout(long, boolean,
1806            long, long, Map, Map, Map, Map, Map, String, boolean, Map,
1807            boolean, byte[], ServiceContext)}
1808            */
1809            @Deprecated
1810            @Override
1811            public com.liferay.portal.model.Layout updateLayout(long groupId,
1812                    boolean privateLayout, long layoutId, long parentLayoutId,
1813                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1814                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1815                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1816                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1817                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1818                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
1819                    java.lang.Boolean iconImage, byte[] iconBytes,
1820                    com.liferay.portal.service.ServiceContext serviceContext)
1821                    throws com.liferay.portal.kernel.exception.PortalException {
1822                    return _layoutLocalService.updateLayout(groupId, privateLayout,
1823                            layoutId, parentLayoutId, nameMap, titleMap, descriptionMap,
1824                            keywordsMap, robotsMap, type, hidden, friendlyURL, iconImage,
1825                            iconBytes, serviceContext);
1826            }
1827    
1828            /**
1829            * Updates the layout.
1830            *
1831            * @param groupId the primary key of the group
1832            * @param privateLayout whether the layout is private to the group
1833            * @param layoutId the primary key of the layout
1834            * @param parentLayoutId the primary key of the layout's new parent layout
1835            * @param nameMap the locales and localized names to merge (optionally
1836            <code>null</code>)
1837            * @param titleMap the locales and localized titles to merge (optionally
1838            <code>null</code>)
1839            * @param descriptionMap the locales and localized descriptions to merge
1840            (optionally <code>null</code>)
1841            * @param keywordsMap the locales and localized keywords to merge
1842            (optionally <code>null</code>)
1843            * @param robotsMap the locales and localized robots to merge (optionally
1844            <code>null</code>)
1845            * @param type the layout's new type (optionally {@link
1846            LayoutConstants#TYPE_PORTLET})
1847            * @param hidden whether the layout is hidden
1848            * @param friendlyURLMap the layout's locales and localized friendly URLs.
1849            To see how the URL is normalized when accessed, see {@link
1850            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1851            String)}.
1852            * @param iconImage whether the icon image will be updated
1853            * @param iconBytes the byte array of the layout's new icon image
1854            * @param serviceContext the service context to be applied. Can set the
1855            modification date and expando bridge attributes for the layout.
1856            For layouts that are linked to a layout prototype, attributes
1857            named <code>layoutPrototypeUuid</code> and
1858            <code>layoutPrototypeLinkedEnabled</code> can be specified to
1859            provide the unique identifier of the source prototype and a
1860            boolean to determine whether a link to it should be enabled to
1861            activate propagation of changes made to the linked page in the
1862            prototype.
1863            * @return the updated layout
1864            */
1865            @Override
1866            public com.liferay.portal.model.Layout updateLayout(long groupId,
1867                    boolean privateLayout, long layoutId, long parentLayoutId,
1868                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1869                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1870                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1871                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1872                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1873                    java.lang.String type, boolean hidden,
1874                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
1875                    boolean iconImage, byte[] iconBytes,
1876                    com.liferay.portal.service.ServiceContext serviceContext)
1877                    throws com.liferay.portal.kernel.exception.PortalException {
1878                    return _layoutLocalService.updateLayout(groupId, privateLayout,
1879                            layoutId, parentLayoutId, nameMap, titleMap, descriptionMap,
1880                            keywordsMap, robotsMap, type, hidden, friendlyURLMap, iconImage,
1881                            iconBytes, serviceContext);
1882            }
1883    
1884            /**
1885            * Updates the layout replacing its type settings.
1886            *
1887            * @param groupId the primary key of the group
1888            * @param privateLayout whether the layout is private to the group
1889            * @param layoutId the primary key of the layout
1890            * @param typeSettings the settings to load the unicode properties object.
1891            See {@link UnicodeProperties #fastLoad(String)}.
1892            * @return the updated layout
1893            */
1894            @Override
1895            public com.liferay.portal.model.Layout updateLayout(long groupId,
1896                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
1897                    throws com.liferay.portal.kernel.exception.PortalException {
1898                    return _layoutLocalService.updateLayout(groupId, privateLayout,
1899                            layoutId, typeSettings);
1900            }
1901    
1902            /**
1903            * Updates the layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
1904            *
1905            * @param layout the layout
1906            * @return the layout that was updated
1907            */
1908            @Override
1909            public com.liferay.portal.model.Layout updateLayout(
1910                    com.liferay.portal.model.Layout layout) {
1911                    return _layoutLocalService.updateLayout(layout);
1912            }
1913    
1914            /**
1915            * Updates the look and feel of the layout.
1916            *
1917            * @param groupId the primary key of the group
1918            * @param privateLayout whether the layout is private to the group
1919            * @param layoutId the primary key of the layout
1920            * @param themeId the primary key of the layout's new theme
1921            * @param colorSchemeId the primary key of the layout's new color scheme
1922            * @param css the layout's new CSS
1923            * @param wapTheme whether the theme is for WAP browsers
1924            * @return the updated layout
1925            */
1926            @Override
1927            public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
1928                    boolean privateLayout, long layoutId, java.lang.String themeId,
1929                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1930                    throws com.liferay.portal.kernel.exception.PortalException {
1931                    return _layoutLocalService.updateLookAndFeel(groupId, privateLayout,
1932                            layoutId, themeId, colorSchemeId, css, wapTheme);
1933            }
1934    
1935            /**
1936            * Updates the name of the layout matching the group, layout ID, and
1937            * privacy.
1938            *
1939            * @param groupId the primary key of the group
1940            * @param privateLayout whether the layout is private to the group
1941            * @param layoutId the primary key of the layout
1942            * @param name the layout's new name
1943            * @param languageId the primary key of the language. For more information
1944            see {@link Locale}.
1945            * @return the updated layout
1946            */
1947            @Override
1948            public com.liferay.portal.model.Layout updateName(long groupId,
1949                    boolean privateLayout, long layoutId, java.lang.String name,
1950                    java.lang.String languageId)
1951                    throws com.liferay.portal.kernel.exception.PortalException {
1952                    return _layoutLocalService.updateName(groupId, privateLayout, layoutId,
1953                            name, languageId);
1954            }
1955    
1956            /**
1957            * Updates the name of the layout.
1958            *
1959            * @param layout the layout to be updated
1960            * @param name the layout's new name
1961            * @param languageId the primary key of the language. For more information
1962            see {@link Locale}.
1963            * @return the updated layout
1964            */
1965            @Override
1966            public com.liferay.portal.model.Layout updateName(
1967                    com.liferay.portal.model.Layout layout, java.lang.String name,
1968                    java.lang.String languageId)
1969                    throws com.liferay.portal.kernel.exception.PortalException {
1970                    return _layoutLocalService.updateName(layout, name, languageId);
1971            }
1972    
1973            /**
1974            * Updates the name of the layout matching the primary key.
1975            *
1976            * @param plid the primary key of the layout
1977            * @param name the name to be assigned
1978            * @param languageId the primary key of the language. For more information
1979            see {@link Locale}.
1980            * @return the updated layout
1981            */
1982            @Override
1983            public com.liferay.portal.model.Layout updateName(long plid,
1984                    java.lang.String name, java.lang.String languageId)
1985                    throws com.liferay.portal.kernel.exception.PortalException {
1986                    return _layoutLocalService.updateName(plid, name, languageId);
1987            }
1988    
1989            /**
1990            * Updates the parent layout ID of the layout matching the group, layout ID,
1991            * and privacy.
1992            *
1993            * @param groupId the primary key of the group
1994            * @param privateLayout whether the layout is private to the group
1995            * @param layoutId the primary key of the layout
1996            * @param parentLayoutId the primary key to be assigned to the parent
1997            layout
1998            * @return the matching layout
1999            */
2000            @Override
2001            public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
2002                    boolean privateLayout, long layoutId, long parentLayoutId)
2003                    throws com.liferay.portal.kernel.exception.PortalException {
2004                    return _layoutLocalService.updateParentLayoutId(groupId, privateLayout,
2005                            layoutId, parentLayoutId);
2006            }
2007    
2008            /**
2009            * Updates the parent layout ID of the layout matching the primary key. If a
2010            * layout matching the parent primary key is found, the layout ID of that
2011            * layout is assigned, otherwise {@link
2012            * LayoutConstants#DEFAULT_PARENT_LAYOUT_ID} is assigned.
2013            *
2014            * @param plid the primary key of the layout
2015            * @param parentPlid the primary key of the parent layout
2016            * @return the layout matching the primary key
2017            */
2018            @Override
2019            public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
2020                    long parentPlid)
2021                    throws com.liferay.portal.kernel.exception.PortalException {
2022                    return _layoutLocalService.updateParentLayoutId(plid, parentPlid);
2023            }
2024    
2025            /**
2026            * Updates the parent layout ID and priority of the layout.
2027            *
2028            * @param plid the primary key of the layout
2029            * @param parentPlid the primary key of the parent layout
2030            * @param priority the layout's new priority
2031            * @return the layout matching the primary key
2032            */
2033            @Override
2034            public com.liferay.portal.model.Layout updateParentLayoutIdAndPriority(
2035                    long plid, long parentPlid, int priority)
2036                    throws com.liferay.portal.kernel.exception.PortalException {
2037                    return _layoutLocalService.updateParentLayoutIdAndPriority(plid,
2038                            parentPlid, priority);
2039            }
2040    
2041            /**
2042            * Updates the priorities of the layouts.
2043            *
2044            * @param groupId the primary key of the group
2045            * @param privateLayout whether the layout is private to the group
2046            * @throws PortalException
2047            */
2048            @Override
2049            public void updatePriorities(long groupId, boolean privateLayout)
2050                    throws com.liferay.portal.kernel.exception.PortalException {
2051                    _layoutLocalService.updatePriorities(groupId, privateLayout);
2052            }
2053    
2054            /**
2055            * Updates the priority of the layout matching the group, layout ID, and
2056            * privacy, setting the layout's priority based on the priorities of the
2057            * next and previous layouts.
2058            *
2059            * @param groupId the primary key of the group
2060            * @param privateLayout whether the layout is private to the group
2061            * @param layoutId the primary key of the layout
2062            * @param nextLayoutId the primary key of the next layout
2063            * @param previousLayoutId the primary key of the previous layout
2064            * @return the updated layout
2065            */
2066            @Override
2067            public com.liferay.portal.model.Layout updatePriority(long groupId,
2068                    boolean privateLayout, long layoutId, long nextLayoutId,
2069                    long previousLayoutId)
2070                    throws com.liferay.portal.kernel.exception.PortalException {
2071                    return _layoutLocalService.updatePriority(groupId, privateLayout,
2072                            layoutId, nextLayoutId, previousLayoutId);
2073            }
2074    
2075            /**
2076            * Updates the priority of the layout matching the group, layout ID, and
2077            * privacy.
2078            *
2079            * @param groupId the primary key of the group
2080            * @param privateLayout whether the layout is private to the group
2081            * @param layoutId the primary key of the layout
2082            * @param priority the layout's new priority
2083            * @return the updated layout
2084            */
2085            @Override
2086            public com.liferay.portal.model.Layout updatePriority(long groupId,
2087                    boolean privateLayout, long layoutId, int priority)
2088                    throws com.liferay.portal.kernel.exception.PortalException {
2089                    return _layoutLocalService.updatePriority(groupId, privateLayout,
2090                            layoutId, priority);
2091            }
2092    
2093            /**
2094            * Updates the priority of the layout.
2095            *
2096            * @param layout the layout to be updated
2097            * @param priority the layout's new priority
2098            * @return the updated layout
2099            */
2100            @Override
2101            public com.liferay.portal.model.Layout updatePriority(
2102                    com.liferay.portal.model.Layout layout, int priority)
2103                    throws com.liferay.portal.kernel.exception.PortalException {
2104                    return _layoutLocalService.updatePriority(layout, priority);
2105            }
2106    
2107            /**
2108            * Updates the priority of the layout matching the primary key.
2109            *
2110            * @param plid the primary key of the layout
2111            * @param priority the layout's new priority
2112            * @return the updated layout
2113            */
2114            @Override
2115            public com.liferay.portal.model.Layout updatePriority(long plid,
2116                    int priority)
2117                    throws com.liferay.portal.kernel.exception.PortalException {
2118                    return _layoutLocalService.updatePriority(plid, priority);
2119            }
2120    
2121            /**
2122            * Updates the names of the portlets within scope of the group, the scope of
2123            * the layout's UUID, and the privacy.
2124            *
2125            * @param groupId the primary key of the group
2126            * @param privateLayout whether the layout is private to the group
2127            * @param layoutId the primary key of the layout whose UUID to match
2128            * @param name the new name for the portlets
2129            * @param languageId the primary key of the language
2130            * @throws PortalException
2131            * @see com.liferay.portlet.portletconfiguration.action.EditScopeAction
2132            * @deprecated As of 6.2.0, with no direct replacement
2133            */
2134            @Deprecated
2135            @Override
2136            public void updateScopedPortletNames(long groupId, boolean privateLayout,
2137                    long layoutId, java.lang.String name, java.lang.String languageId)
2138                    throws com.liferay.portal.kernel.exception.PortalException {
2139                    _layoutLocalService.updateScopedPortletNames(groupId, privateLayout,
2140                            layoutId, name, languageId);
2141            }
2142    
2143            /**
2144            * @deprecated As of 6.2.0, with no direct replacement
2145            */
2146            @Deprecated
2147            @Override
2148            public void updateScopedPortletNames(long groupId, boolean privateLayout,
2149                    long layoutId,
2150                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
2151                    java.util.List<java.util.Locale> nameMapModifiedLocales)
2152                    throws com.liferay.portal.kernel.exception.PortalException {
2153                    _layoutLocalService.updateScopedPortletNames(groupId, privateLayout,
2154                            layoutId, nameMap, nameMapModifiedLocales);
2155            }
2156    
2157            /**
2158            * @throws PortalException
2159            * @deprecated As of 7.0.0, replaced by {@link
2160            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportLayoutsFile(
2161            ExportImportConfiguration, File)}
2162            */
2163            @Deprecated
2164            @Override
2165            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
2166                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
2167                    java.io.File file)
2168                    throws com.liferay.portal.kernel.exception.PortalException {
2169                    return _layoutLocalService.validateImportLayoutsFile(exportImportConfiguration,
2170                            file);
2171            }
2172    
2173            /**
2174            * @throws PortalException
2175            * @deprecated As of 7.0.0, replaced by {@link
2176            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportLayoutsFile(
2177            ExportImportConfiguration, InputStream)}
2178            */
2179            @Deprecated
2180            @Override
2181            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
2182                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
2183                    java.io.InputStream inputStream)
2184                    throws com.liferay.portal.kernel.exception.PortalException {
2185                    return _layoutLocalService.validateImportLayoutsFile(exportImportConfiguration,
2186                            inputStream);
2187            }
2188    
2189            /**
2190            * @throws PortalException
2191            * @deprecated As of 7.0.0, with no direct replacement
2192            */
2193            @Deprecated
2194            @Override
2195            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
2196                    long userId, long groupId, boolean privateLayout,
2197                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2198                    java.io.File file)
2199                    throws com.liferay.portal.kernel.exception.PortalException {
2200                    return _layoutLocalService.validateImportLayoutsFile(userId, groupId,
2201                            privateLayout, parameterMap, file);
2202            }
2203    
2204            /**
2205            * @throws PortalException
2206            * @deprecated As of 7.0.0, with no direct replacement
2207            */
2208            @Deprecated
2209            @Override
2210            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
2211                    long userId, long groupId, boolean privateLayout,
2212                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2213                    java.io.InputStream inputStream)
2214                    throws com.liferay.portal.kernel.exception.PortalException {
2215                    return _layoutLocalService.validateImportLayoutsFile(userId, groupId,
2216                            privateLayout, parameterMap, inputStream);
2217            }
2218    
2219            /**
2220            * @throws PortalException
2221            * @deprecated As of 7.0.0, replaced by {@link
2222            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportPortletInfo(
2223            ExportImportConfiguration, File)}
2224            */
2225            @Deprecated
2226            @Override
2227            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
2228                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
2229                    java.io.File file)
2230                    throws com.liferay.portal.kernel.exception.PortalException {
2231                    return _layoutLocalService.validateImportPortletInfo(exportImportConfiguration,
2232                            file);
2233            }
2234    
2235            /**
2236            * @throws PortalException
2237            * @deprecated As of 7.0.0, replaced by {@link
2238            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportPortletInfo(
2239            ExportImportConfiguration, InputStream)}
2240            */
2241            @Deprecated
2242            @Override
2243            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
2244                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
2245                    java.io.InputStream inputStream)
2246                    throws com.liferay.portal.kernel.exception.PortalException {
2247                    return _layoutLocalService.validateImportPortletInfo(exportImportConfiguration,
2248                            inputStream);
2249            }
2250    
2251            /**
2252            * @throws PortalException
2253            * @deprecated As of 7.0.0, with no direct replacement
2254            */
2255            @Deprecated
2256            @Override
2257            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
2258                    long userId, long plid, long groupId, java.lang.String portletId,
2259                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2260                    java.io.File file)
2261                    throws com.liferay.portal.kernel.exception.PortalException {
2262                    return _layoutLocalService.validateImportPortletInfo(userId, plid,
2263                            groupId, portletId, parameterMap, file);
2264            }
2265    
2266            /**
2267            * @throws PortalException
2268            * @deprecated As of 7.0.0, with no direct replacement
2269            */
2270            @Deprecated
2271            @Override
2272            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
2273                    long userId, long plid, long groupId, java.lang.String portletId,
2274                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2275                    java.io.InputStream inputStream)
2276                    throws com.liferay.portal.kernel.exception.PortalException {
2277                    return _layoutLocalService.validateImportPortletInfo(userId, plid,
2278                            groupId, portletId, parameterMap, inputStream);
2279            }
2280    
2281            /**
2282             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
2283             */
2284            @Deprecated
2285            public LayoutLocalService getWrappedLayoutLocalService() {
2286                    return _layoutLocalService;
2287            }
2288    
2289            /**
2290             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
2291             */
2292            @Deprecated
2293            public void setWrappedLayoutLocalService(
2294                    LayoutLocalService layoutLocalService) {
2295                    _layoutLocalService = layoutLocalService;
2296            }
2297    
2298            @Override
2299            public LayoutLocalService getWrappedService() {
2300                    return _layoutLocalService;
2301            }
2302    
2303            @Override
2304            public void setWrappedService(LayoutLocalService layoutLocalService) {
2305                    _layoutLocalService = layoutLocalService;
2306            }
2307    
2308            private LayoutLocalService _layoutLocalService;
2309    }