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            @Override
1205            public java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts(
1206                    long parentGroupId)
1207                    throws com.liferay.portal.kernel.exception.PortalException {
1208                    return _layoutLocalService.getScopeGroupLayouts(parentGroupId);
1209            }
1210    
1211            /**
1212            * Returns all the layouts within scope of the group
1213            *
1214            * @param privateLayout whether the layout is private to the group
1215            * @return the layouts within scope of the group
1216            */
1217            @Override
1218            public java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts(
1219                    long parentGroupId, boolean privateLayout)
1220                    throws com.liferay.portal.kernel.exception.PortalException {
1221                    return _layoutLocalService.getScopeGroupLayouts(parentGroupId,
1222                            privateLayout);
1223            }
1224    
1225            @Override
1226            public boolean hasLayoutSetPrototypeLayout(long layoutSetPrototypeId,
1227                    java.lang.String layoutUuid)
1228                    throws com.liferay.portal.kernel.exception.PortalException {
1229                    return _layoutLocalService.hasLayoutSetPrototypeLayout(layoutSetPrototypeId,
1230                            layoutUuid);
1231            }
1232    
1233            @Override
1234            public boolean hasLayoutSetPrototypeLayout(
1235                    java.lang.String layoutSetPrototypeUuid, long companyId,
1236                    java.lang.String layoutUuid)
1237                    throws com.liferay.portal.kernel.exception.PortalException {
1238                    return _layoutLocalService.hasLayoutSetPrototypeLayout(layoutSetPrototypeUuid,
1239                            companyId, layoutUuid);
1240            }
1241    
1242            @Override
1243            public boolean hasLayouts(com.liferay.portal.model.Group group)
1244                    throws com.liferay.portal.kernel.exception.PortalException {
1245                    return _layoutLocalService.hasLayouts(group);
1246            }
1247    
1248            @Override
1249            public boolean hasLayouts(com.liferay.portal.model.Group group,
1250                    boolean privateLayout)
1251                    throws com.liferay.portal.kernel.exception.PortalException {
1252                    return _layoutLocalService.hasLayouts(group, privateLayout);
1253            }
1254    
1255            @Override
1256            public boolean hasLayouts(com.liferay.portal.model.Group group,
1257                    boolean privateLayout, boolean includeUserGroups)
1258                    throws com.liferay.portal.kernel.exception.PortalException {
1259                    return _layoutLocalService.hasLayouts(group, privateLayout,
1260                            includeUserGroups);
1261            }
1262    
1263            /**
1264            * Returns <code>true</code> if the group has any layouts;
1265            * <code>false</code> otherwise.
1266            *
1267            * @param groupId the primary key of the group
1268            * @param privateLayout whether the layout is private to the group
1269            * @param parentLayoutId the primary key of the parent layout
1270            * @return <code>true</code> if the group has any layouts;
1271            <code>false</code> otherwise
1272            */
1273            @Override
1274            public boolean hasLayouts(long groupId, boolean privateLayout,
1275                    long parentLayoutId) {
1276                    return _layoutLocalService.hasLayouts(groupId, privateLayout,
1277                            parentLayoutId);
1278            }
1279    
1280            @Override
1281            public boolean hasLayouts(com.liferay.portal.model.User user,
1282                    boolean privateLayout)
1283                    throws com.liferay.portal.kernel.exception.PortalException {
1284                    return _layoutLocalService.hasLayouts(user, privateLayout);
1285            }
1286    
1287            @Override
1288            public boolean hasLayouts(com.liferay.portal.model.User user,
1289                    boolean privateLayout, boolean includeUserGroups)
1290                    throws com.liferay.portal.kernel.exception.PortalException {
1291                    return _layoutLocalService.hasLayouts(user, privateLayout,
1292                            includeUserGroups);
1293            }
1294    
1295            /**
1296            * @throws PortalException
1297            * @deprecated As of 7.0.0, replaced by {@link
1298            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayouts(
1299            ExportImportConfiguration, File)}}
1300            */
1301            @Deprecated
1302            @Override
1303            public void importLayouts(
1304                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1305                    java.io.File file)
1306                    throws com.liferay.portal.kernel.exception.PortalException {
1307                    _layoutLocalService.importLayouts(exportImportConfiguration, file);
1308            }
1309    
1310            /**
1311            * @throws PortalException
1312            * @deprecated As of 7.0.0, replaced by {@link
1313            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayouts(
1314            ExportImportConfiguration, InputStream)}}
1315            */
1316            @Deprecated
1317            @Override
1318            public void importLayouts(
1319                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1320                    java.io.InputStream is)
1321                    throws com.liferay.portal.kernel.exception.PortalException {
1322                    _layoutLocalService.importLayouts(exportImportConfiguration, is);
1323            }
1324    
1325            /**
1326            * Imports the layouts from the byte array.
1327            *
1328            * @param userId the primary key of the user
1329            * @param groupId the primary key of the group
1330            * @param privateLayout whether the layout is private to the group
1331            * @param parameterMap the mapping of parameters indicating which
1332            information will be imported. For information on the keys
1333            used in the map see {@link
1334            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1335            * @param bytes the byte array with the data
1336            * @throws PortalException
1337            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1338            * @deprecated As of 7.0.0, with no direct replacement
1339            */
1340            @Deprecated
1341            @Override
1342            public void importLayouts(long userId, long groupId, boolean privateLayout,
1343                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1344                    byte[] bytes)
1345                    throws com.liferay.portal.kernel.exception.PortalException {
1346                    _layoutLocalService.importLayouts(userId, groupId, privateLayout,
1347                            parameterMap, bytes);
1348            }
1349    
1350            /**
1351            * Imports the layouts from the file.
1352            *
1353            * @param userId the primary key of the user
1354            * @param groupId the primary key of the group
1355            * @param privateLayout whether the layout is private to the group
1356            * @param parameterMap the mapping of parameters indicating which
1357            information will be imported. For information on the keys
1358            used in the map see {@link
1359            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1360            * @param file the LAR file with the data
1361            * @throws PortalException
1362            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1363            * @deprecated As of 7.0.0, with no direct replacement
1364            */
1365            @Deprecated
1366            @Override
1367            public void importLayouts(long userId, long groupId, boolean privateLayout,
1368                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1369                    java.io.File file)
1370                    throws com.liferay.portal.kernel.exception.PortalException {
1371                    _layoutLocalService.importLayouts(userId, groupId, privateLayout,
1372                            parameterMap, file);
1373            }
1374    
1375            /**
1376            * Imports the layouts from the input stream.
1377            *
1378            * @param userId the primary key of the user
1379            * @param groupId the primary key of the group
1380            * @param privateLayout whether the layout is private to the group
1381            * @param parameterMap the mapping of parameters indicating which
1382            information will be imported. For information on the keys
1383            used in the map see {@link
1384            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1385            * @param is the input stream
1386            * @throws PortalException
1387            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1388            * @deprecated As of 7.0.0, with no direct replacement
1389            */
1390            @Deprecated
1391            @Override
1392            public void importLayouts(long userId, long groupId, boolean privateLayout,
1393                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1394                    java.io.InputStream is)
1395                    throws com.liferay.portal.kernel.exception.PortalException {
1396                    _layoutLocalService.importLayouts(userId, groupId, privateLayout,
1397                            parameterMap, is);
1398            }
1399    
1400            /**
1401            * @throws PortalException
1402            * @deprecated As of 7.0.0, replaced by {@link
1403            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsDataDeletions(
1404            ExportImportConfiguration, File)}
1405            */
1406            @Deprecated
1407            @Override
1408            public void importLayoutsDataDeletions(
1409                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1410                    java.io.File file)
1411                    throws com.liferay.portal.kernel.exception.PortalException {
1412                    _layoutLocalService.importLayoutsDataDeletions(exportImportConfiguration,
1413                            file);
1414            }
1415    
1416            /**
1417            * @throws PortalException
1418            * @deprecated As of 7.0.0, replaced by {@link
1419            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsInBackground(
1420            long, ExportImportConfiguration, File)}
1421            */
1422            @Deprecated
1423            @Override
1424            public long importLayoutsInBackground(long userId,
1425                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1426                    java.io.File file)
1427                    throws com.liferay.portal.kernel.exception.PortalException {
1428                    return _layoutLocalService.importLayoutsInBackground(userId,
1429                            exportImportConfiguration, file);
1430            }
1431    
1432            /**
1433            * @throws PortalException
1434            * @deprecated As of 7.0.0, replaced by {@link
1435            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsInBackground(
1436            long, long, File)}
1437            */
1438            @Deprecated
1439            @Override
1440            public long importLayoutsInBackground(long userId,
1441                    long exportImportConfigurationId, java.io.File file)
1442                    throws com.liferay.portal.kernel.exception.PortalException {
1443                    return _layoutLocalService.importLayoutsInBackground(userId,
1444                            exportImportConfigurationId, file);
1445            }
1446    
1447            /**
1448            * @throws PortalException
1449            * @deprecated As of 7.0.0, with no direct replacement
1450            */
1451            @Deprecated
1452            @Override
1453            public long importLayoutsInBackground(long userId,
1454                    java.lang.String taskName, long groupId, boolean privateLayout,
1455                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1456                    java.io.File file)
1457                    throws com.liferay.portal.kernel.exception.PortalException {
1458                    return _layoutLocalService.importLayoutsInBackground(userId, taskName,
1459                            groupId, privateLayout, parameterMap, file);
1460            }
1461    
1462            /**
1463            * @throws PortalException
1464            * @deprecated As of 7.0.0, with no direct replacement
1465            */
1466            @Deprecated
1467            @Override
1468            public long importLayoutsInBackground(long userId,
1469                    java.lang.String taskName, long groupId, boolean privateLayout,
1470                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1471                    java.io.InputStream is)
1472                    throws com.liferay.portal.kernel.exception.PortalException {
1473                    return _layoutLocalService.importLayoutsInBackground(userId, taskName,
1474                            groupId, privateLayout, parameterMap, is);
1475            }
1476    
1477            /**
1478            * @throws PortalException
1479            * @deprecated As of 7.0.0, replaced by {@link
1480            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletDataDeletions(
1481            ExportImportConfiguration, File)}
1482            */
1483            @Deprecated
1484            @Override
1485            public void importPortletDataDeletions(
1486                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1487                    java.io.File file)
1488                    throws com.liferay.portal.kernel.exception.PortalException {
1489                    _layoutLocalService.importPortletDataDeletions(exportImportConfiguration,
1490                            file);
1491            }
1492    
1493            /**
1494            * @throws PortalException
1495            * @deprecated As of 7.0.0, replaced by {@link
1496            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfo(
1497            ExportImportConfiguration, File)}
1498            */
1499            @Deprecated
1500            @Override
1501            public void importPortletInfo(
1502                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1503                    java.io.File file)
1504                    throws com.liferay.portal.kernel.exception.PortalException {
1505                    _layoutLocalService.importPortletInfo(exportImportConfiguration, file);
1506            }
1507    
1508            /**
1509            * @throws PortalException
1510            * @deprecated As of 7.0.0, replaced by {@link
1511            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfo(
1512            ExportImportConfiguration, InputStream)}
1513            */
1514            @Deprecated
1515            @Override
1516            public void importPortletInfo(
1517                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1518                    java.io.InputStream is)
1519                    throws com.liferay.portal.kernel.exception.PortalException {
1520                    _layoutLocalService.importPortletInfo(exportImportConfiguration, is);
1521            }
1522    
1523            /**
1524            * Imports the portlet information (categories, permissions, ... etc.) from
1525            * the file.
1526            *
1527            * @param userId the primary key of the user
1528            * @param plid the primary key of the target layout
1529            * @param groupId the primary key of the target group
1530            * @param portletId the primary key of the portlet
1531            * @param parameterMap the mapping of parameters indicating which
1532            information will be imported. For information on the keys
1533            used in the map see {@link
1534            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1535            * @param file the LAR file with the data
1536            * @throws PortalException
1537            * @deprecated As of 7.0.0, with no direct replacement
1538            */
1539            @Deprecated
1540            @Override
1541            public void importPortletInfo(long userId, long plid, long groupId,
1542                    java.lang.String portletId,
1543                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1544                    java.io.File file)
1545                    throws com.liferay.portal.kernel.exception.PortalException {
1546                    _layoutLocalService.importPortletInfo(userId, plid, groupId, portletId,
1547                            parameterMap, file);
1548            }
1549    
1550            /**
1551            * Imports the portlet information (categories, permissions, ... etc.) from
1552            * the input stream.
1553            *
1554            * @param userId the primary key of the user
1555            * @param plid the primary key of the layout
1556            * @param groupId the primary key of the group
1557            * @param portletId the primary key of the portlet
1558            * @param parameterMap the mapping of parameters indicating which
1559            information will be imported. For information on the keys
1560            used in the map see {@link
1561            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1562            * @param is the input stream
1563            * @throws PortalException
1564            * @deprecated As of 7.0.0, with no direct replacement
1565            */
1566            @Deprecated
1567            @Override
1568            public void importPortletInfo(long userId, long plid, long groupId,
1569                    java.lang.String portletId,
1570                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1571                    java.io.InputStream is)
1572                    throws com.liferay.portal.kernel.exception.PortalException {
1573                    _layoutLocalService.importPortletInfo(userId, plid, groupId, portletId,
1574                            parameterMap, is);
1575            }
1576    
1577            /**
1578            * @throws PortalException
1579            * @deprecated As of 7.0.0, with no direct replacement
1580            */
1581            @Deprecated
1582            @Override
1583            public void importPortletInfo(long userId, java.lang.String portletId,
1584                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1585                    java.io.File file)
1586                    throws com.liferay.portal.kernel.exception.PortalException {
1587                    _layoutLocalService.importPortletInfo(userId, portletId, parameterMap,
1588                            file);
1589            }
1590    
1591            /**
1592            * @throws PortalException
1593            * @deprecated As of 7.0.0, with no direct replacement
1594            */
1595            @Deprecated
1596            @Override
1597            public void importPortletInfo(long userId, java.lang.String portletId,
1598                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1599                    java.io.InputStream is)
1600                    throws com.liferay.portal.kernel.exception.PortalException {
1601                    _layoutLocalService.importPortletInfo(userId, portletId, parameterMap,
1602                            is);
1603            }
1604    
1605            /**
1606            * @throws PortalException
1607            * @deprecated As of 7.0.0, replaced by {@link
1608            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfoInBackground(
1609            long, ExportImportConfiguration, File)}
1610            */
1611            @Deprecated
1612            @Override
1613            public long importPortletInfoInBackground(long userId,
1614                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1615                    java.io.File file)
1616                    throws com.liferay.portal.kernel.exception.PortalException {
1617                    return _layoutLocalService.importPortletInfoInBackground(userId,
1618                            exportImportConfiguration, file);
1619            }
1620    
1621            /**
1622            * @throws PortalException
1623            * @deprecated As of 7.0.0, replaced by {@link
1624            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfoInBackground(
1625            long, long, File)}
1626            */
1627            @Deprecated
1628            @Override
1629            public long importPortletInfoInBackground(long userId,
1630                    long exportImportConfigurationId, java.io.File file)
1631                    throws com.liferay.portal.kernel.exception.PortalException {
1632                    return _layoutLocalService.importPortletInfoInBackground(userId,
1633                            exportImportConfigurationId, file);
1634            }
1635    
1636            /**
1637            * @throws PortalException
1638            * @deprecated As of 7.0.0, with no direct replacement
1639            */
1640            @Deprecated
1641            @Override
1642            public long importPortletInfoInBackground(long userId,
1643                    java.lang.String taskName, long plid, long groupId,
1644                    java.lang.String portletId,
1645                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1646                    java.io.File file)
1647                    throws com.liferay.portal.kernel.exception.PortalException {
1648                    return _layoutLocalService.importPortletInfoInBackground(userId,
1649                            taskName, plid, groupId, portletId, parameterMap, file);
1650            }
1651    
1652            /**
1653            * @throws PortalException
1654            * @deprecated As of 7.0.0, with no direct replacement
1655            */
1656            @Deprecated
1657            @Override
1658            public long importPortletInfoInBackground(long userId,
1659                    java.lang.String taskName, long plid, long groupId,
1660                    java.lang.String portletId,
1661                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1662                    java.io.InputStream is)
1663                    throws com.liferay.portal.kernel.exception.PortalException {
1664                    return _layoutLocalService.importPortletInfoInBackground(userId,
1665                            taskName, plid, groupId, portletId, parameterMap, is);
1666            }
1667    
1668            /**
1669            * @throws PortalException
1670            * @deprecated As of 7.0.0, with no direct replacement
1671            */
1672            @Deprecated
1673            @Override
1674            public long importPortletInfoInBackground(long userId,
1675                    java.lang.String taskName, java.lang.String portletId,
1676                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1677                    java.io.File file)
1678                    throws com.liferay.portal.kernel.exception.PortalException {
1679                    return _layoutLocalService.importPortletInfoInBackground(userId,
1680                            taskName, portletId, parameterMap, file);
1681            }
1682    
1683            /**
1684            * @throws PortalException
1685            * @deprecated As of 7.0.0, with no direct replacement
1686            */
1687            @Deprecated
1688            @Override
1689            public long importPortletInfoInBackground(long userId,
1690                    java.lang.String taskName, java.lang.String portletId,
1691                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1692                    java.io.InputStream is)
1693                    throws com.liferay.portal.kernel.exception.PortalException {
1694                    return _layoutLocalService.importPortletInfoInBackground(userId,
1695                            taskName, portletId, parameterMap, is);
1696            }
1697    
1698            /**
1699            * Sets the layouts for the group, replacing and prioritizing all layouts of
1700            * the parent layout.
1701            *
1702            * @param groupId the primary key of the group
1703            * @param privateLayout whether the layout is private to the group
1704            * @param parentLayoutId the primary key of the parent layout
1705            * @param layoutIds the primary keys of the layouts
1706            * @param serviceContext the service context to be applied
1707            */
1708            @Override
1709            public void setLayouts(long groupId, boolean privateLayout,
1710                    long parentLayoutId, long[] layoutIds,
1711                    com.liferay.portal.service.ServiceContext serviceContext)
1712                    throws com.liferay.portal.kernel.exception.PortalException {
1713                    _layoutLocalService.setLayouts(groupId, privateLayout, parentLayoutId,
1714                            layoutIds, serviceContext);
1715            }
1716    
1717            @Override
1718            public void updateAsset(long userId,
1719                    com.liferay.portal.model.Layout layout, long[] assetCategoryIds,
1720                    java.lang.String[] assetTagNames)
1721                    throws com.liferay.portal.kernel.exception.PortalException {
1722                    _layoutLocalService.updateAsset(userId, layout, assetCategoryIds,
1723                            assetTagNames);
1724            }
1725    
1726            /**
1727            * Updates the friendly URL of the layout.
1728            *
1729            * @param plid the primary key of the layout
1730            * @param friendlyURL the friendly URL to be assigned
1731            * @param languageId the primary key of the language
1732            * @return the updated layout
1733            * @deprecated As of 7.0.0, replaced by {@link #updateFriendlyURL(long,
1734            long, String, String)}
1735            */
1736            @Deprecated
1737            @Override
1738            public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
1739                    java.lang.String friendlyURL, java.lang.String languageId)
1740                    throws com.liferay.portal.kernel.exception.PortalException {
1741                    return _layoutLocalService.updateFriendlyURL(plid, friendlyURL,
1742                            languageId);
1743            }
1744    
1745            /**
1746            * Updates the friendly URL of the layout.
1747            *
1748            * @param userId the primary key of the user
1749            * @param plid the primary key of the layout
1750            * @param friendlyURL the friendly URL to be assigned
1751            * @param languageId the primary key of the language
1752            * @return the updated layout
1753            */
1754            @Override
1755            public com.liferay.portal.model.Layout updateFriendlyURL(long userId,
1756                    long plid, java.lang.String friendlyURL, java.lang.String languageId)
1757                    throws com.liferay.portal.kernel.exception.PortalException {
1758                    return _layoutLocalService.updateFriendlyURL(userId, plid, friendlyURL,
1759                            languageId);
1760            }
1761    
1762            @Override
1763            public com.liferay.portal.model.Layout updateIconImage(long plid,
1764                    byte[] bytes)
1765                    throws com.liferay.portal.kernel.exception.PortalException {
1766                    return _layoutLocalService.updateIconImage(plid, bytes);
1767            }
1768    
1769            /**
1770            * Updates the layout.
1771            *
1772            * @param groupId the primary key of the group
1773            * @param privateLayout whether the layout is private to the group
1774            * @param layoutId the primary key of the layout
1775            * @param parentLayoutId the primary key of the layout's new parent
1776            layout
1777            * @param nameMap the locales and localized names to merge (optionally
1778            <code>null</code>)
1779            * @param titleMap the locales and localized titles to merge
1780            (optionally <code>null</code>)
1781            * @param descriptionMap the locales and localized descriptions to
1782            merge (optionally <code>null</code>)
1783            * @param keywordsMap the locales and localized keywords to merge
1784            (optionally <code>null</code>)
1785            * @param robotsMap the locales and localized robots to merge
1786            (optionally <code>null</code>)
1787            * @param type the layout's new type (optionally {@link
1788            LayoutConstants#TYPE_PORTLET})
1789            * @param hidden whether the layout is hidden
1790            * @param friendlyURL the layout's new friendly URL (optionally {@link
1791            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL} or
1792            {@link
1793            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL}). The
1794            default values can be overridden in
1795            <code>portal-ext.properties</code> by specifying new values
1796            for the corresponding properties defined in {@link
1797            PropsValues}. To see how the URL is normalized when accessed,
1798            see {@link
1799            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1800            String)}.
1801            * @param iconImage whether the icon image will be updated
1802            * @param iconBytes the byte array of the layout's new icon image
1803            * @param serviceContext the service context to be applied. Can set the
1804            modification date and expando bridge attributes for the
1805            layout. For layouts that are linked to a layout prototype,
1806            attributes named <code>layoutPrototypeUuid</code> and
1807            <code>layoutPrototypeLinkedEnabled</code> can be specified to
1808            provide the unique identifier of the source prototype and a
1809            boolean to determine whether a link to it should be enabled
1810            to activate propagation of changes made to the linked page in
1811            the prototype.
1812            * @return the updated layout
1813            * @deprecated As of 6.2.0, replaced by {@link #updateLayout(long, boolean,
1814            long, long, Map, Map, Map, Map, Map, String, boolean, Map,
1815            boolean, byte[], ServiceContext)}
1816            */
1817            @Deprecated
1818            @Override
1819            public com.liferay.portal.model.Layout updateLayout(long groupId,
1820                    boolean privateLayout, long layoutId, long parentLayoutId,
1821                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1822                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1823                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1824                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1825                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1826                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
1827                    java.lang.Boolean iconImage, byte[] iconBytes,
1828                    com.liferay.portal.service.ServiceContext serviceContext)
1829                    throws com.liferay.portal.kernel.exception.PortalException {
1830                    return _layoutLocalService.updateLayout(groupId, privateLayout,
1831                            layoutId, parentLayoutId, nameMap, titleMap, descriptionMap,
1832                            keywordsMap, robotsMap, type, hidden, friendlyURL, iconImage,
1833                            iconBytes, serviceContext);
1834            }
1835    
1836            /**
1837            * Updates the layout.
1838            *
1839            * @param groupId the primary key of the group
1840            * @param privateLayout whether the layout is private to the group
1841            * @param layoutId the primary key of the layout
1842            * @param parentLayoutId the primary key of the layout's new parent layout
1843            * @param nameMap the locales and localized names to merge (optionally
1844            <code>null</code>)
1845            * @param titleMap the locales and localized titles to merge (optionally
1846            <code>null</code>)
1847            * @param descriptionMap the locales and localized descriptions to merge
1848            (optionally <code>null</code>)
1849            * @param keywordsMap the locales and localized keywords to merge
1850            (optionally <code>null</code>)
1851            * @param robotsMap the locales and localized robots to merge (optionally
1852            <code>null</code>)
1853            * @param type the layout's new type (optionally {@link
1854            LayoutConstants#TYPE_PORTLET})
1855            * @param hidden whether the layout is hidden
1856            * @param friendlyURLMap the layout's locales and localized friendly URLs.
1857            To see how the URL is normalized when accessed, see {@link
1858            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1859            String)}.
1860            * @param iconImage whether the icon image will be updated
1861            * @param iconBytes the byte array of the layout's new icon image
1862            * @param serviceContext the service context to be applied. Can set the
1863            modification date and expando bridge attributes for the layout.
1864            For layouts that are linked to a layout prototype, attributes
1865            named <code>layoutPrototypeUuid</code> and
1866            <code>layoutPrototypeLinkedEnabled</code> can be specified to
1867            provide the unique identifier of the source prototype and a
1868            boolean to determine whether a link to it should be enabled to
1869            activate propagation of changes made to the linked page in the
1870            prototype.
1871            * @return the updated layout
1872            */
1873            @Override
1874            public com.liferay.portal.model.Layout updateLayout(long groupId,
1875                    boolean privateLayout, long layoutId, long parentLayoutId,
1876                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1877                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1878                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1879                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1880                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1881                    java.lang.String type, boolean hidden,
1882                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
1883                    boolean iconImage, byte[] iconBytes,
1884                    com.liferay.portal.service.ServiceContext serviceContext)
1885                    throws com.liferay.portal.kernel.exception.PortalException {
1886                    return _layoutLocalService.updateLayout(groupId, privateLayout,
1887                            layoutId, parentLayoutId, nameMap, titleMap, descriptionMap,
1888                            keywordsMap, robotsMap, type, hidden, friendlyURLMap, iconImage,
1889                            iconBytes, serviceContext);
1890            }
1891    
1892            /**
1893            * Updates the layout replacing its type settings.
1894            *
1895            * @param groupId the primary key of the group
1896            * @param privateLayout whether the layout is private to the group
1897            * @param layoutId the primary key of the layout
1898            * @param typeSettings the settings to load the unicode properties object.
1899            See {@link UnicodeProperties #fastLoad(String)}.
1900            * @return the updated layout
1901            */
1902            @Override
1903            public com.liferay.portal.model.Layout updateLayout(long groupId,
1904                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
1905                    throws com.liferay.portal.kernel.exception.PortalException {
1906                    return _layoutLocalService.updateLayout(groupId, privateLayout,
1907                            layoutId, typeSettings);
1908            }
1909    
1910            /**
1911            * Updates the layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
1912            *
1913            * @param layout the layout
1914            * @return the layout that was updated
1915            */
1916            @Override
1917            public com.liferay.portal.model.Layout updateLayout(
1918                    com.liferay.portal.model.Layout layout) {
1919                    return _layoutLocalService.updateLayout(layout);
1920            }
1921    
1922            /**
1923            * Updates the look and feel of the layout.
1924            *
1925            * @param groupId the primary key of the group
1926            * @param privateLayout whether the layout is private to the group
1927            * @param layoutId the primary key of the layout
1928            * @param themeId the primary key of the layout's new theme
1929            * @param colorSchemeId the primary key of the layout's new color scheme
1930            * @param css the layout's new CSS
1931            * @param wapTheme whether the theme is for WAP browsers
1932            * @return the updated layout
1933            */
1934            @Override
1935            public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
1936                    boolean privateLayout, long layoutId, java.lang.String themeId,
1937                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1938                    throws com.liferay.portal.kernel.exception.PortalException {
1939                    return _layoutLocalService.updateLookAndFeel(groupId, privateLayout,
1940                            layoutId, themeId, colorSchemeId, css, wapTheme);
1941            }
1942    
1943            /**
1944            * Updates the name of the layout matching the group, layout ID, and
1945            * privacy.
1946            *
1947            * @param groupId the primary key of the group
1948            * @param privateLayout whether the layout is private to the group
1949            * @param layoutId the primary key of the layout
1950            * @param name the layout's new name
1951            * @param languageId the primary key of the language. For more information
1952            see {@link Locale}.
1953            * @return the updated layout
1954            */
1955            @Override
1956            public com.liferay.portal.model.Layout updateName(long groupId,
1957                    boolean privateLayout, long layoutId, java.lang.String name,
1958                    java.lang.String languageId)
1959                    throws com.liferay.portal.kernel.exception.PortalException {
1960                    return _layoutLocalService.updateName(groupId, privateLayout, layoutId,
1961                            name, languageId);
1962            }
1963    
1964            /**
1965            * Updates the name of the layout.
1966            *
1967            * @param layout the layout to be updated
1968            * @param name the layout's new name
1969            * @param languageId the primary key of the language. For more information
1970            see {@link Locale}.
1971            * @return the updated layout
1972            */
1973            @Override
1974            public com.liferay.portal.model.Layout updateName(
1975                    com.liferay.portal.model.Layout layout, java.lang.String name,
1976                    java.lang.String languageId)
1977                    throws com.liferay.portal.kernel.exception.PortalException {
1978                    return _layoutLocalService.updateName(layout, name, languageId);
1979            }
1980    
1981            /**
1982            * Updates the name of the layout matching the primary key.
1983            *
1984            * @param plid the primary key of the layout
1985            * @param name the name to be assigned
1986            * @param languageId the primary key of the language. For more information
1987            see {@link Locale}.
1988            * @return the updated layout
1989            */
1990            @Override
1991            public com.liferay.portal.model.Layout updateName(long plid,
1992                    java.lang.String name, java.lang.String languageId)
1993                    throws com.liferay.portal.kernel.exception.PortalException {
1994                    return _layoutLocalService.updateName(plid, name, languageId);
1995            }
1996    
1997            /**
1998            * Updates the parent layout ID of the layout matching the group, layout ID,
1999            * and privacy.
2000            *
2001            * @param groupId the primary key of the group
2002            * @param privateLayout whether the layout is private to the group
2003            * @param layoutId the primary key of the layout
2004            * @param parentLayoutId the primary key to be assigned to the parent
2005            layout
2006            * @return the matching layout
2007            */
2008            @Override
2009            public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
2010                    boolean privateLayout, long layoutId, long parentLayoutId)
2011                    throws com.liferay.portal.kernel.exception.PortalException {
2012                    return _layoutLocalService.updateParentLayoutId(groupId, privateLayout,
2013                            layoutId, parentLayoutId);
2014            }
2015    
2016            /**
2017            * Updates the parent layout ID of the layout matching the primary key. If a
2018            * layout matching the parent primary key is found, the layout ID of that
2019            * layout is assigned, otherwise {@link
2020            * LayoutConstants#DEFAULT_PARENT_LAYOUT_ID} is assigned.
2021            *
2022            * @param plid the primary key of the layout
2023            * @param parentPlid the primary key of the parent layout
2024            * @return the layout matching the primary key
2025            */
2026            @Override
2027            public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
2028                    long parentPlid)
2029                    throws com.liferay.portal.kernel.exception.PortalException {
2030                    return _layoutLocalService.updateParentLayoutId(plid, parentPlid);
2031            }
2032    
2033            /**
2034            * Updates the parent layout ID and priority of the layout.
2035            *
2036            * @param plid the primary key of the layout
2037            * @param parentPlid the primary key of the parent layout
2038            * @param priority the layout's new priority
2039            * @return the layout matching the primary key
2040            */
2041            @Override
2042            public com.liferay.portal.model.Layout updateParentLayoutIdAndPriority(
2043                    long plid, long parentPlid, int priority)
2044                    throws com.liferay.portal.kernel.exception.PortalException {
2045                    return _layoutLocalService.updateParentLayoutIdAndPriority(plid,
2046                            parentPlid, priority);
2047            }
2048    
2049            /**
2050            * Updates the priorities of the layouts.
2051            *
2052            * @param groupId the primary key of the group
2053            * @param privateLayout whether the layout is private to the group
2054            * @throws PortalException
2055            */
2056            @Override
2057            public void updatePriorities(long groupId, boolean privateLayout)
2058                    throws com.liferay.portal.kernel.exception.PortalException {
2059                    _layoutLocalService.updatePriorities(groupId, privateLayout);
2060            }
2061    
2062            /**
2063            * Updates the priority of the layout matching the group, layout ID, and
2064            * privacy, setting the layout's priority based on the priorities of the
2065            * next and previous layouts.
2066            *
2067            * @param groupId the primary key of the group
2068            * @param privateLayout whether the layout is private to the group
2069            * @param layoutId the primary key of the layout
2070            * @param nextLayoutId the primary key of the next layout
2071            * @param previousLayoutId the primary key of the previous layout
2072            * @return the updated layout
2073            */
2074            @Override
2075            public com.liferay.portal.model.Layout updatePriority(long groupId,
2076                    boolean privateLayout, long layoutId, long nextLayoutId,
2077                    long previousLayoutId)
2078                    throws com.liferay.portal.kernel.exception.PortalException {
2079                    return _layoutLocalService.updatePriority(groupId, privateLayout,
2080                            layoutId, nextLayoutId, previousLayoutId);
2081            }
2082    
2083            /**
2084            * Updates the priority of the layout matching the group, layout ID, and
2085            * privacy.
2086            *
2087            * @param groupId the primary key of the group
2088            * @param privateLayout whether the layout is private to the group
2089            * @param layoutId the primary key of the layout
2090            * @param priority the layout's new priority
2091            * @return the updated layout
2092            */
2093            @Override
2094            public com.liferay.portal.model.Layout updatePriority(long groupId,
2095                    boolean privateLayout, long layoutId, int priority)
2096                    throws com.liferay.portal.kernel.exception.PortalException {
2097                    return _layoutLocalService.updatePriority(groupId, privateLayout,
2098                            layoutId, priority);
2099            }
2100    
2101            /**
2102            * Updates the priority of the layout.
2103            *
2104            * @param layout the layout to be updated
2105            * @param priority the layout's new priority
2106            * @return the updated layout
2107            */
2108            @Override
2109            public com.liferay.portal.model.Layout updatePriority(
2110                    com.liferay.portal.model.Layout layout, int priority)
2111                    throws com.liferay.portal.kernel.exception.PortalException {
2112                    return _layoutLocalService.updatePriority(layout, priority);
2113            }
2114    
2115            /**
2116            * Updates the priority of the layout matching the primary key.
2117            *
2118            * @param plid the primary key of the layout
2119            * @param priority the layout's new priority
2120            * @return the updated layout
2121            */
2122            @Override
2123            public com.liferay.portal.model.Layout updatePriority(long plid,
2124                    int priority)
2125                    throws com.liferay.portal.kernel.exception.PortalException {
2126                    return _layoutLocalService.updatePriority(plid, priority);
2127            }
2128    
2129            /**
2130            * Updates the names of the portlets within scope of the group, the scope of
2131            * the layout's UUID, and the privacy.
2132            *
2133            * @param groupId the primary key of the group
2134            * @param privateLayout whether the layout is private to the group
2135            * @param layoutId the primary key of the layout whose UUID to match
2136            * @param name the new name for the portlets
2137            * @param languageId the primary key of the language
2138            * @throws PortalException
2139            * @see com.liferay.portlet.portletconfiguration.action.EditScopeAction
2140            * @deprecated As of 6.2.0, with no direct replacement
2141            */
2142            @Deprecated
2143            @Override
2144            public void updateScopedPortletNames(long groupId, boolean privateLayout,
2145                    long layoutId, java.lang.String name, java.lang.String languageId)
2146                    throws com.liferay.portal.kernel.exception.PortalException {
2147                    _layoutLocalService.updateScopedPortletNames(groupId, privateLayout,
2148                            layoutId, name, languageId);
2149            }
2150    
2151            /**
2152            * @deprecated As of 6.2.0, with no direct replacement
2153            */
2154            @Deprecated
2155            @Override
2156            public void updateScopedPortletNames(long groupId, boolean privateLayout,
2157                    long layoutId,
2158                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
2159                    java.util.List<java.util.Locale> nameMapModifiedLocales)
2160                    throws com.liferay.portal.kernel.exception.PortalException {
2161                    _layoutLocalService.updateScopedPortletNames(groupId, privateLayout,
2162                            layoutId, nameMap, nameMapModifiedLocales);
2163            }
2164    
2165            /**
2166            * @throws PortalException
2167            * @deprecated As of 7.0.0, replaced by {@link
2168            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportLayoutsFile(
2169            ExportImportConfiguration, File)}
2170            */
2171            @Deprecated
2172            @Override
2173            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
2174                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
2175                    java.io.File file)
2176                    throws com.liferay.portal.kernel.exception.PortalException {
2177                    return _layoutLocalService.validateImportLayoutsFile(exportImportConfiguration,
2178                            file);
2179            }
2180    
2181            /**
2182            * @throws PortalException
2183            * @deprecated As of 7.0.0, replaced by {@link
2184            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportLayoutsFile(
2185            ExportImportConfiguration, InputStream)}
2186            */
2187            @Deprecated
2188            @Override
2189            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
2190                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
2191                    java.io.InputStream inputStream)
2192                    throws com.liferay.portal.kernel.exception.PortalException {
2193                    return _layoutLocalService.validateImportLayoutsFile(exportImportConfiguration,
2194                            inputStream);
2195            }
2196    
2197            /**
2198            * @throws PortalException
2199            * @deprecated As of 7.0.0, with no direct replacement
2200            */
2201            @Deprecated
2202            @Override
2203            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
2204                    long userId, long groupId, boolean privateLayout,
2205                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2206                    java.io.File file)
2207                    throws com.liferay.portal.kernel.exception.PortalException {
2208                    return _layoutLocalService.validateImportLayoutsFile(userId, groupId,
2209                            privateLayout, parameterMap, file);
2210            }
2211    
2212            /**
2213            * @throws PortalException
2214            * @deprecated As of 7.0.0, with no direct replacement
2215            */
2216            @Deprecated
2217            @Override
2218            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
2219                    long userId, long groupId, boolean privateLayout,
2220                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2221                    java.io.InputStream inputStream)
2222                    throws com.liferay.portal.kernel.exception.PortalException {
2223                    return _layoutLocalService.validateImportLayoutsFile(userId, groupId,
2224                            privateLayout, parameterMap, inputStream);
2225            }
2226    
2227            /**
2228            * @throws PortalException
2229            * @deprecated As of 7.0.0, replaced by {@link
2230            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportPortletInfo(
2231            ExportImportConfiguration, File)}
2232            */
2233            @Deprecated
2234            @Override
2235            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
2236                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
2237                    java.io.File file)
2238                    throws com.liferay.portal.kernel.exception.PortalException {
2239                    return _layoutLocalService.validateImportPortletInfo(exportImportConfiguration,
2240                            file);
2241            }
2242    
2243            /**
2244            * @throws PortalException
2245            * @deprecated As of 7.0.0, replaced by {@link
2246            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportPortletInfo(
2247            ExportImportConfiguration, InputStream)}
2248            */
2249            @Deprecated
2250            @Override
2251            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
2252                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
2253                    java.io.InputStream inputStream)
2254                    throws com.liferay.portal.kernel.exception.PortalException {
2255                    return _layoutLocalService.validateImportPortletInfo(exportImportConfiguration,
2256                            inputStream);
2257            }
2258    
2259            /**
2260            * @throws PortalException
2261            * @deprecated As of 7.0.0, with no direct replacement
2262            */
2263            @Deprecated
2264            @Override
2265            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
2266                    long userId, long plid, long groupId, java.lang.String portletId,
2267                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2268                    java.io.File file)
2269                    throws com.liferay.portal.kernel.exception.PortalException {
2270                    return _layoutLocalService.validateImportPortletInfo(userId, plid,
2271                            groupId, portletId, parameterMap, file);
2272            }
2273    
2274            /**
2275            * @throws PortalException
2276            * @deprecated As of 7.0.0, with no direct replacement
2277            */
2278            @Deprecated
2279            @Override
2280            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
2281                    long userId, long plid, long groupId, java.lang.String portletId,
2282                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
2283                    java.io.InputStream inputStream)
2284                    throws com.liferay.portal.kernel.exception.PortalException {
2285                    return _layoutLocalService.validateImportPortletInfo(userId, plid,
2286                            groupId, portletId, parameterMap, inputStream);
2287            }
2288    
2289            @Override
2290            public LayoutLocalService getWrappedService() {
2291                    return _layoutLocalService;
2292            }
2293    
2294            @Override
2295            public void setWrappedService(LayoutLocalService layoutLocalService) {
2296                    _layoutLocalService = layoutLocalService;
2297            }
2298    
2299            private LayoutLocalService _layoutLocalService;
2300    }