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