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