001    /**
002     * Copyright (c) 2000-2013 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 com.liferay.portal.kernel.exception.PortalException;
018    import com.liferay.portal.kernel.exception.SystemException;
019    import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
020    import com.liferay.portal.kernel.transaction.Isolation;
021    import com.liferay.portal.kernel.transaction.Propagation;
022    import com.liferay.portal.kernel.transaction.Transactional;
023    import com.liferay.portal.security.ac.AccessControlled;
024    
025    /**
026     * Provides the remote service interface for Layout. Methods of this
027     * service are expected to have security checks based on the propagated JAAS
028     * credentials because this service can be accessed remotely.
029     *
030     * @author Brian Wing Shun Chan
031     * @see LayoutServiceUtil
032     * @see com.liferay.portal.service.base.LayoutServiceBaseImpl
033     * @see com.liferay.portal.service.impl.LayoutServiceImpl
034     * @generated
035     */
036    @AccessControlled
037    @JSONWebService
038    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
039            PortalException.class, SystemException.class})
040    public interface LayoutService extends BaseService {
041            /*
042             * NOTE FOR DEVELOPERS:
043             *
044             * Never modify or reference this interface directly. Always use {@link LayoutServiceUtil} to access the layout remote service. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
045             */
046    
047            /**
048            * Returns the Spring bean ID for this bean.
049            *
050            * @return the Spring bean ID for this bean
051            */
052            public java.lang.String getBeanIdentifier();
053    
054            /**
055            * Sets the Spring bean ID for this bean.
056            *
057            * @param beanIdentifier the Spring bean ID for this bean
058            */
059            public void setBeanIdentifier(java.lang.String beanIdentifier);
060    
061            /**
062            * Adds a layout with additional parameters.
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 groupId the primary key of the group
072            * @param privateLayout whether the layout is private to the group
073            * @param parentLayoutId the primary key of the parent layout
074            (optionally {@link
075            com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID})
076            * @param localeNamesMap the layout's locales and localized names
077            * @param localeTitlesMap the layout's locales and localized titles
078            * @param descriptionMap the layout's locales and localized
079            descriptions
080            * @param keywordsMap the layout's locales and localized keywords
081            * @param robotsMap the layout's locales and localized robots
082            * @param type the layout's type (optionally {@link
083            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The
084            possible types can be found in {@link
085            com.liferay.portal.model.LayoutConstants}.
086            * @param hidden whether the layout is hidden
087            * @param friendlyURL the layout's locales and localized friendly URLs.
088            To see how the URL is normalized when accessed, see {@link
089            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
090            String)}.
091            * @param serviceContext the service context to be applied. Must set
092            the UUID for the layout. Can set the creation date,
093            modification date, and expando bridge attributes for the
094            layout. For layouts that belong to a layout set prototype, an
095            attribute named <code>layoutUpdateable</code> can be used to
096            specify whether site administrators can modify this page
097            within their site.
098            * @return the layout
099            * @throws PortalException if a group with the primary key could not be
100            found, if the group did not have permission to manage the
101            layouts involved, if layout values were invalid, or if a
102            portal exception occurred
103            * @throws SystemException if a system exception occurred
104            * @deprecated As of 6.2.0, replaced by {@link #addLayout(long, boolean,
105            long, Map, Map, Map, Map, Map, String, String, boolean, Map,
106            ServiceContext)}
107            */
108            public com.liferay.portal.model.Layout addLayout(long groupId,
109                    boolean privateLayout, long parentLayoutId,
110                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
111                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
112                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
113                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
114                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
115                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
116                    com.liferay.portal.service.ServiceContext serviceContext)
117                    throws com.liferay.portal.kernel.exception.PortalException,
118                            com.liferay.portal.kernel.exception.SystemException;
119    
120            /**
121            * Adds a layout with additional parameters.
122            *
123            * <p>
124            * This method handles the creation of the layout including its resources,
125            * metadata, and internal data structures. It is not necessary to make
126            * subsequent calls to any methods to setup default groups, resources, ...
127            * etc.
128            * </p>
129            *
130            * @param groupId the primary key of the group
131            * @param privateLayout whether the layout is private to the group
132            * @param parentLayoutId the primary key of the parent layout (optionally
133            {@link
134            com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID})
135            * @param localeNamesMap the layout's locales and localized names
136            * @param localeTitlesMap the layout's locales and localized titles
137            * @param descriptionMap the layout's locales and localized descriptions
138            * @param keywordsMap the layout's locales and localized keywords
139            * @param robotsMap the layout's locales and localized robots
140            * @param type the layout's type (optionally {@link
141            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The
142            possible types can be found in {@link
143            com.liferay.portal.model.LayoutConstants}.
144            * @param typeSettings the settings to load the unicode properties object.
145            See {@link com.liferay.portal.kernel.util.UnicodeProperties
146            #fastLoad(String)}.
147            * @param hidden whether the layout is hidden
148            * @param friendlyURLMap the layout's locales and localized friendly URLs.
149            To see how the URL is normalized when accessed, see {@link
150            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
151            String)}.
152            * @param serviceContext the service context to be applied. Must set the
153            UUID for the layout. Can set the creation date, modification
154            date, and expando bridge attributes for the layout. For layouts
155            that belong to a layout set prototype, an attribute named
156            <code>layoutUpdateable</code> can be used to specify whether site
157            administrators can modify this page within their site.
158            * @return the layout
159            * @throws PortalException if a group with the primary key could not be
160            found, if the group did not have permission to manage the layouts
161            involved, if layout values were invalid, or if a portal exception
162            occurred
163            * @throws SystemException if a system exception occurred
164            */
165            public com.liferay.portal.model.Layout addLayout(long groupId,
166                    boolean privateLayout, long parentLayoutId,
167                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
168                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
169                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
170                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
171                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
172                    java.lang.String type, java.lang.String typeSettings, boolean hidden,
173                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
174                    com.liferay.portal.service.ServiceContext serviceContext)
175                    throws com.liferay.portal.kernel.exception.PortalException,
176                            com.liferay.portal.kernel.exception.SystemException;
177    
178            /**
179            * Adds a layout with single entry maps for name, title, and description to
180            * the default locale.
181            *
182            * <p>
183            * This method handles the creation of the layout including its resources,
184            * metadata, and internal data structures. It is not necessary to make
185            * subsequent calls to any methods to setup default groups, resources, ...
186            * etc.
187            * </p>
188            *
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
193            com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID})
194            * @param name Map the layout's locales and localized names
195            * @param title Map the layout's locales and localized titles
196            * @param description Map the layout's locales and localized descriptions
197            * @param type the layout's type (optionally {@link
198            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET}). The
199            possible types can be found in {@link
200            com.liferay.portal.model.LayoutConstants}.
201            * @param hidden whether the layout is hidden
202            * @param friendlyURL the layout's locales and localized friendly URLs. To
203            see how the URL is normalized when accessed, see {@link
204            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
205            String)}.
206            * @param serviceContext the service context to be applied. Must set the
207            UUID for the layout. Can specify the creation date, modification
208            date, and expando bridge attributes for the layout. For layouts
209            that belong to a layout set prototype, an attribute named
210            <code>layoutUpdateable</code> can be used to specify whether site
211            administrators can modify this page within their site.
212            * @return the layout
213            * @throws PortalException if a group with the primary key could not be
214            found, if the group did not have permission to manage the layouts
215            involved, if layout values were invalid, or if a portal exception
216            occurred
217            * @throws SystemException if a system exception occurred
218            */
219            public com.liferay.portal.model.Layout addLayout(long groupId,
220                    boolean privateLayout, long parentLayoutId, java.lang.String name,
221                    java.lang.String title, java.lang.String description,
222                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
223                    com.liferay.portal.service.ServiceContext serviceContext)
224                    throws com.liferay.portal.kernel.exception.PortalException,
225                            com.liferay.portal.kernel.exception.SystemException;
226    
227            public com.liferay.portal.kernel.repository.model.FileEntry addTempFileEntry(
228                    long groupId, java.lang.String fileName,
229                    java.lang.String tempFolderName, java.io.InputStream inputStream,
230                    java.lang.String mimeType)
231                    throws com.liferay.portal.kernel.exception.PortalException,
232                            com.liferay.portal.kernel.exception.SystemException;
233    
234            /**
235            * Deletes the layout with the primary key, also deleting the layout's child
236            * layouts, and associated resources.
237            *
238            * @param groupId the primary key of the group
239            * @param privateLayout whether the layout is private to the group
240            * @param layoutId the primary key of the layout
241            * @param serviceContext the service context to be applied
242            * @throws PortalException if the user did not have permission to delete the
243            layout, if a matching layout could not be found , or if some
244            other portal exception occurred
245            * @throws SystemException if a system exception occurred
246            */
247            public void deleteLayout(long groupId, boolean privateLayout,
248                    long layoutId, com.liferay.portal.service.ServiceContext serviceContext)
249                    throws com.liferay.portal.kernel.exception.PortalException,
250                            com.liferay.portal.kernel.exception.SystemException;
251    
252            /**
253            * Deletes the layout with the plid, also deleting the layout's child
254            * layouts, and associated resources.
255            *
256            * @param plid the primary key of the layout
257            * @param serviceContext the service context to be applied
258            * @throws PortalException if the user did not have permission to delete the
259            layout, if a layout with the primary key could not be found , or
260            if some other portal exception occurred
261            * @throws SystemException if a system exception occurred
262            */
263            public void deleteLayout(long plid,
264                    com.liferay.portal.service.ServiceContext serviceContext)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException;
267    
268            public void deleteTempFileEntry(long groupId, java.lang.String fileName,
269                    java.lang.String tempFolderName)
270                    throws com.liferay.portal.kernel.exception.PortalException,
271                            com.liferay.portal.kernel.exception.SystemException;
272    
273            /**
274            * Exports the layouts that match the primary keys and the criteria as a
275            * byte array.
276            *
277            * @param groupId the primary key of the group
278            * @param privateLayout whether the layout is private to the group
279            * @param layoutIds the primary keys of the layouts to be exported
280            * @param parameterMap the mapping of parameters indicating which
281            information to export. For information on the keys used in the
282            map see {@link
283            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
284            * @param startDate the export's start date
285            * @param endDate the export's end date
286            * @return the layouts as a byte array
287            * @throws PortalException if a group or any layout with the primary key
288            could not be found, if the group did not have permission to
289            manage the layouts, or if some other portal exception occurred
290            * @throws SystemException if a system exception occurred
291            */
292            public byte[] exportLayouts(long groupId, boolean privateLayout,
293                    long[] layoutIds,
294                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
295                    java.util.Date startDate, java.util.Date endDate)
296                    throws com.liferay.portal.kernel.exception.PortalException,
297                            com.liferay.portal.kernel.exception.SystemException;
298    
299            /**
300            * Exports all layouts that match the criteria as a byte array.
301            *
302            * @param groupId the primary key of the group
303            * @param privateLayout whether the layout is private to the group
304            * @param parameterMap the mapping of parameters indicating which
305            information to export. For information on the keys used in the
306            map see {@link
307            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
308            * @param startDate the export's start date
309            * @param endDate the export's end date
310            * @return the layout as a byte array
311            * @throws PortalException if a group with the primary key could not be
312            found, if the group did not have permission to manage the
313            layouts, or if some other portal exception occurred
314            * @throws SystemException if a system exception occurred
315            */
316            public byte[] exportLayouts(long groupId, boolean privateLayout,
317                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
318                    java.util.Date startDate, java.util.Date endDate)
319                    throws com.liferay.portal.kernel.exception.PortalException,
320                            com.liferay.portal.kernel.exception.SystemException;
321    
322            /**
323            * Exports all layouts that match the primary keys and criteria as a file.
324            *
325            * @param groupId the primary key of the group
326            * @param privateLayout whether the layout is private to the group
327            * @param layoutIds the primary keys of the layouts to be exported
328            (optionally <code>null</code>)
329            * @param parameterMap the mapping of parameters indicating which
330            information to export. For information on the keys used in the
331            map see {@link
332            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
333            * @param startDate the export's start date
334            * @param endDate the export's end date
335            * @return the layouts as a File
336            * @throws PortalException if a group or any layout with the primary key
337            could not be found, it the group did not have permission to
338            manage the layouts, or if some other portal exception occurred
339            * @throws SystemException if a system exception occurred
340            */
341            public java.io.File exportLayoutsAsFile(long groupId,
342                    boolean privateLayout, long[] layoutIds,
343                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
344                    java.util.Date startDate, java.util.Date endDate)
345                    throws com.liferay.portal.kernel.exception.PortalException,
346                            com.liferay.portal.kernel.exception.SystemException;
347    
348            public long exportLayoutsAsFileInBackground(java.lang.String taskName,
349                    long groupId, boolean privateLayout, long[] layoutIds,
350                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
351                    java.util.Date startDate, java.util.Date endDate,
352                    java.lang.String fileName)
353                    throws com.liferay.portal.kernel.exception.PortalException,
354                            com.liferay.portal.kernel.exception.SystemException;
355    
356            /**
357            * Exports the portlet information (categories, permissions, ... etc.) as a
358            * byte array.
359            *
360            * @param plid the primary key of the layout
361            * @param groupId the primary key of the group
362            * @param portletId the primary key of the portlet
363            * @param parameterMap the mapping of parameters indicating which
364            information to export. For information on the keys used in the
365            map see {@link
366            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
367            * @param startDate the export's start date
368            * @param endDate the export's end date
369            * @return the portlet information as a byte array
370            * @throws PortalException if a layout, group, or portlet with the primary
371            key could not be found, if the group did not have permission to
372            manage the layouts involved, or if some other portal exception
373            occurred
374            * @throws SystemException if a system exception occurred
375            */
376            public byte[] exportPortletInfo(long plid, long groupId,
377                    java.lang.String portletId,
378                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
379                    java.util.Date startDate, java.util.Date endDate)
380                    throws com.liferay.portal.kernel.exception.PortalException,
381                            com.liferay.portal.kernel.exception.SystemException;
382    
383            public byte[] exportPortletInfo(long companyId, java.lang.String portletId,
384                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
385                    java.util.Date startDate, java.util.Date endDate)
386                    throws com.liferay.portal.kernel.exception.PortalException,
387                            com.liferay.portal.kernel.exception.SystemException;
388    
389            /**
390            * Exports the portlet information (categories, permissions, ... etc.) as a
391            * file.
392            *
393            * @param plid the primary key of the layout
394            * @param groupId the primary key of the group
395            * @param portletId the primary key of the portlet
396            * @param parameterMap the mapping of parameters indicating which
397            information to export. For information on the keys used in the
398            map see {@link
399            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
400            * @param startDate the export's start date
401            * @param endDate the export's end date
402            * @return the portlet information as a file
403            * @throws PortalException if a layout, group, or portlet with the primary
404            key could not be found, it the group did not have permission to
405            manage the layouts involved, or if some other portal exception
406            occurred
407            * @throws SystemException if a system exception occurred
408            */
409            public java.io.File exportPortletInfoAsFile(long plid, long groupId,
410                    java.lang.String portletId,
411                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
412                    java.util.Date startDate, java.util.Date endDate)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException;
415    
416            public java.io.File exportPortletInfoAsFile(long companyId,
417                    java.lang.String portletId,
418                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
419                    java.util.Date startDate, java.util.Date endDate)
420                    throws com.liferay.portal.kernel.exception.PortalException,
421                            com.liferay.portal.kernel.exception.SystemException;
422    
423            public long exportPortletInfoAsFileInBackground(long userId,
424                    java.lang.String taskName, java.lang.String portletId,
425                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
426                    java.util.Date startDate, java.util.Date endDate,
427                    java.lang.String fileName)
428                    throws com.liferay.portal.kernel.exception.PortalException,
429                            com.liferay.portal.kernel.exception.SystemException;
430    
431            public long exportPortletInfoAsFileInBackground(java.lang.String taskName,
432                    long plid, long groupId, java.lang.String portletId,
433                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
434                    java.util.Date startDate, java.util.Date endDate,
435                    java.lang.String fileName)
436                    throws com.liferay.portal.kernel.exception.PortalException,
437                            com.liferay.portal.kernel.exception.SystemException;
438    
439            /**
440            * Returns all the ancestor layouts of the layout.
441            *
442            * @param plid the primary key of the layout
443            * @return the ancestor layouts of the layout
444            * @throws PortalException if a matching layout could not be found or if a
445            portal exception occurred
446            * @throws SystemException if a system exception occurred
447            */
448            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
449            public java.util.List<com.liferay.portal.model.Layout> getAncestorLayouts(
450                    long plid)
451                    throws com.liferay.portal.kernel.exception.PortalException,
452                            com.liferay.portal.kernel.exception.SystemException;
453    
454            /**
455            * Returns the primary key of the default layout for the group.
456            *
457            * @param groupId the primary key of the group
458            * @param scopeGroupId the primary key of the scope group. See {@link
459            com.liferay.portal.service.ServiceContext#getScopeGroupId()}.
460            * @param privateLayout whether the layout is private to the group
461            * @param portletId the primary key of the portlet
462            * @return Returns the primary key of the default layout group; {@link
463            com.liferay.portal.model.LayoutConstants#DEFAULT_PLID} otherwise
464            * @throws PortalException if a group, layout, or portlet with the primary
465            key could not be found
466            * @throws SystemException if a system exception occurred
467            */
468            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
469            public long getDefaultPlid(long groupId, long scopeGroupId,
470                    boolean privateLayout, java.lang.String portletId)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException;
473    
474            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
475            public long getDefaultPlid(long groupId, long scopeGroupId,
476                    java.lang.String portletId)
477                    throws com.liferay.portal.kernel.exception.PortalException,
478                            com.liferay.portal.kernel.exception.SystemException;
479    
480            /**
481            * Returns the layout matching the UUID, group, and privacy.
482            *
483            * @param uuid the layout's UUID
484            * @param groupId the primary key of the group
485            * @param privateLayout whether the layout is private to the group
486            * @return the matching layout
487            * @throws PortalException if a matching layout could not be found, if the
488            user did not have permission to view the layout, or if some other
489            portal exception occurred
490            * @throws SystemException if a system exception occurred
491            */
492            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
493            public com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
494                    java.lang.String uuid, long groupId, boolean privateLayout)
495                    throws com.liferay.portal.kernel.exception.PortalException,
496                            com.liferay.portal.kernel.exception.SystemException;
497    
498            /**
499            * Returns the name of the layout.
500            *
501            * @param groupId the primary key of the group
502            * @param privateLayout whether the layout is private to the group
503            * @param layoutId the primary key of the layout
504            * @param languageId the primary key of the language. For more information
505            See {@link java.util.Locale}.
506            * @return the layout's name
507            * @throws PortalException if a matching layout could not be found
508            * @throws SystemException if a system exception occurred
509            */
510            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
511            public java.lang.String getLayoutName(long groupId, boolean privateLayout,
512                    long layoutId, java.lang.String languageId)
513                    throws com.liferay.portal.kernel.exception.PortalException,
514                            com.liferay.portal.kernel.exception.SystemException;
515    
516            /**
517            * Returns the layout references for all the layouts that belong to the
518            * company and belong to the portlet that matches the preferences.
519            *
520            * @param companyId the primary key of the company
521            * @param portletId the primary key of the portlet
522            * @param preferencesKey the portlet's preference key
523            * @param preferencesValue the portlet's preference value
524            * @return the layout references of the matching layouts
525            * @throws SystemException if a system exception occurred
526            */
527            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
528            public com.liferay.portal.model.LayoutReference[] getLayoutReferences(
529                    long companyId, java.lang.String portletId,
530                    java.lang.String preferencesKey, java.lang.String preferencesValue)
531                    throws com.liferay.portal.kernel.exception.SystemException;
532    
533            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
534            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
535                    long groupId, boolean privateLayout)
536                    throws com.liferay.portal.kernel.exception.SystemException;
537    
538            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
539            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
540                    long groupId, boolean privateLayout, long parentLayoutId)
541                    throws com.liferay.portal.kernel.exception.SystemException;
542    
543            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
544            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
545                    long groupId, boolean privateLayout, long parentLayoutId,
546                    boolean incomplete, int start, int end)
547                    throws com.liferay.portal.kernel.exception.PortalException,
548                            com.liferay.portal.kernel.exception.SystemException;
549    
550            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
551            public java.lang.String[] getTempFileEntryNames(long groupId,
552                    java.lang.String tempFolderName)
553                    throws com.liferay.portal.kernel.exception.PortalException,
554                            com.liferay.portal.kernel.exception.SystemException;
555    
556            /**
557            * Imports the layouts from the byte array.
558            *
559            * @param groupId the primary key of the group
560            * @param privateLayout whether the layout is private to the group
561            * @param parameterMap the mapping of parameters indicating which
562            information will be imported. For information on the keys used in
563            the map see {@link
564            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
565            * @param bytes the byte array with the data
566            * @throws PortalException if a group with the primary key could not be
567            found, if the group did not have permission to manage the
568            layouts, or if some other portal exception occurred
569            * @throws SystemException if a system exception occurred
570            * @see com.liferay.portal.lar.LayoutImporter
571            */
572            public void importLayouts(long groupId, boolean privateLayout,
573                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
574                    byte[] bytes)
575                    throws com.liferay.portal.kernel.exception.PortalException,
576                            com.liferay.portal.kernel.exception.SystemException;
577    
578            /**
579            * Imports the layouts from the file.
580            *
581            * @param groupId the primary key of the group
582            * @param privateLayout whether the layout is private to the group
583            * @param parameterMap the mapping of parameters indicating which
584            information will be imported. For information on the keys used in
585            the map see {@link
586            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
587            * @param file the LAR file with the data
588            * @throws PortalException if a group with the primary key could not be
589            found, if the group did not have permission to manage the layouts
590            and publish, or if some other portal exception occurred
591            * @throws SystemException if a system exception occurred
592            * @see com.liferay.portal.lar.LayoutImporter
593            */
594            public void importLayouts(long groupId, boolean privateLayout,
595                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
596                    java.io.File file)
597                    throws com.liferay.portal.kernel.exception.PortalException,
598                            com.liferay.portal.kernel.exception.SystemException;
599    
600            /**
601            * Imports the layouts from the input stream.
602            *
603            * @param groupId the primary key of the group
604            * @param privateLayout whether the layout is private to the group
605            * @param parameterMap the mapping of parameters indicating which
606            information will be imported. For information on the keys used in
607            the map see {@link
608            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
609            * @param is the input stream
610            * @throws PortalException if a group with the primary key could not be
611            found, if the group did not have permission to manage the
612            layouts, or if some other portal exception occurred
613            * @throws SystemException if a system exception occurred
614            * @see com.liferay.portal.lar.LayoutImporter
615            */
616            public void importLayouts(long groupId, boolean privateLayout,
617                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
618                    java.io.InputStream is)
619                    throws com.liferay.portal.kernel.exception.PortalException,
620                            com.liferay.portal.kernel.exception.SystemException;
621    
622            public long importLayoutsInBackground(java.lang.String taskName,
623                    long groupId, boolean privateLayout,
624                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
625                    java.io.File file)
626                    throws com.liferay.portal.kernel.exception.PortalException,
627                            com.liferay.portal.kernel.exception.SystemException;
628    
629            /**
630            * Imports the portlet information (categories, permissions, ... etc.) from
631            * the file.
632            *
633            * @param plid the primary key of the layout
634            * @param groupId the primary key of the group
635            * @param portletId the primary key of the portlet
636            * @param parameterMap the mapping of parameters indicating which
637            information will be imported. For information on the keys used in
638            the map see {@link
639            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
640            * @param file the LAR file with the data
641            * @throws PortalException if a group, layout, or portlet with the primary
642            key could not be found, or if the group did not have permission
643            to manage the layouts
644            * @throws SystemException if a system exception occurred
645            */
646            public void importPortletInfo(long plid, long groupId,
647                    java.lang.String portletId,
648                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
649                    java.io.File file)
650                    throws com.liferay.portal.kernel.exception.PortalException,
651                            com.liferay.portal.kernel.exception.SystemException;
652    
653            /**
654            * Imports the portlet information (categories, permissions, ... etc.) from
655            * the input stream.
656            *
657            * @param plid the primary key of the layout
658            * @param groupId the primary key of the group
659            * @param portletId the primary key of the portlet
660            * @param parameterMap the mapping of parameters indicating which
661            information will be imported. For information on the keys used in
662            the map see {@link
663            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
664            * @param is the input stream
665            * @throws PortalException if a group, portlet, or layout with the primary
666            key could not be found or if the group did not have permission to
667            manage the layouts
668            * @throws SystemException if a system exception occurred
669            */
670            public void importPortletInfo(long plid, long groupId,
671                    java.lang.String portletId,
672                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
673                    java.io.InputStream is)
674                    throws com.liferay.portal.kernel.exception.PortalException,
675                            com.liferay.portal.kernel.exception.SystemException;
676    
677            public long importPortletInfoInBackground(java.lang.String taskName,
678                    long plid, long groupId, java.lang.String portletId,
679                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
680                    java.io.File file)
681                    throws com.liferay.portal.kernel.exception.PortalException,
682                            com.liferay.portal.kernel.exception.SystemException;
683    
684            public long importPortletInfoInBackground(java.lang.String taskName,
685                    long plid, long groupId, java.lang.String portletId,
686                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
687                    java.io.InputStream is)
688                    throws com.liferay.portal.kernel.exception.PortalException,
689                            com.liferay.portal.kernel.exception.SystemException;
690    
691            /**
692            * Schedules a range of layouts to be published.
693            *
694            * @param sourceGroupId the primary key of the source group
695            * @param targetGroupId the primary key of the target group
696            * @param privateLayout whether the layout is private to the group
697            * @param layoutIdMap the layouts considered for publishing, specified by
698            the layout IDs and booleans indicating whether they have children
699            * @param parameterMap the mapping of parameters indicating which
700            information will be used. See {@link
701            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}
702            * @param scope the scope of the pages. It can be <code>all-pages</code> or
703            <code>selected-pages</code>.
704            * @param startDate the start date
705            * @param endDate the end date
706            * @param groupName the group name (optionally {@link
707            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
708            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
709            * @param cronText the cron text. See {@link
710            com.liferay.portal.kernel.cal.RecurrenceSerializer #toCronText}
711            * @param schedulerStartDate the scheduler start date
712            * @param schedulerEndDate the scheduler end date
713            * @param description the scheduler description
714            * @throws PortalException if the group did not have permission to manage
715            and publish
716            * @throws SystemException if a system exception occurred
717            */
718            public void schedulePublishToLive(long sourceGroupId, long targetGroupId,
719                    boolean privateLayout,
720                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
721                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
722                    java.lang.String scope, java.util.Date startDate,
723                    java.util.Date endDate, java.lang.String groupName,
724                    java.lang.String cronText, java.util.Date schedulerStartDate,
725                    java.util.Date schedulerEndDate, java.lang.String description)
726                    throws com.liferay.portal.kernel.exception.PortalException,
727                            com.liferay.portal.kernel.exception.SystemException;
728    
729            /**
730            * Schedules a range of layouts to be stored.
731            *
732            * @param sourceGroupId the primary key of the source group
733            * @param privateLayout whether the layout is private to the group
734            * @param layoutIdMap the layouts considered for publishing, specified by
735            the layout IDs and booleans indicating whether they have children
736            * @param parameterMap the mapping of parameters indicating which
737            information will be used. See {@link
738            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}
739            * @param remoteAddress the remote address
740            * @param remotePort the remote port
741            * @param remotePathContext the remote path context
742            * @param secureConnection whether the connection is secure
743            * @param remoteGroupId the primary key of the remote group
744            * @param remotePrivateLayout whether remote group's layout is private
745            * @param startDate the start date
746            * @param endDate the end date
747            * @param groupName the group name. Optionally {@link
748            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
749            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
750            * @param cronText the cron text. See {@link
751            com.liferay.portal.kernel.cal.RecurrenceSerializer #toCronText}
752            * @param schedulerStartDate the scheduler start date
753            * @param schedulerEndDate the scheduler end date
754            * @param description the scheduler description
755            * @throws PortalException if a group with the source group primary key was
756            not found or if the group did not have permission to publish
757            * @throws SystemException if a system exception occurred
758            */
759            public void schedulePublishToRemote(long sourceGroupId,
760                    boolean privateLayout,
761                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
762                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
763                    java.lang.String remoteAddress, int remotePort,
764                    java.lang.String remotePathContext, boolean secureConnection,
765                    long remoteGroupId, boolean remotePrivateLayout,
766                    java.util.Date startDate, java.util.Date endDate,
767                    java.lang.String groupName, java.lang.String cronText,
768                    java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
769                    java.lang.String description)
770                    throws com.liferay.portal.kernel.exception.PortalException,
771                            com.liferay.portal.kernel.exception.SystemException;
772    
773            /**
774            * Sets the layouts for the group, replacing and prioritizing all layouts of
775            * the parent layout.
776            *
777            * @param groupId the primary key of the group
778            * @param privateLayout whether the layout is private to the group
779            * @param parentLayoutId the primary key of the parent layout
780            * @param layoutIds the primary keys of the layouts
781            * @param serviceContext the service context to be applied
782            * @throws PortalException if a group or layout with the primary key could
783            not be found, if the group did not have permission to manage the
784            layouts, if no layouts were specified, if the first layout was
785            not page-able, if the first layout was hidden, or if some other
786            portal exception occurred
787            * @throws SystemException if a system exception occurred
788            */
789            public void setLayouts(long groupId, boolean privateLayout,
790                    long parentLayoutId, long[] layoutIds,
791                    com.liferay.portal.service.ServiceContext serviceContext)
792                    throws com.liferay.portal.kernel.exception.PortalException,
793                            com.liferay.portal.kernel.exception.SystemException;
794    
795            /**
796            * Deletes the job from the scheduler's queue.
797            *
798            * @param groupId the primary key of the group
799            * @param jobName the job name
800            * @param groupName the group name (optionally {@link
801            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
802            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
803            * @throws PortalException if the group did not permission to manage staging
804            and publish
805            * @throws SystemException if a system exception occurred
806            */
807            public void unschedulePublishToLive(long groupId, java.lang.String jobName,
808                    java.lang.String groupName)
809                    throws com.liferay.portal.kernel.exception.PortalException,
810                            com.liferay.portal.kernel.exception.SystemException;
811    
812            /**
813            * Deletes the job from the scheduler's persistent queue.
814            *
815            * @param groupId the primary key of the group
816            * @param jobName the job name
817            * @param groupName the group name (optionally {@link
818            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
819            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
820            * @throws PortalException if a group with the primary key could not be
821            found or if the group did not have permission to publish
822            * @throws SystemException if a system exception occurred
823            */
824            public void unschedulePublishToRemote(long groupId,
825                    java.lang.String jobName, java.lang.String groupName)
826                    throws com.liferay.portal.kernel.exception.PortalException,
827                            com.liferay.portal.kernel.exception.SystemException;
828    
829            /**
830            * Updates the layout with additional parameters.
831            *
832            * @param groupId the primary key of the group
833            * @param privateLayout whether the layout is private to the group
834            * @param layoutId the primary key of the layout
835            * @param parentLayoutId the primary key of the layout's new parent layout
836            * @param localeNamesMap the layout's locales and localized names
837            * @param localeTitlesMap the layout's locales and localized titles
838            * @param descriptionMap the locales and localized descriptions to merge
839            (optionally <code>null</code>)
840            * @param keywordsMap the locales and localized keywords to merge
841            (optionally <code>null</code>)
842            * @param robotsMap the locales and localized robots to merge (optionally
843            <code>null</code>)
844            * @param type the layout's new type (optionally {@link
845            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET})
846            * @param hidden whether the layout is hidden
847            * @param friendlyURLMap the layout's locales and localized friendly URLs.
848            To see how the URL is normalized when accessed see {@link
849            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
850            String)}.
851            * @param iconImage whether the icon image will be updated
852            * @param iconBytes the byte array of the layout's new icon image
853            * @param serviceContext the service context to be applied. Can set the
854            modification date and expando bridge attributes for the layout.
855            * @return the updated layout
856            * @throws PortalException if a group or layout with the primary key could
857            not be found, if the user did not have permission to update the
858            layout, if a unique friendly URL could not be generated, if a
859            valid parent layout ID to use could not be found, or if the
860            layout parameters were invalid
861            * @throws SystemException if a system exception occurred
862            */
863            public com.liferay.portal.model.Layout updateLayout(long groupId,
864                    boolean privateLayout, long layoutId, long parentLayoutId,
865                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
866                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
867                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
868                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
869                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
870                    java.lang.String type, boolean hidden,
871                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
872                    java.lang.Boolean iconImage, byte[] iconBytes,
873                    com.liferay.portal.service.ServiceContext serviceContext)
874                    throws com.liferay.portal.kernel.exception.PortalException,
875                            com.liferay.portal.kernel.exception.SystemException;
876    
877            /**
878            * Updates the layout with additional parameters.
879            *
880            * @param groupId the primary key of the group
881            * @param privateLayout whether the layout is private to the group
882            * @param layoutId the primary key of the layout
883            * @param parentLayoutId the primary key of the layout's new parent
884            layout
885            * @param localeNamesMap the layout's locales and localized names
886            * @param localeTitlesMap the layout's locales and localized titles
887            * @param descriptionMap the locales and localized descriptions to
888            merge (optionally <code>null</code>)
889            * @param keywordsMap the locales and localized keywords to merge
890            (optionally <code>null</code>)
891            * @param robotsMap the locales and localized robots to merge
892            (optionally <code>null</code>)
893            * @param type the layout's new type (optionally {@link
894            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET})
895            * @param hidden whether the layout is hidden
896            * @param friendlyURL the layout's locales and new friendly URLs. To
897            see how the URL is normalized when accessed, see {@link
898            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
899            String)}.
900            * @param iconImage whether the icon image will be updated
901            * @param iconBytes the byte array of the layout's new icon image
902            * @param serviceContext the service context to be applied. Can set the
903            modification date and expando bridge attributes for the
904            layout.
905            * @return the updated layout
906            * @throws PortalException if a group or layout with the primary key
907            could not be found, if the user did not have permission to
908            update the layout, if a unique friendly URL could not be
909            generated, if a valid parent layout ID to use could not be
910            found, or if the layout parameters were invalid
911            * @throws SystemException if a system exception occurred
912            * @deprecated As of 6.2.0, replaced by {@link #updateLayout(long, boolean,
913            long, long, Map, Map, Map, Map, Map, String, boolean, Map,
914            Boolean, byte[], ServiceContext)}
915            */
916            public com.liferay.portal.model.Layout updateLayout(long groupId,
917                    boolean privateLayout, long layoutId, long parentLayoutId,
918                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
919                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
920                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
921                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
922                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
923                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
924                    java.lang.Boolean iconImage, byte[] iconBytes,
925                    com.liferay.portal.service.ServiceContext serviceContext)
926                    throws com.liferay.portal.kernel.exception.PortalException,
927                            com.liferay.portal.kernel.exception.SystemException;
928    
929            /**
930            * Updates the layout replacing its type settings.
931            *
932            * @param groupId the primary key of the group
933            * @param privateLayout whether the layout is private to the group
934            * @param layoutId the primary key of the layout
935            * @param typeSettings the settings to load the unicode properties object.
936            See {@link com.liferay.portal.kernel.util.UnicodeProperties
937            #fastLoad(String)}.
938            * @return the updated layout
939            * @throws PortalException if a matching layout could not be found or if the
940            user did not have permission to update the layout
941            * @throws SystemException if a system exception occurred
942            */
943            public com.liferay.portal.model.Layout updateLayout(long groupId,
944                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
945                    throws com.liferay.portal.kernel.exception.PortalException,
946                            com.liferay.portal.kernel.exception.SystemException;
947    
948            /**
949            * Updates the look and feel of the layout.
950            *
951            * @param groupId the primary key of the group
952            * @param privateLayout whether the layout is private to the group
953            * @param layoutId the primary key of the layout
954            * @param themeId the primary key of the layout's new theme
955            * @param colorSchemeId the primary key of the layout's new color scheme
956            * @param css the layout's new CSS
957            * @param wapTheme whether the theme is for WAP browsers
958            * @return the updated layout
959            * @throws PortalException if a matching layout could not be found, or if
960            the user did not have permission to update the layout and
961            permission to apply the theme
962            * @throws SystemException if a system exception occurred
963            */
964            public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
965                    boolean privateLayout, long layoutId, java.lang.String themeId,
966                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
967                    throws com.liferay.portal.kernel.exception.PortalException,
968                            com.liferay.portal.kernel.exception.SystemException;
969    
970            /**
971            * Updates the name of the layout matching the group, layout ID, and
972            * privacy.
973            *
974            * @param groupId the primary key of the group
975            * @param privateLayout whether the layout is private to the group
976            * @param layoutId the primary key of the layout
977            * @param name the layout's new name
978            * @param languageId the primary key of the language. For more information
979            see {@link java.util.Locale}.
980            * @return the updated layout
981            * @throws PortalException if a matching layout could not be found, if the
982            user did not have permission to update the layout, or if the new
983            name was <code>null</code>
984            * @throws SystemException if a system exception occurred
985            */
986            public com.liferay.portal.model.Layout updateName(long groupId,
987                    boolean privateLayout, long layoutId, java.lang.String name,
988                    java.lang.String languageId)
989                    throws com.liferay.portal.kernel.exception.PortalException,
990                            com.liferay.portal.kernel.exception.SystemException;
991    
992            /**
993            * Updates the name of the layout matching the primary key.
994            *
995            * @param plid the primary key of the layout
996            * @param name the name to be assigned
997            * @param languageId the primary key of the language. For more information
998            see {@link java.util.Locale}.
999            * @return the updated layout
1000            * @throws PortalException if a layout with the primary key could not be
1001            found, or if the user did not have permission to update the
1002            layout, or if the name was <code>null</code>
1003            * @throws SystemException if a system exception occurred
1004            */
1005            public com.liferay.portal.model.Layout updateName(long plid,
1006                    java.lang.String name, java.lang.String languageId)
1007                    throws com.liferay.portal.kernel.exception.PortalException,
1008                            com.liferay.portal.kernel.exception.SystemException;
1009    
1010            /**
1011            * Updates the parent layout ID of the layout matching the group, layout ID,
1012            * and privacy.
1013            *
1014            * @param groupId the primary key of the group
1015            * @param privateLayout whether the layout is private to the group
1016            * @param layoutId the primary key of the layout
1017            * @param parentLayoutId the primary key to be assigned to the parent
1018            layout
1019            * @return the matching layout
1020            * @throws PortalException if a valid parent layout ID to use could not be
1021            found, if a matching layout could not be found, or if the user
1022            did not have permission to update the layout
1023            * @throws SystemException if a system exception occurred
1024            */
1025            public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
1026                    boolean privateLayout, long layoutId, long parentLayoutId)
1027                    throws com.liferay.portal.kernel.exception.PortalException,
1028                            com.liferay.portal.kernel.exception.SystemException;
1029    
1030            /**
1031            * Updates the parent layout ID of the layout matching the primary key. If a
1032            * layout matching the parent primary key is found, the layout ID of that
1033            * layout is assigned, otherwise {@link
1034            * com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID} is
1035            * assigned.
1036            *
1037            * @param plid the primary key of the layout
1038            * @param parentPlid the primary key of the parent layout
1039            * @return the layout matching the primary key
1040            * @throws PortalException if a layout with the primary key could not be
1041            found, if the user did not have permission to update the layout,
1042            or if a valid parent layout ID to use could not be found
1043            * @throws SystemException if a system exception occurred
1044            */
1045            public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
1046                    long parentPlid)
1047                    throws com.liferay.portal.kernel.exception.PortalException,
1048                            com.liferay.portal.kernel.exception.SystemException;
1049    
1050            /**
1051            * Updates the priority of the layout matching the group, layout ID, and
1052            * privacy.
1053            *
1054            * @param groupId the primary key of the group
1055            * @param privateLayout whether the layout is private to the group
1056            * @param layoutId the primary key of the layout
1057            * @param priority the layout's new priority
1058            * @return the updated layout
1059            * @throws PortalException if a matching layout could not be found or if the
1060            user did not have permission to update the layout
1061            * @throws SystemException if a system exception occurred
1062            */
1063            public com.liferay.portal.model.Layout updatePriority(long groupId,
1064                    boolean privateLayout, long layoutId, int priority)
1065                    throws com.liferay.portal.kernel.exception.PortalException,
1066                            com.liferay.portal.kernel.exception.SystemException;
1067    
1068            /**
1069            * Updates the priority of the layout matching the primary key.
1070            *
1071            * @param plid the primary key of the layout
1072            * @param priority the layout's new priority
1073            * @return the updated layout
1074            * @throws PortalException if a layout with the primary key could not be
1075            found
1076            * @throws SystemException if a system exception occurred
1077            */
1078            public com.liferay.portal.model.Layout updatePriority(long plid,
1079                    int priority)
1080                    throws com.liferay.portal.kernel.exception.PortalException,
1081                            com.liferay.portal.kernel.exception.SystemException;
1082    
1083            public com.liferay.portal.kernel.lar.MissingReferences validateImportLayoutsFile(
1084                    long groupId, boolean privateLayout,
1085                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1086                    java.io.File file)
1087                    throws com.liferay.portal.kernel.exception.PortalException,
1088                            com.liferay.portal.kernel.exception.SystemException;
1089    
1090            public com.liferay.portal.kernel.lar.MissingReferences validateImportPortletInfo(
1091                    long plid, long groupId, java.lang.String portletId,
1092                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1093                    java.io.File file)
1094                    throws com.liferay.portal.kernel.exception.PortalException,
1095                            com.liferay.portal.kernel.exception.SystemException;
1096    }