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