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.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the layout local service. This utility wraps {@link com.liferay.portal.service.impl.LayoutLocalServiceImpl} and is the primary access point for service operations in application layer code running on the local server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portal.service.impl.LayoutLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * 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.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see LayoutLocalService
032     * @see com.liferay.portal.service.base.LayoutLocalServiceBaseImpl
033     * @see com.liferay.portal.service.impl.LayoutLocalServiceImpl
034     * @generated
035     */
036    public class LayoutLocalServiceUtil {
037            /**
038            * Adds the layout to the database. Also notifies the appropriate model listeners.
039            *
040            * @param layout the layout to add
041            * @return the layout that was added
042            * @throws SystemException if a system exception occurred
043            */
044            public static com.liferay.portal.model.Layout addLayout(
045                    com.liferay.portal.model.Layout layout)
046                    throws com.liferay.portal.kernel.exception.SystemException {
047                    return getService().addLayout(layout);
048            }
049    
050            /**
051            * Creates a new layout with the primary key. Does not add the layout to the database.
052            *
053            * @param plid the primary key for the new layout
054            * @return the new layout
055            */
056            public static com.liferay.portal.model.Layout createLayout(long plid) {
057                    return getService().createLayout(plid);
058            }
059    
060            /**
061            * Deletes the layout with the primary key from the database. Also notifies the appropriate model listeners.
062            *
063            * @param plid the primary key of the layout to delete
064            * @throws PortalException if a layout with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public static void deleteLayout(long plid)
068                    throws com.liferay.portal.kernel.exception.PortalException,
069                            com.liferay.portal.kernel.exception.SystemException {
070                    getService().deleteLayout(plid);
071            }
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 static void deleteLayout(com.liferay.portal.model.Layout layout)
080                    throws com.liferay.portal.kernel.exception.SystemException {
081                    getService().deleteLayout(layout);
082            }
083    
084            /**
085            * Performs a dynamic query on the database and returns the matching rows.
086            *
087            * @param dynamicQuery the dynamic query to search with
088            * @return the matching rows
089            * @throws SystemException if a system exception occurred
090            */
091            @SuppressWarnings("rawtypes")
092            public static java.util.List dynamicQuery(
093                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
094                    throws com.liferay.portal.kernel.exception.SystemException {
095                    return getService().dynamicQuery(dynamicQuery);
096            }
097    
098            /**
099            * Performs a dynamic query on the database and returns a range of the matching rows.
100            *
101            * <p>
102            * 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.
103            * </p>
104            *
105            * @param dynamicQuery the dynamic query to search with
106            * @param start the lower bound of the range of model instances to return
107            * @param end the upper bound of the range of model instances to return (not inclusive)
108            * @return the range of matching rows
109            * @throws SystemException if a system exception occurred
110            */
111            @SuppressWarnings("rawtypes")
112            public static java.util.List dynamicQuery(
113                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
114                    int end) throws com.liferay.portal.kernel.exception.SystemException {
115                    return getService().dynamicQuery(dynamicQuery, start, end);
116            }
117    
118            /**
119            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
120            *
121            * <p>
122            * 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.
123            * </p>
124            *
125            * @param dynamicQuery the dynamic query to search with
126            * @param start the lower bound of the range of model instances to return
127            * @param end the upper bound of the range of model instances to return (not inclusive)
128            * @param orderByComparator the comparator to order the results by
129            * @return the ordered range of matching rows
130            * @throws SystemException if a system exception occurred
131            */
132            @SuppressWarnings("rawtypes")
133            public static java.util.List dynamicQuery(
134                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
135                    int end,
136                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
137                    throws com.liferay.portal.kernel.exception.SystemException {
138                    return getService()
139                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
140            }
141    
142            /**
143            * Counts the number of rows that match the dynamic query.
144            *
145            * @param dynamicQuery the dynamic query to search with
146            * @return the number of rows that match the dynamic query
147            * @throws SystemException if a system exception occurred
148            */
149            public static long dynamicQueryCount(
150                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
151                    throws com.liferay.portal.kernel.exception.SystemException {
152                    return getService().dynamicQueryCount(dynamicQuery);
153            }
154    
155            /**
156            * Gets the layout with the primary key.
157            *
158            * @param plid the primary key of the layout to get
159            * @return the layout
160            * @throws PortalException if a layout with the primary key could not be found
161            * @throws SystemException if a system exception occurred
162            */
163            public static com.liferay.portal.model.Layout getLayout(long plid)
164                    throws com.liferay.portal.kernel.exception.PortalException,
165                            com.liferay.portal.kernel.exception.SystemException {
166                    return getService().getLayout(plid);
167            }
168    
169            /**
170            * Gets the layout with the UUID and group id.
171            *
172            * @param uuid the UUID of layout to get
173            * @param groupId the group id of the layout to get
174            * @return the layout
175            * @throws PortalException if a layout with the UUID and group id could not be found
176            * @throws SystemException if a system exception occurred
177            */
178            public static com.liferay.portal.model.Layout getLayoutByUuidAndGroupId(
179                    java.lang.String uuid, long groupId)
180                    throws com.liferay.portal.kernel.exception.PortalException,
181                            com.liferay.portal.kernel.exception.SystemException {
182                    return getService().getLayoutByUuidAndGroupId(uuid, groupId);
183            }
184    
185            /**
186            * Gets a range of all the layouts.
187            *
188            * <p>
189            * 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.
190            * </p>
191            *
192            * @param start the lower bound of the range of layouts to return
193            * @param end the upper bound of the range of layouts to return (not inclusive)
194            * @return the range of layouts
195            * @throws SystemException if a system exception occurred
196            */
197            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
198                    int start, int end)
199                    throws com.liferay.portal.kernel.exception.SystemException {
200                    return getService().getLayouts(start, end);
201            }
202    
203            /**
204            * Gets the number of layouts.
205            *
206            * @return the number of layouts
207            * @throws SystemException if a system exception occurred
208            */
209            public static int getLayoutsCount()
210                    throws com.liferay.portal.kernel.exception.SystemException {
211                    return getService().getLayoutsCount();
212            }
213    
214            /**
215            * Updates the layout in the database. Also notifies the appropriate model listeners.
216            *
217            * @param layout the layout to update
218            * @return the layout that was updated
219            * @throws SystemException if a system exception occurred
220            */
221            public static com.liferay.portal.model.Layout updateLayout(
222                    com.liferay.portal.model.Layout layout)
223                    throws com.liferay.portal.kernel.exception.SystemException {
224                    return getService().updateLayout(layout);
225            }
226    
227            /**
228            * Updates the layout in the database. Also notifies the appropriate model listeners.
229            *
230            * @param layout the layout to update
231            * @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.
232            * @return the layout that was updated
233            * @throws SystemException if a system exception occurred
234            */
235            public static com.liferay.portal.model.Layout updateLayout(
236                    com.liferay.portal.model.Layout layout, boolean merge)
237                    throws com.liferay.portal.kernel.exception.SystemException {
238                    return getService().updateLayout(layout, merge);
239            }
240    
241            public static com.liferay.portal.model.Layout addLayout(long userId,
242                    long groupId, boolean privateLayout, long parentLayoutId,
243                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
244                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
245                    java.lang.String description, java.lang.String type, boolean hidden,
246                    java.lang.String friendlyURL, 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                    return getService()
251                                       .addLayout(userId, groupId, privateLayout, parentLayoutId,
252                            localeNamesMap, localeTitlesMap, description, type, hidden,
253                            friendlyURL, dlFolderId, serviceContext);
254            }
255    
256            public static com.liferay.portal.model.Layout addLayout(long userId,
257                    long groupId, boolean privateLayout, long parentLayoutId,
258                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
259                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
260                    java.lang.String description, java.lang.String type, boolean hidden,
261                    java.lang.String friendlyURL,
262                    com.liferay.portal.service.ServiceContext serviceContext)
263                    throws com.liferay.portal.kernel.exception.PortalException,
264                            com.liferay.portal.kernel.exception.SystemException {
265                    return getService()
266                                       .addLayout(userId, groupId, privateLayout, parentLayoutId,
267                            localeNamesMap, localeTitlesMap, description, type, hidden,
268                            friendlyURL, serviceContext);
269            }
270    
271            public static com.liferay.portal.model.Layout addLayout(long userId,
272                    long groupId, boolean privateLayout, long parentLayoutId,
273                    java.lang.String name, java.lang.String title,
274                    java.lang.String description, java.lang.String type, boolean hidden,
275                    java.lang.String friendlyURL, long dlFolderId,
276                    com.liferay.portal.service.ServiceContext serviceContext)
277                    throws com.liferay.portal.kernel.exception.PortalException,
278                            com.liferay.portal.kernel.exception.SystemException {
279                    return getService()
280                                       .addLayout(userId, groupId, privateLayout, parentLayoutId,
281                            name, title, description, type, hidden, friendlyURL, dlFolderId,
282                            serviceContext);
283            }
284    
285            public static com.liferay.portal.model.Layout addLayout(long userId,
286                    long groupId, boolean privateLayout, long parentLayoutId,
287                    java.lang.String name, java.lang.String title,
288                    java.lang.String description, java.lang.String type, boolean hidden,
289                    java.lang.String friendlyURL,
290                    com.liferay.portal.service.ServiceContext serviceContext)
291                    throws com.liferay.portal.kernel.exception.PortalException,
292                            com.liferay.portal.kernel.exception.SystemException {
293                    return getService()
294                                       .addLayout(userId, groupId, privateLayout, parentLayoutId,
295                            name, title, description, type, hidden, friendlyURL, serviceContext);
296            }
297    
298            public static void deleteLayout(com.liferay.portal.model.Layout layout,
299                    boolean updateLayoutSet)
300                    throws com.liferay.portal.kernel.exception.PortalException,
301                            com.liferay.portal.kernel.exception.SystemException {
302                    getService().deleteLayout(layout, updateLayoutSet);
303            }
304    
305            public static void deleteLayout(long groupId, boolean privateLayout,
306                    long layoutId)
307                    throws com.liferay.portal.kernel.exception.PortalException,
308                            com.liferay.portal.kernel.exception.SystemException {
309                    getService().deleteLayout(groupId, privateLayout, layoutId);
310            }
311    
312            public static void deleteLayouts(long groupId, boolean privateLayout)
313                    throws com.liferay.portal.kernel.exception.PortalException,
314                            com.liferay.portal.kernel.exception.SystemException {
315                    getService().deleteLayouts(groupId, privateLayout);
316            }
317    
318            public static byte[] exportLayouts(long groupId, boolean privateLayout,
319                    long[] layoutIds,
320                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
321                    java.util.Date startDate, java.util.Date endDate)
322                    throws com.liferay.portal.kernel.exception.PortalException,
323                            com.liferay.portal.kernel.exception.SystemException {
324                    return getService()
325                                       .exportLayouts(groupId, privateLayout, layoutIds,
326                            parameterMap, startDate, endDate);
327            }
328    
329            public static byte[] exportLayouts(long groupId, boolean privateLayout,
330                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
331                    java.util.Date startDate, java.util.Date endDate)
332                    throws com.liferay.portal.kernel.exception.PortalException,
333                            com.liferay.portal.kernel.exception.SystemException {
334                    return getService()
335                                       .exportLayouts(groupId, privateLayout, parameterMap,
336                            startDate, endDate);
337            }
338    
339            public static java.io.File exportLayoutsAsFile(long groupId,
340                    boolean privateLayout, long[] layoutIds,
341                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
342                    java.util.Date startDate, java.util.Date endDate)
343                    throws com.liferay.portal.kernel.exception.PortalException,
344                            com.liferay.portal.kernel.exception.SystemException {
345                    return getService()
346                                       .exportLayoutsAsFile(groupId, privateLayout, layoutIds,
347                            parameterMap, startDate, endDate);
348            }
349    
350            public static byte[] exportPortletInfo(long plid, long groupId,
351                    java.lang.String portletId,
352                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
353                    java.util.Date startDate, java.util.Date endDate)
354                    throws com.liferay.portal.kernel.exception.PortalException,
355                            com.liferay.portal.kernel.exception.SystemException {
356                    return getService()
357                                       .exportPortletInfo(plid, groupId, portletId, parameterMap,
358                            startDate, endDate);
359            }
360    
361            public static java.io.File exportPortletInfoAsFile(long plid, long groupId,
362                    java.lang.String portletId,
363                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
364                    java.util.Date startDate, java.util.Date endDate)
365                    throws com.liferay.portal.kernel.exception.PortalException,
366                            com.liferay.portal.kernel.exception.SystemException {
367                    return getService()
368                                       .exportPortletInfoAsFile(plid, groupId, portletId,
369                            parameterMap, startDate, endDate);
370            }
371    
372            public static long getDefaultPlid(long groupId)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return getService().getDefaultPlid(groupId);
375            }
376    
377            public static long getDefaultPlid(long groupId, boolean privateLayout)
378                    throws com.liferay.portal.kernel.exception.SystemException {
379                    return getService().getDefaultPlid(groupId, privateLayout);
380            }
381    
382            public static long getDefaultPlid(long groupId, boolean privateLayout,
383                    java.lang.String portletId)
384                    throws com.liferay.portal.kernel.exception.PortalException,
385                            com.liferay.portal.kernel.exception.SystemException {
386                    return getService().getDefaultPlid(groupId, privateLayout, portletId);
387            }
388    
389            public static com.liferay.portal.model.Layout getDLFolderLayout(
390                    long dlFolderId)
391                    throws com.liferay.portal.kernel.exception.PortalException,
392                            com.liferay.portal.kernel.exception.SystemException {
393                    return getService().getDLFolderLayout(dlFolderId);
394            }
395    
396            public static com.liferay.portal.model.Layout getFriendlyURLLayout(
397                    long groupId, boolean privateLayout, java.lang.String friendlyURL)
398                    throws com.liferay.portal.kernel.exception.PortalException,
399                            com.liferay.portal.kernel.exception.SystemException {
400                    return getService()
401                                       .getFriendlyURLLayout(groupId, privateLayout, friendlyURL);
402            }
403    
404            public static com.liferay.portal.model.Layout getLayout(long groupId,
405                    boolean privateLayout, long layoutId)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException {
408                    return getService().getLayout(groupId, privateLayout, layoutId);
409            }
410    
411            public static com.liferay.portal.model.Layout getLayoutByIconImageId(
412                    long iconImageId)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException {
415                    return getService().getLayoutByIconImageId(iconImageId);
416            }
417    
418            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
419                    long groupId, boolean privateLayout)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    return getService().getLayouts(groupId, privateLayout);
422            }
423    
424            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
425                    long groupId, boolean privateLayout, long parentLayoutId)
426                    throws com.liferay.portal.kernel.exception.SystemException {
427                    return getService().getLayouts(groupId, privateLayout, parentLayoutId);
428            }
429    
430            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
431                    long groupId, boolean privateLayout, long parentLayoutId, int start,
432                    int end) throws com.liferay.portal.kernel.exception.SystemException {
433                    return getService()
434                                       .getLayouts(groupId, privateLayout, parentLayoutId, start,
435                            end);
436            }
437    
438            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
439                    long groupId, boolean privateLayout, long[] layoutIds)
440                    throws com.liferay.portal.kernel.exception.PortalException,
441                            com.liferay.portal.kernel.exception.SystemException {
442                    return getService().getLayouts(groupId, privateLayout, layoutIds);
443            }
444    
445            public static java.util.List<com.liferay.portal.model.Layout> getLayouts(
446                    long groupId, boolean privateLayout, java.lang.String type)
447                    throws com.liferay.portal.kernel.exception.SystemException {
448                    return getService().getLayouts(groupId, privateLayout, type);
449            }
450    
451            public static com.liferay.portal.model.LayoutReference[] getLayouts(
452                    long companyId, java.lang.String portletId,
453                    java.lang.String preferencesKey, java.lang.String preferencesValue)
454                    throws com.liferay.portal.kernel.exception.SystemException {
455                    return getService()
456                                       .getLayouts(companyId, portletId, preferencesKey,
457                            preferencesValue);
458            }
459    
460            public static long getNextLayoutId(long groupId, boolean privateLayout)
461                    throws com.liferay.portal.kernel.exception.SystemException {
462                    return getService().getNextLayoutId(groupId, privateLayout);
463            }
464    
465            public static java.util.List<com.liferay.portal.model.Layout> getNullFriendlyURLLayouts()
466                    throws com.liferay.portal.kernel.exception.SystemException {
467                    return getService().getNullFriendlyURLLayouts();
468            }
469    
470            public static boolean hasLayouts(long groupId, boolean privateLayout,
471                    long parentLayoutId)
472                    throws com.liferay.portal.kernel.exception.SystemException {
473                    return getService().hasLayouts(groupId, privateLayout, parentLayoutId);
474            }
475    
476            public static void importLayouts(long userId, long groupId,
477                    boolean privateLayout,
478                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
479                    byte[] bytes)
480                    throws com.liferay.portal.kernel.exception.PortalException,
481                            com.liferay.portal.kernel.exception.SystemException {
482                    getService()
483                            .importLayouts(userId, groupId, privateLayout, parameterMap, bytes);
484            }
485    
486            public static void importLayouts(long userId, long groupId,
487                    boolean privateLayout,
488                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
489                    java.io.File file)
490                    throws com.liferay.portal.kernel.exception.PortalException,
491                            com.liferay.portal.kernel.exception.SystemException {
492                    getService()
493                            .importLayouts(userId, groupId, privateLayout, parameterMap, file);
494            }
495    
496            public static void importLayouts(long userId, long groupId,
497                    boolean privateLayout,
498                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
499                    java.io.InputStream is)
500                    throws com.liferay.portal.kernel.exception.PortalException,
501                            com.liferay.portal.kernel.exception.SystemException {
502                    getService()
503                            .importLayouts(userId, groupId, privateLayout, parameterMap, is);
504            }
505    
506            public static void importPortletInfo(long userId, long plid, long groupId,
507                    java.lang.String portletId,
508                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
509                    java.io.File file)
510                    throws com.liferay.portal.kernel.exception.PortalException,
511                            com.liferay.portal.kernel.exception.SystemException {
512                    getService()
513                            .importPortletInfo(userId, plid, groupId, portletId, parameterMap,
514                            file);
515            }
516    
517            public static void importPortletInfo(long userId, long plid, long groupId,
518                    java.lang.String portletId,
519                    java.util.Map<java.lang.String, java.lang.String[]> parameterMap,
520                    java.io.InputStream is)
521                    throws com.liferay.portal.kernel.exception.PortalException,
522                            com.liferay.portal.kernel.exception.SystemException {
523                    getService()
524                            .importPortletInfo(userId, plid, groupId, portletId, parameterMap,
525                            is);
526            }
527    
528            public static void setLayouts(long groupId, boolean privateLayout,
529                    long parentLayoutId, long[] layoutIds)
530                    throws com.liferay.portal.kernel.exception.PortalException,
531                            com.liferay.portal.kernel.exception.SystemException {
532                    getService()
533                            .setLayouts(groupId, privateLayout, parentLayoutId, layoutIds);
534            }
535    
536            public static com.liferay.portal.model.Layout updateFriendlyURL(long plid,
537                    java.lang.String friendlyURL)
538                    throws com.liferay.portal.kernel.exception.PortalException,
539                            com.liferay.portal.kernel.exception.SystemException {
540                    return getService().updateFriendlyURL(plid, friendlyURL);
541            }
542    
543            public static com.liferay.portal.model.Layout updateLayout(long groupId,
544                    boolean privateLayout, long layoutId, long parentLayoutId,
545                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
546                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
547                    java.lang.String description, java.lang.String type, boolean hidden,
548                    java.lang.String friendlyURL, java.lang.Boolean iconImage,
549                    byte[] iconBytes,
550                    com.liferay.portal.service.ServiceContext serviceContext)
551                    throws com.liferay.portal.kernel.exception.PortalException,
552                            com.liferay.portal.kernel.exception.SystemException {
553                    return getService()
554                                       .updateLayout(groupId, privateLayout, layoutId,
555                            parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
556                            hidden, friendlyURL, iconImage, iconBytes, serviceContext);
557            }
558    
559            public static com.liferay.portal.model.Layout updateLayout(long groupId,
560                    boolean privateLayout, long layoutId, long parentLayoutId,
561                    java.util.Map<java.util.Locale, java.lang.String> localeNamesMap,
562                    java.util.Map<java.util.Locale, java.lang.String> localeTitlesMap,
563                    java.lang.String description, java.lang.String type, boolean hidden,
564                    java.lang.String friendlyURL,
565                    com.liferay.portal.service.ServiceContext serviceContext)
566                    throws com.liferay.portal.kernel.exception.PortalException,
567                            com.liferay.portal.kernel.exception.SystemException {
568                    return getService()
569                                       .updateLayout(groupId, privateLayout, layoutId,
570                            parentLayoutId, localeNamesMap, localeTitlesMap, description, type,
571                            hidden, friendlyURL, serviceContext);
572            }
573    
574            public static com.liferay.portal.model.Layout updateLayout(long groupId,
575                    boolean privateLayout, long layoutId, java.lang.String typeSettings)
576                    throws com.liferay.portal.kernel.exception.PortalException,
577                            com.liferay.portal.kernel.exception.SystemException {
578                    return getService()
579                                       .updateLayout(groupId, privateLayout, layoutId, typeSettings);
580            }
581    
582            public static com.liferay.portal.model.Layout updateLookAndFeel(
583                    long groupId, boolean privateLayout, long layoutId,
584                    java.lang.String themeId, java.lang.String colorSchemeId,
585                    java.lang.String css, boolean wapTheme)
586                    throws com.liferay.portal.kernel.exception.PortalException,
587                            com.liferay.portal.kernel.exception.SystemException {
588                    return getService()
589                                       .updateLookAndFeel(groupId, privateLayout, layoutId,
590                            themeId, colorSchemeId, css, wapTheme);
591            }
592    
593            public static com.liferay.portal.model.Layout updateName(
594                    com.liferay.portal.model.Layout layout, java.lang.String name,
595                    java.lang.String languageId)
596                    throws com.liferay.portal.kernel.exception.PortalException,
597                            com.liferay.portal.kernel.exception.SystemException {
598                    return getService().updateName(layout, name, languageId);
599            }
600    
601            public static com.liferay.portal.model.Layout updateName(long groupId,
602                    boolean privateLayout, long layoutId, java.lang.String name,
603                    java.lang.String languageId)
604                    throws com.liferay.portal.kernel.exception.PortalException,
605                            com.liferay.portal.kernel.exception.SystemException {
606                    return getService()
607                                       .updateName(groupId, privateLayout, layoutId, name,
608                            languageId);
609            }
610    
611            public static com.liferay.portal.model.Layout updateName(long plid,
612                    java.lang.String name, java.lang.String languageId)
613                    throws com.liferay.portal.kernel.exception.PortalException,
614                            com.liferay.portal.kernel.exception.SystemException {
615                    return getService().updateName(plid, name, languageId);
616            }
617    
618            public static com.liferay.portal.model.Layout updateParentLayoutId(
619                    long groupId, boolean privateLayout, long layoutId, long parentLayoutId)
620                    throws com.liferay.portal.kernel.exception.PortalException,
621                            com.liferay.portal.kernel.exception.SystemException {
622                    return getService()
623                                       .updateParentLayoutId(groupId, privateLayout, layoutId,
624                            parentLayoutId);
625            }
626    
627            public static com.liferay.portal.model.Layout updateParentLayoutId(
628                    long plid, long parentPlid)
629                    throws com.liferay.portal.kernel.exception.PortalException,
630                            com.liferay.portal.kernel.exception.SystemException {
631                    return getService().updateParentLayoutId(plid, parentPlid);
632            }
633    
634            public static com.liferay.portal.model.Layout updatePriority(
635                    com.liferay.portal.model.Layout layout, int priority)
636                    throws com.liferay.portal.kernel.exception.SystemException {
637                    return getService().updatePriority(layout, priority);
638            }
639    
640            public static com.liferay.portal.model.Layout updatePriority(long groupId,
641                    boolean privateLayout, long layoutId, int priority)
642                    throws com.liferay.portal.kernel.exception.PortalException,
643                            com.liferay.portal.kernel.exception.SystemException {
644                    return getService()
645                                       .updatePriority(groupId, privateLayout, layoutId, priority);
646            }
647    
648            public static com.liferay.portal.model.Layout updatePriority(long plid,
649                    int priority)
650                    throws com.liferay.portal.kernel.exception.PortalException,
651                            com.liferay.portal.kernel.exception.SystemException {
652                    return getService().updatePriority(plid, priority);
653            }
654    
655            public static LayoutLocalService getService() {
656                    if (_service == null) {
657                            _service = (LayoutLocalService)PortalBeanLocatorUtil.locate(LayoutLocalService.class.getName());
658                    }
659    
660                    return _service;
661            }
662    
663            public void setService(LayoutLocalService service) {
664                    _service = service;
665            }
666    
667            private static LayoutLocalService _service;
668    }