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