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