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            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
992            public java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts(
993                    long parentGroupId) throws PortalException;
994    
995            /**
996            * Returns all the layouts within scope of the group
997            *
998            * @param privateLayout whether the layout is private to the group
999            * @return the layouts within scope of the group
1000            */
1001            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1002            public java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts(
1003                    long parentGroupId, boolean privateLayout) throws PortalException;
1004    
1005            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1006            public boolean hasLayoutSetPrototypeLayout(long layoutSetPrototypeId,
1007                    java.lang.String layoutUuid) throws PortalException;
1008    
1009            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1010            public boolean hasLayoutSetPrototypeLayout(
1011                    java.lang.String layoutSetPrototypeUuid, long companyId,
1012                    java.lang.String layoutUuid) throws PortalException;
1013    
1014            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1015            public boolean hasLayouts(com.liferay.portal.model.Group group)
1016                    throws PortalException;
1017    
1018            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1019            public boolean hasLayouts(com.liferay.portal.model.Group group,
1020                    boolean privateLayout) throws PortalException;
1021    
1022            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1023            public boolean hasLayouts(com.liferay.portal.model.Group group,
1024                    boolean privateLayout, boolean includeUserGroups)
1025                    throws PortalException;
1026    
1027            /**
1028            * Returns <code>true</code> if the group has any layouts;
1029            * <code>false</code> otherwise.
1030            *
1031            * @param groupId the primary key of the group
1032            * @param privateLayout whether the layout is private to the group
1033            * @param parentLayoutId the primary key of the parent layout
1034            * @return <code>true</code> if the group has any layouts;
1035            <code>false</code> otherwise
1036            */
1037            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1038            public boolean hasLayouts(long groupId, boolean privateLayout,
1039                    long parentLayoutId);
1040    
1041            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1042            public boolean hasLayouts(com.liferay.portal.model.User user,
1043                    boolean privateLayout) throws PortalException;
1044    
1045            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1046            public boolean hasLayouts(com.liferay.portal.model.User user,
1047                    boolean privateLayout, boolean includeUserGroups)
1048                    throws PortalException;
1049    
1050            /**
1051            * @throws PortalException
1052            * @deprecated As of 7.0.0, replaced by {@link
1053            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayouts(
1054            ExportImportConfiguration, File)}}
1055            */
1056            @java.lang.Deprecated
1057            public void importLayouts(
1058                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1059                    java.io.File file) throws PortalException;
1060    
1061            /**
1062            * @throws PortalException
1063            * @deprecated As of 7.0.0, replaced by {@link
1064            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayouts(
1065            ExportImportConfiguration, InputStream)}}
1066            */
1067            @java.lang.Deprecated
1068            public void importLayouts(
1069                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1070                    java.io.InputStream is) throws PortalException;
1071    
1072            /**
1073            * Imports the layouts from the byte array.
1074            *
1075            * @param userId the primary key of the user
1076            * @param groupId the primary key of the group
1077            * @param privateLayout whether the layout is private to the group
1078            * @param parameterMap the mapping of parameters indicating which
1079            information will be imported. For information on the keys
1080            used in the map see {@link
1081            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1082            * @param bytes the byte array with the data
1083            * @throws PortalException
1084            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1085            * @deprecated As of 7.0.0, with no direct replacement
1086            */
1087            @java.lang.Deprecated
1088            public void importLayouts(long userId, long groupId, boolean privateLayout,
1089                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1090                    byte[] bytes) throws PortalException;
1091    
1092            /**
1093            * Imports the layouts from the file.
1094            *
1095            * @param userId the primary key of the user
1096            * @param groupId the primary key of the group
1097            * @param privateLayout whether the layout is private to the group
1098            * @param parameterMap the mapping of parameters indicating which
1099            information will be imported. For information on the keys
1100            used in the map see {@link
1101            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1102            * @param file the LAR file with the data
1103            * @throws PortalException
1104            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1105            * @deprecated As of 7.0.0, with no direct replacement
1106            */
1107            @java.lang.Deprecated
1108            public void importLayouts(long userId, long groupId, boolean privateLayout,
1109                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1110                    java.io.File file) throws PortalException;
1111    
1112            /**
1113            * Imports the layouts from the input stream.
1114            *
1115            * @param userId the primary key of the user
1116            * @param groupId the primary key of the group
1117            * @param privateLayout whether the layout is private to the group
1118            * @param parameterMap the mapping of parameters indicating which
1119            information will be imported. For information on the keys
1120            used in the map see {@link
1121            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1122            * @param is the input stream
1123            * @throws PortalException
1124            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1125            * @deprecated As of 7.0.0, with no direct replacement
1126            */
1127            @java.lang.Deprecated
1128            public void importLayouts(long userId, long groupId, boolean privateLayout,
1129                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1130                    java.io.InputStream is) throws PortalException;
1131    
1132            /**
1133            * @throws PortalException
1134            * @deprecated As of 7.0.0, replaced by {@link
1135            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsDataDeletions(
1136            ExportImportConfiguration, File)}
1137            */
1138            @java.lang.Deprecated
1139            public void importLayoutsDataDeletions(
1140                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1141                    java.io.File file) throws PortalException;
1142    
1143            /**
1144            * @throws PortalException
1145            * @deprecated As of 7.0.0, replaced by {@link
1146            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsInBackground(
1147            long, ExportImportConfiguration, File)}
1148            */
1149            @java.lang.Deprecated
1150            public long importLayoutsInBackground(long userId,
1151                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1152                    java.io.File file) throws PortalException;
1153    
1154            /**
1155            * @throws PortalException
1156            * @deprecated As of 7.0.0, replaced by {@link
1157            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsInBackground(
1158            long, long, File)}
1159            */
1160            @java.lang.Deprecated
1161            public long importLayoutsInBackground(long userId,
1162                    long exportImportConfigurationId, java.io.File file)
1163                    throws PortalException;
1164    
1165            /**
1166            * @throws PortalException
1167            * @deprecated As of 7.0.0, with no direct replacement
1168            */
1169            @java.lang.Deprecated
1170            public long importLayoutsInBackground(long userId,
1171                    java.lang.String taskName, long groupId, boolean privateLayout,
1172                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1173                    java.io.File file) throws PortalException;
1174    
1175            /**
1176            * @throws PortalException
1177            * @deprecated As of 7.0.0, with no direct replacement
1178            */
1179            @java.lang.Deprecated
1180            public long importLayoutsInBackground(long userId,
1181                    java.lang.String taskName, long groupId, boolean privateLayout,
1182                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1183                    java.io.InputStream is) throws PortalException;
1184    
1185            /**
1186            * @throws PortalException
1187            * @deprecated As of 7.0.0, replaced by {@link
1188            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletDataDeletions(
1189            ExportImportConfiguration, File)}
1190            */
1191            @java.lang.Deprecated
1192            public void importPortletDataDeletions(
1193                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1194                    java.io.File file) throws PortalException;
1195    
1196            /**
1197            * @throws PortalException
1198            * @deprecated As of 7.0.0, replaced by {@link
1199            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfo(
1200            ExportImportConfiguration, File)}
1201            */
1202            @java.lang.Deprecated
1203            public void importPortletInfo(
1204                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1205                    java.io.File file) throws PortalException;
1206    
1207            /**
1208            * @throws PortalException
1209            * @deprecated As of 7.0.0, replaced by {@link
1210            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfo(
1211            ExportImportConfiguration, InputStream)}
1212            */
1213            @java.lang.Deprecated
1214            public void importPortletInfo(
1215                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1216                    java.io.InputStream is) throws PortalException;
1217    
1218            /**
1219            * Imports the portlet information (categories, permissions, ... etc.) from
1220            * the file.
1221            *
1222            * @param userId the primary key of the user
1223            * @param plid the primary key of the target layout
1224            * @param groupId the primary key of the target group
1225            * @param portletId the primary key of the portlet
1226            * @param parameterMap the mapping of parameters indicating which
1227            information will be imported. For information on the keys
1228            used in the map see {@link
1229            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1230            * @param file the LAR file with the data
1231            * @throws PortalException
1232            * @deprecated As of 7.0.0, with no direct replacement
1233            */
1234            @java.lang.Deprecated
1235            public void importPortletInfo(long userId, long plid, long groupId,
1236                    java.lang.String portletId,
1237                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1238                    java.io.File file) throws PortalException;
1239    
1240            /**
1241            * Imports the portlet information (categories, permissions, ... etc.) from
1242            * the input stream.
1243            *
1244            * @param userId the primary key of the user
1245            * @param plid the primary key of the layout
1246            * @param groupId the primary key of the group
1247            * @param portletId the primary key of the portlet
1248            * @param parameterMap the mapping of parameters indicating which
1249            information will be imported. For information on the keys
1250            used in the map see {@link
1251            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1252            * @param is the input stream
1253            * @throws PortalException
1254            * @deprecated As of 7.0.0, with no direct replacement
1255            */
1256            @java.lang.Deprecated
1257            public void importPortletInfo(long userId, long plid, long groupId,
1258                    java.lang.String portletId,
1259                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1260                    java.io.InputStream is) throws PortalException;
1261    
1262            /**
1263            * @throws PortalException
1264            * @deprecated As of 7.0.0, with no direct replacement
1265            */
1266            @java.lang.Deprecated
1267            public void importPortletInfo(long userId, java.lang.String portletId,
1268                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1269                    java.io.File file) throws PortalException;
1270    
1271            /**
1272            * @throws PortalException
1273            * @deprecated As of 7.0.0, with no direct replacement
1274            */
1275            @java.lang.Deprecated
1276            public void importPortletInfo(long userId, java.lang.String portletId,
1277                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1278                    java.io.InputStream is) throws PortalException;
1279    
1280            /**
1281            * @throws PortalException
1282            * @deprecated As of 7.0.0, replaced by {@link
1283            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfoInBackground(
1284            long, ExportImportConfiguration, File)}
1285            */
1286            @java.lang.Deprecated
1287            public long importPortletInfoInBackground(long userId,
1288                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1289                    java.io.File file) throws PortalException;
1290    
1291            /**
1292            * @throws PortalException
1293            * @deprecated As of 7.0.0, replaced by {@link
1294            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfoInBackground(
1295            long, long, File)}
1296            */
1297            @java.lang.Deprecated
1298            public long importPortletInfoInBackground(long userId,
1299                    long exportImportConfigurationId, java.io.File file)
1300                    throws PortalException;
1301    
1302            /**
1303            * @throws PortalException
1304            * @deprecated As of 7.0.0, with no direct replacement
1305            */
1306            @java.lang.Deprecated
1307            public long importPortletInfoInBackground(long userId,
1308                    java.lang.String taskName, long plid, long groupId,
1309                    java.lang.String portletId,
1310                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1311                    java.io.File file) throws PortalException;
1312    
1313            /**
1314            * @throws PortalException
1315            * @deprecated As of 7.0.0, with no direct replacement
1316            */
1317            @java.lang.Deprecated
1318            public long importPortletInfoInBackground(long userId,
1319                    java.lang.String taskName, long plid, long groupId,
1320                    java.lang.String portletId,
1321                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1322                    java.io.InputStream is) throws PortalException;
1323    
1324            /**
1325            * @throws PortalException
1326            * @deprecated As of 7.0.0, with no direct replacement
1327            */
1328            @java.lang.Deprecated
1329            public long importPortletInfoInBackground(long userId,
1330                    java.lang.String taskName, java.lang.String portletId,
1331                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1332                    java.io.File file) throws PortalException;
1333    
1334            /**
1335            * @throws PortalException
1336            * @deprecated As of 7.0.0, with no direct replacement
1337            */
1338            @java.lang.Deprecated
1339            public long importPortletInfoInBackground(long userId,
1340                    java.lang.String taskName, java.lang.String portletId,
1341                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1342                    java.io.InputStream is) throws PortalException;
1343    
1344            /**
1345            * Sets the layouts for the group, replacing and prioritizing all layouts of
1346            * the parent layout.
1347            *
1348            * @param groupId the primary key of the group
1349            * @param privateLayout whether the layout is private to the group
1350            * @param parentLayoutId the primary key of the parent layout
1351            * @param layoutIds the primary keys of the layouts
1352            * @param serviceContext the service context to be applied
1353            */
1354            public void setLayouts(long groupId, boolean privateLayout,
1355                    long parentLayoutId, long[] layoutIds,
1356                    com.liferay.portal.service.ServiceContext serviceContext)
1357                    throws PortalException;
1358    
1359            public void updateAsset(long userId,
1360                    com.liferay.portal.model.Layout layout, long[] assetCategoryIds,
1361                    java.lang.String[] assetTagNames) throws PortalException;
1362    
1363            /**
1364            * Updates the friendly URL of the layout.
1365            *
1366            * @param plid the primary key of the layout
1367            * @param friendlyURL the friendly URL to be assigned
1368            * @param languageId the primary key of the language
1369            * @return the updated layout
1370            * @deprecated As of 7.0.0, replaced by {@link #updateFriendlyURL(long,
1371            long, String, String)}
1372            */
1373            @java.lang.Deprecated
1374            public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
1375                    java.lang.String friendlyURL, java.lang.String languageId)
1376                    throws PortalException;
1377    
1378            /**
1379            * Updates the friendly URL of the layout.
1380            *
1381            * @param userId the primary key of the user
1382            * @param plid the primary key of the layout
1383            * @param friendlyURL the friendly URL to be assigned
1384            * @param languageId the primary key of the language
1385            * @return the updated layout
1386            */
1387            public com.liferay.portal.model.Layout updateFriendlyURL(long userId,
1388                    long plid, java.lang.String friendlyURL, java.lang.String languageId)
1389                    throws PortalException;
1390    
1391            public com.liferay.portal.model.Layout updateIconImage(long plid,
1392                    byte[] bytes) throws PortalException;
1393    
1394            /**
1395            * Updates the layout.
1396            *
1397            * @param groupId the primary key of the group
1398            * @param privateLayout whether the layout is private to the group
1399            * @param layoutId the primary key of the layout
1400            * @param parentLayoutId the primary key of the layout's new parent
1401            layout
1402            * @param nameMap the locales and localized names to merge (optionally
1403            <code>null</code>)
1404            * @param titleMap the locales and localized titles to merge
1405            (optionally <code>null</code>)
1406            * @param descriptionMap the locales and localized descriptions to
1407            merge (optionally <code>null</code>)
1408            * @param keywordsMap the locales and localized keywords to merge
1409            (optionally <code>null</code>)
1410            * @param robotsMap the locales and localized robots to merge
1411            (optionally <code>null</code>)
1412            * @param type the layout's new type (optionally {@link
1413            LayoutConstants#TYPE_PORTLET})
1414            * @param hidden whether the layout is hidden
1415            * @param friendlyURL the layout's new friendly URL (optionally {@link
1416            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL} or
1417            {@link
1418            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL}). The
1419            default values can be overridden in
1420            <code>portal-ext.properties</code> by specifying new values
1421            for the corresponding properties defined in {@link
1422            PropsValues}. To see how the URL is normalized when accessed,
1423            see {@link
1424            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1425            String)}.
1426            * @param iconImage whether the icon image will be updated
1427            * @param iconBytes the byte array of the layout's new icon image
1428            * @param serviceContext the service context to be applied. Can set the
1429            modification date and expando bridge attributes for the
1430            layout. For layouts that are linked to a layout prototype,
1431            attributes named <code>layoutPrototypeUuid</code> and
1432            <code>layoutPrototypeLinkedEnabled</code> can be specified to
1433            provide the unique identifier of the source prototype and a
1434            boolean to determine whether a link to it should be enabled
1435            to activate propagation of changes made to the linked page in
1436            the prototype.
1437            * @return the updated layout
1438            * @deprecated As of 6.2.0, replaced by {@link #updateLayout(long, boolean,
1439            long, long, Map, Map, Map, Map, Map, String, boolean, Map,
1440            boolean, byte[], ServiceContext)}
1441            */
1442            @java.lang.Deprecated
1443            public com.liferay.portal.model.Layout updateLayout(long groupId,
1444                    boolean privateLayout, long layoutId, long parentLayoutId,
1445                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1446                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1447                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1448                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1449                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1450                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
1451                    java.lang.Boolean iconImage, byte[] iconBytes,
1452                    com.liferay.portal.service.ServiceContext serviceContext)
1453                    throws PortalException;
1454    
1455            /**
1456            * Updates the layout.
1457            *
1458            * @param groupId the primary key of the group
1459            * @param privateLayout whether the layout is private to the group
1460            * @param layoutId the primary key of the layout
1461            * @param parentLayoutId the primary key of the layout's new parent layout
1462            * @param nameMap the locales and localized names to merge (optionally
1463            <code>null</code>)
1464            * @param titleMap the locales and localized titles to merge (optionally
1465            <code>null</code>)
1466            * @param descriptionMap the locales and localized descriptions to merge
1467            (optionally <code>null</code>)
1468            * @param keywordsMap the locales and localized keywords to merge
1469            (optionally <code>null</code>)
1470            * @param robotsMap the locales and localized robots to merge (optionally
1471            <code>null</code>)
1472            * @param type the layout's new type (optionally {@link
1473            LayoutConstants#TYPE_PORTLET})
1474            * @param hidden whether the layout is hidden
1475            * @param friendlyURLMap the layout's locales and localized friendly URLs.
1476            To see how the URL is normalized when accessed, see {@link
1477            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1478            String)}.
1479            * @param iconImage whether the icon image will be updated
1480            * @param iconBytes the byte array of the layout's new icon image
1481            * @param serviceContext the service context to be applied. Can set the
1482            modification date and expando bridge attributes for the layout.
1483            For layouts that are linked to a layout prototype, attributes
1484            named <code>layoutPrototypeUuid</code> and
1485            <code>layoutPrototypeLinkedEnabled</code> can be specified to
1486            provide the unique identifier of the source prototype and a
1487            boolean to determine whether a link to it should be enabled to
1488            activate propagation of changes made to the linked page in the
1489            prototype.
1490            * @return the updated layout
1491            */
1492            public com.liferay.portal.model.Layout updateLayout(long groupId,
1493                    boolean privateLayout, long layoutId, long parentLayoutId,
1494                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1495                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1496                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1497                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1498                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1499                    java.lang.String type, boolean hidden,
1500                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
1501                    boolean iconImage, byte[] iconBytes,
1502                    com.liferay.portal.service.ServiceContext serviceContext)
1503                    throws PortalException;
1504    
1505            /**
1506            * Updates the layout replacing its type settings.
1507            *
1508            * @param groupId the primary key of the group
1509            * @param privateLayout whether the layout is private to the group
1510            * @param layoutId the primary key of the layout
1511            * @param typeSettings the settings to load the unicode properties object.
1512            See {@link UnicodeProperties #fastLoad(String)}.
1513            * @return the updated layout
1514            */
1515            public com.liferay.portal.model.Layout updateLayout(long groupId,
1516                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
1517                    throws PortalException;
1518    
1519            /**
1520            * Updates the layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
1521            *
1522            * @param layout the layout
1523            * @return the layout that was updated
1524            */
1525            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
1526            public com.liferay.portal.model.Layout updateLayout(
1527                    com.liferay.portal.model.Layout layout);
1528    
1529            /**
1530            * Updates the look and feel of the layout.
1531            *
1532            * @param groupId the primary key of the group
1533            * @param privateLayout whether the layout is private to the group
1534            * @param layoutId the primary key of the layout
1535            * @param themeId the primary key of the layout's new theme
1536            * @param colorSchemeId the primary key of the layout's new color scheme
1537            * @param css the layout's new CSS
1538            * @param wapTheme whether the theme is for WAP browsers
1539            * @return the updated layout
1540            */
1541            public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
1542                    boolean privateLayout, long layoutId, java.lang.String themeId,
1543                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1544                    throws PortalException;
1545    
1546            /**
1547            * Updates the name of the layout matching the group, layout ID, and
1548            * privacy.
1549            *
1550            * @param groupId the primary key of the group
1551            * @param privateLayout whether the layout is private to the group
1552            * @param layoutId the primary key of the layout
1553            * @param name the layout's new name
1554            * @param languageId the primary key of the language. For more information
1555            see {@link Locale}.
1556            * @return the updated layout
1557            */
1558            public com.liferay.portal.model.Layout updateName(long groupId,
1559                    boolean privateLayout, long layoutId, java.lang.String name,
1560                    java.lang.String languageId) throws PortalException;
1561    
1562            /**
1563            * Updates the name of the layout.
1564            *
1565            * @param layout the layout to be updated
1566            * @param name the layout's new name
1567            * @param languageId the primary key of the language. For more information
1568            see {@link Locale}.
1569            * @return the updated layout
1570            */
1571            public com.liferay.portal.model.Layout updateName(
1572                    com.liferay.portal.model.Layout layout, java.lang.String name,
1573                    java.lang.String languageId) throws PortalException;
1574    
1575            /**
1576            * Updates the name of the layout matching the primary key.
1577            *
1578            * @param plid the primary key of the layout
1579            * @param name the name to be assigned
1580            * @param languageId the primary key of the language. For more information
1581            see {@link Locale}.
1582            * @return the updated layout
1583            */
1584            public com.liferay.portal.model.Layout updateName(long plid,
1585                    java.lang.String name, java.lang.String languageId)
1586                    throws PortalException;
1587    
1588            /**
1589            * Updates the parent layout ID of the layout matching the group, layout ID,
1590            * and privacy.
1591            *
1592            * @param groupId the primary key of the group
1593            * @param privateLayout whether the layout is private to the group
1594            * @param layoutId the primary key of the layout
1595            * @param parentLayoutId the primary key to be assigned to the parent
1596            layout
1597            * @return the matching layout
1598            */
1599            public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
1600                    boolean privateLayout, long layoutId, long parentLayoutId)
1601                    throws PortalException;
1602    
1603            /**
1604            * Updates the parent layout ID of the layout matching the primary key. If a
1605            * layout matching the parent primary key is found, the layout ID of that
1606            * layout is assigned, otherwise {@link
1607            * LayoutConstants#DEFAULT_PARENT_LAYOUT_ID} is assigned.
1608            *
1609            * @param plid the primary key of the layout
1610            * @param parentPlid the primary key of the parent layout
1611            * @return the layout matching the primary key
1612            */
1613            public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
1614                    long parentPlid) throws PortalException;
1615    
1616            /**
1617            * Updates the parent layout ID and priority of the layout.
1618            *
1619            * @param plid the primary key of the layout
1620            * @param parentPlid the primary key of the parent layout
1621            * @param priority the layout's new priority
1622            * @return the layout matching the primary key
1623            */
1624            public com.liferay.portal.model.Layout updateParentLayoutIdAndPriority(
1625                    long plid, long parentPlid, int priority) throws PortalException;
1626    
1627            /**
1628            * Updates the priorities of the layouts.
1629            *
1630            * @param groupId the primary key of the group
1631            * @param privateLayout whether the layout is private to the group
1632            * @throws PortalException
1633            */
1634            public void updatePriorities(long groupId, boolean privateLayout)
1635                    throws PortalException;
1636    
1637            /**
1638            * Updates the priority of the layout matching the group, layout ID, and
1639            * privacy, setting the layout's priority based on the priorities of the
1640            * next and previous layouts.
1641            *
1642            * @param groupId the primary key of the group
1643            * @param privateLayout whether the layout is private to the group
1644            * @param layoutId the primary key of the layout
1645            * @param nextLayoutId the primary key of the next layout
1646            * @param previousLayoutId the primary key of the previous layout
1647            * @return the updated layout
1648            */
1649            public com.liferay.portal.model.Layout updatePriority(long groupId,
1650                    boolean privateLayout, long layoutId, long nextLayoutId,
1651                    long previousLayoutId) throws PortalException;
1652    
1653            /**
1654            * Updates the priority of the layout matching the group, layout ID, and
1655            * privacy.
1656            *
1657            * @param groupId the primary key of the group
1658            * @param privateLayout whether the layout is private to the group
1659            * @param layoutId the primary key of the layout
1660            * @param priority the layout's new priority
1661            * @return the updated layout
1662            */
1663            public com.liferay.portal.model.Layout updatePriority(long groupId,
1664                    boolean privateLayout, long layoutId, int priority)
1665                    throws PortalException;
1666    
1667            /**
1668            * Updates the priority of the layout.
1669            *
1670            * @param layout the layout to be updated
1671            * @param priority the layout's new priority
1672            * @return the updated layout
1673            */
1674            public com.liferay.portal.model.Layout updatePriority(
1675                    com.liferay.portal.model.Layout layout, int priority)
1676                    throws PortalException;
1677    
1678            /**
1679            * Updates the priority of the layout matching the primary key.
1680            *
1681            * @param plid the primary key of the layout
1682            * @param priority the layout's new priority
1683            * @return the updated layout
1684            */
1685            public com.liferay.portal.model.Layout updatePriority(long plid,
1686                    int priority) throws PortalException;
1687    
1688            /**
1689            * Updates the names of the portlets within scope of the group, the scope of
1690            * the layout's UUID, and the privacy.
1691            *
1692            * @param groupId the primary key of the group
1693            * @param privateLayout whether the layout is private to the group
1694            * @param layoutId the primary key of the layout whose UUID to match
1695            * @param name the new name for the portlets
1696            * @param languageId the primary key of the language
1697            * @throws PortalException
1698            * @see com.liferay.portlet.portletconfiguration.action.EditScopeAction
1699            * @deprecated As of 6.2.0, with no direct replacement
1700            */
1701            @java.lang.Deprecated
1702            public void updateScopedPortletNames(long groupId, boolean privateLayout,
1703                    long layoutId, java.lang.String name, java.lang.String languageId)
1704                    throws PortalException;
1705    
1706            /**
1707            * @deprecated As of 6.2.0, with no direct replacement
1708            */
1709            @java.lang.Deprecated
1710            public void updateScopedPortletNames(long groupId, boolean privateLayout,
1711                    long layoutId,
1712                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1713                    java.util.List<java.util.Locale> nameMapModifiedLocales)
1714                    throws PortalException;
1715    
1716            /**
1717            * @throws PortalException
1718            * @deprecated As of 7.0.0, replaced by {@link
1719            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportLayoutsFile(
1720            ExportImportConfiguration, File)}
1721            */
1722            @java.lang.Deprecated
1723            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
1724                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1725                    java.io.File file) throws PortalException;
1726    
1727            /**
1728            * @throws PortalException
1729            * @deprecated As of 7.0.0, replaced by {@link
1730            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportLayoutsFile(
1731            ExportImportConfiguration, InputStream)}
1732            */
1733            @java.lang.Deprecated
1734            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
1735                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1736                    java.io.InputStream inputStream) throws PortalException;
1737    
1738            /**
1739            * @throws PortalException
1740            * @deprecated As of 7.0.0, with no direct replacement
1741            */
1742            @java.lang.Deprecated
1743            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
1744                    long userId, long groupId, boolean privateLayout,
1745                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1746                    java.io.File file) throws PortalException;
1747    
1748            /**
1749            * @throws PortalException
1750            * @deprecated As of 7.0.0, with no direct replacement
1751            */
1752            @java.lang.Deprecated
1753            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
1754                    long userId, long groupId, boolean privateLayout,
1755                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1756                    java.io.InputStream inputStream) throws PortalException;
1757    
1758            /**
1759            * @throws PortalException
1760            * @deprecated As of 7.0.0, replaced by {@link
1761            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportPortletInfo(
1762            ExportImportConfiguration, File)}
1763            */
1764            @java.lang.Deprecated
1765            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
1766                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1767                    java.io.File file) throws PortalException;
1768    
1769            /**
1770            * @throws PortalException
1771            * @deprecated As of 7.0.0, replaced by {@link
1772            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportPortletInfo(
1773            ExportImportConfiguration, InputStream)}
1774            */
1775            @java.lang.Deprecated
1776            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
1777                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1778                    java.io.InputStream inputStream) throws PortalException;
1779    
1780            /**
1781            * @throws PortalException
1782            * @deprecated As of 7.0.0, with no direct replacement
1783            */
1784            @java.lang.Deprecated
1785            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
1786                    long userId, long plid, long groupId, java.lang.String portletId,
1787                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1788                    java.io.File file) throws PortalException;
1789    
1790            /**
1791            * @throws PortalException
1792            * @deprecated As of 7.0.0, with no direct replacement
1793            */
1794            @java.lang.Deprecated
1795            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
1796                    long userId, long plid, long groupId, java.lang.String portletId,
1797                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1798                    java.io.InputStream inputStream) throws PortalException;
1799    }