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