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