001    /**
002     * Copyright (c) 2000-2010 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.annotation.Isolation;
018    import com.liferay.portal.kernel.annotation.Propagation;
019    import com.liferay.portal.kernel.annotation.Transactional;
020    import com.liferay.portal.kernel.exception.PortalException;
021    import com.liferay.portal.kernel.exception.SystemException;
022    
023    /**
024     * The interface for the layout local service.
025     *
026     * <p>
027     * Never modify or reference this interface directly. Always use {@link LayoutLocalServiceUtil} to access the layout local service. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutLocalServiceImpl} and rerun ServiceBuilder to automatically copy the method declarations to this interface.
028     * </p>
029     *
030     * <p>
031     * This is a local service. Methods of this service will not have security checks based on the propagated JAAS credentials because this service can only be accessed from within the same VM.
032     * </p>
033     *
034     * @author Brian Wing Shun Chan
035     * @see LayoutLocalServiceUtil
036     * @see com.liferay.portal.service.base.LayoutLocalServiceBaseImpl
037     * @see com.liferay.portal.service.impl.LayoutLocalServiceImpl
038     * @generated
039     */
040    @Transactional(isolation = Isolation.PORTAL, rollbackFor =  {
041            PortalException.class, SystemException.class})
042    public interface LayoutLocalService {
043            /**
044            * Adds the layout to the database. Also notifies the appropriate model listeners.
045            *
046            * @param layout the layout to add
047            * @return the layout that was added
048            * @throws SystemException if a system exception occurred
049            */
050            public com.liferay.portal.model.Layout addLayout(
051                    com.liferay.portal.model.Layout layout)
052                    throws com.liferay.portal.kernel.exception.SystemException;
053    
054            /**
055            * Creates a new layout with the primary key. Does not add the layout to the database.
056            *
057            * @param plid the primary key for the new layout
058            * @return the new layout
059            */
060            public com.liferay.portal.model.Layout createLayout(long plid);
061    
062            /**
063            * Deletes the layout with the primary key from the database. Also notifies the appropriate model listeners.
064            *
065            * @param plid the primary key of the layout to delete
066            * @throws PortalException if a layout with the primary key could not be found
067            * @throws SystemException if a system exception occurred
068            */
069            public void deleteLayout(long plid)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException;
072    
073            /**
074            * Deletes the layout from the database. Also notifies the appropriate model listeners.
075            *
076            * @param layout the layout to delete
077            * @throws SystemException if a system exception occurred
078            */
079            public void deleteLayout(com.liferay.portal.model.Layout layout)
080                    throws com.liferay.portal.kernel.exception.SystemException;
081    
082            /**
083            * Performs a dynamic query on the database and returns the matching rows.
084            *
085            * @param dynamicQuery the dynamic query to search with
086            * @return the matching rows
087            * @throws SystemException if a system exception occurred
088            */
089            @SuppressWarnings("rawtypes")
090            public java.util.List dynamicQuery(
091                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
092                    throws com.liferay.portal.kernel.exception.SystemException;
093    
094            /**
095            * Performs a dynamic query on the database and returns a range of the matching rows.
096            *
097            * <p>
098            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
099            * </p>
100            *
101            * @param dynamicQuery the dynamic query to search with
102            * @param start the lower bound of the range of model instances to return
103            * @param end the upper bound of the range of model instances to return (not inclusive)
104            * @return the range of matching rows
105            * @throws SystemException if a system exception occurred
106            */
107            @SuppressWarnings("rawtypes")
108            public java.util.List dynamicQuery(
109                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
110                    int end) throws com.liferay.portal.kernel.exception.SystemException;
111    
112            /**
113            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
114            *
115            * <p>
116            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
117            * </p>
118            *
119            * @param dynamicQuery the dynamic query to search with
120            * @param start the lower bound of the range of model instances to return
121            * @param end the upper bound of the range of model instances to return (not inclusive)
122            * @param orderByComparator the comparator to order the results by
123            * @return the ordered range of matching rows
124            * @throws SystemException if a system exception occurred
125            */
126            @SuppressWarnings("rawtypes")
127            public java.util.List dynamicQuery(
128                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
129                    int end,
130                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
131                    throws com.liferay.portal.kernel.exception.SystemException;
132    
133            /**
134            * Counts the number of rows that match the dynamic query.
135            *
136            * @param dynamicQuery the dynamic query to search with
137            * @return the number of rows that match the dynamic query
138            * @throws SystemException if a system exception occurred
139            */
140            public long dynamicQueryCount(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
142                    throws com.liferay.portal.kernel.exception.SystemException;
143    
144            /**
145            * Gets the layout with the primary key.
146            *
147            * @param plid the primary key of the layout to get
148            * @return the layout
149            * @throws PortalException if a layout with the primary key could not be found
150            * @throws SystemException if a system exception occurred
151            */
152            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
153            public com.liferay.portal.model.Layout getLayout(long plid)
154                    throws com.liferay.portal.kernel.exception.PortalException,
155                            com.liferay.portal.kernel.exception.SystemException;
156    
157            /**
158            * Gets the layout with the UUID and group id.
159            *
160            * @param uuid the UUID of layout to get
161            * @param groupId the group id of the layout to get
162            * @return the layout
163            * @throws PortalException if a layout with the UUID and group id could not be found
164            * @throws SystemException if a system exception occurred
165            */
166            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
167            public com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
168                    java.lang.String uuid, long groupId)
169                    throws com.liferay.portal.kernel.exception.PortalException,
170                            com.liferay.portal.kernel.exception.SystemException;
171    
172            /**
173            * Gets a range of all the layouts.
174            *
175            * <p>
176            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
177            * </p>
178            *
179            * @param start the lower bound of the range of layouts to return
180            * @param end the upper bound of the range of layouts to return (not inclusive)
181            * @return the range of layouts
182            * @throws SystemException if a system exception occurred
183            */
184            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
185            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
186                    int start, int end)
187                    throws com.liferay.portal.kernel.exception.SystemException;
188    
189            /**
190            * Gets the number of layouts.
191            *
192            * @return the number of layouts
193            * @throws SystemException if a system exception occurred
194            */
195            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
196            public int getLayoutsCount()
197                    throws com.liferay.portal.kernel.exception.SystemException;
198    
199            /**
200            * Updates the layout in the database. Also notifies the appropriate model listeners.
201            *
202            * @param layout the layout to update
203            * @return the layout that was updated
204            * @throws SystemException if a system exception occurred
205            */
206            public com.liferay.portal.model.Layout updateLayout(
207                    com.liferay.portal.model.Layout layout)
208                    throws com.liferay.portal.kernel.exception.SystemException;
209    
210            /**
211            * Updates the layout in the database. Also notifies the appropriate model listeners.
212            *
213            * @param layout the layout to update
214            * @param merge whether to merge the layout with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
215            * @return the layout that was updated
216            * @throws SystemException if a system exception occurred
217            */
218            public com.liferay.portal.model.Layout updateLayout(
219                    com.liferay.portal.model.Layout layout, boolean merge)
220                    throws com.liferay.portal.kernel.exception.SystemException;
221    
222            public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
223                    boolean privateLayout, long parentLayoutId,
224                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
225                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
226                    java.lang.String description, java.lang.String type, boolean hidden,
227                    java.lang.String friendlyURL, long dlFolderId,
228                    com.liferay.portal.service.ServiceContext serviceContext)
229                    throws com.liferay.portal.kernel.exception.PortalException,
230                            com.liferay.portal.kernel.exception.SystemException;
231    
232            public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
233                    boolean privateLayout, long parentLayoutId,
234                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
235                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
236                    java.lang.String description, java.lang.String type, boolean hidden,
237                    java.lang.String friendlyURL,
238                    com.liferay.portal.service.ServiceContext serviceContext)
239                    throws com.liferay.portal.kernel.exception.PortalException,
240                            com.liferay.portal.kernel.exception.SystemException;
241    
242            public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
243                    boolean privateLayout, long parentLayoutId, java.lang.String name,
244                    java.lang.String title, java.lang.String description,
245                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
246                    long dlFolderId,
247                    com.liferay.portal.service.ServiceContext serviceContext)
248                    throws com.liferay.portal.kernel.exception.PortalException,
249                            com.liferay.portal.kernel.exception.SystemException;
250    
251            public com.liferay.portal.model.Layout addLayout(long userId, long groupId,
252                    boolean privateLayout, long parentLayoutId, java.lang.String name,
253                    java.lang.String title, java.lang.String description,
254                    java.lang.String type, boolean hidden, java.lang.String friendlyURL,
255                    com.liferay.portal.service.ServiceContext serviceContext)
256                    throws com.liferay.portal.kernel.exception.PortalException,
257                            com.liferay.portal.kernel.exception.SystemException;
258    
259            public void deleteLayout(com.liferay.portal.model.Layout layout,
260                    boolean updateLayoutSet)
261                    throws com.liferay.portal.kernel.exception.PortalException,
262                            com.liferay.portal.kernel.exception.SystemException;
263    
264            public void deleteLayout(long groupId, boolean privateLayout, long layoutId)
265                    throws com.liferay.portal.kernel.exception.PortalException,
266                            com.liferay.portal.kernel.exception.SystemException;
267    
268            public void deleteLayouts(long groupId, boolean privateLayout)
269                    throws com.liferay.portal.kernel.exception.PortalException,
270                            com.liferay.portal.kernel.exception.SystemException;
271    
272            public byte[] exportLayouts(long groupId, boolean privateLayout,
273                    long[] layoutIds,
274                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
275                    java.util.Date startDate, java.util.Date endDate)
276                    throws com.liferay.portal.kernel.exception.PortalException,
277                            com.liferay.portal.kernel.exception.SystemException;
278    
279            public byte[] exportLayouts(long groupId, boolean privateLayout,
280                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
281                    java.util.Date startDate, java.util.Date endDate)
282                    throws com.liferay.portal.kernel.exception.PortalException,
283                            com.liferay.portal.kernel.exception.SystemException;
284    
285            public java.io.File exportLayoutsAsFile(long groupId,
286                    boolean privateLayout, long[] layoutIds,
287                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
288                    java.util.Date startDate, java.util.Date endDate)
289                    throws com.liferay.portal.kernel.exception.PortalException,
290                            com.liferay.portal.kernel.exception.SystemException;
291    
292            public byte[] exportPortletInfo(long plid, long groupId,
293                    java.lang.String portletId,
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            public java.io.File exportPortletInfoAsFile(long plid, long groupId,
300                    java.lang.String portletId,
301                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
302                    java.util.Date startDate, java.util.Date endDate)
303                    throws com.liferay.portal.kernel.exception.PortalException,
304                            com.liferay.portal.kernel.exception.SystemException;
305    
306            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
307            public long getDefaultPlid(long groupId)
308                    throws com.liferay.portal.kernel.exception.SystemException;
309    
310            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
311            public long getDefaultPlid(long groupId, boolean privateLayout)
312                    throws com.liferay.portal.kernel.exception.SystemException;
313    
314            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
315            public long getDefaultPlid(long groupId, boolean privateLayout,
316                    java.lang.String portletId)
317                    throws com.liferay.portal.kernel.exception.PortalException,
318                            com.liferay.portal.kernel.exception.SystemException;
319    
320            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
321            public com.liferay.portal.model.Layout getDLFolderLayout(long dlFolderId)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException;
324    
325            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
326            public com.liferay.portal.model.Layout getFriendlyURLLayout(long groupId,
327                    boolean privateLayout, java.lang.String friendlyURL)
328                    throws com.liferay.portal.kernel.exception.PortalException,
329                            com.liferay.portal.kernel.exception.SystemException;
330    
331            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
332            public com.liferay.portal.model.Layout getLayout(long groupId,
333                    boolean privateLayout, long layoutId)
334                    throws com.liferay.portal.kernel.exception.PortalException,
335                            com.liferay.portal.kernel.exception.SystemException;
336    
337            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
338            public com.liferay.portal.model.Layout getLayoutByIconImageId(
339                    long iconImageId)
340                    throws com.liferay.portal.kernel.exception.PortalException,
341                            com.liferay.portal.kernel.exception.SystemException;
342    
343            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
344            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
345                    long groupId, boolean privateLayout)
346                    throws com.liferay.portal.kernel.exception.SystemException;
347    
348            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
349            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
350                    long groupId, boolean privateLayout, long parentLayoutId)
351                    throws com.liferay.portal.kernel.exception.SystemException;
352    
353            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
354            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
355                    long groupId, boolean privateLayout, long parentLayoutId, int start,
356                    int end) throws com.liferay.portal.kernel.exception.SystemException;
357    
358            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
359            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
360                    long groupId, boolean privateLayout, long[] layoutIds)
361                    throws com.liferay.portal.kernel.exception.PortalException,
362                            com.liferay.portal.kernel.exception.SystemException;
363    
364            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
365            public java.util.List<com.liferay.portal.model.Layout> getLayouts(
366                    long groupId, boolean privateLayout, java.lang.String type)
367                    throws com.liferay.portal.kernel.exception.SystemException;
368    
369            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
370            public com.liferay.portal.model.LayoutReference[] getLayouts(
371                    long companyId, java.lang.String portletId,
372                    java.lang.String preferencesKey, java.lang.String preferencesValue)
373                    throws com.liferay.portal.kernel.exception.SystemException;
374    
375            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
376            public long getNextLayoutId(long groupId, boolean privateLayout)
377                    throws com.liferay.portal.kernel.exception.SystemException;
378    
379            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
380            public java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
381                    throws com.liferay.portal.kernel.exception.SystemException;
382    
383            @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
384            public boolean hasLayouts(long groupId, boolean privateLayout,
385                    long parentLayoutId)
386                    throws com.liferay.portal.kernel.exception.SystemException;
387    
388            public void importLayouts(long userId, long groupId, boolean privateLayout,
389                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
390                    byte[] bytes)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException;
393    
394            public void importLayouts(long userId, long groupId, boolean privateLayout,
395                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
396                    java.io.File file)
397                    throws com.liferay.portal.kernel.exception.PortalException,
398                            com.liferay.portal.kernel.exception.SystemException;
399    
400            public void importLayouts(long userId, long groupId, boolean privateLayout,
401                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
402                    java.io.InputStream is)
403                    throws com.liferay.portal.kernel.exception.PortalException,
404                            com.liferay.portal.kernel.exception.SystemException;
405    
406            public void importPortletInfo(long userId, long plid, long groupId,
407                    java.lang.String portletId,
408                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
409                    java.io.File file)
410                    throws com.liferay.portal.kernel.exception.PortalException,
411                            com.liferay.portal.kernel.exception.SystemException;
412    
413            public void importPortletInfo(long userId, long plid, long groupId,
414                    java.lang.String portletId,
415                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
416                    java.io.InputStream is)
417                    throws com.liferay.portal.kernel.exception.PortalException,
418                            com.liferay.portal.kernel.exception.SystemException;
419    
420            public void setLayouts(long groupId, boolean privateLayout,
421                    long parentLayoutId, long[] layoutIds)
422                    throws com.liferay.portal.kernel.exception.PortalException,
423                            com.liferay.portal.kernel.exception.SystemException;
424    
425            public com.liferay.portal.model.Layout updateFriendlyURL(long plid,
426                    java.lang.String friendlyURL)
427                    throws com.liferay.portal.kernel.exception.PortalException,
428                            com.liferay.portal.kernel.exception.SystemException;
429    
430            public com.liferay.portal.model.Layout updateLayout(long groupId,
431                    boolean privateLayout, long layoutId, long parentLayoutId,
432                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
433                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
434                    java.lang.String description, java.lang.String type, boolean hidden,
435                    java.lang.String friendlyURL, java.lang.Boolean iconImage,
436                    byte[] iconBytes,
437                    com.liferay.portal.service.ServiceContext serviceContext)
438                    throws com.liferay.portal.kernel.exception.PortalException,
439                            com.liferay.portal.kernel.exception.SystemException;
440    
441            public com.liferay.portal.model.Layout updateLayout(long groupId,
442                    boolean privateLayout, long layoutId, long parentLayoutId,
443                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
444                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
445                    java.lang.String description, java.lang.String type, boolean hidden,
446                    java.lang.String friendlyURL,
447                    com.liferay.portal.service.ServiceContext serviceContext)
448                    throws com.liferay.portal.kernel.exception.PortalException,
449                            com.liferay.portal.kernel.exception.SystemException;
450    
451            public com.liferay.portal.model.Layout updateLayout(long groupId,
452                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException;
455    
456            public com.liferay.portal.model.Layout updateLookAndFeel(long groupId,
457                    boolean privateLayout, long layoutId, java.lang.String themeId,
458                    java.lang.String colorSchemeId, java.lang.String css, boolean wapTheme)
459                    throws com.liferay.portal.kernel.exception.PortalException,
460                            com.liferay.portal.kernel.exception.SystemException;
461    
462            public com.liferay.portal.model.Layout updateName(
463                    com.liferay.portal.model.Layout layout, java.lang.String name,
464                    java.lang.String languageId)
465                    throws com.liferay.portal.kernel.exception.PortalException,
466                            com.liferay.portal.kernel.exception.SystemException;
467    
468            public com.liferay.portal.model.Layout updateName(long groupId,
469                    boolean privateLayout, long layoutId, java.lang.String name,
470                    java.lang.String languageId)
471                    throws com.liferay.portal.kernel.exception.PortalException,
472                            com.liferay.portal.kernel.exception.SystemException;
473    
474            public com.liferay.portal.model.Layout updateName(long plid,
475                    java.lang.String name, java.lang.String languageId)
476                    throws com.liferay.portal.kernel.exception.PortalException,
477                            com.liferay.portal.kernel.exception.SystemException;
478    
479            public com.liferay.portal.model.Layout updateParentLayoutId(long groupId,
480                    boolean privateLayout, long layoutId, long parentLayoutId)
481                    throws com.liferay.portal.kernel.exception.PortalException,
482                            com.liferay.portal.kernel.exception.SystemException;
483    
484            public com.liferay.portal.model.Layout updateParentLayoutId(long plid,
485                    long parentPlid)
486                    throws com.liferay.portal.kernel.exception.PortalException,
487                            com.liferay.portal.kernel.exception.SystemException;
488    
489            public com.liferay.portal.model.Layout updatePriority(
490                    com.liferay.portal.model.Layout layout, int priority)
491                    throws com.liferay.portal.kernel.exception.SystemException;
492    
493            public com.liferay.portal.model.Layout updatePriority(long groupId,
494                    boolean privateLayout, long layoutId, int priority)
495                    throws com.liferay.portal.kernel.exception.PortalException,
496                            com.liferay.portal.kernel.exception.SystemException;
497    
498            public com.liferay.portal.model.Layout updatePriority(long plid,
499                    int priority)
500                    throws com.liferay.portal.kernel.exception.PortalException,
501                            com.liferay.portal.kernel.exception.SystemException;
502    }