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