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            public long importLayoutsInBackground(java.lang.String taskName,
630                    long groupId, boolean privateLayout,
631                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
632                    java.io.InputStream inputStream)
633                    throws com.liferay.portal.kernel.exception.PortalException,
634                            com.liferay.portal.kernel.exception.SystemException;
635    
636            /**
637            * Imports the portlet information (categories, permissions, ... etc.) from
638            * the file.
639            *
640            * @param plid the primary key of the layout
641            * @param groupId the primary key of the group
642            * @param portletId the primary key of the portlet
643            * @param parameterMap the mapping of parameters indicating which
644            information will be imported. For information on the keys used in
645            the map see {@link
646            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
647            * @param file the LAR file with the data
648            * @throws PortalException if a group, layout, or portlet with the primary
649            key could not be found, or if the group did not have permission
650            to manage the layouts
651            * @throws SystemException if a system exception occurred
652            */
653            public void importPortletInfo(long plid, long groupId,
654                    java.lang.String portletId,
655                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
656                    java.io.File file)
657                    throws com.liferay.portal.kernel.exception.PortalException,
658                            com.liferay.portal.kernel.exception.SystemException;
659    
660            /**
661            * Imports the portlet information (categories, permissions, ... etc.) from
662            * the input stream.
663            *
664            * @param plid the primary key of the layout
665            * @param groupId the primary key of the group
666            * @param portletId the primary key of the portlet
667            * @param parameterMap the mapping of parameters indicating which
668            information will be imported. For information on the keys used in
669            the map see {@link
670            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}.
671            * @param is the input stream
672            * @throws PortalException if a group, portlet, or layout with the primary
673            key could not be found or if the group did not have permission to
674            manage the layouts
675            * @throws SystemException if a system exception occurred
676            */
677            public void importPortletInfo(long plid, long groupId,
678                    java.lang.String portletId,
679                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
680                    java.io.InputStream is)
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.File file)
688                    throws com.liferay.portal.kernel.exception.PortalException,
689                            com.liferay.portal.kernel.exception.SystemException;
690    
691            public long importPortletInfoInBackground(java.lang.String taskName,
692                    long plid, long groupId, java.lang.String portletId,
693                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
694                    java.io.InputStream is)
695                    throws com.liferay.portal.kernel.exception.PortalException,
696                            com.liferay.portal.kernel.exception.SystemException;
697    
698            /**
699            * Schedules a range of layouts to be published.
700            *
701            * @param sourceGroupId the primary key of the source group
702            * @param targetGroupId the primary key of the target group
703            * @param privateLayout whether the layout is private to the group
704            * @param layoutIdMap the layouts considered for publishing, specified by
705            the layout IDs and booleans indicating whether they have children
706            * @param parameterMap the mapping of parameters indicating which
707            information will be used. See {@link
708            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}
709            * @param scope the scope of the pages. It can be <code>all-pages</code> or
710            <code>selected-pages</code>.
711            * @param startDate the start date
712            * @param endDate the end date
713            * @param groupName the group name (optionally {@link
714            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
715            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
716            * @param cronText the cron text. See {@link
717            com.liferay.portal.kernel.cal.RecurrenceSerializer #toCronText}
718            * @param schedulerStartDate the scheduler start date
719            * @param schedulerEndDate the scheduler end date
720            * @param description the scheduler description
721            * @throws PortalException if the group did not have permission to manage
722            and publish
723            * @throws SystemException if a system exception occurred
724            */
725            public void schedulePublishToLive(long sourceGroupId, long targetGroupId,
726                    boolean privateLayout,
727                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
728                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
729                    java.lang.String scope, java.util.Date startDate,
730                    java.util.Date endDate, java.lang.String groupName,
731                    java.lang.String cronText, java.util.Date schedulerStartDate,
732                    java.util.Date schedulerEndDate, java.lang.String description)
733                    throws com.liferay.portal.kernel.exception.PortalException,
734                            com.liferay.portal.kernel.exception.SystemException;
735    
736            /**
737            * Schedules a range of layouts to be stored.
738            *
739            * @param sourceGroupId the primary key of the source group
740            * @param privateLayout whether the layout is private to the group
741            * @param layoutIdMap the layouts considered for publishing, specified by
742            the layout IDs and booleans indicating whether they have children
743            * @param parameterMap the mapping of parameters indicating which
744            information will be used. See {@link
745            com.liferay.portal.kernel.lar.PortletDataHandlerKeys}
746            * @param remoteAddress the remote address
747            * @param remotePort the remote port
748            * @param remotePathContext the remote path context
749            * @param secureConnection whether the connection is secure
750            * @param remoteGroupId the primary key of the remote group
751            * @param remotePrivateLayout whether remote group's layout is private
752            * @param startDate the start date
753            * @param endDate the end date
754            * @param groupName the group name. Optionally {@link
755            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
756            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
757            * @param cronText the cron text. See {@link
758            com.liferay.portal.kernel.cal.RecurrenceSerializer #toCronText}
759            * @param schedulerStartDate the scheduler start date
760            * @param schedulerEndDate the scheduler end date
761            * @param description the scheduler description
762            * @throws PortalException if a group with the source group primary key was
763            not found or if the group did not have permission to publish
764            * @throws SystemException if a system exception occurred
765            */
766            public void schedulePublishToRemote(long sourceGroupId,
767                    boolean privateLayout,
768                    java.util.Map<java.lang.Long, java.lang.Boolean> layoutIdMap,
769                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
770                    java.lang.String remoteAddress, int remotePort,
771                    java.lang.String remotePathContext, boolean secureConnection,
772                    long remoteGroupId, boolean remotePrivateLayout,
773                    java.util.Date startDate, java.util.Date endDate,
774                    java.lang.String groupName, java.lang.String cronText,
775                    java.util.Date schedulerStartDate, java.util.Date schedulerEndDate,
776                    java.lang.String description)
777                    throws com.liferay.portal.kernel.exception.PortalException,
778                            com.liferay.portal.kernel.exception.SystemException;
779    
780            /**
781            * Sets the layouts for the group, replacing and prioritizing all layouts of
782            * the parent layout.
783            *
784            * @param groupId the primary key of the group
785            * @param privateLayout whether the layout is private to the group
786            * @param parentLayoutId the primary key of the parent layout
787            * @param layoutIds the primary keys of the layouts
788            * @param serviceContext the service context to be applied
789            * @throws PortalException if a group or layout with the primary key could
790            not be found, if the group did not have permission to manage the
791            layouts, if no layouts were specified, if the first layout was
792            not page-able, if the first layout was hidden, or if some other
793            portal exception occurred
794            * @throws SystemException if a system exception occurred
795            */
796            public void setLayouts(long groupId, boolean privateLayout,
797                    long parentLayoutId, long[] layoutIds,
798                    com.liferay.portal.service.ServiceContext serviceContext)
799                    throws com.liferay.portal.kernel.exception.PortalException,
800                            com.liferay.portal.kernel.exception.SystemException;
801    
802            /**
803            * Deletes the job from the scheduler's queue.
804            *
805            * @param groupId the primary key of the group
806            * @param jobName the job name
807            * @param groupName the group name (optionally {@link
808            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
809            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
810            * @throws PortalException if the group did not permission to manage staging
811            and publish
812            * @throws SystemException if a system exception occurred
813            */
814            public void unschedulePublishToLive(long groupId, java.lang.String jobName,
815                    java.lang.String groupName)
816                    throws com.liferay.portal.kernel.exception.PortalException,
817                            com.liferay.portal.kernel.exception.SystemException;
818    
819            /**
820            * Deletes the job from the scheduler's persistent queue.
821            *
822            * @param groupId the primary key of the group
823            * @param jobName the job name
824            * @param groupName the group name (optionally {@link
825            com.liferay.portal.kernel.messaging.DestinationNames#LAYOUTS_LOCAL_PUBLISHER}).
826            See {@link com.liferay.portal.kernel.messaging.DestinationNames}.
827            * @throws PortalException if a group with the primary key could not be
828            found or if the group did not have permission to publish
829            * @throws SystemException if a system exception occurred
830            */
831            public void unschedulePublishToRemote(long groupId,
832                    java.lang.String jobName, java.lang.String groupName)
833                    throws com.liferay.portal.kernel.exception.PortalException,
834                            com.liferay.portal.kernel.exception.SystemException;
835    
836            /**
837            * Updates the layout with additional parameters.
838            *
839            * @param groupId the primary key of the group
840            * @param privateLayout whether the layout is private to the group
841            * @param layoutId the primary key of the layout
842            * @param parentLayoutId the primary key of the layout's new parent layout
843            * @param localeNamesMap the layout's locales and localized names
844            * @param localeTitlesMap the layout's locales and localized titles
845            * @param descriptionMap the locales and localized descriptions to merge
846            (optionally <code>null</code>)
847            * @param keywordsMap the locales and localized keywords to merge
848            (optionally <code>null</code>)
849            * @param robotsMap the locales and localized robots to merge (optionally
850            <code>null</code>)
851            * @param type the layout's new type (optionally {@link
852            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET})
853            * @param hidden whether the layout is hidden
854            * @param friendlyURLMap the layout's locales and localized friendly URLs.
855            To see how the URL is normalized when accessed see {@link
856            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
857            String)}.
858            * @param iconImage whether the icon image will be updated
859            * @param iconBytes the byte array of the layout's new icon image
860            * @param serviceContext the service context to be applied. Can set the
861            modification date and expando bridge attributes for the layout.
862            * @return the updated layout
863            * @throws PortalException if a group or layout with the primary key could
864            not be found, if the user did not have permission to update the
865            layout, if a unique friendly URL could not be generated, if a
866            valid parent layout ID to use could not be found, or if the
867            layout parameters were invalid
868            * @throws SystemException if a system exception occurred
869            */
870            public com.liferay.portal.model.Layout updateLayout(long groupId,
871                    boolean privateLayout, long layoutId, long parentLayoutId,
872                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
873                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
874                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
875                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
876                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
877                    java.lang.String type, boolean hidden,
878                    java.util.Map<java.util.Locale, java.lang.String> friendlyURLMap,
879                    java.lang.Boolean iconImage, byte[] iconBytes,
880                    com.liferay.portal.service.ServiceContext serviceContext)
881                    throws com.liferay.portal.kernel.exception.PortalException,
882                            com.liferay.portal.kernel.exception.SystemException;
883    
884            /**
885            * Updates the layout with additional parameters.
886            *
887            * @param groupId the primary key of the group
888            * @param privateLayout whether the layout is private to the group
889            * @param layoutId the primary key of the layout
890            * @param parentLayoutId the primary key of the layout's new parent
891            layout
892            * @param localeNamesMap the layout's locales and localized names
893            * @param localeTitlesMap the layout's locales and localized titles
894            * @param descriptionMap the locales and localized descriptions to
895            merge (optionally <code>null</code>)
896            * @param keywordsMap the locales and localized keywords to merge
897            (optionally <code>null</code>)
898            * @param robotsMap the locales and localized robots to merge
899            (optionally <code>null</code>)
900            * @param type the layout's new type (optionally {@link
901            com.liferay.portal.model.LayoutConstants#TYPE_PORTLET})
902            * @param hidden whether the layout is hidden
903            * @param friendlyURL the layout's locales and new friendly URLs. To
904            see how the URL is normalized when accessed, see {@link
905            com.liferay.portal.kernel.util.FriendlyURLNormalizerUtil#normalize(
906            String)}.
907            * @param iconImage whether the icon image will be updated
908            * @param iconBytes the byte array of the layout's new icon image
909            * @param serviceContext the service context to be applied. Can set the
910            modification date and expando bridge attributes for the
911            layout.
912            * @return the updated layout
913            * @throws PortalException if a group or layout with the primary key
914            could not be found, if the user did not have permission to
915            update the layout, if a unique friendly URL could not be
916            generated, if a valid parent layout ID to use could not be
917            found, or if the layout parameters were invalid
918            * @throws SystemException if a system exception occurred
919            * @deprecated As of 6.2.0, replaced by {@link #updateLayout(long, boolean,
920            long, long, Map, Map, Map, Map, Map, String, boolean, Map,
921            Boolean, byte[], ServiceContext)}
922            */
923            public com.liferay.portal.model.Layout updateLayout(long groupId,
924                    boolean privateLayout, long layoutId, long parentLayoutId,
925                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
926                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
927                    java.util.Map<java.util.Locale, java.lang.String> descriptionMap,
928                    java.util.Map<java.util.Locale, java.lang.String> keywordsMap,
929                    java.util.Map<java.util.Locale, java.lang.String> robotsMap,
930                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
931                    java.lang.Boolean iconImage, byte[] iconBytes,
932                    com.liferay.portal.service.ServiceContext serviceContext)
933                    throws com.liferay.portal.kernel.exception.PortalException,
934                            com.liferay.portal.kernel.exception.SystemException;
935    
936            /**
937            * Updates the layout replacing its type settings.
938            *
939            * @param groupId the primary key of the group
940            * @param privateLayout whether the layout is private to the group
941            * @param layoutId the primary key of the layout
942            * @param typeSettings the settings to load the unicode properties object.
943            See {@link com.liferay.portal.kernel.util.UnicodeProperties
944            #fastLoad(String)}.
945            * @return the updated layout
946            * @throws PortalException if a matching layout could not be found or if the
947            user did not have permission to update the layout
948            * @throws SystemException if a system exception occurred
949            */
950            public com.liferay.portal.model.Layout updateLayout(long groupId,
951                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
952                    throws com.liferay.portal.kernel.exception.PortalException,
953                            com.liferay.portal.kernel.exception.SystemException;
954    
955            /**
956            * Updates the look and feel of the layout.
957            *
958            * @param groupId the primary key of the group
959            * @param privateLayout whether the layout is private to the group
960            * @param layoutId the primary key of the layout
961            * @param themeId the primary key of the layout's new theme
962            * @param colorSchemeId the primary key of the layout's new color scheme
963            * @param css the layout's new CSS
964            * @param wapTheme whether the theme is for WAP browsers
965            * @return the updated layout
966            * @throws PortalException if a matching layout could not be found, or if
967            the user did not have permission to update the layout and
968            permission to apply the theme
969            * @throws SystemException if a system exception occurred
970            */
971            public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
972                    boolean privateLayout, long layoutId, java.lang.String themeId,
973                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
974                    throws com.liferay.portal.kernel.exception.PortalException,
975                            com.liferay.portal.kernel.exception.SystemException;
976    
977            /**
978            * Updates the name of the layout matching the group, layout ID, and
979            * privacy.
980            *
981            * @param groupId the primary key of the group
982            * @param privateLayout whether the layout is private to the group
983            * @param layoutId the primary key of the layout
984            * @param name the layout's new name
985            * @param languageId the primary key of the language. For more information
986            see {@link java.util.Locale}.
987            * @return the updated layout
988            * @throws PortalException if a matching layout could not be found, if the
989            user did not have permission to update the layout, or if the new
990            name was <code>null</code>
991            * @throws SystemException if a system exception occurred
992            */
993            public com.liferay.portal.model.Layout updateName(long groupId,
994                    boolean privateLayout, long layoutId, java.lang.String name,
995                    java.lang.String languageId)
996                    throws com.liferay.portal.kernel.exception.PortalException,
997                            com.liferay.portal.kernel.exception.SystemException;
998    
999            /**
1000            * Updates the name of the layout matching the primary key.
1001            *
1002            * @param plid the primary key of the layout
1003            * @param name the name to be assigned
1004            * @param languageId the primary key of the language. For more information
1005            see {@link java.util.Locale}.
1006            * @return the updated layout
1007            * @throws PortalException if a layout with the primary key could not be
1008            found, or if the user did not have permission to update the
1009            layout, or if the name was <code>null</code>
1010            * @throws SystemException if a system exception occurred
1011            */
1012            public com.liferay.portal.model.Layout updateName(long plid,
1013                    java.lang.String name, java.lang.String languageId)
1014                    throws com.liferay.portal.kernel.exception.PortalException,
1015                            com.liferay.portal.kernel.exception.SystemException;
1016    
1017            /**
1018            * Updates the parent layout ID of the layout matching the group, layout ID,
1019            * and privacy.
1020            *
1021            * @param groupId the primary key of the group
1022            * @param privateLayout whether the layout is private to the group
1023            * @param layoutId the primary key of the layout
1024            * @param parentLayoutId the primary key to be assigned to the parent
1025            layout
1026            * @return the matching layout
1027            * @throws PortalException if a valid parent layout ID to use could not be
1028            found, if a matching layout could not be found, or if the user
1029            did not have permission to update the layout
1030            * @throws SystemException if a system exception occurred
1031            */
1032            public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
1033                    boolean privateLayout, long layoutId, long parentLayoutId)
1034                    throws com.liferay.portal.kernel.exception.PortalException,
1035                            com.liferay.portal.kernel.exception.SystemException;
1036    
1037            /**
1038            * Updates the parent layout ID of the layout matching the primary key. If a
1039            * layout matching the parent primary key is found, the layout ID of that
1040            * layout is assigned, otherwise {@link
1041            * com.liferay.portal.model.LayoutConstants#DEFAULT_PARENT_LAYOUT_ID} is
1042            * assigned.
1043            *
1044            * @param plid the primary key of the layout
1045            * @param parentPlid the primary key of the parent layout
1046            * @return the layout matching the primary key
1047            * @throws PortalException if a layout with the primary key could not be
1048            found, if the user did not have permission to update the layout,
1049            or if a valid parent layout ID to use could not be found
1050            * @throws SystemException if a system exception occurred
1051            */
1052            public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
1053                    long parentPlid)
1054                    throws com.liferay.portal.kernel.exception.PortalException,
1055                            com.liferay.portal.kernel.exception.SystemException;
1056    
1057            /**
1058            * Updates the priority of the layout matching the group, layout ID, and
1059            * privacy.
1060            *
1061            * @param groupId the primary key of the group
1062            * @param privateLayout whether the layout is private to the group
1063            * @param layoutId the primary key of the layout
1064            * @param priority the layout's new priority
1065            * @return the updated layout
1066            * @throws PortalException if a matching layout could not be found or if the
1067            user did not have permission to update the layout
1068            * @throws SystemException if a system exception occurred
1069            */
1070            public com.liferay.portal.model.Layout updatePriority(long groupId,
1071                    boolean privateLayout, long layoutId, int priority)
1072                    throws com.liferay.portal.kernel.exception.PortalException,
1073                            com.liferay.portal.kernel.exception.SystemException;
1074    
1075            /**
1076            * Updates the priority of the layout matching the primary key.
1077            *
1078            * @param plid the primary key of the layout
1079            * @param priority the layout's new priority
1080            * @return the updated layout
1081            * @throws PortalException if a layout with the primary key could not be
1082            found
1083            * @throws SystemException if a system exception occurred
1084            */
1085            public com.liferay.portal.model.Layout updatePriority(long plid,
1086                    int priority)
1087                    throws com.liferay.portal.kernel.exception.PortalException,
1088                            com.liferay.portal.kernel.exception.SystemException;
1089    
1090            public com.liferay.portal.kernel.lar.MissingReferences validateImportLayoutsFile(
1091                    long groupId, boolean privateLayout,
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    
1097            public com.liferay.portal.kernel.lar.MissingReferences validateImportLayoutsFile(
1098                    long groupId, boolean privateLayout,
1099                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1100                    java.io.InputStream inputStream)
1101                    throws com.liferay.portal.kernel.exception.PortalException,
1102                            com.liferay.portal.kernel.exception.SystemException;
1103    
1104            public com.liferay.portal.kernel.lar.MissingReferences validateImportPortletInfo(
1105                    long plid, long groupId, java.lang.String portletId,
1106                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1107                    java.io.File file)
1108                    throws com.liferay.portal.kernel.exception.PortalException,
1109                            com.liferay.portal.kernel.exception.SystemException;
1110    
1111            public com.liferay.portal.kernel.lar.MissingReferences validateImportPortletInfo(
1112                    long plid, long groupId, java.lang.String portletId,
1113                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
1114                    java.io.InputStream inputStream)
1115                    throws com.liferay.portal.kernel.exception.PortalException,
1116                            com.liferay.portal.kernel.exception.SystemException;
1117    }