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