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 matching the dynamic query.
220             *
221             * @param dynamicQuery the dynamic query
222             * @return the number of rows matching 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 matching 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 matching 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            /**
379             * Returns all the wiki pages matching the UUID and company.
380             *
381             * @param uuid the UUID of the wiki pages
382             * @param companyId the primary key of the company
383             * @return the matching wiki pages, or an empty list if no matches were found
384             */
385            @Override
386            public List<WikiPage> getWikiPagesByUuidAndCompanyId(String uuid,
387                    long companyId) {
388                    return wikiPagePersistence.findByUuid_C(uuid, companyId);
389            }
390    
391            /**
392             * Returns a range of wiki pages matching the UUID and company.
393             *
394             * @param uuid the UUID of the wiki pages
395             * @param companyId the primary key of the company
396             * @param start the lower bound of the range of wiki pages
397             * @param end the upper bound of the range of wiki pages (not inclusive)
398             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
399             * @return the range of matching wiki pages, or an empty list if no matches were found
400             */
401            @Override
402            public List<WikiPage> getWikiPagesByUuidAndCompanyId(String uuid,
403                    long companyId, int start, int end,
404                    OrderByComparator<WikiPage> orderByComparator) {
405                    return wikiPagePersistence.findByUuid_C(uuid, companyId, start, end,
406                            orderByComparator);
407            }
408    
409            /**
410             * Returns the wiki page matching the UUID and group.
411             *
412             * @param uuid the wiki page's UUID
413             * @param groupId the primary key of the group
414             * @return the matching wiki page
415             * @throws PortalException if a matching wiki page could not be found
416             */
417            @Override
418            public WikiPage getWikiPageByUuidAndGroupId(String uuid, long groupId)
419                    throws PortalException {
420                    return wikiPagePersistence.findByUUID_G(uuid, groupId);
421            }
422    
423            /**
424             * Returns a range of all the wiki pages.
425             *
426             * <p>
427             * 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.
428             * </p>
429             *
430             * @param start the lower bound of the range of wiki pages
431             * @param end the upper bound of the range of wiki pages (not inclusive)
432             * @return the range of wiki pages
433             */
434            @Override
435            public List<WikiPage> getWikiPages(int start, int end) {
436                    return wikiPagePersistence.findAll(start, end);
437            }
438    
439            /**
440             * Returns the number of wiki pages.
441             *
442             * @return the number of wiki pages
443             */
444            @Override
445            public int getWikiPagesCount() {
446                    return wikiPagePersistence.countAll();
447            }
448    
449            /**
450             * Updates the wiki page in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
451             *
452             * @param wikiPage the wiki page
453             * @return the wiki page that was updated
454             */
455            @Indexable(type = IndexableType.REINDEX)
456            @Override
457            public WikiPage updateWikiPage(WikiPage wikiPage) {
458                    return wikiPagePersistence.update(wikiPage);
459            }
460    
461            /**
462             * Returns the wiki page local service.
463             *
464             * @return the wiki page local service
465             */
466            public com.liferay.portlet.wiki.service.WikiPageLocalService getWikiPageLocalService() {
467                    return wikiPageLocalService;
468            }
469    
470            /**
471             * Sets the wiki page local service.
472             *
473             * @param wikiPageLocalService the wiki page local service
474             */
475            public void setWikiPageLocalService(
476                    com.liferay.portlet.wiki.service.WikiPageLocalService wikiPageLocalService) {
477                    this.wikiPageLocalService = wikiPageLocalService;
478            }
479    
480            /**
481             * Returns the wiki page remote service.
482             *
483             * @return the wiki page remote service
484             */
485            public com.liferay.portlet.wiki.service.WikiPageService getWikiPageService() {
486                    return wikiPageService;
487            }
488    
489            /**
490             * Sets the wiki page remote service.
491             *
492             * @param wikiPageService the wiki page remote service
493             */
494            public void setWikiPageService(
495                    com.liferay.portlet.wiki.service.WikiPageService wikiPageService) {
496                    this.wikiPageService = wikiPageService;
497            }
498    
499            /**
500             * Returns the wiki page persistence.
501             *
502             * @return the wiki page persistence
503             */
504            public WikiPagePersistence getWikiPagePersistence() {
505                    return wikiPagePersistence;
506            }
507    
508            /**
509             * Sets the wiki page persistence.
510             *
511             * @param wikiPagePersistence the wiki page persistence
512             */
513            public void setWikiPagePersistence(WikiPagePersistence wikiPagePersistence) {
514                    this.wikiPagePersistence = wikiPagePersistence;
515            }
516    
517            /**
518             * Returns the wiki page finder.
519             *
520             * @return the wiki page finder
521             */
522            public WikiPageFinder getWikiPageFinder() {
523                    return wikiPageFinder;
524            }
525    
526            /**
527             * Sets the wiki page finder.
528             *
529             * @param wikiPageFinder the wiki page finder
530             */
531            public void setWikiPageFinder(WikiPageFinder wikiPageFinder) {
532                    this.wikiPageFinder = wikiPageFinder;
533            }
534    
535            /**
536             * Returns the counter local service.
537             *
538             * @return the counter local service
539             */
540            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
541                    return counterLocalService;
542            }
543    
544            /**
545             * Sets the counter local service.
546             *
547             * @param counterLocalService the counter local service
548             */
549            public void setCounterLocalService(
550                    com.liferay.counter.service.CounterLocalService counterLocalService) {
551                    this.counterLocalService = counterLocalService;
552            }
553    
554            /**
555             * Returns the company local service.
556             *
557             * @return the company local service
558             */
559            public com.liferay.portal.service.CompanyLocalService getCompanyLocalService() {
560                    return companyLocalService;
561            }
562    
563            /**
564             * Sets the company local service.
565             *
566             * @param companyLocalService the company local service
567             */
568            public void setCompanyLocalService(
569                    com.liferay.portal.service.CompanyLocalService companyLocalService) {
570                    this.companyLocalService = companyLocalService;
571            }
572    
573            /**
574             * Returns the company remote service.
575             *
576             * @return the company remote service
577             */
578            public com.liferay.portal.service.CompanyService getCompanyService() {
579                    return companyService;
580            }
581    
582            /**
583             * Sets the company remote service.
584             *
585             * @param companyService the company remote service
586             */
587            public void setCompanyService(
588                    com.liferay.portal.service.CompanyService companyService) {
589                    this.companyService = companyService;
590            }
591    
592            /**
593             * Returns the company persistence.
594             *
595             * @return the company persistence
596             */
597            public CompanyPersistence getCompanyPersistence() {
598                    return companyPersistence;
599            }
600    
601            /**
602             * Sets the company persistence.
603             *
604             * @param companyPersistence the company persistence
605             */
606            public void setCompanyPersistence(CompanyPersistence companyPersistence) {
607                    this.companyPersistence = companyPersistence;
608            }
609    
610            /**
611             * Returns the group local service.
612             *
613             * @return the group local service
614             */
615            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
616                    return groupLocalService;
617            }
618    
619            /**
620             * Sets the group local service.
621             *
622             * @param groupLocalService the group local service
623             */
624            public void setGroupLocalService(
625                    com.liferay.portal.service.GroupLocalService groupLocalService) {
626                    this.groupLocalService = groupLocalService;
627            }
628    
629            /**
630             * Returns the group remote service.
631             *
632             * @return the group remote service
633             */
634            public com.liferay.portal.service.GroupService getGroupService() {
635                    return groupService;
636            }
637    
638            /**
639             * Sets the group remote service.
640             *
641             * @param groupService the group remote service
642             */
643            public void setGroupService(
644                    com.liferay.portal.service.GroupService groupService) {
645                    this.groupService = groupService;
646            }
647    
648            /**
649             * Returns the group persistence.
650             *
651             * @return the group persistence
652             */
653            public GroupPersistence getGroupPersistence() {
654                    return groupPersistence;
655            }
656    
657            /**
658             * Sets the group persistence.
659             *
660             * @param groupPersistence the group persistence
661             */
662            public void setGroupPersistence(GroupPersistence groupPersistence) {
663                    this.groupPersistence = groupPersistence;
664            }
665    
666            /**
667             * Returns the group finder.
668             *
669             * @return the group finder
670             */
671            public GroupFinder getGroupFinder() {
672                    return groupFinder;
673            }
674    
675            /**
676             * Sets the group finder.
677             *
678             * @param groupFinder the group finder
679             */
680            public void setGroupFinder(GroupFinder groupFinder) {
681                    this.groupFinder = groupFinder;
682            }
683    
684            /**
685             * Returns the layout local service.
686             *
687             * @return the layout local service
688             */
689            public com.liferay.portal.service.LayoutLocalService getLayoutLocalService() {
690                    return layoutLocalService;
691            }
692    
693            /**
694             * Sets the layout local service.
695             *
696             * @param layoutLocalService the layout local service
697             */
698            public void setLayoutLocalService(
699                    com.liferay.portal.service.LayoutLocalService layoutLocalService) {
700                    this.layoutLocalService = layoutLocalService;
701            }
702    
703            /**
704             * Returns the layout remote service.
705             *
706             * @return the layout remote service
707             */
708            public com.liferay.portal.service.LayoutService getLayoutService() {
709                    return layoutService;
710            }
711    
712            /**
713             * Sets the layout remote service.
714             *
715             * @param layoutService the layout remote service
716             */
717            public void setLayoutService(
718                    com.liferay.portal.service.LayoutService layoutService) {
719                    this.layoutService = layoutService;
720            }
721    
722            /**
723             * Returns the layout persistence.
724             *
725             * @return the layout persistence
726             */
727            public LayoutPersistence getLayoutPersistence() {
728                    return layoutPersistence;
729            }
730    
731            /**
732             * Sets the layout persistence.
733             *
734             * @param layoutPersistence the layout persistence
735             */
736            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
737                    this.layoutPersistence = layoutPersistence;
738            }
739    
740            /**
741             * Returns the layout finder.
742             *
743             * @return the layout finder
744             */
745            public LayoutFinder getLayoutFinder() {
746                    return layoutFinder;
747            }
748    
749            /**
750             * Sets the layout finder.
751             *
752             * @param layoutFinder the layout finder
753             */
754            public void setLayoutFinder(LayoutFinder layoutFinder) {
755                    this.layoutFinder = layoutFinder;
756            }
757    
758            /**
759             * Returns the portlet preferences local service.
760             *
761             * @return the portlet preferences local service
762             */
763            public com.liferay.portal.service.PortletPreferencesLocalService getPortletPreferencesLocalService() {
764                    return portletPreferencesLocalService;
765            }
766    
767            /**
768             * Sets the portlet preferences local service.
769             *
770             * @param portletPreferencesLocalService the portlet preferences local service
771             */
772            public void setPortletPreferencesLocalService(
773                    com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService) {
774                    this.portletPreferencesLocalService = portletPreferencesLocalService;
775            }
776    
777            /**
778             * Returns the portlet preferences remote service.
779             *
780             * @return the portlet preferences remote service
781             */
782            public com.liferay.portal.service.PortletPreferencesService getPortletPreferencesService() {
783                    return portletPreferencesService;
784            }
785    
786            /**
787             * Sets the portlet preferences remote service.
788             *
789             * @param portletPreferencesService the portlet preferences remote service
790             */
791            public void setPortletPreferencesService(
792                    com.liferay.portal.service.PortletPreferencesService portletPreferencesService) {
793                    this.portletPreferencesService = portletPreferencesService;
794            }
795    
796            /**
797             * Returns the portlet preferences persistence.
798             *
799             * @return the portlet preferences persistence
800             */
801            public PortletPreferencesPersistence getPortletPreferencesPersistence() {
802                    return portletPreferencesPersistence;
803            }
804    
805            /**
806             * Sets the portlet preferences persistence.
807             *
808             * @param portletPreferencesPersistence the portlet preferences persistence
809             */
810            public void setPortletPreferencesPersistence(
811                    PortletPreferencesPersistence portletPreferencesPersistence) {
812                    this.portletPreferencesPersistence = portletPreferencesPersistence;
813            }
814    
815            /**
816             * Returns the portlet preferences finder.
817             *
818             * @return the portlet preferences finder
819             */
820            public PortletPreferencesFinder getPortletPreferencesFinder() {
821                    return portletPreferencesFinder;
822            }
823    
824            /**
825             * Sets the portlet preferences finder.
826             *
827             * @param portletPreferencesFinder the portlet preferences finder
828             */
829            public void setPortletPreferencesFinder(
830                    PortletPreferencesFinder portletPreferencesFinder) {
831                    this.portletPreferencesFinder = portletPreferencesFinder;
832            }
833    
834            /**
835             * Returns the resource local service.
836             *
837             * @return the resource local service
838             */
839            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
840                    return resourceLocalService;
841            }
842    
843            /**
844             * Sets the resource local service.
845             *
846             * @param resourceLocalService the resource local service
847             */
848            public void setResourceLocalService(
849                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
850                    this.resourceLocalService = resourceLocalService;
851            }
852    
853            /**
854             * Returns the subscription local service.
855             *
856             * @return the subscription local service
857             */
858            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
859                    return subscriptionLocalService;
860            }
861    
862            /**
863             * Sets the subscription local service.
864             *
865             * @param subscriptionLocalService the subscription local service
866             */
867            public void setSubscriptionLocalService(
868                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
869                    this.subscriptionLocalService = subscriptionLocalService;
870            }
871    
872            /**
873             * Returns the subscription persistence.
874             *
875             * @return the subscription persistence
876             */
877            public SubscriptionPersistence getSubscriptionPersistence() {
878                    return subscriptionPersistence;
879            }
880    
881            /**
882             * Sets the subscription persistence.
883             *
884             * @param subscriptionPersistence the subscription persistence
885             */
886            public void setSubscriptionPersistence(
887                    SubscriptionPersistence subscriptionPersistence) {
888                    this.subscriptionPersistence = subscriptionPersistence;
889            }
890    
891            /**
892             * Returns the system event local service.
893             *
894             * @return the system event local service
895             */
896            public com.liferay.portal.service.SystemEventLocalService getSystemEventLocalService() {
897                    return systemEventLocalService;
898            }
899    
900            /**
901             * Sets the system event local service.
902             *
903             * @param systemEventLocalService the system event local service
904             */
905            public void setSystemEventLocalService(
906                    com.liferay.portal.service.SystemEventLocalService systemEventLocalService) {
907                    this.systemEventLocalService = systemEventLocalService;
908            }
909    
910            /**
911             * Returns the system event persistence.
912             *
913             * @return the system event persistence
914             */
915            public SystemEventPersistence getSystemEventPersistence() {
916                    return systemEventPersistence;
917            }
918    
919            /**
920             * Sets the system event persistence.
921             *
922             * @param systemEventPersistence the system event persistence
923             */
924            public void setSystemEventPersistence(
925                    SystemEventPersistence systemEventPersistence) {
926                    this.systemEventPersistence = systemEventPersistence;
927            }
928    
929            /**
930             * Returns the user local service.
931             *
932             * @return the user local service
933             */
934            public com.liferay.portal.service.UserLocalService getUserLocalService() {
935                    return userLocalService;
936            }
937    
938            /**
939             * Sets the user local service.
940             *
941             * @param userLocalService the user local service
942             */
943            public void setUserLocalService(
944                    com.liferay.portal.service.UserLocalService userLocalService) {
945                    this.userLocalService = userLocalService;
946            }
947    
948            /**
949             * Returns the user remote service.
950             *
951             * @return the user remote service
952             */
953            public com.liferay.portal.service.UserService getUserService() {
954                    return userService;
955            }
956    
957            /**
958             * Sets the user remote service.
959             *
960             * @param userService the user remote service
961             */
962            public void setUserService(
963                    com.liferay.portal.service.UserService userService) {
964                    this.userService = userService;
965            }
966    
967            /**
968             * Returns the user persistence.
969             *
970             * @return the user persistence
971             */
972            public UserPersistence getUserPersistence() {
973                    return userPersistence;
974            }
975    
976            /**
977             * Sets the user persistence.
978             *
979             * @param userPersistence the user persistence
980             */
981            public void setUserPersistence(UserPersistence userPersistence) {
982                    this.userPersistence = userPersistence;
983            }
984    
985            /**
986             * Returns the user finder.
987             *
988             * @return the user finder
989             */
990            public UserFinder getUserFinder() {
991                    return userFinder;
992            }
993    
994            /**
995             * Sets the user finder.
996             *
997             * @param userFinder the user finder
998             */
999            public void setUserFinder(UserFinder userFinder) {
1000                    this.userFinder = userFinder;
1001            }
1002    
1003            /**
1004             * Returns the workflow instance link local service.
1005             *
1006             * @return the workflow instance link local service
1007             */
1008            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1009                    return workflowInstanceLinkLocalService;
1010            }
1011    
1012            /**
1013             * Sets the workflow instance link local service.
1014             *
1015             * @param workflowInstanceLinkLocalService the workflow instance link local service
1016             */
1017            public void setWorkflowInstanceLinkLocalService(
1018                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1019                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1020            }
1021    
1022            /**
1023             * Returns the workflow instance link persistence.
1024             *
1025             * @return the workflow instance link persistence
1026             */
1027            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1028                    return workflowInstanceLinkPersistence;
1029            }
1030    
1031            /**
1032             * Sets the workflow instance link persistence.
1033             *
1034             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1035             */
1036            public void setWorkflowInstanceLinkPersistence(
1037                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1038                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1039            }
1040    
1041            /**
1042             * Returns the asset category local service.
1043             *
1044             * @return the asset category local service
1045             */
1046            public com.liferay.portlet.asset.service.AssetCategoryLocalService getAssetCategoryLocalService() {
1047                    return assetCategoryLocalService;
1048            }
1049    
1050            /**
1051             * Sets the asset category local service.
1052             *
1053             * @param assetCategoryLocalService the asset category local service
1054             */
1055            public void setAssetCategoryLocalService(
1056                    com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService) {
1057                    this.assetCategoryLocalService = assetCategoryLocalService;
1058            }
1059    
1060            /**
1061             * Returns the asset category remote service.
1062             *
1063             * @return the asset category remote service
1064             */
1065            public com.liferay.portlet.asset.service.AssetCategoryService getAssetCategoryService() {
1066                    return assetCategoryService;
1067            }
1068    
1069            /**
1070             * Sets the asset category remote service.
1071             *
1072             * @param assetCategoryService the asset category remote service
1073             */
1074            public void setAssetCategoryService(
1075                    com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService) {
1076                    this.assetCategoryService = assetCategoryService;
1077            }
1078    
1079            /**
1080             * Returns the asset category persistence.
1081             *
1082             * @return the asset category persistence
1083             */
1084            public AssetCategoryPersistence getAssetCategoryPersistence() {
1085                    return assetCategoryPersistence;
1086            }
1087    
1088            /**
1089             * Sets the asset category persistence.
1090             *
1091             * @param assetCategoryPersistence the asset category persistence
1092             */
1093            public void setAssetCategoryPersistence(
1094                    AssetCategoryPersistence assetCategoryPersistence) {
1095                    this.assetCategoryPersistence = assetCategoryPersistence;
1096            }
1097    
1098            /**
1099             * Returns the asset category finder.
1100             *
1101             * @return the asset category finder
1102             */
1103            public AssetCategoryFinder getAssetCategoryFinder() {
1104                    return assetCategoryFinder;
1105            }
1106    
1107            /**
1108             * Sets the asset category finder.
1109             *
1110             * @param assetCategoryFinder the asset category finder
1111             */
1112            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
1113                    this.assetCategoryFinder = assetCategoryFinder;
1114            }
1115    
1116            /**
1117             * Returns the asset entry local service.
1118             *
1119             * @return the asset entry local service
1120             */
1121            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1122                    return assetEntryLocalService;
1123            }
1124    
1125            /**
1126             * Sets the asset entry local service.
1127             *
1128             * @param assetEntryLocalService the asset entry local service
1129             */
1130            public void setAssetEntryLocalService(
1131                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1132                    this.assetEntryLocalService = assetEntryLocalService;
1133            }
1134    
1135            /**
1136             * Returns the asset entry remote service.
1137             *
1138             * @return the asset entry remote service
1139             */
1140            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1141                    return assetEntryService;
1142            }
1143    
1144            /**
1145             * Sets the asset entry remote service.
1146             *
1147             * @param assetEntryService the asset entry remote service
1148             */
1149            public void setAssetEntryService(
1150                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1151                    this.assetEntryService = assetEntryService;
1152            }
1153    
1154            /**
1155             * Returns the asset entry persistence.
1156             *
1157             * @return the asset entry persistence
1158             */
1159            public AssetEntryPersistence getAssetEntryPersistence() {
1160                    return assetEntryPersistence;
1161            }
1162    
1163            /**
1164             * Sets the asset entry persistence.
1165             *
1166             * @param assetEntryPersistence the asset entry persistence
1167             */
1168            public void setAssetEntryPersistence(
1169                    AssetEntryPersistence assetEntryPersistence) {
1170                    this.assetEntryPersistence = assetEntryPersistence;
1171            }
1172    
1173            /**
1174             * Returns the asset entry finder.
1175             *
1176             * @return the asset entry finder
1177             */
1178            public AssetEntryFinder getAssetEntryFinder() {
1179                    return assetEntryFinder;
1180            }
1181    
1182            /**
1183             * Sets the asset entry finder.
1184             *
1185             * @param assetEntryFinder the asset entry finder
1186             */
1187            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1188                    this.assetEntryFinder = assetEntryFinder;
1189            }
1190    
1191            /**
1192             * Returns the asset link local service.
1193             *
1194             * @return the asset link local service
1195             */
1196            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1197                    return assetLinkLocalService;
1198            }
1199    
1200            /**
1201             * Sets the asset link local service.
1202             *
1203             * @param assetLinkLocalService the asset link local service
1204             */
1205            public void setAssetLinkLocalService(
1206                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1207                    this.assetLinkLocalService = assetLinkLocalService;
1208            }
1209    
1210            /**
1211             * Returns the asset link persistence.
1212             *
1213             * @return the asset link persistence
1214             */
1215            public AssetLinkPersistence getAssetLinkPersistence() {
1216                    return assetLinkPersistence;
1217            }
1218    
1219            /**
1220             * Sets the asset link persistence.
1221             *
1222             * @param assetLinkPersistence the asset link persistence
1223             */
1224            public void setAssetLinkPersistence(
1225                    AssetLinkPersistence assetLinkPersistence) {
1226                    this.assetLinkPersistence = assetLinkPersistence;
1227            }
1228    
1229            /**
1230             * Returns the asset tag local service.
1231             *
1232             * @return the asset tag local service
1233             */
1234            public com.liferay.portlet.asset.service.AssetTagLocalService getAssetTagLocalService() {
1235                    return assetTagLocalService;
1236            }
1237    
1238            /**
1239             * Sets the asset tag local service.
1240             *
1241             * @param assetTagLocalService the asset tag local service
1242             */
1243            public void setAssetTagLocalService(
1244                    com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService) {
1245                    this.assetTagLocalService = assetTagLocalService;
1246            }
1247    
1248            /**
1249             * Returns the asset tag remote service.
1250             *
1251             * @return the asset tag remote service
1252             */
1253            public com.liferay.portlet.asset.service.AssetTagService getAssetTagService() {
1254                    return assetTagService;
1255            }
1256    
1257            /**
1258             * Sets the asset tag remote service.
1259             *
1260             * @param assetTagService the asset tag remote service
1261             */
1262            public void setAssetTagService(
1263                    com.liferay.portlet.asset.service.AssetTagService assetTagService) {
1264                    this.assetTagService = assetTagService;
1265            }
1266    
1267            /**
1268             * Returns the asset tag persistence.
1269             *
1270             * @return the asset tag persistence
1271             */
1272            public AssetTagPersistence getAssetTagPersistence() {
1273                    return assetTagPersistence;
1274            }
1275    
1276            /**
1277             * Sets the asset tag persistence.
1278             *
1279             * @param assetTagPersistence the asset tag persistence
1280             */
1281            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
1282                    this.assetTagPersistence = assetTagPersistence;
1283            }
1284    
1285            /**
1286             * Returns the asset tag finder.
1287             *
1288             * @return the asset tag finder
1289             */
1290            public AssetTagFinder getAssetTagFinder() {
1291                    return assetTagFinder;
1292            }
1293    
1294            /**
1295             * Sets the asset tag finder.
1296             *
1297             * @param assetTagFinder the asset tag finder
1298             */
1299            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
1300                    this.assetTagFinder = assetTagFinder;
1301            }
1302    
1303            /**
1304             * Returns the expando row local service.
1305             *
1306             * @return the expando row local service
1307             */
1308            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
1309                    return expandoRowLocalService;
1310            }
1311    
1312            /**
1313             * Sets the expando row local service.
1314             *
1315             * @param expandoRowLocalService the expando row local service
1316             */
1317            public void setExpandoRowLocalService(
1318                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
1319                    this.expandoRowLocalService = expandoRowLocalService;
1320            }
1321    
1322            /**
1323             * Returns the expando row persistence.
1324             *
1325             * @return the expando row persistence
1326             */
1327            public ExpandoRowPersistence getExpandoRowPersistence() {
1328                    return expandoRowPersistence;
1329            }
1330    
1331            /**
1332             * Sets the expando row persistence.
1333             *
1334             * @param expandoRowPersistence the expando row persistence
1335             */
1336            public void setExpandoRowPersistence(
1337                    ExpandoRowPersistence expandoRowPersistence) {
1338                    this.expandoRowPersistence = expandoRowPersistence;
1339            }
1340    
1341            /**
1342             * Returns the message-boards message local service.
1343             *
1344             * @return the message-boards message local service
1345             */
1346            public com.liferay.portlet.messageboards.service.MBMessageLocalService getMBMessageLocalService() {
1347                    return mbMessageLocalService;
1348            }
1349    
1350            /**
1351             * Sets the message-boards message local service.
1352             *
1353             * @param mbMessageLocalService the message-boards message local service
1354             */
1355            public void setMBMessageLocalService(
1356                    com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService) {
1357                    this.mbMessageLocalService = mbMessageLocalService;
1358            }
1359    
1360            /**
1361             * Returns the message-boards message remote service.
1362             *
1363             * @return the message-boards message remote service
1364             */
1365            public com.liferay.portlet.messageboards.service.MBMessageService getMBMessageService() {
1366                    return mbMessageService;
1367            }
1368    
1369            /**
1370             * Sets the message-boards message remote service.
1371             *
1372             * @param mbMessageService the message-boards message remote service
1373             */
1374            public void setMBMessageService(
1375                    com.liferay.portlet.messageboards.service.MBMessageService mbMessageService) {
1376                    this.mbMessageService = mbMessageService;
1377            }
1378    
1379            /**
1380             * Returns the message-boards message persistence.
1381             *
1382             * @return the message-boards message persistence
1383             */
1384            public MBMessagePersistence getMBMessagePersistence() {
1385                    return mbMessagePersistence;
1386            }
1387    
1388            /**
1389             * Sets the message-boards message persistence.
1390             *
1391             * @param mbMessagePersistence the message-boards message persistence
1392             */
1393            public void setMBMessagePersistence(
1394                    MBMessagePersistence mbMessagePersistence) {
1395                    this.mbMessagePersistence = mbMessagePersistence;
1396            }
1397    
1398            /**
1399             * Returns the message-boards message finder.
1400             *
1401             * @return the message-boards message finder
1402             */
1403            public MBMessageFinder getMBMessageFinder() {
1404                    return mbMessageFinder;
1405            }
1406    
1407            /**
1408             * Sets the message-boards message finder.
1409             *
1410             * @param mbMessageFinder the message-boards message finder
1411             */
1412            public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
1413                    this.mbMessageFinder = mbMessageFinder;
1414            }
1415    
1416            /**
1417             * Returns the social activity local service.
1418             *
1419             * @return the social activity local service
1420             */
1421            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1422                    return socialActivityLocalService;
1423            }
1424    
1425            /**
1426             * Sets the social activity local service.
1427             *
1428             * @param socialActivityLocalService the social activity local service
1429             */
1430            public void setSocialActivityLocalService(
1431                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1432                    this.socialActivityLocalService = socialActivityLocalService;
1433            }
1434    
1435            /**
1436             * Returns the social activity remote service.
1437             *
1438             * @return the social activity remote service
1439             */
1440            public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1441                    return socialActivityService;
1442            }
1443    
1444            /**
1445             * Sets the social activity remote service.
1446             *
1447             * @param socialActivityService the social activity remote service
1448             */
1449            public void setSocialActivityService(
1450                    com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1451                    this.socialActivityService = socialActivityService;
1452            }
1453    
1454            /**
1455             * Returns the social activity persistence.
1456             *
1457             * @return the social activity persistence
1458             */
1459            public SocialActivityPersistence getSocialActivityPersistence() {
1460                    return socialActivityPersistence;
1461            }
1462    
1463            /**
1464             * Sets the social activity persistence.
1465             *
1466             * @param socialActivityPersistence the social activity persistence
1467             */
1468            public void setSocialActivityPersistence(
1469                    SocialActivityPersistence socialActivityPersistence) {
1470                    this.socialActivityPersistence = socialActivityPersistence;
1471            }
1472    
1473            /**
1474             * Returns the social activity finder.
1475             *
1476             * @return the social activity finder
1477             */
1478            public SocialActivityFinder getSocialActivityFinder() {
1479                    return socialActivityFinder;
1480            }
1481    
1482            /**
1483             * Sets the social activity finder.
1484             *
1485             * @param socialActivityFinder the social activity finder
1486             */
1487            public void setSocialActivityFinder(
1488                    SocialActivityFinder socialActivityFinder) {
1489                    this.socialActivityFinder = socialActivityFinder;
1490            }
1491    
1492            /**
1493             * Returns the trash entry local service.
1494             *
1495             * @return the trash entry local service
1496             */
1497            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1498                    return trashEntryLocalService;
1499            }
1500    
1501            /**
1502             * Sets the trash entry local service.
1503             *
1504             * @param trashEntryLocalService the trash entry local service
1505             */
1506            public void setTrashEntryLocalService(
1507                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1508                    this.trashEntryLocalService = trashEntryLocalService;
1509            }
1510    
1511            /**
1512             * Returns the trash entry remote service.
1513             *
1514             * @return the trash entry remote service
1515             */
1516            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1517                    return trashEntryService;
1518            }
1519    
1520            /**
1521             * Sets the trash entry remote service.
1522             *
1523             * @param trashEntryService the trash entry remote service
1524             */
1525            public void setTrashEntryService(
1526                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1527                    this.trashEntryService = trashEntryService;
1528            }
1529    
1530            /**
1531             * Returns the trash entry persistence.
1532             *
1533             * @return the trash entry persistence
1534             */
1535            public TrashEntryPersistence getTrashEntryPersistence() {
1536                    return trashEntryPersistence;
1537            }
1538    
1539            /**
1540             * Sets the trash entry persistence.
1541             *
1542             * @param trashEntryPersistence the trash entry persistence
1543             */
1544            public void setTrashEntryPersistence(
1545                    TrashEntryPersistence trashEntryPersistence) {
1546                    this.trashEntryPersistence = trashEntryPersistence;
1547            }
1548    
1549            /**
1550             * Returns the trash version local service.
1551             *
1552             * @return the trash version local service
1553             */
1554            public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1555                    return trashVersionLocalService;
1556            }
1557    
1558            /**
1559             * Sets the trash version local service.
1560             *
1561             * @param trashVersionLocalService the trash version local service
1562             */
1563            public void setTrashVersionLocalService(
1564                    com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1565                    this.trashVersionLocalService = trashVersionLocalService;
1566            }
1567    
1568            /**
1569             * Returns the trash version persistence.
1570             *
1571             * @return the trash version persistence
1572             */
1573            public TrashVersionPersistence getTrashVersionPersistence() {
1574                    return trashVersionPersistence;
1575            }
1576    
1577            /**
1578             * Sets the trash version persistence.
1579             *
1580             * @param trashVersionPersistence the trash version persistence
1581             */
1582            public void setTrashVersionPersistence(
1583                    TrashVersionPersistence trashVersionPersistence) {
1584                    this.trashVersionPersistence = trashVersionPersistence;
1585            }
1586    
1587            /**
1588             * Returns the wiki node local service.
1589             *
1590             * @return the wiki node local service
1591             */
1592            public com.liferay.portlet.wiki.service.WikiNodeLocalService getWikiNodeLocalService() {
1593                    return wikiNodeLocalService;
1594            }
1595    
1596            /**
1597             * Sets the wiki node local service.
1598             *
1599             * @param wikiNodeLocalService the wiki node local service
1600             */
1601            public void setWikiNodeLocalService(
1602                    com.liferay.portlet.wiki.service.WikiNodeLocalService wikiNodeLocalService) {
1603                    this.wikiNodeLocalService = wikiNodeLocalService;
1604            }
1605    
1606            /**
1607             * Returns the wiki node remote service.
1608             *
1609             * @return the wiki node remote service
1610             */
1611            public com.liferay.portlet.wiki.service.WikiNodeService getWikiNodeService() {
1612                    return wikiNodeService;
1613            }
1614    
1615            /**
1616             * Sets the wiki node remote service.
1617             *
1618             * @param wikiNodeService the wiki node remote service
1619             */
1620            public void setWikiNodeService(
1621                    com.liferay.portlet.wiki.service.WikiNodeService wikiNodeService) {
1622                    this.wikiNodeService = wikiNodeService;
1623            }
1624    
1625            /**
1626             * Returns the wiki node persistence.
1627             *
1628             * @return the wiki node persistence
1629             */
1630            public WikiNodePersistence getWikiNodePersistence() {
1631                    return wikiNodePersistence;
1632            }
1633    
1634            /**
1635             * Sets the wiki node persistence.
1636             *
1637             * @param wikiNodePersistence the wiki node persistence
1638             */
1639            public void setWikiNodePersistence(WikiNodePersistence wikiNodePersistence) {
1640                    this.wikiNodePersistence = wikiNodePersistence;
1641            }
1642    
1643            /**
1644             * Returns the wiki page resource local service.
1645             *
1646             * @return the wiki page resource local service
1647             */
1648            public com.liferay.portlet.wiki.service.WikiPageResourceLocalService getWikiPageResourceLocalService() {
1649                    return wikiPageResourceLocalService;
1650            }
1651    
1652            /**
1653             * Sets the wiki page resource local service.
1654             *
1655             * @param wikiPageResourceLocalService the wiki page resource local service
1656             */
1657            public void setWikiPageResourceLocalService(
1658                    com.liferay.portlet.wiki.service.WikiPageResourceLocalService wikiPageResourceLocalService) {
1659                    this.wikiPageResourceLocalService = wikiPageResourceLocalService;
1660            }
1661    
1662            /**
1663             * Returns the wiki page resource persistence.
1664             *
1665             * @return the wiki page resource persistence
1666             */
1667            public WikiPageResourcePersistence getWikiPageResourcePersistence() {
1668                    return wikiPageResourcePersistence;
1669            }
1670    
1671            /**
1672             * Sets the wiki page resource persistence.
1673             *
1674             * @param wikiPageResourcePersistence the wiki page resource persistence
1675             */
1676            public void setWikiPageResourcePersistence(
1677                    WikiPageResourcePersistence wikiPageResourcePersistence) {
1678                    this.wikiPageResourcePersistence = wikiPageResourcePersistence;
1679            }
1680    
1681            public void afterPropertiesSet() {
1682                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.wiki.model.WikiPage",
1683                            wikiPageLocalService);
1684            }
1685    
1686            public void destroy() {
1687                    persistedModelLocalServiceRegistry.unregister(
1688                            "com.liferay.portlet.wiki.model.WikiPage");
1689            }
1690    
1691            /**
1692             * Returns the Spring bean ID for this bean.
1693             *
1694             * @return the Spring bean ID for this bean
1695             */
1696            @Override
1697            public String getBeanIdentifier() {
1698                    return _beanIdentifier;
1699            }
1700    
1701            /**
1702             * Sets the Spring bean ID for this bean.
1703             *
1704             * @param beanIdentifier the Spring bean ID for this bean
1705             */
1706            @Override
1707            public void setBeanIdentifier(String beanIdentifier) {
1708                    _beanIdentifier = beanIdentifier;
1709            }
1710    
1711            protected Class<?> getModelClass() {
1712                    return WikiPage.class;
1713            }
1714    
1715            protected String getModelClassName() {
1716                    return WikiPage.class.getName();
1717            }
1718    
1719            /**
1720             * Performs a SQL query.
1721             *
1722             * @param sql the sql query
1723             */
1724            protected void runSQL(String sql) {
1725                    try {
1726                            DataSource dataSource = wikiPagePersistence.getDataSource();
1727    
1728                            DB db = DBFactoryUtil.getDB();
1729    
1730                            sql = db.buildSQL(sql);
1731                            sql = PortalUtil.transformSQL(sql);
1732    
1733                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1734                                            sql, new int[0]);
1735    
1736                            sqlUpdate.update();
1737                    }
1738                    catch (Exception e) {
1739                            throw new SystemException(e);
1740                    }
1741            }
1742    
1743            @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageLocalService.class)
1744            protected com.liferay.portlet.wiki.service.WikiPageLocalService wikiPageLocalService;
1745            @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageService.class)
1746            protected com.liferay.portlet.wiki.service.WikiPageService wikiPageService;
1747            @BeanReference(type = WikiPagePersistence.class)
1748            protected WikiPagePersistence wikiPagePersistence;
1749            @BeanReference(type = WikiPageFinder.class)
1750            protected WikiPageFinder wikiPageFinder;
1751            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1752            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1753            @BeanReference(type = com.liferay.portal.service.CompanyLocalService.class)
1754            protected com.liferay.portal.service.CompanyLocalService companyLocalService;
1755            @BeanReference(type = com.liferay.portal.service.CompanyService.class)
1756            protected com.liferay.portal.service.CompanyService companyService;
1757            @BeanReference(type = CompanyPersistence.class)
1758            protected CompanyPersistence companyPersistence;
1759            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1760            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1761            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1762            protected com.liferay.portal.service.GroupService groupService;
1763            @BeanReference(type = GroupPersistence.class)
1764            protected GroupPersistence groupPersistence;
1765            @BeanReference(type = GroupFinder.class)
1766            protected GroupFinder groupFinder;
1767            @BeanReference(type = com.liferay.portal.service.LayoutLocalService.class)
1768            protected com.liferay.portal.service.LayoutLocalService layoutLocalService;
1769            @BeanReference(type = com.liferay.portal.service.LayoutService.class)
1770            protected com.liferay.portal.service.LayoutService layoutService;
1771            @BeanReference(type = LayoutPersistence.class)
1772            protected LayoutPersistence layoutPersistence;
1773            @BeanReference(type = LayoutFinder.class)
1774            protected LayoutFinder layoutFinder;
1775            @BeanReference(type = com.liferay.portal.service.PortletPreferencesLocalService.class)
1776            protected com.liferay.portal.service.PortletPreferencesLocalService portletPreferencesLocalService;
1777            @BeanReference(type = com.liferay.portal.service.PortletPreferencesService.class)
1778            protected com.liferay.portal.service.PortletPreferencesService portletPreferencesService;
1779            @BeanReference(type = PortletPreferencesPersistence.class)
1780            protected PortletPreferencesPersistence portletPreferencesPersistence;
1781            @BeanReference(type = PortletPreferencesFinder.class)
1782            protected PortletPreferencesFinder portletPreferencesFinder;
1783            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1784            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1785            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1786            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1787            @BeanReference(type = SubscriptionPersistence.class)
1788            protected SubscriptionPersistence subscriptionPersistence;
1789            @BeanReference(type = com.liferay.portal.service.SystemEventLocalService.class)
1790            protected com.liferay.portal.service.SystemEventLocalService systemEventLocalService;
1791            @BeanReference(type = SystemEventPersistence.class)
1792            protected SystemEventPersistence systemEventPersistence;
1793            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1794            protected com.liferay.portal.service.UserLocalService userLocalService;
1795            @BeanReference(type = com.liferay.portal.service.UserService.class)
1796            protected com.liferay.portal.service.UserService userService;
1797            @BeanReference(type = UserPersistence.class)
1798            protected UserPersistence userPersistence;
1799            @BeanReference(type = UserFinder.class)
1800            protected UserFinder userFinder;
1801            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1802            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1803            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1804            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1805            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryLocalService.class)
1806            protected com.liferay.portlet.asset.service.AssetCategoryLocalService assetCategoryLocalService;
1807            @BeanReference(type = com.liferay.portlet.asset.service.AssetCategoryService.class)
1808            protected com.liferay.portlet.asset.service.AssetCategoryService assetCategoryService;
1809            @BeanReference(type = AssetCategoryPersistence.class)
1810            protected AssetCategoryPersistence assetCategoryPersistence;
1811            @BeanReference(type = AssetCategoryFinder.class)
1812            protected AssetCategoryFinder assetCategoryFinder;
1813            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1814            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1815            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1816            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1817            @BeanReference(type = AssetEntryPersistence.class)
1818            protected AssetEntryPersistence assetEntryPersistence;
1819            @BeanReference(type = AssetEntryFinder.class)
1820            protected AssetEntryFinder assetEntryFinder;
1821            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1822            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1823            @BeanReference(type = AssetLinkPersistence.class)
1824            protected AssetLinkPersistence assetLinkPersistence;
1825            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagLocalService.class)
1826            protected com.liferay.portlet.asset.service.AssetTagLocalService assetTagLocalService;
1827            @BeanReference(type = com.liferay.portlet.asset.service.AssetTagService.class)
1828            protected com.liferay.portlet.asset.service.AssetTagService assetTagService;
1829            @BeanReference(type = AssetTagPersistence.class)
1830            protected AssetTagPersistence assetTagPersistence;
1831            @BeanReference(type = AssetTagFinder.class)
1832            protected AssetTagFinder assetTagFinder;
1833            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1834            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1835            @BeanReference(type = ExpandoRowPersistence.class)
1836            protected ExpandoRowPersistence expandoRowPersistence;
1837            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageLocalService.class)
1838            protected com.liferay.portlet.messageboards.service.MBMessageLocalService mbMessageLocalService;
1839            @BeanReference(type = com.liferay.portlet.messageboards.service.MBMessageService.class)
1840            protected com.liferay.portlet.messageboards.service.MBMessageService mbMessageService;
1841            @BeanReference(type = MBMessagePersistence.class)
1842            protected MBMessagePersistence mbMessagePersistence;
1843            @BeanReference(type = MBMessageFinder.class)
1844            protected MBMessageFinder mbMessageFinder;
1845            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1846            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1847            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1848            protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1849            @BeanReference(type = SocialActivityPersistence.class)
1850            protected SocialActivityPersistence socialActivityPersistence;
1851            @BeanReference(type = SocialActivityFinder.class)
1852            protected SocialActivityFinder socialActivityFinder;
1853            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1854            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1855            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1856            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1857            @BeanReference(type = TrashEntryPersistence.class)
1858            protected TrashEntryPersistence trashEntryPersistence;
1859            @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1860            protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1861            @BeanReference(type = TrashVersionPersistence.class)
1862            protected TrashVersionPersistence trashVersionPersistence;
1863            @BeanReference(type = com.liferay.portlet.wiki.service.WikiNodeLocalService.class)
1864            protected com.liferay.portlet.wiki.service.WikiNodeLocalService wikiNodeLocalService;
1865            @BeanReference(type = com.liferay.portlet.wiki.service.WikiNodeService.class)
1866            protected com.liferay.portlet.wiki.service.WikiNodeService wikiNodeService;
1867            @BeanReference(type = WikiNodePersistence.class)
1868            protected WikiNodePersistence wikiNodePersistence;
1869            @BeanReference(type = com.liferay.portlet.wiki.service.WikiPageResourceLocalService.class)
1870            protected com.liferay.portlet.wiki.service.WikiPageResourceLocalService wikiPageResourceLocalService;
1871            @BeanReference(type = WikiPageResourcePersistence.class)
1872            protected WikiPageResourcePersistence wikiPageResourcePersistence;
1873            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1874            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1875            private String _beanIdentifier;
1876    }