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