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