001    /**
002     * Copyright (c) 2000-present 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.base;
016    
017    import aQute.bnd.annotation.ProviderType;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.db.DB;
022    import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.dao.orm.ActionableDynamicQuery;
026    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
027    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
028    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
029    import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
030    import com.liferay.portal.kernel.dao.orm.Projection;
031    import com.liferay.portal.kernel.exception.PortalException;
032    import com.liferay.portal.kernel.exception.SystemException;
033    import com.liferay.portal.kernel.search.Indexable;
034    import com.liferay.portal.kernel.search.IndexableType;
035    import com.liferay.portal.kernel.util.OrderByComparator;
036    import com.liferay.portal.model.Layout;
037    import com.liferay.portal.model.PersistedModel;
038    import com.liferay.portal.service.BaseLocalServiceImpl;
039    import com.liferay.portal.service.LayoutLocalService;
040    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
041    import com.liferay.portal.service.persistence.BackgroundTaskPersistence;
042    import com.liferay.portal.service.persistence.ClassNamePersistence;
043    import com.liferay.portal.service.persistence.GroupFinder;
044    import com.liferay.portal.service.persistence.GroupPersistence;
045    import com.liferay.portal.service.persistence.ImagePersistence;
046    import com.liferay.portal.service.persistence.LayoutFinder;
047    import com.liferay.portal.service.persistence.LayoutFriendlyURLPersistence;
048    import com.liferay.portal.service.persistence.LayoutPersistence;
049    import com.liferay.portal.service.persistence.LayoutPrototypePersistence;
050    import com.liferay.portal.service.persistence.LayoutSetPersistence;
051    import com.liferay.portal.service.persistence.LayoutSetPrototypePersistence;
052    import com.liferay.portal.service.persistence.PluginSettingPersistence;
053    import com.liferay.portal.service.persistence.PortletPreferencesFinder;
054    import com.liferay.portal.service.persistence.PortletPreferencesPersistence;
055    import com.liferay.portal.service.persistence.ResourcePermissionFinder;
056    import com.liferay.portal.service.persistence.ResourcePermissionPersistence;
057    import com.liferay.portal.service.persistence.SubscriptionPersistence;
058    import com.liferay.portal.service.persistence.UserFinder;
059    import com.liferay.portal.service.persistence.UserPersistence;
060    import com.liferay.portal.util.PortalUtil;
061    
062    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
063    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
064    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
065    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
066    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
067    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
068    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
069    import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
070    import com.liferay.portlet.exportimport.lar.ManifestSummary;
071    import com.liferay.portlet.exportimport.lar.PortletDataContext;
072    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
073    import com.liferay.portlet.exportimport.lar.StagedModelType;
074    import com.liferay.portlet.exportimport.service.persistence.ExportImportConfigurationPersistence;
075    import com.liferay.portlet.ratings.service.persistence.RatingsStatsFinder;
076    import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
077    
078    import java.io.Serializable;
079    
080    import java.util.List;
081    
082    import javax.sql.DataSource;
083    
084    /**
085     * Provides the base implementation for the layout local service.
086     *
087     * <p>
088     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portal.service.impl.LayoutLocalServiceImpl}.
089     * </p>
090     *
091     * @author Brian Wing Shun Chan
092     * @see com.liferay.portal.service.impl.LayoutLocalServiceImpl
093     * @see com.liferay.portal.service.LayoutLocalServiceUtil
094     * @generated
095     */
096    @ProviderType
097    public abstract class LayoutLocalServiceBaseImpl extends BaseLocalServiceImpl
098            implements LayoutLocalService, IdentifiableBean {
099            /*
100             * NOTE FOR DEVELOPERS:
101             *
102             * Never modify or reference this class directly. Always use {@link com.liferay.portal.service.LayoutLocalServiceUtil} to access the layout local service.
103             */
104    
105            /**
106             * Adds the layout to the database. Also notifies the appropriate model listeners.
107             *
108             * @param layout the layout
109             * @return the layout that was added
110             */
111            @Indexable(type = IndexableType.REINDEX)
112            @Override
113            public Layout addLayout(Layout layout) {
114                    layout.setNew(true);
115    
116                    return layoutPersistence.update(layout);
117            }
118    
119            /**
120             * Creates a new layout with the primary key. Does not add the layout to the database.
121             *
122             * @param plid the primary key for the new layout
123             * @return the new layout
124             */
125            @Override
126            public Layout createLayout(long plid) {
127                    return layoutPersistence.create(plid);
128            }
129    
130            /**
131             * Deletes the layout with the primary key from the database. Also notifies the appropriate model listeners.
132             *
133             * @param plid the primary key of the layout
134             * @return the layout that was removed
135             * @throws PortalException if a layout with the primary key could not be found
136             */
137            @Indexable(type = IndexableType.DELETE)
138            @Override
139            public Layout deleteLayout(long plid) throws PortalException {
140                    return layoutPersistence.remove(plid);
141            }
142    
143            /**
144             * Deletes the layout from the database. Also notifies the appropriate model listeners.
145             *
146             * @param layout the layout
147             * @return the layout that was removed
148             */
149            @Indexable(type = IndexableType.DELETE)
150            @Override
151            public Layout deleteLayout(Layout layout) {
152                    return layoutPersistence.remove(layout);
153            }
154    
155            @Override
156            public DynamicQuery dynamicQuery() {
157                    Class<?> clazz = getClass();
158    
159                    return DynamicQueryFactoryUtil.forClass(Layout.class,
160                            clazz.getClassLoader());
161            }
162    
163            /**
164             * Performs a dynamic query on the database and returns the matching rows.
165             *
166             * @param dynamicQuery the dynamic query
167             * @return the matching rows
168             */
169            @Override
170            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
171                    return layoutPersistence.findWithDynamicQuery(dynamicQuery);
172            }
173    
174            /**
175             * Performs a dynamic query on the database and returns a range of the matching rows.
176             *
177             * <p>
178             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
179             * </p>
180             *
181             * @param dynamicQuery the dynamic query
182             * @param start the lower bound of the range of model instances
183             * @param end the upper bound of the range of model instances (not inclusive)
184             * @return the range of matching rows
185             */
186            @Override
187            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
188                    int end) {
189                    return layoutPersistence.findWithDynamicQuery(dynamicQuery, start, end);
190            }
191    
192            /**
193             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
194             *
195             * <p>
196             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
197             * </p>
198             *
199             * @param dynamicQuery the dynamic query
200             * @param start the lower bound of the range of model instances
201             * @param end the upper bound of the range of model instances (not inclusive)
202             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
203             * @return the ordered range of matching rows
204             */
205            @Override
206            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
207                    int end, OrderByComparator<T> orderByComparator) {
208                    return layoutPersistence.findWithDynamicQuery(dynamicQuery, start, end,
209                            orderByComparator);
210            }
211    
212            /**
213             * Returns the number of rows matching the dynamic query.
214             *
215             * @param dynamicQuery the dynamic query
216             * @return the number of rows matching the dynamic query
217             */
218            @Override
219            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
220                    return layoutPersistence.countWithDynamicQuery(dynamicQuery);
221            }
222    
223            /**
224             * Returns the number of rows matching the dynamic query.
225             *
226             * @param dynamicQuery the dynamic query
227             * @param projection the projection to apply to the query
228             * @return the number of rows matching the dynamic query
229             */
230            @Override
231            public long dynamicQueryCount(DynamicQuery dynamicQuery,
232                    Projection projection) {
233                    return layoutPersistence.countWithDynamicQuery(dynamicQuery, projection);
234            }
235    
236            @Override
237            public Layout fetchLayout(long plid) {
238                    return layoutPersistence.fetchByPrimaryKey(plid);
239            }
240    
241            /**
242             * Returns the layout matching the UUID, group, and privacy.
243             *
244             * @param uuid the layout's UUID
245             * @param groupId the primary key of the group
246             * @param privateLayout whether the layout is private to the group
247             * @return the matching layout, or <code>null</code> if a matching layout could not be found
248             */
249            @Override
250            public Layout fetchLayoutByUuidAndGroupId(String uuid, long groupId,
251                    boolean privateLayout) {
252                    return layoutPersistence.fetchByUUID_G_P(uuid, groupId, privateLayout);
253            }
254    
255            /**
256             * Returns the layout with the primary key.
257             *
258             * @param plid the primary key of the layout
259             * @return the layout
260             * @throws PortalException if a layout with the primary key could not be found
261             */
262            @Override
263            public Layout getLayout(long plid) throws PortalException {
264                    return layoutPersistence.findByPrimaryKey(plid);
265            }
266    
267            @Override
268            public ActionableDynamicQuery getActionableDynamicQuery() {
269                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
270    
271                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.LayoutLocalServiceUtil.getService());
272                    actionableDynamicQuery.setClass(Layout.class);
273                    actionableDynamicQuery.setClassLoader(getClassLoader());
274    
275                    actionableDynamicQuery.setPrimaryKeyPropertyName("plid");
276    
277                    return actionableDynamicQuery;
278            }
279    
280            protected void initActionableDynamicQuery(
281                    ActionableDynamicQuery actionableDynamicQuery) {
282                    actionableDynamicQuery.setBaseLocalService(com.liferay.portal.service.LayoutLocalServiceUtil.getService());
283                    actionableDynamicQuery.setClass(Layout.class);
284                    actionableDynamicQuery.setClassLoader(getClassLoader());
285    
286                    actionableDynamicQuery.setPrimaryKeyPropertyName("plid");
287            }
288    
289            @Override
290            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
291                    final PortletDataContext portletDataContext) {
292                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
293                                    @Override
294                                    public long performCount() throws PortalException {
295                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
296    
297                                            StagedModelType stagedModelType = getStagedModelType();
298    
299                                            long modelAdditionCount = super.performCount();
300    
301                                            manifestSummary.addModelAdditionCount(stagedModelType.toString(),
302                                                    modelAdditionCount);
303    
304                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
305                                                            stagedModelType);
306    
307                                            manifestSummary.addModelDeletionCount(stagedModelType.toString(),
308                                                    modelDeletionCount);
309    
310                                            return modelAdditionCount;
311                                    }
312                            };
313    
314                    initActionableDynamicQuery(exportActionableDynamicQuery);
315    
316                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
317                                    @Override
318                                    public void addCriteria(DynamicQuery dynamicQuery) {
319                                            portletDataContext.addDateRangeCriteria(dynamicQuery,
320                                                    "modifiedDate");
321                                    }
322                            });
323    
324                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
325    
326                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
327    
328                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
329                                    @Override
330                                    public void performAction(Object object)
331                                            throws PortalException {
332                                            Layout stagedModel = (Layout)object;
333    
334                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
335                                                    stagedModel);
336                                    }
337                            });
338                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
339                                    PortalUtil.getClassNameId(Layout.class.getName())));
340    
341                    return exportActionableDynamicQuery;
342            }
343    
344            /**
345             * @throws PortalException
346             */
347            @Override
348            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
349                    throws PortalException {
350                    return layoutLocalService.deleteLayout((Layout)persistedModel);
351            }
352    
353            @Override
354            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
355                    throws PortalException {
356                    return layoutPersistence.findByPrimaryKey(primaryKeyObj);
357            }
358    
359            /**
360             * Returns all the layouts matching the UUID and company.
361             *
362             * @param uuid the UUID of the layouts
363             * @param companyId the primary key of the company
364             * @return the matching layouts, or an empty list if no matches were found
365             */
366            @Override
367            public List<Layout> getLayoutsByUuidAndCompanyId(String uuid, long companyId) {
368                    return layoutPersistence.findByUuid_C(uuid, companyId);
369            }
370    
371            /**
372             * Returns a range of layouts matching the UUID and company.
373             *
374             * @param uuid the UUID of the layouts
375             * @param companyId the primary key of the company
376             * @param start the lower bound of the range of layouts
377             * @param end the upper bound of the range of layouts (not inclusive)
378             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
379             * @return the range of matching layouts, or an empty list if no matches were found
380             */
381            @Override
382            public List<Layout> getLayoutsByUuidAndCompanyId(String uuid,
383                    long companyId, int start, int end,
384                    OrderByComparator<Layout> orderByComparator) {
385                    return layoutPersistence.findByUuid_C(uuid, companyId, start, end,
386                            orderByComparator);
387            }
388    
389            /**
390             * Returns the layout matching the UUID, group, and privacy.
391             *
392             * @param uuid the layout's UUID
393             * @param groupId the primary key of the group
394             * @param privateLayout whether the layout is private to the group
395             * @return the matching layout
396             * @throws PortalException if a matching layout could not be found
397             */
398            @Override
399            public Layout getLayoutByUuidAndGroupId(String uuid, long groupId,
400                    boolean privateLayout) throws PortalException {
401                    return layoutPersistence.findByUUID_G_P(uuid, groupId, privateLayout);
402            }
403    
404            /**
405             * Returns a range of all the layouts.
406             *
407             * <p>
408             * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portal.model.impl.LayoutModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
409             * </p>
410             *
411             * @param start the lower bound of the range of layouts
412             * @param end the upper bound of the range of layouts (not inclusive)
413             * @return the range of layouts
414             */
415            @Override
416            public List<Layout> getLayouts(int start, int end) {
417                    return layoutPersistence.findAll(start, end);
418            }
419    
420            /**
421             * Returns the number of layouts.
422             *
423             * @return the number of layouts
424             */
425            @Override
426            public int getLayoutsCount() {
427                    return layoutPersistence.countAll();
428            }
429    
430            /**
431             * Updates the layout in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
432             *
433             * @param layout the layout
434             * @return the layout that was updated
435             */
436            @Indexable(type = IndexableType.REINDEX)
437            @Override
438            public Layout updateLayout(Layout layout) {
439                    return layoutPersistence.update(layout);
440            }
441    
442            /**
443             * Returns the layout local service.
444             *
445             * @return the layout local service
446             */
447            public LayoutLocalService getLayoutLocalService() {
448                    return layoutLocalService;
449            }
450    
451            /**
452             * Sets the layout local service.
453             *
454             * @param layoutLocalService the layout local service
455             */
456            public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
457                    this.layoutLocalService = layoutLocalService;
458            }
459    
460            /**
461             * Returns the layout remote service.
462             *
463             * @return the layout remote service
464             */
465            public com.liferay.portal.service.LayoutService getLayoutService() {
466                    return layoutService;
467            }
468    
469            /**
470             * Sets the layout remote service.
471             *
472             * @param layoutService the layout remote service
473             */
474            public void setLayoutService(
475                    com.liferay.portal.service.LayoutService layoutService) {
476                    this.layoutService = layoutService;
477            }
478    
479            /**
480             * Returns the layout persistence.
481             *
482             * @return the layout persistence
483             */
484            public LayoutPersistence getLayoutPersistence() {
485                    return layoutPersistence;
486            }
487    
488            /**
489             * Sets the layout persistence.
490             *
491             * @param layoutPersistence the layout persistence
492             */
493            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
494                    this.layoutPersistence = layoutPersistence;
495            }
496    
497            /**
498             * Returns the layout finder.
499             *
500             * @return the layout finder
501             */
502            public LayoutFinder getLayoutFinder() {
503                    return layoutFinder;
504            }
505    
506            /**
507             * Sets the layout finder.
508             *
509             * @param layoutFinder the layout finder
510             */
511            public void setLayoutFinder(LayoutFinder layoutFinder) {
512                    this.layoutFinder = layoutFinder;
513            }
514    
515            /**
516             * Returns the counter local service.
517             *
518             * @return the counter local service
519             */
520            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
521                    return counterLocalService;
522            }
523    
524            /**
525             * Sets the counter local service.
526             *
527             * @param counterLocalService the counter local service
528             */
529            public void setCounterLocalService(
530                    com.liferay.counter.service.CounterLocalService counterLocalService) {
531                    this.counterLocalService = counterLocalService;
532            }
533    
534            /**
535             * Returns the background task local service.
536             *
537             * @return the background task local service
538             */
539            public com.liferay.portal.service.BackgroundTaskLocalService getBackgroundTaskLocalService() {
540                    return backgroundTaskLocalService;
541            }
542    
543            /**
544             * Sets the background task local service.
545             *
546             * @param backgroundTaskLocalService the background task local service
547             */
548            public void setBackgroundTaskLocalService(
549                    com.liferay.portal.service.BackgroundTaskLocalService backgroundTaskLocalService) {
550                    this.backgroundTaskLocalService = backgroundTaskLocalService;
551            }
552    
553            /**
554             * Returns the background task remote service.
555             *
556             * @return the background task remote service
557             */
558            public com.liferay.portal.service.BackgroundTaskService getBackgroundTaskService() {
559                    return backgroundTaskService;
560            }
561    
562            /**
563             * Sets the background task remote service.
564             *
565             * @param backgroundTaskService the background task remote service
566             */
567            public void setBackgroundTaskService(
568                    com.liferay.portal.service.BackgroundTaskService backgroundTaskService) {
569                    this.backgroundTaskService = backgroundTaskService;
570            }
571    
572            /**
573             * Returns the background task persistence.
574             *
575             * @return the background task persistence
576             */
577            public BackgroundTaskPersistence getBackgroundTaskPersistence() {
578                    return backgroundTaskPersistence;
579            }
580    
581            /**
582             * Sets the background task persistence.
583             *
584             * @param backgroundTaskPersistence the background task persistence
585             */
586            public void setBackgroundTaskPersistence(
587                    BackgroundTaskPersistence backgroundTaskPersistence) {
588                    this.backgroundTaskPersistence = backgroundTaskPersistence;
589            }
590    
591            /**
592             * Returns the class name local service.
593             *
594             * @return the class name local service
595             */
596            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
597                    return classNameLocalService;
598            }
599    
600            /**
601             * Sets the class name local service.
602             *
603             * @param classNameLocalService the class name local service
604             */
605            public void setClassNameLocalService(
606                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
607                    this.classNameLocalService = classNameLocalService;
608            }
609    
610            /**
611             * Returns the class name remote service.
612             *
613             * @return the class name remote service
614             */
615            public com.liferay.portal.service.ClassNameService getClassNameService() {
616                    return classNameService;
617            }
618    
619            /**
620             * Sets the class name remote service.
621             *
622             * @param classNameService the class name remote service
623             */
624            public void setClassNameService(
625                    com.liferay.portal.service.ClassNameService classNameService) {
626                    this.classNameService = classNameService;
627            }
628    
629            /**
630             * Returns the class name persistence.
631             *
632             * @return the class name persistence
633             */
634            public ClassNamePersistence getClassNamePersistence() {
635                    return classNamePersistence;
636            }
637    
638            /**
639             * Sets the class name persistence.
640             *
641             * @param classNamePersistence the class name persistence
642             */
643            public void setClassNamePersistence(
644                    ClassNamePersistence classNamePersistence) {
645                    this.classNamePersistence = classNamePersistence;
646            }
647    
648            /**
649             * Returns the group local service.
650             *
651             * @return the group local service
652             */
653            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
654                    return groupLocalService;
655            }
656    
657            /**
658             * Sets the group local service.
659             *
660             * @param groupLocalService the group local service
661             */
662            public void setGroupLocalService(
663                    com.liferay.portal.service.GroupLocalService groupLocalService) {
664                    this.groupLocalService = groupLocalService;
665            }
666    
667            /**
668             * Returns the group remote service.
669             *
670             * @return the group remote service
671             */
672            public com.liferay.portal.service.GroupService getGroupService() {
673                    return groupService;
674            }
675    
676            /**
677             * Sets the group remote service.
678             *
679             * @param groupService the group remote service
680             */
681            public void setGroupService(
682                    com.liferay.portal.service.GroupService groupService) {
683                    this.groupService = groupService;
684            }
685    
686            /**
687             * Returns the group persistence.
688             *
689             * @return the group persistence
690             */
691            public GroupPersistence getGroupPersistence() {
692                    return groupPersistence;
693            }
694    
695            /**
696             * Sets the group persistence.
697             *
698             * @param groupPersistence the group persistence
699             */
700            public void setGroupPersistence(GroupPersistence groupPersistence) {
701                    this.groupPersistence = groupPersistence;
702            }
703    
704            /**
705             * Returns the group finder.
706             *
707             * @return the group finder
708             */
709            public GroupFinder getGroupFinder() {
710                    return groupFinder;
711            }
712    
713            /**
714             * Sets the group finder.
715             *
716             * @param groupFinder the group finder
717             */
718            public void setGroupFinder(GroupFinder groupFinder) {
719                    this.groupFinder = groupFinder;
720            }
721    
722            /**
723             * Returns the image local service.
724             *
725             * @return the image local service
726             */
727            public com.liferay.portal.service.ImageLocalService getImageLocalService() {
728                    return imageLocalService;
729            }
730    
731            /**
732             * Sets the image local service.
733             *
734             * @param imageLocalService the image local service
735             */
736            public void setImageLocalService(
737                    com.liferay.portal.service.ImageLocalService imageLocalService) {
738                    this.imageLocalService = imageLocalService;
739            }
740    
741            /**
742             * Returns the image remote service.
743             *
744             * @return the image remote service
745             */
746            public com.liferay.portal.service.ImageService getImageService() {
747                    return imageService;
748            }
749    
750            /**
751             * Sets the image remote service.
752             *
753             * @param imageService the image remote service
754             */
755            public void setImageService(
756                    com.liferay.portal.service.ImageService imageService) {
757                    this.imageService = imageService;
758            }
759    
760            /**
761             * Returns the image persistence.
762             *
763             * @return the image persistence
764             */
765            public ImagePersistence getImagePersistence() {
766                    return imagePersistence;
767            }
768    
769            /**
770             * Sets the image persistence.
771             *
772             * @param imagePersistence the image persistence
773             */
774            public void setImagePersistence(ImagePersistence imagePersistence) {
775                    this.imagePersistence = imagePersistence;
776            }
777    
778            /**
779             * Returns the asset category local service.
780             *
781             * @return the asset category local service
782             */
783            public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
784                    return assetCategoryLocalService;
785            }
786    
787            /**
788             * Sets the asset category local service.
789             *
790             * @param assetCategoryLocalService the asset category local service
791             */
792            public void setAssetCategoryLocalService(
793                    com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
794                    this.assetCategoryLocalService = assetCategoryLocalService;
795            }
796    
797            /**
798             * Returns the asset category remote service.
799             *
800             * @return the asset category remote service
801             */
802            public com.liferay.portlet.asset.service.AssetCategoryService getAssetCategoryService() {
803                    return assetCategoryService;
804            }
805    
806            /**
807             * Sets the asset category remote service.
808             *
809             * @param assetCategoryService the asset category remote service
810             */
811            public void setAssetCategoryService(
812                    com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService) {
813                    this.assetCategoryService = assetCategoryService;
814            }
815    
816            /**
817             * Returns the asset category persistence.
818             *
819             * @return the asset category persistence
820             */
821            public AssetCategoryPersistence getAssetCategoryPersistence() {
822                    return assetCategoryPersistence;
823            }
824    
825            /**
826             * Sets the asset category persistence.
827             *
828             * @param assetCategoryPersistence the asset category persistence
829             */
830            public void setAssetCategoryPersistence(
831                    AssetCategoryPersistence assetCategoryPersistence) {
832                    this.assetCategoryPersistence = assetCategoryPersistence;
833            }
834    
835            /**
836             * Returns the asset category finder.
837             *
838             * @return the asset category finder
839             */
840            public AssetCategoryFinder getAssetCategoryFinder() {
841                    return assetCategoryFinder;
842            }
843    
844            /**
845             * Sets the asset category finder.
846             *
847             * @param assetCategoryFinder the asset category finder
848             */
849            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
850                    this.assetCategoryFinder = assetCategoryFinder;
851            }
852    
853            /**
854             * Returns the asset entry local service.
855             *
856             * @return the asset entry local service
857             */
858            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
859                    return assetEntryLocalService;
860            }
861    
862            /**
863             * Sets the asset entry local service.
864             *
865             * @param assetEntryLocalService the asset entry local service
866             */
867            public void setAssetEntryLocalService(
868                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
869                    this.assetEntryLocalService = assetEntryLocalService;
870            }
871    
872            /**
873             * Returns the asset entry remote service.
874             *
875             * @return the asset entry remote service
876             */
877            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
878                    return assetEntryService;
879            }
880    
881            /**
882             * Sets the asset entry remote service.
883             *
884             * @param assetEntryService the asset entry remote service
885             */
886            public void setAssetEntryService(
887                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
888                    this.assetEntryService = assetEntryService;
889            }
890    
891            /**
892             * Returns the asset entry persistence.
893             *
894             * @return the asset entry persistence
895             */
896            public AssetEntryPersistence getAssetEntryPersistence() {
897                    return assetEntryPersistence;
898            }
899    
900            /**
901             * Sets the asset entry persistence.
902             *
903             * @param assetEntryPersistence the asset entry persistence
904             */
905            public void setAssetEntryPersistence(
906                    AssetEntryPersistence assetEntryPersistence) {
907                    this.assetEntryPersistence = assetEntryPersistence;
908            }
909    
910            /**
911             * Returns the asset entry finder.
912             *
913             * @return the asset entry finder
914             */
915            public AssetEntryFinder getAssetEntryFinder() {
916                    return assetEntryFinder;
917            }
918    
919            /**
920             * Sets the asset entry finder.
921             *
922             * @param assetEntryFinder the asset entry finder
923             */
924            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
925                    this.assetEntryFinder = assetEntryFinder;
926            }
927    
928            /**
929             * Returns the asset tag local service.
930             *
931             * @return the asset tag local service
932             */
933            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
934                    return assetTagLocalService;
935            }
936    
937            /**
938             * Sets the asset tag local service.
939             *
940             * @param assetTagLocalService the asset tag local service
941             */
942            public void setAssetTagLocalService(
943                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
944                    this.assetTagLocalService = assetTagLocalService;
945            }
946    
947            /**
948             * Returns the asset tag remote service.
949             *
950             * @return the asset tag remote service
951             */
952            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
953                    return assetTagService;
954            }
955    
956            /**
957             * Sets the asset tag remote service.
958             *
959             * @param assetTagService the asset tag remote service
960             */
961            public void setAssetTagService(
962                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
963                    this.assetTagService = assetTagService;
964            }
965    
966            /**
967             * Returns the asset tag persistence.
968             *
969             * @return the asset tag persistence
970             */
971            public AssetTagPersistence getAssetTagPersistence() {
972                    return assetTagPersistence;
973            }
974    
975            /**
976             * Sets the asset tag persistence.
977             *
978             * @param assetTagPersistence the asset tag persistence
979             */
980            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
981                    this.assetTagPersistence = assetTagPersistence;
982            }
983    
984            /**
985             * Returns the asset tag finder.
986             *
987             * @return the asset tag finder
988             */
989            public AssetTagFinder getAssetTagFinder() {
990                    return assetTagFinder;
991            }
992    
993            /**
994             * Sets the asset tag finder.
995             *
996             * @param assetTagFinder the asset tag finder
997             */
998            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
999                    this.assetTagFinder = assetTagFinder;
1000            }
1001    
1002            /**
1003             * Returns the expando row local service.
1004             *
1005             * @return the expando row local service
1006             */
1007            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1008                    return expandoRowLocalService;
1009            }
1010    
1011            /**
1012             * Sets the expando row local service.
1013             *
1014             * @param expandoRowLocalService the expando row local service
1015             */
1016            public void setExpandoRowLocalService(
1017                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1018                    this.expandoRowLocalService = expandoRowLocalService;
1019            }
1020    
1021            /**
1022             * Returns the expando row persistence.
1023             *
1024             * @return the expando row persistence
1025             */
1026            public ExpandoRowPersistence getExpandoRowPersistence() {
1027                    return expandoRowPersistence;
1028            }
1029    
1030            /**
1031             * Sets the expando row persistence.
1032             *
1033             * @param expandoRowPersistence the expando row persistence
1034             */
1035            public void setExpandoRowPersistence(
1036                    ExpandoRowPersistence expandoRowPersistence) {
1037                    this.expandoRowPersistence = expandoRowPersistence;
1038            }
1039    
1040            /**
1041             * Returns the export import configuration local service.
1042             *
1043             * @return the export import configuration local service
1044             */
1045            public com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService getExportImportConfigurationLocalService() {
1046                    return exportImportConfigurationLocalService;
1047            }
1048    
1049            /**
1050             * Sets the export import configuration local service.
1051             *
1052             * @param exportImportConfigurationLocalService the export import configuration local service
1053             */
1054            public void setExportImportConfigurationLocalService(
1055                    com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService) {
1056                    this.exportImportConfigurationLocalService = exportImportConfigurationLocalService;
1057            }
1058    
1059            /**
1060             * Returns the export import configuration remote service.
1061             *
1062             * @return the export import configuration remote service
1063             */
1064            public com.liferay.portlet.exportimport.service.ExportImportConfigurationService getExportImportConfigurationService() {
1065                    return exportImportConfigurationService;
1066            }
1067    
1068            /**
1069             * Sets the export import configuration remote service.
1070             *
1071             * @param exportImportConfigurationService the export import configuration remote service
1072             */
1073            public void setExportImportConfigurationService(
1074                    com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService) {
1075                    this.exportImportConfigurationService = exportImportConfigurationService;
1076            }
1077    
1078            /**
1079             * Returns the export import configuration persistence.
1080             *
1081             * @return the export import configuration persistence
1082             */
1083            public ExportImportConfigurationPersistence getExportImportConfigurationPersistence() {
1084                    return exportImportConfigurationPersistence;
1085            }
1086    
1087            /**
1088             * Sets the export import configuration persistence.
1089             *
1090             * @param exportImportConfigurationPersistence the export import configuration persistence
1091             */
1092            public void setExportImportConfigurationPersistence(
1093                    ExportImportConfigurationPersistence exportImportConfigurationPersistence) {
1094                    this.exportImportConfigurationPersistence = exportImportConfigurationPersistence;
1095            }
1096    
1097            /**
1098             * Returns the ratings stats local service.
1099             *
1100             * @return the ratings stats local service
1101             */
1102            public com.liferay.portlet.ratings.service.RatingsStatsLocalService getRatingsStatsLocalService() {
1103                    return ratingsStatsLocalService;
1104            }
1105    
1106            /**
1107             * Sets the ratings stats local service.
1108             *
1109             * @param ratingsStatsLocalService the ratings stats local service
1110             */
1111            public void setRatingsStatsLocalService(
1112                    com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService) {
1113                    this.ratingsStatsLocalService = ratingsStatsLocalService;
1114            }
1115    
1116            /**
1117             * Returns the ratings stats persistence.
1118             *
1119             * @return the ratings stats persistence
1120             */
1121            public RatingsStatsPersistence getRatingsStatsPersistence() {
1122                    return ratingsStatsPersistence;
1123            }
1124    
1125            /**
1126             * Sets the ratings stats persistence.
1127             *
1128             * @param ratingsStatsPersistence the ratings stats persistence
1129             */
1130            public void setRatingsStatsPersistence(
1131                    RatingsStatsPersistence ratingsStatsPersistence) {
1132                    this.ratingsStatsPersistence = ratingsStatsPersistence;
1133            }
1134    
1135            /**
1136             * Returns the ratings stats finder.
1137             *
1138             * @return the ratings stats finder
1139             */
1140            public RatingsStatsFinder getRatingsStatsFinder() {
1141                    return ratingsStatsFinder;
1142            }
1143    
1144            /**
1145             * Sets the ratings stats finder.
1146             *
1147             * @param ratingsStatsFinder the ratings stats finder
1148             */
1149            public void setRatingsStatsFinder(RatingsStatsFinder ratingsStatsFinder) {
1150                    this.ratingsStatsFinder = ratingsStatsFinder;
1151            }
1152    
1153            /**
1154             * Returns the layout friendly u r l local service.
1155             *
1156             * @return the layout friendly u r l local service
1157             */
1158            public com.liferay.portal.service.LayoutFriendlyURLLocalService getLayoutFriendlyURLLocalService() {
1159                    return layoutFriendlyURLLocalService;
1160            }
1161    
1162            /**
1163             * Sets the layout friendly u r l local service.
1164             *
1165             * @param layoutFriendlyURLLocalService the layout friendly u r l local service
1166             */
1167            public void setLayoutFriendlyURLLocalService(
1168                    com.liferay.portal.service.LayoutFriendlyURLLocalService layoutFriendlyURLLocalService) {
1169                    this.layoutFriendlyURLLocalService = layoutFriendlyURLLocalService;
1170            }
1171    
1172            /**
1173             * Returns the layout friendly u r l persistence.
1174             *
1175             * @return the layout friendly u r l persistence
1176             */
1177            public LayoutFriendlyURLPersistence getLayoutFriendlyURLPersistence() {
1178                    return layoutFriendlyURLPersistence;
1179            }
1180    
1181            /**
1182             * Sets the layout friendly u r l persistence.
1183             *
1184             * @param layoutFriendlyURLPersistence the layout friendly u r l persistence
1185             */
1186            public void setLayoutFriendlyURLPersistence(
1187                    LayoutFriendlyURLPersistence layoutFriendlyURLPersistence) {
1188                    this.layoutFriendlyURLPersistence = layoutFriendlyURLPersistence;
1189            }
1190    
1191            /**
1192             * Returns the layout prototype local service.
1193             *
1194             * @return the layout prototype local service
1195             */
1196            public com.liferay.portal.service.LayoutPrototypeLocalService getLayoutPrototypeLocalService() {
1197                    return layoutPrototypeLocalService;
1198            }
1199    
1200            /**
1201             * Sets the layout prototype local service.
1202             *
1203             * @param layoutPrototypeLocalService the layout prototype local service
1204             */
1205            public void setLayoutPrototypeLocalService(
1206                    com.liferay.portal.service.LayoutPrototypeLocalService layoutPrototypeLocalService) {
1207                    this.layoutPrototypeLocalService = layoutPrototypeLocalService;
1208            }
1209    
1210            /**
1211             * Returns the layout prototype remote service.
1212             *
1213             * @return the layout prototype remote service
1214             */
1215            public com.liferay.portal.service.LayoutPrototypeService getLayoutPrototypeService() {
1216                    return layoutPrototypeService;
1217            }
1218    
1219            /**
1220             * Sets the layout prototype remote service.
1221             *
1222             * @param layoutPrototypeService the layout prototype remote service
1223             */
1224            public void setLayoutPrototypeService(
1225                    com.liferay.portal.service.LayoutPrototypeService layoutPrototypeService) {
1226                    this.layoutPrototypeService = layoutPrototypeService;
1227            }
1228    
1229            /**
1230             * Returns the layout prototype persistence.
1231             *
1232             * @return the layout prototype persistence
1233             */
1234            public LayoutPrototypePersistence getLayoutPrototypePersistence() {
1235                    return layoutPrototypePersistence;
1236            }
1237    
1238            /**
1239             * Sets the layout prototype persistence.
1240             *
1241             * @param layoutPrototypePersistence the layout prototype persistence
1242             */
1243            public void setLayoutPrototypePersistence(
1244                    LayoutPrototypePersistence layoutPrototypePersistence) {
1245                    this.layoutPrototypePersistence = layoutPrototypePersistence;
1246            }
1247    
1248            /**
1249             * Returns the layout set local service.
1250             *
1251             * @return the layout set local service
1252             */
1253            public com.liferay.portal.service.LayoutSetLocalService getLayoutSetLocalService() {
1254                    return layoutSetLocalService;
1255            }
1256    
1257            /**
1258             * Sets the layout set local service.
1259             *
1260             * @param layoutSetLocalService the layout set local service
1261             */
1262            public void setLayoutSetLocalService(
1263                    com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService) {
1264                    this.layoutSetLocalService = layoutSetLocalService;
1265            }
1266    
1267            /**
1268             * Returns the layout set remote service.
1269             *
1270             * @return the layout set remote service
1271             */
1272            public com.liferay.portal.service.LayoutSetService getLayoutSetService() {
1273                    return layoutSetService;
1274            }
1275    
1276            /**
1277             * Sets the layout set remote service.
1278             *
1279             * @param layoutSetService the layout set remote service
1280             */
1281            public void setLayoutSetService(
1282                    com.liferay.portal.service.LayoutSetService layoutSetService) {
1283                    this.layoutSetService = layoutSetService;
1284            }
1285    
1286            /**
1287             * Returns the layout set persistence.
1288             *
1289             * @return the layout set persistence
1290             */
1291            public LayoutSetPersistence getLayoutSetPersistence() {
1292                    return layoutSetPersistence;
1293            }
1294    
1295            /**
1296             * Sets the layout set persistence.
1297             *
1298             * @param layoutSetPersistence the layout set persistence
1299             */
1300            public void setLayoutSetPersistence(
1301                    LayoutSetPersistence layoutSetPersistence) {
1302                    this.layoutSetPersistence = layoutSetPersistence;
1303            }
1304    
1305            /**
1306             * Returns the layout set prototype local service.
1307             *
1308             * @return the layout set prototype local service
1309             */
1310            public com.liferay.portal.service.LayoutSetPrototypeLocalService getLayoutSetPrototypeLocalService() {
1311                    return layoutSetPrototypeLocalService;
1312            }
1313    
1314            /**
1315             * Sets the layout set prototype local service.
1316             *
1317             * @param layoutSetPrototypeLocalService the layout set prototype local service
1318             */
1319            public void setLayoutSetPrototypeLocalService(
1320                    com.liferay.portal.service.LayoutSetPrototypeLocalService layoutSetPrototypeLocalService) {
1321                    this.layoutSetPrototypeLocalService = layoutSetPrototypeLocalService;
1322            }
1323    
1324            /**
1325             * Returns the layout set prototype remote service.
1326             *
1327             * @return the layout set prototype remote service
1328             */
1329            public com.liferay.portal.service.LayoutSetPrototypeService getLayoutSetPrototypeService() {
1330                    return layoutSetPrototypeService;
1331            }
1332    
1333            /**
1334             * Sets the layout set prototype remote service.
1335             *
1336             * @param layoutSetPrototypeService the layout set prototype remote service
1337             */
1338            public void setLayoutSetPrototypeService(
1339                    com.liferay.portal.service.LayoutSetPrototypeService layoutSetPrototypeService) {
1340                    this.layoutSetPrototypeService = layoutSetPrototypeService;
1341            }
1342    
1343            /**
1344             * Returns the layout set prototype persistence.
1345             *
1346             * @return the layout set prototype persistence
1347             */
1348            public LayoutSetPrototypePersistence getLayoutSetPrototypePersistence() {
1349                    return layoutSetPrototypePersistence;
1350            }
1351    
1352            /**
1353             * Sets the layout set prototype persistence.
1354             *
1355             * @param layoutSetPrototypePersistence the layout set prototype persistence
1356             */
1357            public void setLayoutSetPrototypePersistence(
1358                    LayoutSetPrototypePersistence layoutSetPrototypePersistence) {
1359                    this.layoutSetPrototypePersistence = layoutSetPrototypePersistence;
1360            }
1361    
1362            /**
1363             * Returns the plugin setting local service.
1364             *
1365             * @return the plugin setting local service
1366             */
1367            public com.liferay.portal.service.PluginSettingLocalService getPluginSettingLocalService() {
1368                    return pluginSettingLocalService;
1369            }
1370    
1371            /**
1372             * Sets the plugin setting local service.
1373             *
1374             * @param pluginSettingLocalService the plugin setting local service
1375             */
1376            public void setPluginSettingLocalService(
1377                    com.liferay.portal.service.PluginSettingLocalService pluginSettingLocalService) {
1378                    this.pluginSettingLocalService = pluginSettingLocalService;
1379            }
1380    
1381            /**
1382             * Returns the plugin setting remote service.
1383             *
1384             * @return the plugin setting remote service
1385             */
1386            public com.liferay.portal.service.PluginSettingService getPluginSettingService() {
1387                    return pluginSettingService;
1388            }
1389    
1390            /**
1391             * Sets the plugin setting remote service.
1392             *
1393             * @param pluginSettingService the plugin setting remote service
1394             */
1395            public void setPluginSettingService(
1396                    com.liferay.portal.service.PluginSettingService pluginSettingService) {
1397                    this.pluginSettingService = pluginSettingService;
1398            }
1399    
1400            /**
1401             * Returns the plugin setting persistence.
1402             *
1403             * @return the plugin setting persistence
1404             */
1405            public PluginSettingPersistence getPluginSettingPersistence() {
1406                    return pluginSettingPersistence;
1407            }
1408    
1409            /**
1410             * Sets the plugin setting persistence.
1411             *
1412             * @param pluginSettingPersistence the plugin setting persistence
1413             */
1414            public void setPluginSettingPersistence(
1415                    PluginSettingPersistence pluginSettingPersistence) {
1416                    this.pluginSettingPersistence = pluginSettingPersistence;
1417            }
1418    
1419            /**
1420             * Returns the portlet preferences local service.
1421             *
1422             * @return the portlet preferences local service
1423             */
1424            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
1425                    return portletPreferencesLocalService;
1426            }
1427    
1428            /**
1429             * Sets the portlet preferences local service.
1430             *
1431             * @param portletPreferencesLocalService the portlet preferences local service
1432             */
1433            public void setPortletPreferencesLocalService(
1434                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
1435                    this.portletPreferencesLocalService = portletPreferencesLocalService;
1436            }
1437    
1438            /**
1439             * Returns the portlet preferences remote service.
1440             *
1441             * @return the portlet preferences remote service
1442             */
1443            public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
1444                    return portletPreferencesService;
1445            }
1446    
1447            /**
1448             * Sets the portlet preferences remote service.
1449             *
1450             * @param portletPreferencesService the portlet preferences remote service
1451             */
1452            public void setPortletPreferencesService(
1453                    com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
1454                    this.portletPreferencesService = portletPreferencesService;
1455            }
1456    
1457            /**
1458             * Returns the portlet preferences persistence.
1459             *
1460             * @return the portlet preferences persistence
1461             */
1462            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
1463                    return portletPreferencesPersistence;
1464            }
1465    
1466            /**
1467             * Sets the portlet preferences persistence.
1468             *
1469             * @param portletPreferencesPersistence the portlet preferences persistence
1470             */
1471            public void setPortletPreferencesPersistence(
1472                    PortletPreferencesPersistence portletPreferencesPersistence) {
1473                    this.portletPreferencesPersistence = portletPreferencesPersistence;
1474            }
1475    
1476            /**
1477             * Returns the portlet preferences finder.
1478             *
1479             * @return the portlet preferences finder
1480             */
1481            public PortletPreferencesFinder getPortletPreferencesFinder() {
1482                    return portletPreferencesFinder;
1483            }
1484    
1485            /**
1486             * Sets the portlet preferences finder.
1487             *
1488             * @param portletPreferencesFinder the portlet preferences finder
1489             */
1490            public void setPortletPreferencesFinder(
1491                    PortletPreferencesFinder portletPreferencesFinder) {
1492                    this.portletPreferencesFinder = portletPreferencesFinder;
1493            }
1494    
1495            /**
1496             * Returns the resource local service.
1497             *
1498             * @return the resource local service
1499             */
1500            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
1501                    return resourceLocalService;
1502            }
1503    
1504            /**
1505             * Sets the resource local service.
1506             *
1507             * @param resourceLocalService the resource local service
1508             */
1509            public void setResourceLocalService(
1510                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
1511                    this.resourceLocalService = resourceLocalService;
1512            }
1513    
1514            /**
1515             * Returns the resource permission local service.
1516             *
1517             * @return the resource permission local service
1518             */
1519            public com.liferay.portal.service.ResourcePermissionLocalService getResourcePermissionLocalService() {
1520                    return resourcePermissionLocalService;
1521            }
1522    
1523            /**
1524             * Sets the resource permission local service.
1525             *
1526             * @param resourcePermissionLocalService the resource permission local service
1527             */
1528            public void setResourcePermissionLocalService(
1529                    com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService) {
1530                    this.resourcePermissionLocalService = resourcePermissionLocalService;
1531            }
1532    
1533            /**
1534             * Returns the resource permission remote service.
1535             *
1536             * @return the resource permission remote service
1537             */
1538            public com.liferay.portal.service.ResourcePermissionService getResourcePermissionService() {
1539                    return resourcePermissionService;
1540            }
1541    
1542            /**
1543             * Sets the resource permission remote service.
1544             *
1545             * @param resourcePermissionService the resource permission remote service
1546             */
1547            public void setResourcePermissionService(
1548                    com.liferay.portal.service.ResourcePermissionService resourcePermissionService) {
1549                    this.resourcePermissionService = resourcePermissionService;
1550            }
1551    
1552            /**
1553             * Returns the resource permission persistence.
1554             *
1555             * @return the resource permission persistence
1556             */
1557            public ResourcePermissionPersistence getResourcePermissionPersistence() {
1558                    return resourcePermissionPersistence;
1559            }
1560    
1561            /**
1562             * Sets the resource permission persistence.
1563             *
1564             * @param resourcePermissionPersistence the resource permission persistence
1565             */
1566            public void setResourcePermissionPersistence(
1567                    ResourcePermissionPersistence resourcePermissionPersistence) {
1568                    this.resourcePermissionPersistence = resourcePermissionPersistence;
1569            }
1570    
1571            /**
1572             * Returns the resource permission finder.
1573             *
1574             * @return the resource permission finder
1575             */
1576            public ResourcePermissionFinder getResourcePermissionFinder() {
1577                    return resourcePermissionFinder;
1578            }
1579    
1580            /**
1581             * Sets the resource permission finder.
1582             *
1583             * @param resourcePermissionFinder the resource permission finder
1584             */
1585            public void setResourcePermissionFinder(
1586                    ResourcePermissionFinder resourcePermissionFinder) {
1587                    this.resourcePermissionFinder = resourcePermissionFinder;
1588            }
1589    
1590            /**
1591             * Returns the subscription local service.
1592             *
1593             * @return the subscription local service
1594             */
1595            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
1596                    return subscriptionLocalService;
1597            }
1598    
1599            /**
1600             * Sets the subscription local service.
1601             *
1602             * @param subscriptionLocalService the subscription local service
1603             */
1604            public void setSubscriptionLocalService(
1605                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
1606                    this.subscriptionLocalService = subscriptionLocalService;
1607            }
1608    
1609            /**
1610             * Returns the subscription persistence.
1611             *
1612             * @return the subscription persistence
1613             */
1614            public SubscriptionPersistence getSubscriptionPersistence() {
1615                    return subscriptionPersistence;
1616            }
1617    
1618            /**
1619             * Sets the subscription persistence.
1620             *
1621             * @param subscriptionPersistence the subscription persistence
1622             */
1623            public void setSubscriptionPersistence(
1624                    SubscriptionPersistence subscriptionPersistence) {
1625                    this.subscriptionPersistence = subscriptionPersistence;
1626            }
1627    
1628            /**
1629             * Returns the user local service.
1630             *
1631             * @return the user local service
1632             */
1633            public com.liferay.portal.service.UserLocalService getUserLocalService() {
1634                    return userLocalService;
1635            }
1636    
1637            /**
1638             * Sets the user local service.
1639             *
1640             * @param userLocalService the user local service
1641             */
1642            public void setUserLocalService(
1643                    com.liferay.portal.service.UserLocalService userLocalService) {
1644                    this.userLocalService = userLocalService;
1645            }
1646    
1647            /**
1648             * Returns the user remote service.
1649             *
1650             * @return the user remote service
1651             */
1652            public com.liferay.portal.service.UserService getUserService() {
1653                    return userService;
1654            }
1655    
1656            /**
1657             * Sets the user remote service.
1658             *
1659             * @param userService the user remote service
1660             */
1661            public void setUserService(
1662                    com.liferay.portal.service.UserService userService) {
1663                    this.userService = userService;
1664            }
1665    
1666            /**
1667             * Returns the user persistence.
1668             *
1669             * @return the user persistence
1670             */
1671            public UserPersistence getUserPersistence() {
1672                    return userPersistence;
1673            }
1674    
1675            /**
1676             * Sets the user persistence.
1677             *
1678             * @param userPersistence the user persistence
1679             */
1680            public void setUserPersistence(UserPersistence userPersistence) {
1681                    this.userPersistence = userPersistence;
1682            }
1683    
1684            /**
1685             * Returns the user finder.
1686             *
1687             * @return the user finder
1688             */
1689            public UserFinder getUserFinder() {
1690                    return userFinder;
1691            }
1692    
1693            /**
1694             * Sets the user finder.
1695             *
1696             * @param userFinder the user finder
1697             */
1698            public void setUserFinder(UserFinder userFinder) {
1699                    this.userFinder = userFinder;
1700            }
1701    
1702            public void afterPropertiesSet() {
1703                    persistedModelLocalServiceRegistry.register("com.liferay.portal.model.Layout",
1704                            layoutLocalService);
1705            }
1706    
1707            public void destroy() {
1708                    persistedModelLocalServiceRegistry.unregister(
1709                            "com.liferay.portal.model.Layout");
1710            }
1711    
1712            /**
1713             * Returns the Spring bean ID for this bean.
1714             *
1715             * @return the Spring bean ID for this bean
1716             */
1717            @Override
1718            public String getBeanIdentifier() {
1719                    return _beanIdentifier;
1720            }
1721    
1722            /**
1723             * Sets the Spring bean ID for this bean.
1724             *
1725             * @param beanIdentifier the Spring bean ID for this bean
1726             */
1727            @Override
1728            public void setBeanIdentifier(String beanIdentifier) {
1729                    _beanIdentifier = beanIdentifier;
1730            }
1731    
1732            protected Class<?> getModelClass() {
1733                    return Layout.class;
1734            }
1735    
1736            protected String getModelClassName() {
1737                    return Layout.class.getName();
1738            }
1739    
1740            /**
1741             * Performs a SQL query.
1742             *
1743             * @param sql the sql query
1744             */
1745            protected void runSQL(String sql) {
1746                    try {
1747                            DataSource dataSource = layoutPersistence.getDataSource();
1748    
1749                            DB db = DBFactoryUtil.getDB();
1750    
1751                            sql = db.buildSQL(sql);
1752                            sql = PortalUtil.transformSQL(sql);
1753    
1754                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1755                                            sql, new int[0]);
1756    
1757                            sqlUpdate.update();
1758                    }
1759                    catch (Exception e) {
1760                            throw new SystemException(e);
1761                    }
1762            }
1763    
1764            @BeanReference(type = LayoutLocalService.class)
1765            protected LayoutLocalService layoutLocalService;
1766            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
1767            protected com.liferay.portal.service.LayoutService layoutService;
1768            @BeanReference(type = LayoutPersistence.class)
1769            protected LayoutPersistence layoutPersistence;
1770            @BeanReference(type = LayoutFinder.class)
1771            protected LayoutFinder layoutFinder;
1772            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1773            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1774            @BeanReference(type = com.liferay.portal.service.BackgroundTaskLocalService.class)
1775            protected com.liferay.portal.service.BackgroundTaskLocalService backgroundTaskLocalService;
1776            @BeanReference(type = com.liferay.portal.service.BackgroundTaskService.class)
1777            protected com.liferay.portal.service.BackgroundTaskService backgroundTaskService;
1778            @BeanReference(type = BackgroundTaskPersistence.class)
1779            protected BackgroundTaskPersistence backgroundTaskPersistence;
1780            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1781            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1782            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1783            protected com.liferay.portal.service.ClassNameService classNameService;
1784            @BeanReference(type = ClassNamePersistence.class)
1785            protected ClassNamePersistence classNamePersistence;
1786            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1787            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1788            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1789            protected com.liferay.portal.service.GroupService groupService;
1790            @BeanReference(type = GroupPersistence.class)
1791            protected GroupPersistence groupPersistence;
1792            @BeanReference(type = GroupFinder.class)
1793            protected GroupFinder groupFinder;
1794            @BeanReference(type = com.liferay.portal.service.ImageLocalService.class)
1795            protected com.liferay.portal.service.ImageLocalService imageLocalService;
1796            @BeanReference(type = com.liferay.portal.service.ImageService.class)
1797            protected com.liferay.portal.service.ImageService imageService;
1798            @BeanReference(type = ImagePersistence.class)
1799            protected ImagePersistence imagePersistence;
1800            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
1801            protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
1802            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryService.class)
1803            protected com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService;
1804            @BeanReference(type = AssetCategoryPersistence.class)
1805            protected AssetCategoryPersistence assetCategoryPersistence;
1806            @BeanReference(type = AssetCategoryFinder.class)
1807            protected AssetCategoryFinder assetCategoryFinder;
1808            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1809            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1810            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1811            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1812            @BeanReference(type = AssetEntryPersistence.class)
1813            protected AssetEntryPersistence assetEntryPersistence;
1814            @BeanReference(type = AssetEntryFinder.class)
1815            protected AssetEntryFinder assetEntryFinder;
1816            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1817            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1818            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1819            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1820            @BeanReference(type = AssetTagPersistence.class)
1821            protected AssetTagPersistence assetTagPersistence;
1822            @BeanReference(type = AssetTagFinder.class)
1823            protected AssetTagFinder assetTagFinder;
1824            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1825            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1826            @BeanReference(type = ExpandoRowPersistence.class)
1827            protected ExpandoRowPersistence expandoRowPersistence;
1828            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService.class)
1829            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationLocalService exportImportConfigurationLocalService;
1830            @BeanReference(type = com.liferay.portlet.exportimport.service.ExportImportConfigurationService.class)
1831            protected com.liferay.portlet.exportimport.service.ExportImportConfigurationService exportImportConfigurationService;
1832            @BeanReference(type = ExportImportConfigurationPersistence.class)
1833            protected ExportImportConfigurationPersistence exportImportConfigurationPersistence;
1834            @BeanReference(type = com.liferay.portlet.ratings.service.RatingsStatsLocalService.class)
1835            protected com.liferay.portlet.ratings.service.RatingsStatsLocalService ratingsStatsLocalService;
1836            @BeanReference(type = RatingsStatsPersistence.class)
1837            protected RatingsStatsPersistence ratingsStatsPersistence;
1838            @BeanReference(type = RatingsStatsFinder.class)
1839            protected RatingsStatsFinder ratingsStatsFinder;
1840            @BeanReference(type = com.liferay.portal.service.LayoutFriendlyURLLocalService.class)
1841            protected com.liferay.portal.service.LayoutFriendlyURLLocalService layoutFriendlyURLLocalService;
1842            @BeanReference(type = LayoutFriendlyURLPersistence.class)
1843            protected LayoutFriendlyURLPersistence layoutFriendlyURLPersistence;
1844            @BeanReference(type = com.liferay.portal.service.LayoutPrototypeLocalService.class)
1845            protected com.liferay.portal.service.LayoutPrototypeLocalService layoutPrototypeLocalService;
1846            @BeanReference(type = com.liferay.portal.service.LayoutPrototypeService.class)
1847            protected com.liferay.portal.service.LayoutPrototypeService layoutPrototypeService;
1848            @BeanReference(type = LayoutPrototypePersistence.class)
1849            protected LayoutPrototypePersistence layoutPrototypePersistence;
1850            @BeanReference(type = com.liferay.portal.service.LayoutSetLocalService.class)
1851            protected com.liferay.portal.service.LayoutSetLocalService layoutSetLocalService;
1852            @BeanReference(type = com.liferay.portal.service.LayoutSetService.class)
1853            protected com.liferay.portal.service.LayoutSetService layoutSetService;
1854            @BeanReference(type = LayoutSetPersistence.class)
1855            protected LayoutSetPersistence layoutSetPersistence;
1856            @BeanReference(type = com.liferay.portal.service.LayoutSetPrototypeLocalService.class)
1857            protected com.liferay.portal.service.LayoutSetPrototypeLocalService layoutSetPrototypeLocalService;
1858            @BeanReference(type = com.liferay.portal.service.LayoutSetPrototypeService.class)
1859            protected com.liferay.portal.service.LayoutSetPrototypeService layoutSetPrototypeService;
1860            @BeanReference(type = LayoutSetPrototypePersistence.class)
1861            protected LayoutSetPrototypePersistence layoutSetPrototypePersistence;
1862            @BeanReference(type = com.liferay.portal.service.PluginSettingLocalService.class)
1863            protected com.liferay.portal.service.PluginSettingLocalService pluginSettingLocalService;
1864            @BeanReference(type = com.liferay.portal.service.PluginSettingService.class)
1865            protected com.liferay.portal.service.PluginSettingService pluginSettingService;
1866            @BeanReference(type = PluginSettingPersistence.class)
1867            protected PluginSettingPersistence pluginSettingPersistence;
1868            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1869            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1870            @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1871            protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1872            @BeanReference(type = PortletPreferencesPersistence.class)
1873            protected PortletPreferencesPersistence portletPreferencesPersistence;
1874            @BeanReference(type = PortletPreferencesFinder.class)
1875            protected PortletPreferencesFinder portletPreferencesFinder;
1876            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1877            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1878            @BeanReference(type = com.liferay.portal.service.ResourcePermissionLocalService.class)
1879            protected com.liferay.portal.service.ResourcePermissionLocalService resourcePermissionLocalService;
1880            @BeanReference(type = com.liferay.portal.service.ResourcePermissionService.class)
1881            protected com.liferay.portal.service.ResourcePermissionService resourcePermissionService;
1882            @BeanReference(type = ResourcePermissionPersistence.class)
1883            protected ResourcePermissionPersistence resourcePermissionPersistence;
1884            @BeanReference(type = ResourcePermissionFinder.class)
1885            protected ResourcePermissionFinder resourcePermissionFinder;
1886            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1887            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1888            @BeanReference(type = SubscriptionPersistence.class)
1889            protected SubscriptionPersistence subscriptionPersistence;
1890            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1891            protected com.liferay.portal.service.UserLocalService userLocalService;
1892            @BeanReference(type = com.liferay.portal.service.UserService.class)
1893            protected com.liferay.portal.service.UserService userService;
1894            @BeanReference(type = UserPersistence.class)
1895            protected UserPersistence userPersistence;
1896            @BeanReference(type = UserFinder.class)
1897            protected UserFinder userFinder;
1898            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1899            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1900            private String _beanIdentifier;
1901    }