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