001    /**
002     * Copyright (c) 2000-2012 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    /**
018     * <p>
019     * This class is a wrapper for {@link LayoutLocalService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       LayoutLocalService
024     * @generated
025     */
026    public class LayoutLocalServiceWrapper implements LayoutLocalService,
027            ServiceWrapper<LayoutLocalService> {
028            public LayoutLocalServiceWrapper(LayoutLocalService layoutLocalService) {
029                    _layoutLocalService = layoutLocalService;
030            }
031    
032            /**
033            * Adds the layout to the database. Also notifies the appropriate model listeners.
034            *
035            * @param layout the layout
036            * @return the layout that was added
037            * @throws SystemException if a system exception occurred
038            */
039            public com.liferay.portal.model.Layout addLayout(
040                    com.liferay.portal.model.Layout layout)
041                    throws com.liferay.portal.kernel.exception.SystemException {
042                    return _layoutLocalService.addLayout(layout);
043            }
044    
045            /**
046            * Creates a new layout with the primary key. Does not add the layout to the database.
047            *
048            * @param plid the primary key for the new layout
049            * @return the new layout
050            */
051            public com.liferay.portal.model.Layout createLayout(long plid) {
052                    return _layoutLocalService.createLayout(plid);
053            }
054    
055            /**
056            * Deletes the layout with the primary key from the database. Also notifies the appropriate model listeners.
057            *
058            * @param plid the primary key of the layout
059            * @throws PortalException if a layout with the primary key could not be found
060            * @throws SystemException if a system exception occurred
061            */
062            public void deleteLayout(long plid)
063                    throws com.liferay.portal.kernel.exception.PortalException,
064                            com.liferay.portal.kernel.exception.SystemException {
065                    _layoutLocalService.deleteLayout(plid);
066            }
067    
068            /**
069            * Deletes the layout from the database. Also notifies the appropriate model listeners.
070            *
071            * @param layout the layout
072            * @throws SystemException if a system exception occurred
073            */
074            public void deleteLayout(com.liferay.portal.model.Layout layout)
075                    throws com.liferay.portal.kernel.exception.SystemException {
076                    _layoutLocalService.deleteLayout(layout);
077            }
078    
079            /**
080            * Performs a dynamic query on the database and returns the matching rows.
081            *
082            * @param dynamicQuery the dynamic query
083            * @return the matching rows
084            * @throws SystemException if a system exception occurred
085            */
086            @SuppressWarnings("rawtypes")
087            public java.util.List dynamicQuery(
088                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return _layoutLocalService.dynamicQuery(dynamicQuery);
091            }
092    
093            /**
094            * Performs a dynamic query on the database and returns a range of the matching rows.
095            *
096            * <p>
097            * 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.
098            * </p>
099            *
100            * @param dynamicQuery the dynamic query
101            * @param start the lower bound of the range of model instances
102            * @param end the upper bound of the range of model instances (not inclusive)
103            * @return the range of matching rows
104            * @throws SystemException if a system exception occurred
105            */
106            @SuppressWarnings("rawtypes")
107            public java.util.List dynamicQuery(
108                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
109                    int end) throws com.liferay.portal.kernel.exception.SystemException {
110                    return _layoutLocalService.dynamicQuery(dynamicQuery, start, end);
111            }
112    
113            /**
114            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
115            *
116            * <p>
117            * 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.
118            * </p>
119            *
120            * @param dynamicQuery the dynamic query
121            * @param start the lower bound of the range of model instances
122            * @param end the upper bound of the range of model instances (not inclusive)
123            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
124            * @return the ordered range of matching rows
125            * @throws SystemException if a system exception occurred
126            */
127            @SuppressWarnings("rawtypes")
128            public java.util.List dynamicQuery(
129                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
130                    int end,
131                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
132                    throws com.liferay.portal.kernel.exception.SystemException {
133                    return _layoutLocalService.dynamicQuery(dynamicQuery, start, end,
134                            orderByComparator);
135            }
136    
137            /**
138            * Returns the number of rows that match the dynamic query.
139            *
140            * @param dynamicQuery the dynamic query
141            * @return the number of rows that match the dynamic query
142            * @throws SystemException if a system exception occurred
143            */
144            public long dynamicQueryCount(
145                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
146                    throws com.liferay.portal.kernel.exception.SystemException {
147                    return _layoutLocalService.dynamicQueryCount(dynamicQuery);
148            }
149    
150            public com.liferay.portal.model.Layout fetchLayout(long plid)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return _layoutLocalService.fetchLayout(plid);
153            }
154    
155            /**
156            * Returns the layout with the primary key.
157            *
158            * @param plid the primary key of the layout
159            * @return the layout
160            * @throws PortalException if a layout with the primary key could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public com.liferay.portal.model.Layout getLayout(long plid)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return _layoutLocalService.getLayout(plid);
167            }
168    
169            public com.liferay.portal.model.PersistedModel getPersistedModel(
170                    java.io.Serializable primaryKeyObj)
171                    throws com.liferay.portal.kernel.exception.PortalException,
172                            com.liferay.portal.kernel.exception.SystemException {
173                    return _layoutLocalService.getPersistedModel(primaryKeyObj);
174            }
175    
176            /**
177            * Returns the layout with the UUID in the group.
178            *
179            * @param uuid the UUID of layout
180            * @param groupId the group id of the layout
181            * @return the layout
182            * @throws PortalException if a layout with the UUID in the group could not be found
183            * @throws SystemException if a system exception occurred
184            */
185            public com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
186                    java.lang.String uuid, long groupId)
187                    throws com.liferay.portal.kernel.exception.PortalException,
188                            com.liferay.portal.kernel.exception.SystemException {
189                    return _layoutLocalService.getLayoutByUuidAndGroupId(uuid, groupId);
190            }
191    
192            /**
193            * Returns a range of all the layouts.
194            *
195            * <p>
196            * 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.
197            * </p>
198            *
199            * @param start the lower bound of the range of layouts
200            * @param end the upper bound of the range of layouts (not inclusive)
201            * @return the range of layouts
202            * @throws SystemException if a system exception occurred
203            */
204            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
205                    int start, int end)
206                    throws com.liferay.portal.kernel.exception.SystemException {
207                    return _layoutLocalService.getLayouts(start, end);
208            }
209    
210            /**
211            * Returns the number of layouts.
212            *
213            * @return the number of layouts
214            * @throws SystemException if a system exception occurred
215            */
216            public int getLayoutsCount()
217                    throws com.liferay.portal.kernel.exception.SystemException {
218                    return _layoutLocalService.getLayoutsCount();
219            }
220    
221            /**
222            * Updates the layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
223            *
224            * @param layout the layout
225            * @return the layout that was updated
226            * @throws SystemException if a system exception occurred
227            */
228            public com.liferay.portal.model.Layout updateLayout(
229                    com.liferay.portal.model.Layout layout)
230                    throws com.liferay.portal.kernel.exception.SystemException {
231                    return _layoutLocalService.updateLayout(layout);
232            }
233    
234            /**
235            * Updates the layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
236            *
237            * @param layout the layout
238            * @param merge whether to merge the layout with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
239            * @return the layout that was updated
240            * @throws SystemException if a system exception occurred
241            */
242            public com.liferay.portal.model.Layout updateLayout(
243                    com.liferay.portal.model.Layout layout, boolean merge)
244                    throws com.liferay.portal.kernel.exception.SystemException {
245                    return _layoutLocalService.updateLayout(layout, merge);
246            }
247    
248            /**
249            * Returns the Spring bean ID for this bean.
250            *
251            * @return the Spring bean ID for this bean
252            */
253            public java.lang.String getBeanIdentifier() {
254                    return _layoutLocalService.getBeanIdentifier();
255            }
256    
257            /**
258            * Sets the Spring bean ID for this bean.
259            *
260            * @param beanIdentifier the Spring bean ID for this bean
261            */
262            public void setBeanIdentifier(java.lang.String beanIdentifier) {
263                    _layoutLocalService.setBeanIdentifier(beanIdentifier);
264            }
265    
266            /**
267            * Adds a layout with additional parameters.
268            *
269            * <p>
270            * This method handles the creation of the layout including its resources,
271            * metadata, and internal data structures. It is not necessary to make
272            * subsequent calls to any methods to setup default groups, resources, ...
273            * etc.
274            * </p>
275            *
276            * @param userId the primary key of the user
277            * @param groupId the primary key of the group
278            * @param privateLayout whether the layout is private to the group
279            * @param parentLayoutId the primary key of the parent layout (optionally
280            {@link
281            com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID})
282            * @param nameMap the layout's locales and localized names
283            * @param titleMap the layout's locales and localized titles
284            * @param descriptionMap the layout's locales and localized descriptions
285            * @param keywordsMap the layout's locales and localized keywords
286            * @param robotsMap the layout's locales and localized robots
287            * @param type the layout's type (optionally {@link
288            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The
289            possible types can be found in {@link
290            com.liferay.portal.model.LayoutConstants}.
291            * @param hidden whether the layout is hidden
292            * @param friendlyURL the layout's friendly URL (optionally {@link
293            com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL}
294            or {@link
295            com.liferay.portal.util.PropsValues#DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL}).
296            The default values can be overridden in
297            <code>portal-ext.properties</code> by specifying new values for
298            the corresponding properties defined in {@link
299            com.liferay.portal.util.PropsValues}. To see how the URL is
300            normalized when accessed see {@link
301            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
302            String)}.
303            * @param serviceContext the service context. Must set the universally
304            unique identifier (UUID) for the layout. Can set the creation
305            date, modification date and the expando bridge attributes for the
306            layout. For layouts that belong to a layout set prototype, an
307            attribute named 'layoutUpdateable' can be set to specify whether
308            site administrators can modify this page within their site. For
309            layouts that are created from a layout prototype, attributes
310            named 'layoutPrototypeUuid' and 'layoutPrototypeLinkedEnabled'
311            can be specified to provide the unique identifier of the source
312            prototype and a boolean to determined whether a link to it should
313            be enabled to activate propagation of changes made to the linked
314            page in the prototype.
315            * @return the layout
316            * @throws PortalException if a group or user with the primary key could not
317            be found, or if layout values were invalid
318            * @throws SystemException if a system exception occurred
319            */
320            public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
321                    boolean privateLayout, long parentLayoutId,
322                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
323                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
324                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
325                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
326                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
327                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
328                    com.liferay.portal.service.ServiceContext serviceContext)
329                    throws com.liferay.portal.kernel.exception.PortalException,
330                            com.liferay.portal.kernel.exception.SystemException {
331                    return _layoutLocalService.addLayout(userId, groupId, privateLayout,
332                            parentLayoutId, nameMap, titleMap, descriptionMap, keywordsMap,
333                            robotsMap, type, hidden, friendlyURL, serviceContext);
334            }
335    
336            /**
337            * Adds a layout.
338            *
339            * <p>
340            * This method handles the creation of the layout including its resources,
341            * metadata, and internal data structures. It is not necessary to make
342            * subsequent calls to any methods to setup default groups, resources, ...
343            * etc.
344            * </p>
345            *
346            * @param userId the primary key of the user
347            * @param groupId the primary key of the group
348            * @param privateLayout whether the layout is private to the group
349            * @param parentLayoutId the primary key of the parent layout (optionally
350            {@link
351            com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID}).
352            The possible values can be found in {@link
353            com.liferay.portal.model.LayoutConstants}.
354            * @param name the layout's name (optionally {@link
355            com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_NAME}
356            or {@link
357            com.liferay.portal.util.PropsValues#DEFAULT_USER_PUBLIC_LAYOUT_NAME}).
358            The default values can be overridden in
359            <code>portal-ext.properties</code> by specifying new values for
360            the corresponding properties defined in {@link
361            com.liferay.portal.util.PropsValues}
362            * @param title the layout's title
363            * @param description the layout's description
364            * @param type the layout's type (optionally {@link
365            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The
366            possible types can be found in {@link
367            com.liferay.portal.model.LayoutConstants}.
368            * @param hidden whether the layout is hidden
369            * @param friendlyURL the friendly URL of the layout (optionally {@link
370            com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL}
371            or {@link
372            com.liferay.portal.util.PropsValues#DEFAULT_USER_PUBLIC_LAYOUT_FRIENDLY_URL}).
373            The default values can be overridden in
374            <code>portal-ext.properties</code> by specifying new values for
375            the corresponding properties defined in {@link
376            com.liferay.portal.util.PropsValues}. To see how the URL is
377            normalized when accessed see {@link
378            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
379            String)}.
380            * @param serviceContext the service context. Must set the universally
381            unique identifier (UUID) for the layout. Can set the creation
382            date and modification date for the layout. For layouts that
383            belong to a layout set prototype, an attribute named
384            'layoutUpdateable' can be set to specify whether site
385            administrators can modify this page within their site.
386            * @return the layout
387            * @throws PortalException if a group or user with the primary key could not
388            be found
389            * @throws SystemException if a system exception occurred
390            */
391            public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
392                    boolean privateLayout, long parentLayoutId, java.lang.String name,
393                    java.lang.String title, java.lang.String description,
394                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
395                    com.liferay.portal.service.ServiceContext serviceContext)
396                    throws com.liferay.portal.kernel.exception.PortalException,
397                            com.liferay.portal.kernel.exception.SystemException {
398                    return _layoutLocalService.addLayout(userId, groupId, privateLayout,
399                            parentLayoutId, name, title, description, type, hidden,
400                            friendlyURL, serviceContext);
401            }
402    
403            /**
404            * Deletes the layout, its child layouts, and its associated resources.
405            *
406            * @param layout the layout
407            * @param updateLayoutSet whether the layout set's page counter needs to be
408            updated
409            * @param serviceContext the service context
410            * @throws PortalException if a portal exception occurred
411            * @throws SystemException if a system exception occurred
412            */
413            public void deleteLayout(com.liferay.portal.model.Layout layout,
414                    boolean updateLayoutSet,
415                    com.liferay.portal.service.ServiceContext serviceContext)
416                    throws com.liferay.portal.kernel.exception.PortalException,
417                            com.liferay.portal.kernel.exception.SystemException {
418                    _layoutLocalService.deleteLayout(layout, updateLayoutSet, serviceContext);
419            }
420    
421            /**
422            * Deletes the layout with the primary key, also deleting the layout's child
423            * layouts, and associated resources.
424            *
425            * @param groupId the primary key of the group
426            * @param privateLayout whether the layout is private to the group
427            * @param layoutId the primary key of the layout
428            * @param serviceContext the service context
429            * @throws PortalException if a matching layout could not be found , or if
430            some other portal exception occurred
431            * @throws SystemException if a system exception occurred
432            */
433            public void deleteLayout(long groupId, boolean privateLayout,
434                    long layoutId, com.liferay.portal.service.ServiceContext serviceContext)
435                    throws com.liferay.portal.kernel.exception.PortalException,
436                            com.liferay.portal.kernel.exception.SystemException {
437                    _layoutLocalService.deleteLayout(groupId, privateLayout, layoutId,
438                            serviceContext);
439            }
440    
441            /**
442            * Deletes the layout with the plid, also deleting the layout's child
443            * layouts, and associated resources.
444            *
445            * @param plid the primary key of the layout
446            * @param serviceContext the service context
447            * @throws PortalException if a layout with the primary key could not be
448            found , or if some other portal exception occurred
449            * @throws SystemException if a system exception occurred
450            */
451            public void deleteLayout(long plid,
452                    com.liferay.portal.service.ServiceContext serviceContext)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    _layoutLocalService.deleteLayout(plid, serviceContext);
456            }
457    
458            /**
459            * Deletes the group's private or non-private layouts, also deleting the
460            * layouts' child layouts, and associated resources.
461            *
462            * @param groupId the primary key of the group
463            * @param privateLayout whether the layout is private to the group
464            * @param serviceContext the service context
465            * @throws PortalException if a group with the primary key could not be
466            found or if a layout set for the group and privacy could not be
467            found
468            * @throws SystemException if a system exception occurred
469            */
470            public void deleteLayouts(long groupId, boolean privateLayout,
471                    com.liferay.portal.service.ServiceContext serviceContext)
472                    throws com.liferay.portal.kernel.exception.PortalException,
473                            com.liferay.portal.kernel.exception.SystemException {
474                    _layoutLocalService.deleteLayouts(groupId, privateLayout, serviceContext);
475            }
476    
477            /**
478            * Exports layouts with the primary keys and criteria as a byte array.
479            *
480            * @param groupId the primary key of the group
481            * @param privateLayout whether the layout is private to the group
482            * @param layoutIds the primary keys of the layouts to be exported
483            * @param parameterMap the mapping of parameters indicating which
484            information to export. For information on the keys used in the
485            map see {@link
486            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
487            * @param startDate the export's start date
488            * @param endDate the export's end date
489            * @return the layouts as a byte array
490            * @throws PortalException if a group or any layout with the primary key
491            could not be found, or if some other portal exception occurred
492            * @throws SystemException if a system exception occurred
493            */
494            public byte[] exportLayouts(long groupId, boolean privateLayout,
495                    long[] layoutIds,
496                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
497                    java.util.Date startDate, java.util.Date endDate)
498                    throws com.liferay.portal.kernel.exception.PortalException,
499                            com.liferay.portal.kernel.exception.SystemException {
500                    return _layoutLocalService.exportLayouts(groupId, privateLayout,
501                            layoutIds, parameterMap, startDate, endDate);
502            }
503    
504            /**
505            * Exports all layouts that match the criteria as a byte array.
506            *
507            * @param groupId the primary key of the group
508            * @param privateLayout whether the layout is private to the group
509            * @param parameterMap the mapping of parameters indicating which
510            information to export. For information on the keys used in the
511            map see {@link
512            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
513            * @param startDate the export's start date
514            * @param endDate the export's end date
515            * @return the layout as a byte array
516            * @throws PortalException if a group with the primary key could not be
517            found or if some other portal exception occurred
518            * @throws SystemException if a system exception occurred
519            */
520            public byte[] exportLayouts(long groupId, boolean privateLayout,
521                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
522                    java.util.Date startDate, java.util.Date endDate)
523                    throws com.liferay.portal.kernel.exception.PortalException,
524                            com.liferay.portal.kernel.exception.SystemException {
525                    return _layoutLocalService.exportLayouts(groupId, privateLayout,
526                            parameterMap, startDate, endDate);
527            }
528    
529            /**
530            * Exports the layouts that match the primary keys and criteria as a file.
531            *
532            * @param groupId the primary key of the group
533            * @param privateLayout whether the layout is private to the group
534            * @param layoutIds the primary keys of the layouts to be exported
535            (optionally <code>null</code>)
536            * @param parameterMap the mapping of parameters indicating which
537            information to export. For information on the keys used in the
538            map see {@link
539            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
540            * @param startDate the export's start date
541            * @param endDate the export's end date
542            * @return the layouts as a File
543            * @throws PortalException if a group or any layout with the primary key
544            could not be found, or if some other portal exception occurred
545            * @throws SystemException if a system exception occurred
546            */
547            public java.io.File exportLayoutsAsFile(long groupId,
548                    boolean privateLayout, long[] layoutIds,
549                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
550                    java.util.Date startDate, java.util.Date endDate)
551                    throws com.liferay.portal.kernel.exception.PortalException,
552                            com.liferay.portal.kernel.exception.SystemException {
553                    return _layoutLocalService.exportLayoutsAsFile(groupId, privateLayout,
554                            layoutIds, parameterMap, startDate, endDate);
555            }
556    
557            /**
558            * Exports the portlet information (categories, permissions, ... etc.) as a
559            * byte array.
560            *
561            * @param plid the primary key of the layout
562            * @param groupId the primary key of the group
563            * @param portletId the primary key of the portlet
564            * @param parameterMap the mapping of parameters indicating which
565            information to export. For information on the keys used in the
566            map see {@link
567            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
568            * @param startDate the export's start date
569            * @param endDate the export's end date
570            * @return the portlet information as a byte array
571            * @throws PortalException if a group or portlet with the primary key could
572            not be found, or if some other portal exception occurred
573            * @throws SystemException if a system exception occurred
574            */
575            public byte[] exportPortletInfo(long plid, long groupId,
576                    java.lang.String portletId,
577                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
578                    java.util.Date startDate, java.util.Date endDate)
579                    throws com.liferay.portal.kernel.exception.PortalException,
580                            com.liferay.portal.kernel.exception.SystemException {
581                    return _layoutLocalService.exportPortletInfo(plid, groupId, portletId,
582                            parameterMap, startDate, endDate);
583            }
584    
585            /**
586            * Exports the portlet information (categories, permissions, ... etc.) as a
587            * file.
588            *
589            * @param plid the primary key of the layout
590            * @param groupId the primary key of the group
591            * @param portletId the primary key of the portlet
592            * @param parameterMap the mapping of parameters indicating which
593            information to export. For information on the keys used in the
594            map see {@link
595            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
596            * @param startDate the export's start date
597            * @param endDate the export's end date
598            * @return the portlet information as a file
599            * @throws PortalException if a group or portlet with the primary key could
600            not be found, or if some other portal exception occurred
601            * @throws SystemException if a system exception occurred
602            */
603            public java.io.File exportPortletInfoAsFile(long plid, long groupId,
604                    java.lang.String portletId,
605                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
606                    java.util.Date startDate, java.util.Date endDate)
607                    throws com.liferay.portal.kernel.exception.PortalException,
608                            com.liferay.portal.kernel.exception.SystemException {
609                    return _layoutLocalService.exportPortletInfoAsFile(plid, groupId,
610                            portletId, parameterMap, startDate, endDate);
611            }
612    
613            public com.liferay.portal.model.Layout fetchFirstLayout(long groupId,
614                    boolean privateLayout, long parentLayoutId)
615                    throws com.liferay.portal.kernel.exception.SystemException {
616                    return _layoutLocalService.fetchFirstLayout(groupId, privateLayout,
617                            parentLayoutId);
618            }
619    
620            /**
621            * Returns the layout matching the universally unique identifier and group
622            * ID
623            *
624            * @param uuid the universally unique identifier of the scope layout
625            * @param groupId the primary key of the group
626            * @return the layout, or <code>null</code> if a matching layout could not
627            be found
628            * @throws SystemException if a system exception occurred
629            */
630            public com.liferay.portal.model.Layout fetchLayoutByUuidAndGroupId(
631                    java.lang.String uuid, long groupId)
632                    throws com.liferay.portal.kernel.exception.SystemException {
633                    return _layoutLocalService.fetchLayoutByUuidAndGroupId(uuid, groupId);
634            }
635    
636            /**
637            * Returns the primary key of the default layout for the group
638            *
639            * @param groupId the primary key of the group
640            * @return the primary key of the default layout for the group (optionally
641            {@link com.liferay.portal.model.LayoutConstants#DEFAULT_PLID})
642            * @throws SystemException if a system exception occurred
643            */
644            public long getDefaultPlid(long groupId)
645                    throws com.liferay.portal.kernel.exception.SystemException {
646                    return _layoutLocalService.getDefaultPlid(groupId);
647            }
648    
649            /**
650            * Returns primary key of the matching default layout for the group
651            *
652            * @param groupId the primary key of the group
653            * @param privateLayout whether the layout is private to the group
654            * @return the primary key of the default layout for the group; {@link
655            com.liferay.portal.model.LayoutConstants#DEFAULT_PLID}) otherwise
656            * @throws SystemException if a system exception occurred
657            */
658            public long getDefaultPlid(long groupId, boolean privateLayout)
659                    throws com.liferay.portal.kernel.exception.SystemException {
660                    return _layoutLocalService.getDefaultPlid(groupId, privateLayout);
661            }
662    
663            /**
664            * Returns primary key of the default portlet layout for the group
665            *
666            * @param groupId the primary key of the group
667            * @param privateLayout whether the layout is private to the group
668            * @param portletId the primary key of the portlet
669            * @return the primary key of the default portlet layout for the group;
670            {@link com.liferay.portal.model.LayoutConstants#DEFAULT_PLID}
671            otherwise
672            * @throws PortalException if a portlet with the primary key could not be
673            found
674            * @throws SystemException if a system exception occurred
675            */
676            public long getDefaultPlid(long groupId, boolean privateLayout,
677                    java.lang.String portletId)
678                    throws com.liferay.portal.kernel.exception.PortalException,
679                            com.liferay.portal.kernel.exception.SystemException {
680                    return _layoutLocalService.getDefaultPlid(groupId, privateLayout,
681                            portletId);
682            }
683    
684            /**
685            * Returns the layout for the friendly URL
686            *
687            * @param groupId the primary key of the group
688            * @param privateLayout whether the layout is private to the group
689            * @param friendlyURL the friendly URL of the layout
690            * @return the layout for the friendly URL
691            * @throws PortalException if the friendly URL is <code>null</code> or a
692            matching layout could not be found
693            * @throws SystemException if a system exception occurred
694            */
695            public com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId,
696                    boolean privateLayout, java.lang.String friendlyURL)
697                    throws com.liferay.portal.kernel.exception.PortalException,
698                            com.liferay.portal.kernel.exception.SystemException {
699                    return _layoutLocalService.getFriendlyURLLayout(groupId, privateLayout,
700                            friendlyURL);
701            }
702    
703            /**
704            * Returns the layout matching the primary key, group, and privacy; throws a
705            * {@link com.liferay.portal.NoSuchLayoutException} otherwise.
706            *
707            * @param groupId the primary key of the group
708            * @param privateLayout whether the layout is private to the group
709            * @param layoutId the primary key of the layout
710            * @return the matching layout
711            * @throws PortalException if a matching layout could not be found
712            * @throws SystemException if a system exception occurred
713            */
714            public com.liferay.portal.model.Layout getLayout(long groupId,
715                    boolean privateLayout, long layoutId)
716                    throws com.liferay.portal.kernel.exception.PortalException,
717                            com.liferay.portal.kernel.exception.SystemException {
718                    return _layoutLocalService.getLayout(groupId, privateLayout, layoutId);
719            }
720    
721            /**
722            * Returns the layout for the icon image; throws a {@link
723            * com.liferay.portal.NoSuchLayoutException} otherwise.
724            *
725            * @param iconImageId the primary key of the icon image
726            * @return Returns the layout for the icon image
727            * @throws PortalException if an icon image with the primary key could not
728            be found
729            * @throws SystemException if a system exception occurred
730            */
731            public com.liferay.portal.model.Layout getLayoutByIconImageId(
732                    long iconImageId)
733                    throws com.liferay.portal.kernel.exception.PortalException,
734                            com.liferay.portal.kernel.exception.SystemException {
735                    return _layoutLocalService.getLayoutByIconImageId(iconImageId);
736            }
737    
738            /**
739            * Returns all the layouts belonging to the group.
740            *
741            * @param groupId the primary key of the group
742            * @param privateLayout whether the layout is private to the group
743            * @return the matching layouts, or <code>null</code> if no matches were
744            found
745            * @throws SystemException if a system exception occurred
746            */
747            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
748                    long groupId, boolean privateLayout)
749                    throws com.liferay.portal.kernel.exception.SystemException {
750                    return _layoutLocalService.getLayouts(groupId, privateLayout);
751            }
752    
753            /**
754            * Returns all the layouts belonging to the group that are children of the
755            * parent layout.
756            *
757            * @param groupId the primary key of the group
758            * @param privateLayout whether the layout is private to the group
759            * @param parentLayoutId the primary key of the parent layout
760            * @return the matching layouts, or <code>null</code> if no matches were
761            found
762            * @throws SystemException if a system exception occurred
763            */
764            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
765                    long groupId, boolean privateLayout, long parentLayoutId)
766                    throws com.liferay.portal.kernel.exception.SystemException {
767                    return _layoutLocalService.getLayouts(groupId, privateLayout,
768                            parentLayoutId);
769            }
770    
771            /**
772            * Returns a range of all the layouts belonging to the group that are
773            * children of the parent layout.
774            *
775            * <p>
776            * Useful when paginating results. Returns a maximum of <code>end -
777            * start</code> instances. <code>start</code> and <code>end</code> are not
778            * primary keys, they are indexes in the result set. Thus, <code>0</code>
779            * refers to the first result in the set. Setting both <code>start</code>
780            * and <code>end</code> to {@link
781            * com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full
782            * result set.
783            * </p>
784            *
785            * @param groupId the primary key of the group
786            * @param privateLayout whether the layout is private to the group
787            * @param parentLayoutId the primary key of the parent layout
788            * @param incomplete whether the layout is incomplete
789            * @param start the lower bound of the range of layouts
790            * @param end the upper bound of the range of layouts (not inclusive)
791            * @return the matching layouts, or <code>null</code> if no matches were
792            found
793            * @throws SystemException if a system exception occurred
794            */
795            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
796                    long groupId, boolean privateLayout, long parentLayoutId,
797                    boolean incomplete, int start, int end)
798                    throws com.liferay.portal.kernel.exception.SystemException {
799                    return _layoutLocalService.getLayouts(groupId, privateLayout,
800                            parentLayoutId, incomplete, start, end);
801            }
802    
803            /**
804            * Returns all the layouts that match the layout IDs and belong to the
805            * group.
806            *
807            * @param groupId the primary key of the group
808            * @param privateLayout whether the layout is private to the group
809            * @param layoutIds the primary keys of the layouts
810            * @return the matching layouts, or <code>null</code> if no matches were
811            found
812            * @throws PortalException if a group or layout with the primary key could
813            not be found
814            * @throws SystemException if a system exception occurred
815            */
816            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
817                    long groupId, boolean privateLayout, long[] layoutIds)
818                    throws com.liferay.portal.kernel.exception.PortalException,
819                            com.liferay.portal.kernel.exception.SystemException {
820                    return _layoutLocalService.getLayouts(groupId, privateLayout, layoutIds);
821            }
822    
823            /**
824            * Returns all the layouts that match the type and belong to the group.
825            *
826            * @param groupId the primary key of the group
827            * @param privateLayout whether the layout is private to the group
828            * @param type the type of the layouts (optionally {@link
829            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET})
830            * @return the matching layouts, or <code>null</code> if no matches were
831            found
832            * @throws SystemException if a system exception occurred
833            */
834            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
835                    long groupId, boolean privateLayout, java.lang.String type)
836                    throws com.liferay.portal.kernel.exception.SystemException {
837                    return _layoutLocalService.getLayouts(groupId, privateLayout, type);
838            }
839    
840            /**
841            * Returns the layout references for all the layouts that belong to the
842            * company and belong to the portlet that matches the preferences.
843            *
844            * @param companyId the primary key of the company
845            * @param portletId the primary key of the portlet
846            * @param preferencesKey the portlet's preference key
847            * @param preferencesValue the portlet's preference value
848            * @return the layout references of the matching layouts
849            * @throws SystemException if a system exception occurred
850            */
851            public com.liferay.portal.model.LayoutReference[] getLayouts(
852                    long companyId, java.lang.String portletId,
853                    java.lang.String preferencesKey, java.lang.String preferencesValue)
854                    throws com.liferay.portal.kernel.exception.SystemException {
855                    return _layoutLocalService.getLayouts(companyId, portletId,
856                            preferencesKey, preferencesValue);
857            }
858    
859            public int getLayoutsCount(com.liferay.portal.model.Group group,
860                    boolean privateLayout)
861                    throws com.liferay.portal.kernel.exception.PortalException,
862                            com.liferay.portal.kernel.exception.SystemException {
863                    return _layoutLocalService.getLayoutsCount(group, privateLayout);
864            }
865    
866            public int getLayoutsCount(com.liferay.portal.model.User user,
867                    boolean privateLayout)
868                    throws com.liferay.portal.kernel.exception.PortalException,
869                            com.liferay.portal.kernel.exception.SystemException {
870                    return _layoutLocalService.getLayoutsCount(user, privateLayout);
871            }
872    
873            /**
874            * Returns the primary key to use for the next layout.
875            *
876            * @param groupId the primary key of the group
877            * @param privateLayout whether the layout is private to the group
878            * @return the primary key to use for the next layout
879            * @throws SystemException if a system exception occurred
880            */
881            public long getNextLayoutId(long groupId, boolean privateLayout)
882                    throws com.liferay.portal.kernel.exception.SystemException {
883                    return _layoutLocalService.getNextLayoutId(groupId, privateLayout);
884            }
885    
886            /**
887            * Returns all the layouts whose friendly URLs are <code>null</code>
888            *
889            * @return all the layouts whose friendly URLs are <code>null</code>
890            * @throws SystemException if a system exception occurred
891            */
892            public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
893                    throws com.liferay.portal.kernel.exception.SystemException {
894                    return _layoutLocalService.getNullFriendlyURLLayouts();
895            }
896    
897            /**
898            * Returns all the layouts within scope of the group
899            *
900            * @param groupId the primary key of the group
901            * @param privateLayout whether the layout is private to the group
902            * @return the layouts within scope of the group
903            * @throws SystemException if a system exception occurred
904            */
905            public java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts(
906                    long groupId, boolean privateLayout)
907                    throws com.liferay.portal.kernel.exception.SystemException {
908                    return _layoutLocalService.getScopeGroupLayouts(groupId, privateLayout);
909            }
910    
911            public boolean hasLayouts(com.liferay.portal.model.Group group,
912                    boolean privateLayout)
913                    throws com.liferay.portal.kernel.exception.PortalException,
914                            com.liferay.portal.kernel.exception.SystemException {
915                    return _layoutLocalService.hasLayouts(group, privateLayout);
916            }
917    
918            /**
919            * Returns <code>true</code> if the group has any layouts;
920            * <code>false</code> otherwise.
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 <code>true</code> if the group has any layouts;
926            <code>false</code> otherwise
927            * @throws SystemException if a system exception occurred
928            */
929            public boolean hasLayouts(long groupId, boolean privateLayout,
930                    long parentLayoutId)
931                    throws com.liferay.portal.kernel.exception.SystemException {
932                    return _layoutLocalService.hasLayouts(groupId, privateLayout,
933                            parentLayoutId);
934            }
935    
936            public boolean hasLayouts(com.liferay.portal.model.User user,
937                    boolean privateLayout)
938                    throws com.liferay.portal.kernel.exception.PortalException,
939                            com.liferay.portal.kernel.exception.SystemException {
940                    return _layoutLocalService.hasLayouts(user, privateLayout);
941            }
942    
943            /**
944            * Imports the layouts from the byte array.
945            *
946            * @param userId the primary key of the user
947            * @param groupId the primary key of the group
948            * @param privateLayout whether the layout is private to the group
949            * @param parameterMap the mapping of parameters indicating which
950            information will be imported. For information on the keys used in
951            the map see {@link
952            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
953            * @param bytes the byte array with the data
954            * @throws PortalException if a group or user with the primary key could not
955            be found, or if some other portal exception occurred
956            * @throws SystemException if a system exception occurred
957            * @see com.liferay.portal.lar.LayoutImporter
958            */
959            public void importLayouts(long userId, long groupId, boolean privateLayout,
960                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
961                    byte[] bytes)
962                    throws com.liferay.portal.kernel.exception.PortalException,
963                            com.liferay.portal.kernel.exception.SystemException {
964                    _layoutLocalService.importLayouts(userId, groupId, privateLayout,
965                            parameterMap, bytes);
966            }
967    
968            /**
969            * Imports the layouts from the file.
970            *
971            * @param userId the primary key of the user
972            * @param groupId the primary key of the group
973            * @param privateLayout whether the layout is private to the group
974            * @param parameterMap the mapping of parameters indicating which
975            information will be imported. For information on the keys used in
976            the map see {@link
977            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
978            * @param file the LAR file with the data
979            * @throws PortalException if a group or user with the primary key could not
980            be found, or if some other portal exception occurred
981            * @throws SystemException if a system exception occurred
982            * @see com.liferay.portal.lar.LayoutImporter
983            */
984            public void importLayouts(long userId, long groupId, boolean privateLayout,
985                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
986                    java.io.File file)
987                    throws com.liferay.portal.kernel.exception.PortalException,
988                            com.liferay.portal.kernel.exception.SystemException {
989                    _layoutLocalService.importLayouts(userId, groupId, privateLayout,
990                            parameterMap, file);
991            }
992    
993            /**
994            * Imports the layouts from the input stream.
995            *
996            * @param userId the primary key of the user
997            * @param groupId the primary key of the group
998            * @param privateLayout whether the layout is private to the group
999            * @param parameterMap the mapping of parameters indicating which
1000            information will be imported. For information on the keys used in
1001            the map see {@link
1002            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
1003            * @param is the input stream
1004            * @throws PortalException if a group or user with the primary key could not
1005            be found, or if some other portal exception occurred
1006            * @throws SystemException if a system exception occurred
1007            * @see com.liferay.portal.lar.LayoutImporter
1008            */
1009            public void importLayouts(long userId, long groupId, boolean privateLayout,
1010                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1011                    java.io.InputStream is)
1012                    throws com.liferay.portal.kernel.exception.PortalException,
1013                            com.liferay.portal.kernel.exception.SystemException {
1014                    _layoutLocalService.importLayouts(userId, groupId, privateLayout,
1015                            parameterMap, is);
1016            }
1017    
1018            /**
1019            * Imports the portlet information (categories, permissions, ... etc.) from
1020            * the file.
1021            *
1022            * @param userId the primary key of the user
1023            * @param plid the primary key of the target layout
1024            * @param groupId the primary key of the target group
1025            * @param portletId the primary key of the portlet
1026            * @param parameterMap the mapping of parameters indicating which
1027            information will be imported. For information on the keys used in
1028            the map see {@link
1029            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
1030            * @param file the LAR file with the data
1031            * @throws PortalException if a group, layout, portlet or user with the
1032            primary key could not be found
1033            * @throws SystemException if a system exception occurred
1034            */
1035            public void importPortletInfo(long userId, long plid, long groupId,
1036                    java.lang.String portletId,
1037                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1038                    java.io.File file)
1039                    throws com.liferay.portal.kernel.exception.PortalException,
1040                            com.liferay.portal.kernel.exception.SystemException {
1041                    _layoutLocalService.importPortletInfo(userId, plid, groupId, portletId,
1042                            parameterMap, file);
1043            }
1044    
1045            /**
1046            * Imports the portlet information (categories, permissions, ... etc.) from
1047            * the input stream.
1048            *
1049            * @param userId the primary key of the user
1050            * @param plid the primary key of the layout
1051            * @param groupId the primary key of the group
1052            * @param portletId the primary key of the portlet
1053            * @param parameterMap the mapping of parameters indicating which
1054            information will be imported. For information on the keys used in
1055            the map see {@link
1056            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
1057            * @param is the input stream
1058            * @throws PortalException if a group, portlet, layout or user with the
1059            primary key could not be found
1060            * @throws SystemException if a system exception occurred
1061            */
1062            public void importPortletInfo(long userId, long plid, long groupId,
1063                    java.lang.String portletId,
1064                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1065                    java.io.InputStream is)
1066                    throws com.liferay.portal.kernel.exception.PortalException,
1067                            com.liferay.portal.kernel.exception.SystemException {
1068                    _layoutLocalService.importPortletInfo(userId, plid, groupId, portletId,
1069                            parameterMap, is);
1070            }
1071    
1072            /**
1073            * Sets the layouts for the group, replacing and prioritizing all layouts of
1074            * the parent layout.
1075            *
1076            * @param groupId the primary key of the group
1077            * @param privateLayout whether the layout is private to the group
1078            * @param parentLayoutId the primary key of the parent layout
1079            * @param layoutIds the primary keys of the layouts
1080            * @param serviceContext the service context
1081            * @throws PortalException if a group or layout with the primary key could
1082            not be found, if no layouts were specified, if the first layout
1083            was not page-able, if the first layout was hidden, or if some
1084            other portal exception occurred
1085            * @throws SystemException if a system exception occurred
1086            */
1087            public void setLayouts(long groupId, boolean privateLayout,
1088                    long parentLayoutId, long[] layoutIds,
1089                    com.liferay.portal.service.ServiceContext serviceContext)
1090                    throws com.liferay.portal.kernel.exception.PortalException,
1091                            com.liferay.portal.kernel.exception.SystemException {
1092                    _layoutLocalService.setLayouts(groupId, privateLayout, parentLayoutId,
1093                            layoutIds, serviceContext);
1094            }
1095    
1096            /**
1097            * Updates the friendly URL of the layout.
1098            *
1099            * @param plid the primary key of the layout
1100            * @param friendlyURL the friendly URL to be assigned
1101            * @return the updated layout
1102            * @throws PortalException if a group or layout with the primary key could
1103            not be found
1104            * @throws SystemException if a system exception occurred
1105            */
1106            public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
1107                    java.lang.String friendlyURL)
1108                    throws com.liferay.portal.kernel.exception.PortalException,
1109                            com.liferay.portal.kernel.exception.SystemException {
1110                    return _layoutLocalService.updateFriendlyURL(plid, friendlyURL);
1111            }
1112    
1113            /**
1114            * Updates the layout.
1115            *
1116            * @param groupId the primary key of the group
1117            * @param privateLayout whether the layout is private to the group
1118            * @param layoutId the primary key of the layout
1119            * @param parentLayoutId the primary key of the layout's new parent layout
1120            * @param nameMap the locales and localized names to merge (optionally
1121            <code>null</code>)
1122            * @param titleMap the locales and localized titles to merge (optionally
1123            <code>null</code>)
1124            * @param descriptionMap the locales and localized descriptions to merge
1125            (optionally <code>null</code>)
1126            * @param keywordsMap the locales and localized keywords to merge
1127            (optionally <code>null</code>)
1128            * @param robotsMap the locales and localized robots to merge (optionally
1129            <code>null</code>)
1130            * @param type the layout's new type (optionally {@link
1131            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET})
1132            * @param hidden whether the layout is hidden
1133            * @param friendlyURL the layout's new friendly URL (optionally {@link
1134            com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL}
1135            or {@link
1136            com.liferay.portal.util.PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL}).
1137            The default values can be overridden in
1138            <code>portal-ext.properties</code> by specifying new values for
1139            the corresponding properties defined in {@link
1140            com.liferay.portal.util.PropsValues}. To see how the URL is
1141            normalized when accessed see {@link
1142            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1143            String)}.
1144            * @param iconImage whether the icon image will be updated
1145            * @param iconBytes the byte array of the layout's new icon image
1146            * @param serviceContext the service context. Can set the modification date
1147            and expando bridge attributes for the layout. For layouts that
1148            are linked to a layout prototype, attributes named
1149            'layoutPrototypeUuid' and 'layoutPrototypeLinkedEnabled' can be
1150            specified to provide the unique identifier of the source
1151            prototype and a boolean to determined whether a link to it should
1152            be enabled to activate propagation of changes made to the linked
1153            page in the prototype.
1154            * @return the updated layout
1155            * @throws PortalException if a group or layout with the primary key could
1156            not be found, if a unique friendly URL could not be generated, if
1157            a valid parent layout ID to use could not be found, or if the
1158            layout parameters were invalid
1159            * @throws SystemException if a system exception occurred
1160            */
1161            public com.liferay.portal.model.Layout updateLayout(long groupId,
1162                    boolean privateLayout, long layoutId, long parentLayoutId,
1163                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1164                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1165                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1166                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1167                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1168                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
1169                    java.lang.Boolean iconImage, byte[] iconBytes,
1170                    com.liferay.portal.service.ServiceContext serviceContext)
1171                    throws com.liferay.portal.kernel.exception.PortalException,
1172                            com.liferay.portal.kernel.exception.SystemException {
1173                    return _layoutLocalService.updateLayout(groupId, privateLayout,
1174                            layoutId, parentLayoutId, nameMap, titleMap, descriptionMap,
1175                            keywordsMap, robotsMap, type, hidden, friendlyURL, iconImage,
1176                            iconBytes, serviceContext);
1177            }
1178    
1179            /**
1180            * Updates the layout replacing its type settings.
1181            *
1182            * @param groupId the primary key of the group
1183            * @param privateLayout whether the layout is private to the group
1184            * @param layoutId the primary key of the layout
1185            * @param typeSettings the settings to load the unicode properties object.
1186            See {@link com.liferay.portal.kernel.util.UnicodeProperties
1187            #fastLoad(String)}.
1188            * @return the updated layout
1189            * @throws PortalException if a matching layout could not be found
1190            * @throws SystemException if a system exception occurred
1191            */
1192            public com.liferay.portal.model.Layout updateLayout(long groupId,
1193                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
1194                    throws com.liferay.portal.kernel.exception.PortalException,
1195                            com.liferay.portal.kernel.exception.SystemException {
1196                    return _layoutLocalService.updateLayout(groupId, privateLayout,
1197                            layoutId, typeSettings);
1198            }
1199    
1200            /**
1201            * Updates the look and feel of the layout.
1202            *
1203            * @param groupId the primary key of the group
1204            * @param privateLayout whether the layout is private to the group
1205            * @param layoutId the primary key of the layout
1206            * @param themeId the primary key of the layout's new theme
1207            * @param colorSchemeId the primary key of the layout's new color scheme
1208            * @param css the layout's new CSS
1209            * @param wapTheme whether the theme is for WAP browsers
1210            * @return the updated layout
1211            * @throws PortalException if a matching layout could not be found
1212            * @throws SystemException if a system exception occurred
1213            */
1214            public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
1215                    boolean privateLayout, long layoutId, java.lang.String themeId,
1216                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1217                    throws com.liferay.portal.kernel.exception.PortalException,
1218                            com.liferay.portal.kernel.exception.SystemException {
1219                    return _layoutLocalService.updateLookAndFeel(groupId, privateLayout,
1220                            layoutId, themeId, colorSchemeId, css, wapTheme);
1221            }
1222    
1223            /**
1224            * Updates the name of the layout.
1225            *
1226            * @param layout the layout to be updated
1227            * @param name the layout's new name
1228            * @param languageId the primary key of the language. For more information
1229            see {@link java.util.Locale}.
1230            * @return the updated layout
1231            * @throws PortalException if the new name was <code>null</code>
1232            * @throws SystemException if a system exception occurred
1233            */
1234            public com.liferay.portal.model.Layout updateName(
1235                    com.liferay.portal.model.Layout layout, java.lang.String name,
1236                    java.lang.String languageId)
1237                    throws com.liferay.portal.kernel.exception.PortalException,
1238                            com.liferay.portal.kernel.exception.SystemException {
1239                    return _layoutLocalService.updateName(layout, name, languageId);
1240            }
1241    
1242            /**
1243            * Updates the name of the layout matching the group, layout ID, and
1244            * privacy.
1245            *
1246            * @param groupId the primary key of the group
1247            * @param privateLayout whether the layout is private to the group
1248            * @param layoutId the primary key of the layout
1249            * @param name the layout's new name
1250            * @param languageId the primary key of the language. For more information
1251            see {@link java.util.Locale}.
1252            * @return the updated layout
1253            * @throws PortalException if a matching layout could not be found or if the
1254            new name was <code>null</code>
1255            * @throws SystemException if a system exception occurred
1256            */
1257            public com.liferay.portal.model.Layout updateName(long groupId,
1258                    boolean privateLayout, long layoutId, java.lang.String name,
1259                    java.lang.String languageId)
1260                    throws com.liferay.portal.kernel.exception.PortalException,
1261                            com.liferay.portal.kernel.exception.SystemException {
1262                    return _layoutLocalService.updateName(groupId, privateLayout, layoutId,
1263                            name, languageId);
1264            }
1265    
1266            /**
1267            * Updates the name of the layout matching the primary key.
1268            *
1269            * @param plid the primary key of the layout
1270            * @param name the name to be assigned
1271            * @param languageId the primary key of the language. For more information
1272            see {@link java.util.Locale}.
1273            * @return the updated layout
1274            * @throws PortalException if a layout with the primary key could not be
1275            found or if the name was <code>null</code>
1276            * @throws SystemException if a system exception occurred
1277            */
1278            public com.liferay.portal.model.Layout updateName(long plid,
1279                    java.lang.String name, java.lang.String languageId)
1280                    throws com.liferay.portal.kernel.exception.PortalException,
1281                            com.liferay.portal.kernel.exception.SystemException {
1282                    return _layoutLocalService.updateName(plid, name, languageId);
1283            }
1284    
1285            /**
1286            * Updates the parent layout ID of the layout matching the group, layout ID,
1287            * and privacy.
1288            *
1289            * @param groupId the primary key of the group
1290            * @param privateLayout whether the layout is private to the group
1291            * @param layoutId the primary key of the layout
1292            * @param parentLayoutId the primary key to be assigned to the parent
1293            layout
1294            * @return the matching layout
1295            * @throws PortalException if a valid parent layout ID to use could not be
1296            found or if a matching layout could not be found
1297            * @throws SystemException if a system exception occurred
1298            */
1299            public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
1300                    boolean privateLayout, long layoutId, long parentLayoutId)
1301                    throws com.liferay.portal.kernel.exception.PortalException,
1302                            com.liferay.portal.kernel.exception.SystemException {
1303                    return _layoutLocalService.updateParentLayoutId(groupId, privateLayout,
1304                            layoutId, parentLayoutId);
1305            }
1306    
1307            /**
1308            * Updates the parent layout ID of the layout matching the primary key. If a
1309            * layout matching the parent primary key is found, the layout ID of that
1310            * layout is assigned, otherwise {@link
1311            * com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID} is
1312            * assigned.
1313            *
1314            * @param plid the primary key of the layout
1315            * @param parentPlid the primary key of the parent layout
1316            * @return the layout matching the primary key
1317            * @throws PortalException if a layout with the primary key could not be
1318            found or if a valid parent layout ID to use could not be found
1319            * @throws SystemException if a system exception occurred
1320            */
1321            public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
1322                    long parentPlid)
1323                    throws com.liferay.portal.kernel.exception.PortalException,
1324                            com.liferay.portal.kernel.exception.SystemException {
1325                    return _layoutLocalService.updateParentLayoutId(plid, parentPlid);
1326            }
1327    
1328            /**
1329            * Updates the priority of the layout.
1330            *
1331            * @param layout the layout to be updated
1332            * @param priority the layout's new priority
1333            * @return the updated layout
1334            * @throws SystemException if a system exception occurred
1335            */
1336            public com.liferay.portal.model.Layout updatePriority(
1337                    com.liferay.portal.model.Layout layout, int priority)
1338                    throws com.liferay.portal.kernel.exception.SystemException {
1339                    return _layoutLocalService.updatePriority(layout, priority);
1340            }
1341    
1342            /**
1343            * Updates the priority of the layout matching the group, layout ID, and
1344            * privacy.
1345            *
1346            * @param groupId the primary key of the group
1347            * @param privateLayout whether the layout is private to the group
1348            * @param layoutId the primary key of the layout
1349            * @param priority the layout's new priority
1350            * @return the updated layout
1351            * @throws PortalException if a matching layout could not be found
1352            * @throws SystemException if a system exception occurred
1353            */
1354            public com.liferay.portal.model.Layout updatePriority(long groupId,
1355                    boolean privateLayout, long layoutId, int priority)
1356                    throws com.liferay.portal.kernel.exception.PortalException,
1357                            com.liferay.portal.kernel.exception.SystemException {
1358                    return _layoutLocalService.updatePriority(groupId, privateLayout,
1359                            layoutId, priority);
1360            }
1361    
1362            /**
1363            * Updates the priority of the layout matching the primary key.
1364            *
1365            * @param plid the primary key of the layout
1366            * @param priority the layout's new priority
1367            * @return the updated layout
1368            * @throws PortalException if a layout with the primary key could not be
1369            found
1370            * @throws SystemException if a system exception occurred
1371            */
1372            public com.liferay.portal.model.Layout updatePriority(long plid,
1373                    int priority)
1374                    throws com.liferay.portal.kernel.exception.PortalException,
1375                            com.liferay.portal.kernel.exception.SystemException {
1376                    return _layoutLocalService.updatePriority(plid, priority);
1377            }
1378    
1379            public void updateScopedPortletNames(long groupId, boolean privateLayout,
1380                    long layoutId,
1381                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1382                    java.util.List<java.util.Locale> nameMapModifiedLocales)
1383                    throws com.liferay.portal.kernel.exception.PortalException,
1384                            com.liferay.portal.kernel.exception.SystemException {
1385                    _layoutLocalService.updateScopedPortletNames(groupId, privateLayout,
1386                            layoutId, nameMap, nameMapModifiedLocales);
1387            }
1388    
1389            /**
1390            * Updates the names of the portlets within scope of the group, the scope of
1391            * the layout's universally unique identifier, and the privacy.
1392            *
1393            * @param groupId the primary key of the group
1394            * @param privateLayout whether the layout is private to the group
1395            * @param layoutId the primary key of the layout whose universally unique
1396            identifier to match
1397            * @param name the new name for the portlets
1398            * @param languageId the primary key of the language
1399            * @throws PortalException if a matching layout could not be found
1400            * @throws SystemException if a system exception occurred
1401            * @see com.liferay.portlet.portletconfiguration.action.EditScopeAction
1402            */
1403            public void updateScopedPortletNames(long groupId, boolean privateLayout,
1404                    long layoutId, java.lang.String name, java.lang.String languageId)
1405                    throws com.liferay.portal.kernel.exception.PortalException,
1406                            com.liferay.portal.kernel.exception.SystemException {
1407                    _layoutLocalService.updateScopedPortletNames(groupId, privateLayout,
1408                            layoutId, name, languageId);
1409            }
1410    
1411            /**
1412             * @deprecated Renamed to {@link #getWrappedService}
1413             */
1414            public LayoutLocalService getWrappedLayoutLocalService() {
1415                    return _layoutLocalService;
1416            }
1417    
1418            /**
1419             * @deprecated Renamed to {@link #setWrappedService}
1420             */
1421            public void setWrappedLayoutLocalService(
1422                    LayoutLocalService layoutLocalService) {
1423                    _layoutLocalService = layoutLocalService;
1424            }
1425    
1426            public LayoutLocalService getWrappedService() {
1427                    return _layoutLocalService;
1428            }
1429    
1430            public void setWrappedService(LayoutLocalService layoutLocalService) {
1431                    _layoutLocalService = layoutLocalService;
1432            }
1433    
1434            private LayoutLocalService _layoutLocalService;
1435    }