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            /**
721            * Returns the layout matching the primary key, group, and privacy; throws a
722            * {@link NoSuchLayoutException} otherwise.
723            *
724            * @param groupId the primary key of the group
725            * @param privateLayout whether the layout is private to the group
726            * @param layoutId the primary key of the layout
727            * @return the matching layout
728            */
729            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
730            public com.liferay.portal.model.Layout getLayout(long groupId,
731                    boolean privateLayout, long layoutId) throws PortalException;
732    
733            /**
734            * Returns the layout with the primary key.
735            *
736            * @param plid the primary key of the layout
737            * @return the layout
738            * @throws PortalException if a layout with the primary key could not be found
739            */
740            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
741            public com.liferay.portal.model.Layout getLayout(long plid)
742                    throws PortalException;
743    
744            /**
745            * Returns the layout for the icon image; throws a {@link
746            * NoSuchLayoutException} otherwise.
747            *
748            * @param iconImageId the primary key of the icon image
749            * @return Returns the layout for the icon image
750            */
751            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
752            public com.liferay.portal.model.Layout getLayoutByIconImageId(
753                    long iconImageId) throws PortalException;
754    
755            /**
756            * Returns the layout matching the UUID, group, and privacy.
757            *
758            * @param uuid the layout's UUID
759            * @param groupId the primary key of the group
760            * @param privateLayout whether the layout is private to the group
761            * @return the matching layout
762            * @throws PortalException if a matching layout could not be found
763            */
764            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
765            public com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
766                    java.lang.String uuid, long groupId, boolean privateLayout)
767                    throws PortalException;
768    
769            /**
770            * Returns the layout references for all the layouts that belong to the
771            * company and belong to the portlet that matches the preferences.
772            *
773            * @param companyId the primary key of the company
774            * @param portletId the primary key of the portlet
775            * @param preferencesKey the portlet's preference key
776            * @param preferencesValue the portlet's preference value
777            * @return the layout references of the matching layouts
778            */
779            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
780            public com.liferay.portal.model.LayoutReference[] getLayouts(
781                    long companyId, java.lang.String portletId,
782                    java.lang.String preferencesKey, java.lang.String preferencesValue);
783    
784            /**
785            * Returns all the layouts belonging to the group.
786            *
787            * @param groupId the primary key of the group
788            * @param privateLayout whether the layout is private to the group
789            * @return the matching layouts, or <code>null</code> if no matches were
790            found
791            */
792            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
793            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
794                    long groupId, boolean privateLayout);
795    
796            /**
797            * Returns all the layouts that match the layout IDs and belong to the
798            * group.
799            *
800            * @param groupId the primary key of the group
801            * @param privateLayout whether the layout is private to the group
802            * @param layoutIds the primary keys of the layouts
803            * @return the matching layouts, or an empty list if no matches were found
804            */
805            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
806            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
807                    long groupId, boolean privateLayout, long[] layoutIds)
808                    throws PortalException;
809    
810            /**
811            * Returns all the layouts belonging to the group that are children of the
812            * parent layout.
813            *
814            * @param groupId the primary key of the group
815            * @param privateLayout whether the layout is private to the group
816            * @param parentLayoutId the primary key of the parent layout
817            * @return the matching layouts, or <code>null</code> if no matches were
818            found
819            */
820            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
821            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
822                    long groupId, boolean privateLayout, long parentLayoutId);
823    
824            /**
825            * Returns a range of all the layouts belonging to the group that are
826            * children of the parent layout.
827            *
828            * <p>
829            * Useful when paginating results. Returns a maximum of <code>end -
830            * start</code> instances. <code>start</code> and <code>end</code> are not
831            * primary keys, they are indexes in the result set. Thus, <code>0</code>
832            * refers to the first result in the set. Setting both <code>start</code>
833            * and <code>end</code> to {@link QueryUtil#ALL_POS} will return the full
834            * result set.
835            * </p>
836            *
837            * @param groupId the primary key of the group
838            * @param privateLayout whether the layout is private to the group
839            * @param parentLayoutId the primary key of the parent layout
840            * @param incomplete whether the layout is incomplete
841            * @param start the lower bound of the range of layouts
842            * @param end the upper bound of the range of layouts (not inclusive)
843            * @return the matching layouts, or <code>null</code> if no matches were
844            found
845            */
846            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
847            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
848                    long groupId, boolean privateLayout, long parentLayoutId,
849                    boolean incomplete, int start, int end);
850    
851            /**
852            * Returns all the layouts that match the type and belong to the group.
853            *
854            * @param groupId the primary key of the group
855            * @param privateLayout whether the layout is private to the group
856            * @param type the type of the layouts (optionally {@link
857            LayoutConstants#TYPE_PORTLET})
858            * @return the matching layouts, or <code>null</code> if no matches were
859            found
860            */
861            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
862            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
863                    long groupId, boolean privateLayout, java.lang.String type);
864    
865            /**
866            * Returns a range of all the layouts.
867            *
868            * <p>
869            * 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.
870            * </p>
871            *
872            * @param start the lower bound of the range of layouts
873            * @param end the upper bound of the range of layouts (not inclusive)
874            * @return the range of layouts
875            */
876            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
877            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
878                    int start, int end);
879    
880            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
881            public java.util.List<com.liferay.portal.model.Layout> getLayoutsByLayoutPrototypeUuid(
882                    java.lang.String layoutPrototypeUuid);
883    
884            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
885            public int getLayoutsByLayoutPrototypeUuidCount(
886                    java.lang.String layoutPrototypeUuid);
887    
888            /**
889            * Returns all the layouts matching the UUID and company.
890            *
891            * @param uuid the UUID of the layouts
892            * @param companyId the primary key of the company
893            * @return the matching layouts, or an empty list if no matches were found
894            */
895            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
896            public java.util.List<com.liferay.portal.model.Layout> getLayoutsByUuidAndCompanyId(
897                    java.lang.String uuid, long companyId);
898    
899            /**
900            * Returns a range of layouts matching the UUID and company.
901            *
902            * @param uuid the UUID of the layouts
903            * @param companyId the primary key of the company
904            * @param start the lower bound of the range of layouts
905            * @param end the upper bound of the range of layouts (not inclusive)
906            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
907            * @return the range of matching layouts, or an empty list if no matches were found
908            */
909            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
910            public java.util.List<com.liferay.portal.model.Layout> getLayoutsByUuidAndCompanyId(
911                    java.lang.String uuid, long companyId, int start, int end,
912                    com.liferay.portal.kernel.util.OrderByComparator<com.liferay.portal.model.Layout> orderByComparator);
913    
914            /**
915            * Returns the number of layouts.
916            *
917            * @return the number of layouts
918            */
919            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
920            public int getLayoutsCount();
921    
922            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
923            public int getLayoutsCount(com.liferay.portal.model.Group group,
924                    boolean privateLayout) throws PortalException;
925    
926            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
927            public int getLayoutsCount(com.liferay.portal.model.Group group,
928                    boolean privateLayout, boolean includeUserGroups)
929                    throws PortalException;
930    
931            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
932            public int getLayoutsCount(com.liferay.portal.model.Group group,
933                    boolean privateLayout, long parentLayoutId);
934    
935            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
936            public int getLayoutsCount(com.liferay.portal.model.User user,
937                    boolean privateLayout) throws PortalException;
938    
939            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
940            public int getLayoutsCount(com.liferay.portal.model.User user,
941                    boolean privateLayout, boolean includeUserGroups)
942                    throws PortalException;
943    
944            /**
945            * Returns the primary key to use for the next layout.
946            *
947            * @param groupId the primary key of the group
948            * @param privateLayout whether the layout is private to the group
949            * @return the primary key to use for the next layout
950            */
951            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
952            public long getNextLayoutId(long groupId, boolean privateLayout);
953    
954            /**
955            * Returns all the layouts without resource permissions
956            *
957            * @param roleId the primary key of the role
958            * @return all the layouts without resource permissions
959            */
960            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
961            public java.util.List<com.liferay.portal.model.Layout> getNoPermissionLayouts(
962                    long roleId);
963    
964            /**
965            * Returns all the layouts whose friendly URLs are <code>null</code>
966            *
967            * @return all the layouts whose friendly URLs are <code>null</code>
968            */
969            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
970            public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts();
971    
972            /**
973            * Returns the OSGi service identifier.
974            *
975            * @return the OSGi service identifier
976            */
977            public java.lang.String getOSGiServiceIdentifier();
978    
979            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
980            public com.liferay.portal.model.Layout getParentLayout(
981                    com.liferay.portal.model.Layout layout) throws PortalException;
982    
983            @Override
984            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
985            public com.liferay.portal.model.PersistedModel getPersistedModel(
986                    java.io.Serializable primaryKeyObj) throws PortalException;
987    
988            /**
989            * Returns all the layouts within scope of the group
990            *
991            * @param groupId the primary key of the group
992            * @param privateLayout whether the layout is private to the group
993            * @return the layouts within scope of the group
994            */
995            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
996            public java.util.List<com.liferay.portal.model.Layout> getScopeGroupLayouts(
997                    long groupId, boolean privateLayout);
998    
999            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1000            public boolean hasLayoutSetPrototypeLayout(long layoutSetPrototypeId,
1001                    java.lang.String layoutUuid) throws PortalException;
1002    
1003            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1004            public boolean hasLayoutSetPrototypeLayout(
1005                    java.lang.String layoutSetPrototypeUuid, long companyId,
1006                    java.lang.String layoutUuid) throws PortalException;
1007    
1008            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1009            public boolean hasLayouts(com.liferay.portal.model.Group group)
1010                    throws PortalException;
1011    
1012            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1013            public boolean hasLayouts(com.liferay.portal.model.Group group,
1014                    boolean privateLayout) throws PortalException;
1015    
1016            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1017            public boolean hasLayouts(com.liferay.portal.model.Group group,
1018                    boolean privateLayout, boolean includeUserGroups)
1019                    throws PortalException;
1020    
1021            /**
1022            * Returns <code>true</code> if the group has any layouts;
1023            * <code>false</code> otherwise.
1024            *
1025            * @param groupId the primary key of the group
1026            * @param privateLayout whether the layout is private to the group
1027            * @param parentLayoutId the primary key of the parent layout
1028            * @return <code>true</code> if the group has any layouts;
1029            <code>false</code> otherwise
1030            */
1031            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1032            public boolean hasLayouts(long groupId, boolean privateLayout,
1033                    long parentLayoutId);
1034    
1035            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1036            public boolean hasLayouts(com.liferay.portal.model.User user,
1037                    boolean privateLayout) throws PortalException;
1038    
1039            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
1040            public boolean hasLayouts(com.liferay.portal.model.User user,
1041                    boolean privateLayout, boolean includeUserGroups)
1042                    throws PortalException;
1043    
1044            /**
1045            * @throws PortalException
1046            * @deprecated As of 7.0.0, replaced by {@link
1047            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayouts(
1048            ExportImportConfiguration, File)}}
1049            */
1050            @java.lang.Deprecated
1051            public void importLayouts(
1052                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1053                    java.io.File file) throws PortalException;
1054    
1055            /**
1056            * @throws PortalException
1057            * @deprecated As of 7.0.0, replaced by {@link
1058            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayouts(
1059            ExportImportConfiguration, InputStream)}}
1060            */
1061            @java.lang.Deprecated
1062            public void importLayouts(
1063                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1064                    java.io.InputStream is) throws PortalException;
1065    
1066            /**
1067            * Imports the layouts from the byte array.
1068            *
1069            * @param userId the primary key of the user
1070            * @param groupId the primary key of the group
1071            * @param privateLayout whether the layout is private to the group
1072            * @param parameterMap the mapping of parameters indicating which
1073            information will be imported. For information on the keys
1074            used in the map see {@link
1075            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1076            * @param bytes the byte array with the data
1077            * @throws PortalException
1078            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1079            * @deprecated As of 7.0.0, with no direct replacement
1080            */
1081            @java.lang.Deprecated
1082            public void importLayouts(long userId, long groupId, boolean privateLayout,
1083                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1084                    byte[] bytes) throws PortalException;
1085    
1086            /**
1087            * Imports the layouts from the file.
1088            *
1089            * @param userId the primary key of the user
1090            * @param groupId the primary key of the group
1091            * @param privateLayout whether the layout is private to the group
1092            * @param parameterMap the mapping of parameters indicating which
1093            information will be imported. For information on the keys
1094            used in the map see {@link
1095            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1096            * @param file the LAR file with the data
1097            * @throws PortalException
1098            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1099            * @deprecated As of 7.0.0, with no direct replacement
1100            */
1101            @java.lang.Deprecated
1102            public void importLayouts(long userId, long groupId, boolean privateLayout,
1103                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1104                    java.io.File file) throws PortalException;
1105    
1106            /**
1107            * Imports the layouts from the input stream.
1108            *
1109            * @param userId the primary key of the user
1110            * @param groupId the primary key of the group
1111            * @param privateLayout whether the layout is private to the group
1112            * @param parameterMap the mapping of parameters indicating which
1113            information will be imported. For information on the keys
1114            used in the map see {@link
1115            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1116            * @param is the input stream
1117            * @throws PortalException
1118            * @see com.liferay.portlet.exportimport.lar.LayoutImporter
1119            * @deprecated As of 7.0.0, with no direct replacement
1120            */
1121            @java.lang.Deprecated
1122            public void importLayouts(long userId, long groupId, boolean privateLayout,
1123                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1124                    java.io.InputStream is) throws PortalException;
1125    
1126            /**
1127            * @throws PortalException
1128            * @deprecated As of 7.0.0, replaced by {@link
1129            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsDataDeletions(
1130            ExportImportConfiguration, File)}
1131            */
1132            @java.lang.Deprecated
1133            public void importLayoutsDataDeletions(
1134                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1135                    java.io.File file) throws PortalException;
1136    
1137            /**
1138            * @throws PortalException
1139            * @deprecated As of 7.0.0, replaced by {@link
1140            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsInBackground(
1141            long, ExportImportConfiguration, File)}
1142            */
1143            @java.lang.Deprecated
1144            public long importLayoutsInBackground(long userId,
1145                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1146                    java.io.File file) throws PortalException;
1147    
1148            /**
1149            * @throws PortalException
1150            * @deprecated As of 7.0.0, replaced by {@link
1151            com.liferay.portlet.exportimport.service.ExportImportLocalService#importLayoutsInBackground(
1152            long, long, File)}
1153            */
1154            @java.lang.Deprecated
1155            public long importLayoutsInBackground(long userId,
1156                    long exportImportConfigurationId, java.io.File file)
1157                    throws PortalException;
1158    
1159            /**
1160            * @throws PortalException
1161            * @deprecated As of 7.0.0, with no direct replacement
1162            */
1163            @java.lang.Deprecated
1164            public long importLayoutsInBackground(long userId,
1165                    java.lang.String taskName, long groupId, boolean privateLayout,
1166                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1167                    java.io.File file) throws PortalException;
1168    
1169            /**
1170            * @throws PortalException
1171            * @deprecated As of 7.0.0, with no direct replacement
1172            */
1173            @java.lang.Deprecated
1174            public long importLayoutsInBackground(long userId,
1175                    java.lang.String taskName, long groupId, boolean privateLayout,
1176                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1177                    java.io.InputStream is) throws PortalException;
1178    
1179            /**
1180            * @throws PortalException
1181            * @deprecated As of 7.0.0, replaced by {@link
1182            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletDataDeletions(
1183            ExportImportConfiguration, File)}
1184            */
1185            @java.lang.Deprecated
1186            public void importPortletDataDeletions(
1187                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1188                    java.io.File file) throws PortalException;
1189    
1190            /**
1191            * @throws PortalException
1192            * @deprecated As of 7.0.0, replaced by {@link
1193            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfo(
1194            ExportImportConfiguration, File)}
1195            */
1196            @java.lang.Deprecated
1197            public void importPortletInfo(
1198                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1199                    java.io.File file) throws PortalException;
1200    
1201            /**
1202            * @throws PortalException
1203            * @deprecated As of 7.0.0, replaced by {@link
1204            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfo(
1205            ExportImportConfiguration, InputStream)}
1206            */
1207            @java.lang.Deprecated
1208            public void importPortletInfo(
1209                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1210                    java.io.InputStream is) throws PortalException;
1211    
1212            /**
1213            * Imports the portlet information (categories, permissions, ... etc.) from
1214            * the file.
1215            *
1216            * @param userId the primary key of the user
1217            * @param plid the primary key of the target layout
1218            * @param groupId the primary key of the target group
1219            * @param portletId the primary key of the portlet
1220            * @param parameterMap the mapping of parameters indicating which
1221            information will be imported. For information on the keys
1222            used in the map see {@link
1223            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1224            * @param file the LAR file with the data
1225            * @throws PortalException
1226            * @deprecated As of 7.0.0, with no direct replacement
1227            */
1228            @java.lang.Deprecated
1229            public void importPortletInfo(long userId, long plid, long groupId,
1230                    java.lang.String portletId,
1231                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1232                    java.io.File file) throws PortalException;
1233    
1234            /**
1235            * Imports the portlet information (categories, permissions, ... etc.) from
1236            * the input stream.
1237            *
1238            * @param userId the primary key of the user
1239            * @param plid the primary key of the layout
1240            * @param groupId the primary key of the group
1241            * @param portletId the primary key of the portlet
1242            * @param parameterMap the mapping of parameters indicating which
1243            information will be imported. For information on the keys
1244            used in the map see {@link
1245            com.liferay.portlet.exportimport.lar.PortletDataHandlerKeys}.
1246            * @param is the input stream
1247            * @throws PortalException
1248            * @deprecated As of 7.0.0, with no direct replacement
1249            */
1250            @java.lang.Deprecated
1251            public void importPortletInfo(long userId, long plid, long groupId,
1252                    java.lang.String portletId,
1253                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1254                    java.io.InputStream is) throws PortalException;
1255    
1256            /**
1257            * @throws PortalException
1258            * @deprecated As of 7.0.0, with no direct replacement
1259            */
1260            @java.lang.Deprecated
1261            public void importPortletInfo(long userId, java.lang.String portletId,
1262                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1263                    java.io.File file) throws PortalException;
1264    
1265            /**
1266            * @throws PortalException
1267            * @deprecated As of 7.0.0, with no direct replacement
1268            */
1269            @java.lang.Deprecated
1270            public void importPortletInfo(long userId, java.lang.String portletId,
1271                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1272                    java.io.InputStream is) throws PortalException;
1273    
1274            /**
1275            * @throws PortalException
1276            * @deprecated As of 7.0.0, replaced by {@link
1277            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfoInBackground(
1278            long, ExportImportConfiguration, File)}
1279            */
1280            @java.lang.Deprecated
1281            public long importPortletInfoInBackground(long userId,
1282                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1283                    java.io.File file) throws PortalException;
1284    
1285            /**
1286            * @throws PortalException
1287            * @deprecated As of 7.0.0, replaced by {@link
1288            com.liferay.portlet.exportimport.service.ExportImportLocalService#importPortletInfoInBackground(
1289            long, long, File)}
1290            */
1291            @java.lang.Deprecated
1292            public long importPortletInfoInBackground(long userId,
1293                    long exportImportConfigurationId, java.io.File file)
1294                    throws PortalException;
1295    
1296            /**
1297            * @throws PortalException
1298            * @deprecated As of 7.0.0, with no direct replacement
1299            */
1300            @java.lang.Deprecated
1301            public long importPortletInfoInBackground(long userId,
1302                    java.lang.String taskName, long plid, long groupId,
1303                    java.lang.String portletId,
1304                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1305                    java.io.File file) throws PortalException;
1306    
1307            /**
1308            * @throws PortalException
1309            * @deprecated As of 7.0.0, with no direct replacement
1310            */
1311            @java.lang.Deprecated
1312            public long importPortletInfoInBackground(long userId,
1313                    java.lang.String taskName, long plid, long groupId,
1314                    java.lang.String portletId,
1315                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1316                    java.io.InputStream is) throws PortalException;
1317    
1318            /**
1319            * @throws PortalException
1320            * @deprecated As of 7.0.0, with no direct replacement
1321            */
1322            @java.lang.Deprecated
1323            public long importPortletInfoInBackground(long userId,
1324                    java.lang.String taskName, java.lang.String portletId,
1325                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1326                    java.io.File file) throws PortalException;
1327    
1328            /**
1329            * @throws PortalException
1330            * @deprecated As of 7.0.0, with no direct replacement
1331            */
1332            @java.lang.Deprecated
1333            public long importPortletInfoInBackground(long userId,
1334                    java.lang.String taskName, java.lang.String portletId,
1335                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1336                    java.io.InputStream is) throws PortalException;
1337    
1338            /**
1339            * Sets the layouts for the group, replacing and prioritizing all layouts of
1340            * the parent layout.
1341            *
1342            * @param groupId the primary key of the group
1343            * @param privateLayout whether the layout is private to the group
1344            * @param parentLayoutId the primary key of the parent layout
1345            * @param layoutIds the primary keys of the layouts
1346            * @param serviceContext the service context to be applied
1347            */
1348            public void setLayouts(long groupId, boolean privateLayout,
1349                    long parentLayoutId, long[] layoutIds,
1350                    com.liferay.portal.service.ServiceContext serviceContext)
1351                    throws PortalException;
1352    
1353            public void updateAsset(long userId,
1354                    com.liferay.portal.model.Layout layout, long[] assetCategoryIds,
1355                    java.lang.String[] assetTagNames) throws PortalException;
1356    
1357            /**
1358            * Updates the friendly URL of the layout.
1359            *
1360            * @param plid the primary key of the layout
1361            * @param friendlyURL the friendly URL to be assigned
1362            * @param languageId the primary key of the language
1363            * @return the updated layout
1364            * @deprecated As of 7.0.0, replaced by {@link #updateFriendlyURL(long,
1365            long, String, String)}
1366            */
1367            @java.lang.Deprecated
1368            public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
1369                    java.lang.String friendlyURL, java.lang.String languageId)
1370                    throws PortalException;
1371    
1372            /**
1373            * Updates the friendly URL of the layout.
1374            *
1375            * @param userId the primary key of the user
1376            * @param plid the primary key of the layout
1377            * @param friendlyURL the friendly URL to be assigned
1378            * @param languageId the primary key of the language
1379            * @return the updated layout
1380            */
1381            public com.liferay.portal.model.Layout updateFriendlyURL(long userId,
1382                    long plid, java.lang.String friendlyURL, java.lang.String languageId)
1383                    throws PortalException;
1384    
1385            public com.liferay.portal.model.Layout updateIconImage(long plid,
1386                    byte[] bytes) throws PortalException;
1387    
1388            /**
1389            * Updates the layout.
1390            *
1391            * @param groupId the primary key of the group
1392            * @param privateLayout whether the layout is private to the group
1393            * @param layoutId the primary key of the layout
1394            * @param parentLayoutId the primary key of the layout's new parent
1395            layout
1396            * @param nameMap the locales and localized names to merge (optionally
1397            <code>null</code>)
1398            * @param titleMap the locales and localized titles to merge
1399            (optionally <code>null</code>)
1400            * @param descriptionMap the locales and localized descriptions to
1401            merge (optionally <code>null</code>)
1402            * @param keywordsMap the locales and localized keywords to merge
1403            (optionally <code>null</code>)
1404            * @param robotsMap the locales and localized robots to merge
1405            (optionally <code>null</code>)
1406            * @param type the layout's new type (optionally {@link
1407            LayoutConstants#TYPE_PORTLET})
1408            * @param hidden whether the layout is hidden
1409            * @param friendlyURL the layout's new friendly URL (optionally {@link
1410            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL} or
1411            {@link
1412            PropsValues#DEFAULT_USER_PRIVATE_LAYOUT_FRIENDLY_URL}). The
1413            default values can be overridden in
1414            <code>portal-ext.properties</code> by specifying new values
1415            for the corresponding properties defined in {@link
1416            PropsValues}. To see how the URL is normalized when accessed,
1417            see {@link
1418            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1419            String)}.
1420            * @param iconImage whether the icon image will be updated
1421            * @param iconBytes the byte array of the layout's new icon image
1422            * @param serviceContext the service context to be applied. Can set the
1423            modification date and expando bridge attributes for the
1424            layout. For layouts that are linked to a layout prototype,
1425            attributes named <code>layoutPrototypeUuid</code> and
1426            <code>layoutPrototypeLinkedEnabled</code> can be specified to
1427            provide the unique identifier of the source prototype and a
1428            boolean to determine whether a link to it should be enabled
1429            to activate propagation of changes made to the linked page in
1430            the prototype.
1431            * @return the updated layout
1432            * @deprecated As of 6.2.0, replaced by {@link #updateLayout(long, boolean,
1433            long, long, Map, Map, Map, Map, Map, String, boolean, Map,
1434            boolean, byte[], ServiceContext)}
1435            */
1436            @java.lang.Deprecated
1437            public com.liferay.portal.model.Layout updateLayout(long groupId,
1438                    boolean privateLayout, long layoutId, long parentLayoutId,
1439                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1440                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1441                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1442                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1443                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1444                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
1445                    java.lang.Boolean iconImage, byte[] iconBytes,
1446                    com.liferay.portal.service.ServiceContext serviceContext)
1447                    throws PortalException;
1448    
1449            /**
1450            * Updates the layout.
1451            *
1452            * @param groupId the primary key of the group
1453            * @param privateLayout whether the layout is private to the group
1454            * @param layoutId the primary key of the layout
1455            * @param parentLayoutId the primary key of the layout's new parent layout
1456            * @param nameMap the locales and localized names to merge (optionally
1457            <code>null</code>)
1458            * @param titleMap the locales and localized titles to merge (optionally
1459            <code>null</code>)
1460            * @param descriptionMap the locales and localized descriptions to merge
1461            (optionally <code>null</code>)
1462            * @param keywordsMap the locales and localized keywords to merge
1463            (optionally <code>null</code>)
1464            * @param robotsMap the locales and localized robots to merge (optionally
1465            <code>null</code>)
1466            * @param type the layout's new type (optionally {@link
1467            LayoutConstants#TYPE_PORTLET})
1468            * @param hidden whether the layout is hidden
1469            * @param friendlyURLMap the layout's locales and localized friendly URLs.
1470            To see how the URL is normalized when accessed, see {@link
1471            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
1472            String)}.
1473            * @param iconImage whether the icon image will be updated
1474            * @param iconBytes the byte array of the layout's new icon image
1475            * @param serviceContext the service context to be applied. Can set the
1476            modification date and expando bridge attributes for the layout.
1477            For layouts that are linked to a layout prototype, attributes
1478            named <code>layoutPrototypeUuid</code> and
1479            <code>layoutPrototypeLinkedEnabled</code> can be specified to
1480            provide the unique identifier of the source prototype and a
1481            boolean to determine whether a link to it should be enabled to
1482            activate propagation of changes made to the linked page in the
1483            prototype.
1484            * @return the updated layout
1485            */
1486            public com.liferay.portal.model.Layout updateLayout(long groupId,
1487                    boolean privateLayout, long layoutId, long parentLayoutId,
1488                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1489                    java.util.Map<java.util.Locale, java.lang.String> titleMap,
1490                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
1491                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
1492                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
1493                    java.lang.String type, boolean hidden,
1494                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
1495                    boolean iconImage, byte[] iconBytes,
1496                    com.liferay.portal.service.ServiceContext serviceContext)
1497                    throws PortalException;
1498    
1499            /**
1500            * Updates the layout replacing its type settings.
1501            *
1502            * @param groupId the primary key of the group
1503            * @param privateLayout whether the layout is private to the group
1504            * @param layoutId the primary key of the layout
1505            * @param typeSettings the settings to load the unicode properties object.
1506            See {@link UnicodeProperties #fastLoad(String)}.
1507            * @return the updated layout
1508            */
1509            public com.liferay.portal.model.Layout updateLayout(long groupId,
1510                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
1511                    throws PortalException;
1512    
1513            /**
1514            * Updates the layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
1515            *
1516            * @param layout the layout
1517            * @return the layout that was updated
1518            */
1519            @com.liferay.portal.kernel.search.Indexable(type = IndexableType.REINDEX)
1520            public com.liferay.portal.model.Layout updateLayout(
1521                    com.liferay.portal.model.Layout layout);
1522    
1523            /**
1524            * Updates the look and feel of the layout.
1525            *
1526            * @param groupId the primary key of the group
1527            * @param privateLayout whether the layout is private to the group
1528            * @param layoutId the primary key of the layout
1529            * @param themeId the primary key of the layout's new theme
1530            * @param colorSchemeId the primary key of the layout's new color scheme
1531            * @param css the layout's new CSS
1532            * @param wapTheme whether the theme is for WAP browsers
1533            * @return the updated layout
1534            */
1535            public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
1536                    boolean privateLayout, long layoutId, java.lang.String themeId,
1537                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
1538                    throws PortalException;
1539    
1540            /**
1541            * Updates the name of the layout matching the group, layout ID, and
1542            * privacy.
1543            *
1544            * @param groupId the primary key of the group
1545            * @param privateLayout whether the layout is private to the group
1546            * @param layoutId the primary key of the layout
1547            * @param name the layout's new name
1548            * @param languageId the primary key of the language. For more information
1549            see {@link Locale}.
1550            * @return the updated layout
1551            */
1552            public com.liferay.portal.model.Layout updateName(long groupId,
1553                    boolean privateLayout, long layoutId, java.lang.String name,
1554                    java.lang.String languageId) throws PortalException;
1555    
1556            /**
1557            * Updates the name of the layout.
1558            *
1559            * @param layout the layout to be updated
1560            * @param name the layout's new name
1561            * @param languageId the primary key of the language. For more information
1562            see {@link Locale}.
1563            * @return the updated layout
1564            */
1565            public com.liferay.portal.model.Layout updateName(
1566                    com.liferay.portal.model.Layout layout, java.lang.String name,
1567                    java.lang.String languageId) throws PortalException;
1568    
1569            /**
1570            * Updates the name of the layout matching the primary key.
1571            *
1572            * @param plid the primary key of the layout
1573            * @param name the name to be assigned
1574            * @param languageId the primary key of the language. For more information
1575            see {@link Locale}.
1576            * @return the updated layout
1577            */
1578            public com.liferay.portal.model.Layout updateName(long plid,
1579                    java.lang.String name, java.lang.String languageId)
1580                    throws PortalException;
1581    
1582            /**
1583            * Updates the parent layout ID of the layout matching the group, layout ID,
1584            * and privacy.
1585            *
1586            * @param groupId the primary key of the group
1587            * @param privateLayout whether the layout is private to the group
1588            * @param layoutId the primary key of the layout
1589            * @param parentLayoutId the primary key to be assigned to the parent
1590            layout
1591            * @return the matching layout
1592            */
1593            public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
1594                    boolean privateLayout, long layoutId, long parentLayoutId)
1595                    throws PortalException;
1596    
1597            /**
1598            * Updates the parent layout ID of the layout matching the primary key. If a
1599            * layout matching the parent primary key is found, the layout ID of that
1600            * layout is assigned, otherwise {@link
1601            * LayoutConstants#DEFAULT_PARENT_LAYOUT_ID} is assigned.
1602            *
1603            * @param plid the primary key of the layout
1604            * @param parentPlid the primary key of the parent layout
1605            * @return the layout matching the primary key
1606            */
1607            public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
1608                    long parentPlid) throws PortalException;
1609    
1610            /**
1611            * Updates the parent layout ID and priority of the layout.
1612            *
1613            * @param plid the primary key of the layout
1614            * @param parentPlid the primary key of the parent layout
1615            * @param priority the layout's new priority
1616            * @return the layout matching the primary key
1617            */
1618            public com.liferay.portal.model.Layout updateParentLayoutIdAndPriority(
1619                    long plid, long parentPlid, int priority) throws PortalException;
1620    
1621            /**
1622            * Updates the priorities of the layouts.
1623            *
1624            * @param groupId the primary key of the group
1625            * @param privateLayout whether the layout is private to the group
1626            * @throws PortalException
1627            */
1628            public void updatePriorities(long groupId, boolean privateLayout)
1629                    throws PortalException;
1630    
1631            /**
1632            * Updates the priority of the layout matching the group, layout ID, and
1633            * privacy, setting the layout's priority based on the priorities of the
1634            * next and previous layouts.
1635            *
1636            * @param groupId the primary key of the group
1637            * @param privateLayout whether the layout is private to the group
1638            * @param layoutId the primary key of the layout
1639            * @param nextLayoutId the primary key of the next layout
1640            * @param previousLayoutId the primary key of the previous layout
1641            * @return the updated layout
1642            */
1643            public com.liferay.portal.model.Layout updatePriority(long groupId,
1644                    boolean privateLayout, long layoutId, long nextLayoutId,
1645                    long previousLayoutId) throws PortalException;
1646    
1647            /**
1648            * Updates the priority of the layout matching the group, layout ID, and
1649            * privacy.
1650            *
1651            * @param groupId the primary key of the group
1652            * @param privateLayout whether the layout is private to the group
1653            * @param layoutId the primary key of the layout
1654            * @param priority the layout's new priority
1655            * @return the updated layout
1656            */
1657            public com.liferay.portal.model.Layout updatePriority(long groupId,
1658                    boolean privateLayout, long layoutId, int priority)
1659                    throws PortalException;
1660    
1661            /**
1662            * Updates the priority of the layout.
1663            *
1664            * @param layout the layout to be updated
1665            * @param priority the layout's new priority
1666            * @return the updated layout
1667            */
1668            public com.liferay.portal.model.Layout updatePriority(
1669                    com.liferay.portal.model.Layout layout, int priority)
1670                    throws PortalException;
1671    
1672            /**
1673            * Updates the priority of the layout matching the primary key.
1674            *
1675            * @param plid the primary key of the layout
1676            * @param priority the layout's new priority
1677            * @return the updated layout
1678            */
1679            public com.liferay.portal.model.Layout updatePriority(long plid,
1680                    int priority) throws PortalException;
1681    
1682            /**
1683            * Updates the names of the portlets within scope of the group, the scope of
1684            * the layout's UUID, and the privacy.
1685            *
1686            * @param groupId the primary key of the group
1687            * @param privateLayout whether the layout is private to the group
1688            * @param layoutId the primary key of the layout whose UUID to match
1689            * @param name the new name for the portlets
1690            * @param languageId the primary key of the language
1691            * @throws PortalException
1692            * @see com.liferay.portlet.portletconfiguration.action.EditScopeAction
1693            * @deprecated As of 6.2.0, with no direct replacement
1694            */
1695            @java.lang.Deprecated
1696            public void updateScopedPortletNames(long groupId, boolean privateLayout,
1697                    long layoutId, java.lang.String name, java.lang.String languageId)
1698                    throws PortalException;
1699    
1700            /**
1701            * @deprecated As of 6.2.0, with no direct replacement
1702            */
1703            @java.lang.Deprecated
1704            public void updateScopedPortletNames(long groupId, boolean privateLayout,
1705                    long layoutId,
1706                    java.util.Map<java.util.Locale, java.lang.String> nameMap,
1707                    java.util.List<java.util.Locale> nameMapModifiedLocales)
1708                    throws PortalException;
1709    
1710            /**
1711            * @throws PortalException
1712            * @deprecated As of 7.0.0, replaced by {@link
1713            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportLayoutsFile(
1714            ExportImportConfiguration, File)}
1715            */
1716            @java.lang.Deprecated
1717            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
1718                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1719                    java.io.File file) throws PortalException;
1720    
1721            /**
1722            * @throws PortalException
1723            * @deprecated As of 7.0.0, replaced by {@link
1724            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportLayoutsFile(
1725            ExportImportConfiguration, InputStream)}
1726            */
1727            @java.lang.Deprecated
1728            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
1729                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1730                    java.io.InputStream inputStream) throws PortalException;
1731    
1732            /**
1733            * @throws PortalException
1734            * @deprecated As of 7.0.0, with no direct replacement
1735            */
1736            @java.lang.Deprecated
1737            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
1738                    long userId, long groupId, boolean privateLayout,
1739                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1740                    java.io.File file) throws PortalException;
1741    
1742            /**
1743            * @throws PortalException
1744            * @deprecated As of 7.0.0, with no direct replacement
1745            */
1746            @java.lang.Deprecated
1747            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportLayoutsFile(
1748                    long userId, long groupId, boolean privateLayout,
1749                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1750                    java.io.InputStream inputStream) throws PortalException;
1751    
1752            /**
1753            * @throws PortalException
1754            * @deprecated As of 7.0.0, replaced by {@link
1755            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportPortletInfo(
1756            ExportImportConfiguration, File)}
1757            */
1758            @java.lang.Deprecated
1759            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
1760                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1761                    java.io.File file) throws PortalException;
1762    
1763            /**
1764            * @throws PortalException
1765            * @deprecated As of 7.0.0, replaced by {@link
1766            com.liferay.portlet.exportimport.service.ExportImportLocalService#validateImportPortletInfo(
1767            ExportImportConfiguration, InputStream)}
1768            */
1769            @java.lang.Deprecated
1770            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
1771                    com.liferay.portlet.exportimport.model.ExportImportConfiguration exportImportConfiguration,
1772                    java.io.InputStream inputStream) throws PortalException;
1773    
1774            /**
1775            * @throws PortalException
1776            * @deprecated As of 7.0.0, with no direct replacement
1777            */
1778            @java.lang.Deprecated
1779            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
1780                    long userId, long plid, long groupId, java.lang.String portletId,
1781                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1782                    java.io.File file) throws PortalException;
1783    
1784            /**
1785            * @throws PortalException
1786            * @deprecated As of 7.0.0, with no direct replacement
1787            */
1788            @java.lang.Deprecated
1789            public com.liferay.portlet.exportimport.lar.MissingReferences validateImportPortletInfo(
1790                    long userId, long plid, long groupId, java.lang.String portletId,
1791                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1792                    java.io.InputStream inputStream) throws PortalException;
1793    }