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.journal.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.Criterion;
027    import com.liferay.portal.kernel.dao.orm.DefaultActionableDynamicQuery;
028    import com.liferay.portal.kernel.dao.orm.Disjunction;
029    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
030    import com.liferay.portal.kernel.dao.orm.DynamicQueryFactoryUtil;
031    import com.liferay.portal.kernel.dao.orm.ExportActionableDynamicQuery;
032    import com.liferay.portal.kernel.dao.orm.Projection;
033    import com.liferay.portal.kernel.dao.orm.Property;
034    import com.liferay.portal.kernel.dao.orm.PropertyFactoryUtil;
035    import com.liferay.portal.kernel.dao.orm.RestrictionsFactoryUtil;
036    import com.liferay.portal.kernel.exception.PortalException;
037    import com.liferay.portal.kernel.exception.SystemException;
038    import com.liferay.portal.kernel.search.Indexable;
039    import com.liferay.portal.kernel.search.IndexableType;
040    import com.liferay.portal.kernel.util.OrderByComparator;
041    import com.liferay.portal.kernel.workflow.WorkflowConstants;
042    import com.liferay.portal.model.PersistedModel;
043    import com.liferay.portal.service.BaseLocalServiceImpl;
044    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
045    import com.liferay.portal.service.persistence.ClassNamePersistence;
046    import com.liferay.portal.service.persistence.GroupFinder;
047    import com.liferay.portal.service.persistence.GroupPersistence;
048    import com.liferay.portal.service.persistence.SubscriptionPersistence;
049    import com.liferay.portal.service.persistence.UserFinder;
050    import com.liferay.portal.service.persistence.UserPersistence;
051    import com.liferay.portal.service.persistence.WorkflowDefinitionLinkPersistence;
052    import com.liferay.portal.service.persistence.WorkflowInstanceLinkPersistence;
053    import com.liferay.portal.util.PortalUtil;
054    
055    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
056    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
057    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
058    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureFinder;
059    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
060    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructurePersistence;
061    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
062    import com.liferay.portlet.exportimport.lar.ExportImportHelperUtil;
063    import com.liferay.portlet.exportimport.lar.ManifestSummary;
064    import com.liferay.portlet.exportimport.lar.PortletDataContext;
065    import com.liferay.portlet.exportimport.lar.StagedModelDataHandler;
066    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerRegistryUtil;
067    import com.liferay.portlet.exportimport.lar.StagedModelDataHandlerUtil;
068    import com.liferay.portlet.exportimport.lar.StagedModelType;
069    import com.liferay.portlet.journal.model.JournalFolder;
070    import com.liferay.portlet.journal.service.JournalFolderLocalService;
071    import com.liferay.portlet.journal.service.persistence.JournalArticleFinder;
072    import com.liferay.portlet.journal.service.persistence.JournalArticlePersistence;
073    import com.liferay.portlet.journal.service.persistence.JournalFolderFinder;
074    import com.liferay.portlet.journal.service.persistence.JournalFolderPersistence;
075    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
076    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
077    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
078    import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
079    
080    import java.io.Serializable;
081    
082    import java.util.List;
083    
084    import javax.sql.DataSource;
085    
086    /**
087     * Provides the base implementation for the journal folder local service.
088     *
089     * <p>
090     * 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.journal.service.impl.JournalFolderLocalServiceImpl}.
091     * </p>
092     *
093     * @author Brian Wing Shun Chan
094     * @see com.liferay.portlet.journal.service.impl.JournalFolderLocalServiceImpl
095     * @see com.liferay.portlet.journal.service.JournalFolderLocalServiceUtil
096     * @generated
097     */
098    @ProviderType
099    public abstract class JournalFolderLocalServiceBaseImpl
100            extends BaseLocalServiceImpl implements JournalFolderLocalService,
101                    IdentifiableBean {
102            /*
103             * NOTE FOR DEVELOPERS:
104             *
105             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.journal.service.JournalFolderLocalServiceUtil} to access the journal folder local service.
106             */
107    
108            /**
109             * Adds the journal folder to the database. Also notifies the appropriate model listeners.
110             *
111             * @param journalFolder the journal folder
112             * @return the journal folder that was added
113             */
114            @Indexable(type = IndexableType.REINDEX)
115            @Override
116            public JournalFolder addJournalFolder(JournalFolder journalFolder) {
117                    journalFolder.setNew(true);
118    
119                    return journalFolderPersistence.update(journalFolder);
120            }
121    
122            /**
123             * Creates a new journal folder with the primary key. Does not add the journal folder to the database.
124             *
125             * @param folderId the primary key for the new journal folder
126             * @return the new journal folder
127             */
128            @Override
129            public JournalFolder createJournalFolder(long folderId) {
130                    return journalFolderPersistence.create(folderId);
131            }
132    
133            /**
134             * Deletes the journal folder with the primary key from the database. Also notifies the appropriate model listeners.
135             *
136             * @param folderId the primary key of the journal folder
137             * @return the journal folder that was removed
138             * @throws PortalException if a journal folder with the primary key could not be found
139             */
140            @Indexable(type = IndexableType.DELETE)
141            @Override
142            public JournalFolder deleteJournalFolder(long folderId)
143                    throws PortalException {
144                    return journalFolderPersistence.remove(folderId);
145            }
146    
147            /**
148             * Deletes the journal folder from the database. Also notifies the appropriate model listeners.
149             *
150             * @param journalFolder the journal folder
151             * @return the journal folder that was removed
152             */
153            @Indexable(type = IndexableType.DELETE)
154            @Override
155            public JournalFolder deleteJournalFolder(JournalFolder journalFolder) {
156                    return journalFolderPersistence.remove(journalFolder);
157            }
158    
159            @Override
160            public DynamicQuery dynamicQuery() {
161                    Class<?> clazz = getClass();
162    
163                    return DynamicQueryFactoryUtil.forClass(JournalFolder.class,
164                            clazz.getClassLoader());
165            }
166    
167            /**
168             * Performs a dynamic query on the database and returns the matching rows.
169             *
170             * @param dynamicQuery the dynamic query
171             * @return the matching rows
172             */
173            @Override
174            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
175                    return journalFolderPersistence.findWithDynamicQuery(dynamicQuery);
176            }
177    
178            /**
179             * Performs a dynamic query on the database and returns a range of the matching rows.
180             *
181             * <p>
182             * 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.journal.model.impl.JournalFolderModelImpl}. 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.
183             * </p>
184             *
185             * @param dynamicQuery the dynamic query
186             * @param start the lower bound of the range of model instances
187             * @param end the upper bound of the range of model instances (not inclusive)
188             * @return the range of matching rows
189             */
190            @Override
191            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
192                    int end) {
193                    return journalFolderPersistence.findWithDynamicQuery(dynamicQuery,
194                            start, end);
195            }
196    
197            /**
198             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
199             *
200             * <p>
201             * 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.journal.model.impl.JournalFolderModelImpl}. 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.
202             * </p>
203             *
204             * @param dynamicQuery the dynamic query
205             * @param start the lower bound of the range of model instances
206             * @param end the upper bound of the range of model instances (not inclusive)
207             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
208             * @return the ordered range of matching rows
209             */
210            @Override
211            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
212                    int end, OrderByComparator<T> orderByComparator) {
213                    return journalFolderPersistence.findWithDynamicQuery(dynamicQuery,
214                            start, end, orderByComparator);
215            }
216    
217            /**
218             * Returns the number of rows matching the dynamic query.
219             *
220             * @param dynamicQuery the dynamic query
221             * @return the number of rows matching the dynamic query
222             */
223            @Override
224            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
225                    return journalFolderPersistence.countWithDynamicQuery(dynamicQuery);
226            }
227    
228            /**
229             * Returns the number of rows matching the dynamic query.
230             *
231             * @param dynamicQuery the dynamic query
232             * @param projection the projection to apply to the query
233             * @return the number of rows matching the dynamic query
234             */
235            @Override
236            public long dynamicQueryCount(DynamicQuery dynamicQuery,
237                    Projection projection) {
238                    return journalFolderPersistence.countWithDynamicQuery(dynamicQuery,
239                            projection);
240            }
241    
242            @Override
243            public JournalFolder fetchJournalFolder(long folderId) {
244                    return journalFolderPersistence.fetchByPrimaryKey(folderId);
245            }
246    
247            /**
248             * Returns the journal folder matching the UUID and group.
249             *
250             * @param uuid the journal folder's UUID
251             * @param groupId the primary key of the group
252             * @return the matching journal folder, or <code>null</code> if a matching journal folder could not be found
253             */
254            @Override
255            public JournalFolder fetchJournalFolderByUuidAndGroupId(String uuid,
256                    long groupId) {
257                    return journalFolderPersistence.fetchByUUID_G(uuid, groupId);
258            }
259    
260            /**
261             * Returns the journal folder with the primary key.
262             *
263             * @param folderId the primary key of the journal folder
264             * @return the journal folder
265             * @throws PortalException if a journal folder with the primary key could not be found
266             */
267            @Override
268            public JournalFolder getJournalFolder(long folderId)
269                    throws PortalException {
270                    return journalFolderPersistence.findByPrimaryKey(folderId);
271            }
272    
273            @Override
274            public ActionableDynamicQuery getActionableDynamicQuery() {
275                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
276    
277                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.journal.service.JournalFolderLocalServiceUtil.getService());
278                    actionableDynamicQuery.setClass(JournalFolder.class);
279                    actionableDynamicQuery.setClassLoader(getClassLoader());
280    
281                    actionableDynamicQuery.setPrimaryKeyPropertyName("folderId");
282    
283                    return actionableDynamicQuery;
284            }
285    
286            protected void initActionableDynamicQuery(
287                    ActionableDynamicQuery actionableDynamicQuery) {
288                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.journal.service.JournalFolderLocalServiceUtil.getService());
289                    actionableDynamicQuery.setClass(JournalFolder.class);
290                    actionableDynamicQuery.setClassLoader(getClassLoader());
291    
292                    actionableDynamicQuery.setPrimaryKeyPropertyName("folderId");
293            }
294    
295            @Override
296            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
297                    final PortletDataContext portletDataContext) {
298                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
299                                    @Override
300                                    public long performCount() throws PortalException {
301                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
302    
303                                            StagedModelType stagedModelType = getStagedModelType();
304    
305                                            long modelAdditionCount = super.performCount();
306    
307                                            manifestSummary.addModelAdditionCount(stagedModelType.toString(),
308                                                    modelAdditionCount);
309    
310                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
311                                                            stagedModelType);
312    
313                                            manifestSummary.addModelDeletionCount(stagedModelType.toString(),
314                                                    modelDeletionCount);
315    
316                                            return modelAdditionCount;
317                                    }
318                            };
319    
320                    initActionableDynamicQuery(exportActionableDynamicQuery);
321    
322                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
323                                    @Override
324                                    public void addCriteria(DynamicQuery dynamicQuery) {
325                                            Criterion modifiedDateCriterion = portletDataContext.getDateRangeCriteria(
326                                                            "modifiedDate");
327                                            Criterion statusDateCriterion = portletDataContext.getDateRangeCriteria(
328                                                            "statusDate");
329    
330                                            if ((modifiedDateCriterion != null) &&
331                                                            (statusDateCriterion != null)) {
332                                                    Disjunction disjunction = RestrictionsFactoryUtil.disjunction();
333    
334                                                    disjunction.add(modifiedDateCriterion);
335                                                    disjunction.add(statusDateCriterion);
336    
337                                                    dynamicQuery.add(disjunction);
338                                            }
339    
340                                            Property workflowStatusProperty = PropertyFactoryUtil.forName(
341                                                            "status");
342    
343                                            if (portletDataContext.isInitialPublication()) {
344                                                    dynamicQuery.add(workflowStatusProperty.ne(
345                                                                    WorkflowConstants.STATUS_IN_TRASH));
346                                            }
347                                            else {
348                                                    StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(JournalFolder.class.getName());
349    
350                                                    dynamicQuery.add(workflowStatusProperty.in(
351                                                                    stagedModelDataHandler.getExportableStatuses()));
352                                            }
353                                    }
354                            });
355    
356                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
357    
358                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
359    
360                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
361                                    @Override
362                                    public void performAction(Object object)
363                                            throws PortalException {
364                                            JournalFolder stagedModel = (JournalFolder)object;
365    
366                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
367                                                    stagedModel);
368                                    }
369                            });
370                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
371                                    PortalUtil.getClassNameId(JournalFolder.class.getName())));
372    
373                    return exportActionableDynamicQuery;
374            }
375    
376            /**
377             * @throws PortalException
378             */
379            @Override
380            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
381                    throws PortalException {
382                    return journalFolderLocalService.deleteJournalFolder((JournalFolder)persistedModel);
383            }
384    
385            @Override
386            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
387                    throws PortalException {
388                    return journalFolderPersistence.findByPrimaryKey(primaryKeyObj);
389            }
390    
391            /**
392             * Returns all the journal folders matching the UUID and company.
393             *
394             * @param uuid the UUID of the journal folders
395             * @param companyId the primary key of the company
396             * @return the matching journal folders, or an empty list if no matches were found
397             */
398            @Override
399            public List<JournalFolder> getJournalFoldersByUuidAndCompanyId(
400                    String uuid, long companyId) {
401                    return journalFolderPersistence.findByUuid_C(uuid, companyId);
402            }
403    
404            /**
405             * Returns a range of journal folders matching the UUID and company.
406             *
407             * @param uuid the UUID of the journal folders
408             * @param companyId the primary key of the company
409             * @param start the lower bound of the range of journal folders
410             * @param end the upper bound of the range of journal folders (not inclusive)
411             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
412             * @return the range of matching journal folders, or an empty list if no matches were found
413             */
414            @Override
415            public List<JournalFolder> getJournalFoldersByUuidAndCompanyId(
416                    String uuid, long companyId, int start, int end,
417                    OrderByComparator<JournalFolder> orderByComparator) {
418                    return journalFolderPersistence.findByUuid_C(uuid, companyId, start,
419                            end, orderByComparator);
420            }
421    
422            /**
423             * Returns the journal folder matching the UUID and group.
424             *
425             * @param uuid the journal folder's UUID
426             * @param groupId the primary key of the group
427             * @return the matching journal folder
428             * @throws PortalException if a matching journal folder could not be found
429             */
430            @Override
431            public JournalFolder getJournalFolderByUuidAndGroupId(String uuid,
432                    long groupId) throws PortalException {
433                    return journalFolderPersistence.findByUUID_G(uuid, groupId);
434            }
435    
436            /**
437             * Returns a range of all the journal folders.
438             *
439             * <p>
440             * 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.journal.model.impl.JournalFolderModelImpl}. 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.
441             * </p>
442             *
443             * @param start the lower bound of the range of journal folders
444             * @param end the upper bound of the range of journal folders (not inclusive)
445             * @return the range of journal folders
446             */
447            @Override
448            public List<JournalFolder> getJournalFolders(int start, int end) {
449                    return journalFolderPersistence.findAll(start, end);
450            }
451    
452            /**
453             * Returns the number of journal folders.
454             *
455             * @return the number of journal folders
456             */
457            @Override
458            public int getJournalFoldersCount() {
459                    return journalFolderPersistence.countAll();
460            }
461    
462            /**
463             * Updates the journal folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
464             *
465             * @param journalFolder the journal folder
466             * @return the journal folder that was updated
467             */
468            @Indexable(type = IndexableType.REINDEX)
469            @Override
470            public JournalFolder updateJournalFolder(JournalFolder journalFolder) {
471                    return journalFolderPersistence.update(journalFolder);
472            }
473    
474            /**
475             * Returns the journal folder local service.
476             *
477             * @return the journal folder local service
478             */
479            public JournalFolderLocalService getJournalFolderLocalService() {
480                    return journalFolderLocalService;
481            }
482    
483            /**
484             * Sets the journal folder local service.
485             *
486             * @param journalFolderLocalService the journal folder local service
487             */
488            public void setJournalFolderLocalService(
489                    JournalFolderLocalService journalFolderLocalService) {
490                    this.journalFolderLocalService = journalFolderLocalService;
491            }
492    
493            /**
494             * Returns the journal folder remote service.
495             *
496             * @return the journal folder remote service
497             */
498            public com.liferay.portlet.journal.service.JournalFolderService getJournalFolderService() {
499                    return journalFolderService;
500            }
501    
502            /**
503             * Sets the journal folder remote service.
504             *
505             * @param journalFolderService the journal folder remote service
506             */
507            public void setJournalFolderService(
508                    com.liferay.portlet.journal.service.JournalFolderService journalFolderService) {
509                    this.journalFolderService = journalFolderService;
510            }
511    
512            /**
513             * Returns the journal folder persistence.
514             *
515             * @return the journal folder persistence
516             */
517            public JournalFolderPersistence getJournalFolderPersistence() {
518                    return journalFolderPersistence;
519            }
520    
521            /**
522             * Sets the journal folder persistence.
523             *
524             * @param journalFolderPersistence the journal folder persistence
525             */
526            public void setJournalFolderPersistence(
527                    JournalFolderPersistence journalFolderPersistence) {
528                    this.journalFolderPersistence = journalFolderPersistence;
529            }
530    
531            /**
532             * Returns the journal folder finder.
533             *
534             * @return the journal folder finder
535             */
536            public JournalFolderFinder getJournalFolderFinder() {
537                    return journalFolderFinder;
538            }
539    
540            /**
541             * Sets the journal folder finder.
542             *
543             * @param journalFolderFinder the journal folder finder
544             */
545            public void setJournalFolderFinder(JournalFolderFinder journalFolderFinder) {
546                    this.journalFolderFinder = journalFolderFinder;
547            }
548    
549            /**
550             * Returns the counter local service.
551             *
552             * @return the counter local service
553             */
554            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
555                    return counterLocalService;
556            }
557    
558            /**
559             * Sets the counter local service.
560             *
561             * @param counterLocalService the counter local service
562             */
563            public void setCounterLocalService(
564                    com.liferay.counter.service.CounterLocalService counterLocalService) {
565                    this.counterLocalService = counterLocalService;
566            }
567    
568            /**
569             * Returns the class name local service.
570             *
571             * @return the class name local service
572             */
573            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
574                    return classNameLocalService;
575            }
576    
577            /**
578             * Sets the class name local service.
579             *
580             * @param classNameLocalService the class name local service
581             */
582            public void setClassNameLocalService(
583                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
584                    this.classNameLocalService = classNameLocalService;
585            }
586    
587            /**
588             * Returns the class name remote service.
589             *
590             * @return the class name remote service
591             */
592            public com.liferay.portal.service.ClassNameService getClassNameService() {
593                    return classNameService;
594            }
595    
596            /**
597             * Sets the class name remote service.
598             *
599             * @param classNameService the class name remote service
600             */
601            public void setClassNameService(
602                    com.liferay.portal.service.ClassNameService classNameService) {
603                    this.classNameService = classNameService;
604            }
605    
606            /**
607             * Returns the class name persistence.
608             *
609             * @return the class name persistence
610             */
611            public ClassNamePersistence getClassNamePersistence() {
612                    return classNamePersistence;
613            }
614    
615            /**
616             * Sets the class name persistence.
617             *
618             * @param classNamePersistence the class name persistence
619             */
620            public void setClassNamePersistence(
621                    ClassNamePersistence classNamePersistence) {
622                    this.classNamePersistence = classNamePersistence;
623            }
624    
625            /**
626             * Returns the group local service.
627             *
628             * @return the group local service
629             */
630            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
631                    return groupLocalService;
632            }
633    
634            /**
635             * Sets the group local service.
636             *
637             * @param groupLocalService the group local service
638             */
639            public void setGroupLocalService(
640                    com.liferay.portal.service.GroupLocalService groupLocalService) {
641                    this.groupLocalService = groupLocalService;
642            }
643    
644            /**
645             * Returns the group remote service.
646             *
647             * @return the group remote service
648             */
649            public com.liferay.portal.service.GroupService getGroupService() {
650                    return groupService;
651            }
652    
653            /**
654             * Sets the group remote service.
655             *
656             * @param groupService the group remote service
657             */
658            public void setGroupService(
659                    com.liferay.portal.service.GroupService groupService) {
660                    this.groupService = groupService;
661            }
662    
663            /**
664             * Returns the group persistence.
665             *
666             * @return the group persistence
667             */
668            public GroupPersistence getGroupPersistence() {
669                    return groupPersistence;
670            }
671    
672            /**
673             * Sets the group persistence.
674             *
675             * @param groupPersistence the group persistence
676             */
677            public void setGroupPersistence(GroupPersistence groupPersistence) {
678                    this.groupPersistence = groupPersistence;
679            }
680    
681            /**
682             * Returns the group finder.
683             *
684             * @return the group finder
685             */
686            public GroupFinder getGroupFinder() {
687                    return groupFinder;
688            }
689    
690            /**
691             * Sets the group finder.
692             *
693             * @param groupFinder the group finder
694             */
695            public void setGroupFinder(GroupFinder groupFinder) {
696                    this.groupFinder = groupFinder;
697            }
698    
699            /**
700             * Returns the resource local service.
701             *
702             * @return the resource local service
703             */
704            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
705                    return resourceLocalService;
706            }
707    
708            /**
709             * Sets the resource local service.
710             *
711             * @param resourceLocalService the resource local service
712             */
713            public void setResourceLocalService(
714                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
715                    this.resourceLocalService = resourceLocalService;
716            }
717    
718            /**
719             * Returns the subscription local service.
720             *
721             * @return the subscription local service
722             */
723            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
724                    return subscriptionLocalService;
725            }
726    
727            /**
728             * Sets the subscription local service.
729             *
730             * @param subscriptionLocalService the subscription local service
731             */
732            public void setSubscriptionLocalService(
733                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
734                    this.subscriptionLocalService = subscriptionLocalService;
735            }
736    
737            /**
738             * Returns the subscription persistence.
739             *
740             * @return the subscription persistence
741             */
742            public SubscriptionPersistence getSubscriptionPersistence() {
743                    return subscriptionPersistence;
744            }
745    
746            /**
747             * Sets the subscription persistence.
748             *
749             * @param subscriptionPersistence the subscription persistence
750             */
751            public void setSubscriptionPersistence(
752                    SubscriptionPersistence subscriptionPersistence) {
753                    this.subscriptionPersistence = subscriptionPersistence;
754            }
755    
756            /**
757             * Returns the user local service.
758             *
759             * @return the user local service
760             */
761            public com.liferay.portal.service.UserLocalService getUserLocalService() {
762                    return userLocalService;
763            }
764    
765            /**
766             * Sets the user local service.
767             *
768             * @param userLocalService the user local service
769             */
770            public void setUserLocalService(
771                    com.liferay.portal.service.UserLocalService userLocalService) {
772                    this.userLocalService = userLocalService;
773            }
774    
775            /**
776             * Returns the user remote service.
777             *
778             * @return the user remote service
779             */
780            public com.liferay.portal.service.UserService getUserService() {
781                    return userService;
782            }
783    
784            /**
785             * Sets the user remote service.
786             *
787             * @param userService the user remote service
788             */
789            public void setUserService(
790                    com.liferay.portal.service.UserService userService) {
791                    this.userService = userService;
792            }
793    
794            /**
795             * Returns the user persistence.
796             *
797             * @return the user persistence
798             */
799            public UserPersistence getUserPersistence() {
800                    return userPersistence;
801            }
802    
803            /**
804             * Sets the user persistence.
805             *
806             * @param userPersistence the user persistence
807             */
808            public void setUserPersistence(UserPersistence userPersistence) {
809                    this.userPersistence = userPersistence;
810            }
811    
812            /**
813             * Returns the user finder.
814             *
815             * @return the user finder
816             */
817            public UserFinder getUserFinder() {
818                    return userFinder;
819            }
820    
821            /**
822             * Sets the user finder.
823             *
824             * @param userFinder the user finder
825             */
826            public void setUserFinder(UserFinder userFinder) {
827                    this.userFinder = userFinder;
828            }
829    
830            /**
831             * Returns the workflow definition link local service.
832             *
833             * @return the workflow definition link local service
834             */
835            public com.liferay.portal.service.WorkflowDefinitionLinkLocalService getWorkflowDefinitionLinkLocalService() {
836                    return workflowDefinitionLinkLocalService;
837            }
838    
839            /**
840             * Sets the workflow definition link local service.
841             *
842             * @param workflowDefinitionLinkLocalService the workflow definition link local service
843             */
844            public void setWorkflowDefinitionLinkLocalService(
845                    com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
846                    this.workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
847            }
848    
849            /**
850             * Returns the workflow definition link persistence.
851             *
852             * @return the workflow definition link persistence
853             */
854            public WorkflowDefinitionLinkPersistence getWorkflowDefinitionLinkPersistence() {
855                    return workflowDefinitionLinkPersistence;
856            }
857    
858            /**
859             * Sets the workflow definition link persistence.
860             *
861             * @param workflowDefinitionLinkPersistence the workflow definition link persistence
862             */
863            public void setWorkflowDefinitionLinkPersistence(
864                    WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence) {
865                    this.workflowDefinitionLinkPersistence = workflowDefinitionLinkPersistence;
866            }
867    
868            /**
869             * Returns the workflow instance link local service.
870             *
871             * @return the workflow instance link local service
872             */
873            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
874                    return workflowInstanceLinkLocalService;
875            }
876    
877            /**
878             * Sets the workflow instance link local service.
879             *
880             * @param workflowInstanceLinkLocalService the workflow instance link local service
881             */
882            public void setWorkflowInstanceLinkLocalService(
883                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
884                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
885            }
886    
887            /**
888             * Returns the workflow instance link persistence.
889             *
890             * @return the workflow instance link persistence
891             */
892            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
893                    return workflowInstanceLinkPersistence;
894            }
895    
896            /**
897             * Sets the workflow instance link persistence.
898             *
899             * @param workflowInstanceLinkPersistence the workflow instance link persistence
900             */
901            public void setWorkflowInstanceLinkPersistence(
902                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
903                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
904            }
905    
906            /**
907             * Returns the asset entry local service.
908             *
909             * @return the asset entry local service
910             */
911            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
912                    return assetEntryLocalService;
913            }
914    
915            /**
916             * Sets the asset entry local service.
917             *
918             * @param assetEntryLocalService the asset entry local service
919             */
920            public void setAssetEntryLocalService(
921                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
922                    this.assetEntryLocalService = assetEntryLocalService;
923            }
924    
925            /**
926             * Returns the asset entry remote service.
927             *
928             * @return the asset entry remote service
929             */
930            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
931                    return assetEntryService;
932            }
933    
934            /**
935             * Sets the asset entry remote service.
936             *
937             * @param assetEntryService the asset entry remote service
938             */
939            public void setAssetEntryService(
940                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
941                    this.assetEntryService = assetEntryService;
942            }
943    
944            /**
945             * Returns the asset entry persistence.
946             *
947             * @return the asset entry persistence
948             */
949            public AssetEntryPersistence getAssetEntryPersistence() {
950                    return assetEntryPersistence;
951            }
952    
953            /**
954             * Sets the asset entry persistence.
955             *
956             * @param assetEntryPersistence the asset entry persistence
957             */
958            public void setAssetEntryPersistence(
959                    AssetEntryPersistence assetEntryPersistence) {
960                    this.assetEntryPersistence = assetEntryPersistence;
961            }
962    
963            /**
964             * Returns the asset entry finder.
965             *
966             * @return the asset entry finder
967             */
968            public AssetEntryFinder getAssetEntryFinder() {
969                    return assetEntryFinder;
970            }
971    
972            /**
973             * Sets the asset entry finder.
974             *
975             * @param assetEntryFinder the asset entry finder
976             */
977            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
978                    this.assetEntryFinder = assetEntryFinder;
979            }
980    
981            /**
982             * Returns the asset link local service.
983             *
984             * @return the asset link local service
985             */
986            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
987                    return assetLinkLocalService;
988            }
989    
990            /**
991             * Sets the asset link local service.
992             *
993             * @param assetLinkLocalService the asset link local service
994             */
995            public void setAssetLinkLocalService(
996                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
997                    this.assetLinkLocalService = assetLinkLocalService;
998            }
999    
1000            /**
1001             * Returns the asset link persistence.
1002             *
1003             * @return the asset link persistence
1004             */
1005            public AssetLinkPersistence getAssetLinkPersistence() {
1006                    return assetLinkPersistence;
1007            }
1008    
1009            /**
1010             * Sets the asset link persistence.
1011             *
1012             * @param assetLinkPersistence the asset link persistence
1013             */
1014            public void setAssetLinkPersistence(
1015                    AssetLinkPersistence assetLinkPersistence) {
1016                    this.assetLinkPersistence = assetLinkPersistence;
1017            }
1018    
1019            /**
1020             * Returns the d d m structure local service.
1021             *
1022             * @return the d d m structure local service
1023             */
1024            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
1025                    return ddmStructureLocalService;
1026            }
1027    
1028            /**
1029             * Sets the d d m structure local service.
1030             *
1031             * @param ddmStructureLocalService the d d m structure local service
1032             */
1033            public void setDDMStructureLocalService(
1034                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
1035                    this.ddmStructureLocalService = ddmStructureLocalService;
1036            }
1037    
1038            /**
1039             * Returns the d d m structure remote service.
1040             *
1041             * @return the d d m structure remote service
1042             */
1043            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
1044                    return ddmStructureService;
1045            }
1046    
1047            /**
1048             * Sets the d d m structure remote service.
1049             *
1050             * @param ddmStructureService the d d m structure remote service
1051             */
1052            public void setDDMStructureService(
1053                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
1054                    this.ddmStructureService = ddmStructureService;
1055            }
1056    
1057            /**
1058             * Returns the d d m structure persistence.
1059             *
1060             * @return the d d m structure persistence
1061             */
1062            public DDMStructurePersistence getDDMStructurePersistence() {
1063                    return ddmStructurePersistence;
1064            }
1065    
1066            /**
1067             * Sets the d d m structure persistence.
1068             *
1069             * @param ddmStructurePersistence the d d m structure persistence
1070             */
1071            public void setDDMStructurePersistence(
1072                    DDMStructurePersistence ddmStructurePersistence) {
1073                    this.ddmStructurePersistence = ddmStructurePersistence;
1074            }
1075    
1076            /**
1077             * Returns the d d m structure finder.
1078             *
1079             * @return the d d m structure finder
1080             */
1081            public DDMStructureFinder getDDMStructureFinder() {
1082                    return ddmStructureFinder;
1083            }
1084    
1085            /**
1086             * Sets the d d m structure finder.
1087             *
1088             * @param ddmStructureFinder the d d m structure finder
1089             */
1090            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
1091                    this.ddmStructureFinder = ddmStructureFinder;
1092            }
1093    
1094            /**
1095             * Returns the d d m structure link local service.
1096             *
1097             * @return the d d m structure link local service
1098             */
1099            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
1100                    return ddmStructureLinkLocalService;
1101            }
1102    
1103            /**
1104             * Sets the d d m structure link local service.
1105             *
1106             * @param ddmStructureLinkLocalService the d d m structure link local service
1107             */
1108            public void setDDMStructureLinkLocalService(
1109                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService) {
1110                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
1111            }
1112    
1113            /**
1114             * Returns the d d m structure link persistence.
1115             *
1116             * @return the d d m structure link persistence
1117             */
1118            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
1119                    return ddmStructureLinkPersistence;
1120            }
1121    
1122            /**
1123             * Sets the d d m structure link persistence.
1124             *
1125             * @param ddmStructureLinkPersistence the d d m structure link persistence
1126             */
1127            public void setDDMStructureLinkPersistence(
1128                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
1129                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
1130            }
1131    
1132            /**
1133             * Returns the expando value local service.
1134             *
1135             * @return the expando value local service
1136             */
1137            public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
1138                    return expandoValueLocalService;
1139            }
1140    
1141            /**
1142             * Sets the expando value local service.
1143             *
1144             * @param expandoValueLocalService the expando value local service
1145             */
1146            public void setExpandoValueLocalService(
1147                    com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
1148                    this.expandoValueLocalService = expandoValueLocalService;
1149            }
1150    
1151            /**
1152             * Returns the expando value remote service.
1153             *
1154             * @return the expando value remote service
1155             */
1156            public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() {
1157                    return expandoValueService;
1158            }
1159    
1160            /**
1161             * Sets the expando value remote service.
1162             *
1163             * @param expandoValueService the expando value remote service
1164             */
1165            public void setExpandoValueService(
1166                    com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) {
1167                    this.expandoValueService = expandoValueService;
1168            }
1169    
1170            /**
1171             * Returns the expando value persistence.
1172             *
1173             * @return the expando value persistence
1174             */
1175            public ExpandoValuePersistence getExpandoValuePersistence() {
1176                    return expandoValuePersistence;
1177            }
1178    
1179            /**
1180             * Sets the expando value persistence.
1181             *
1182             * @param expandoValuePersistence the expando value persistence
1183             */
1184            public void setExpandoValuePersistence(
1185                    ExpandoValuePersistence expandoValuePersistence) {
1186                    this.expandoValuePersistence = expandoValuePersistence;
1187            }
1188    
1189            /**
1190             * Returns the journal article local service.
1191             *
1192             * @return the journal article local service
1193             */
1194            public com.liferay.portlet.journal.service.JournalArticleLocalService getJournalArticleLocalService() {
1195                    return journalArticleLocalService;
1196            }
1197    
1198            /**
1199             * Sets the journal article local service.
1200             *
1201             * @param journalArticleLocalService the journal article local service
1202             */
1203            public void setJournalArticleLocalService(
1204                    com.liferay.portlet.journal.service.JournalArticleLocalService journalArticleLocalService) {
1205                    this.journalArticleLocalService = journalArticleLocalService;
1206            }
1207    
1208            /**
1209             * Returns the journal article remote service.
1210             *
1211             * @return the journal article remote service
1212             */
1213            public com.liferay.portlet.journal.service.JournalArticleService getJournalArticleService() {
1214                    return journalArticleService;
1215            }
1216    
1217            /**
1218             * Sets the journal article remote service.
1219             *
1220             * @param journalArticleService the journal article remote service
1221             */
1222            public void setJournalArticleService(
1223                    com.liferay.portlet.journal.service.JournalArticleService journalArticleService) {
1224                    this.journalArticleService = journalArticleService;
1225            }
1226    
1227            /**
1228             * Returns the journal article persistence.
1229             *
1230             * @return the journal article persistence
1231             */
1232            public JournalArticlePersistence getJournalArticlePersistence() {
1233                    return journalArticlePersistence;
1234            }
1235    
1236            /**
1237             * Sets the journal article persistence.
1238             *
1239             * @param journalArticlePersistence the journal article persistence
1240             */
1241            public void setJournalArticlePersistence(
1242                    JournalArticlePersistence journalArticlePersistence) {
1243                    this.journalArticlePersistence = journalArticlePersistence;
1244            }
1245    
1246            /**
1247             * Returns the journal article finder.
1248             *
1249             * @return the journal article finder
1250             */
1251            public JournalArticleFinder getJournalArticleFinder() {
1252                    return journalArticleFinder;
1253            }
1254    
1255            /**
1256             * Sets the journal article finder.
1257             *
1258             * @param journalArticleFinder the journal article finder
1259             */
1260            public void setJournalArticleFinder(
1261                    JournalArticleFinder journalArticleFinder) {
1262                    this.journalArticleFinder = journalArticleFinder;
1263            }
1264    
1265            /**
1266             * Returns the social activity local service.
1267             *
1268             * @return the social activity local service
1269             */
1270            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1271                    return socialActivityLocalService;
1272            }
1273    
1274            /**
1275             * Sets the social activity local service.
1276             *
1277             * @param socialActivityLocalService the social activity local service
1278             */
1279            public void setSocialActivityLocalService(
1280                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1281                    this.socialActivityLocalService = socialActivityLocalService;
1282            }
1283    
1284            /**
1285             * Returns the social activity remote service.
1286             *
1287             * @return the social activity remote service
1288             */
1289            public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1290                    return socialActivityService;
1291            }
1292    
1293            /**
1294             * Sets the social activity remote service.
1295             *
1296             * @param socialActivityService the social activity remote service
1297             */
1298            public void setSocialActivityService(
1299                    com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1300                    this.socialActivityService = socialActivityService;
1301            }
1302    
1303            /**
1304             * Returns the social activity persistence.
1305             *
1306             * @return the social activity persistence
1307             */
1308            public SocialActivityPersistence getSocialActivityPersistence() {
1309                    return socialActivityPersistence;
1310            }
1311    
1312            /**
1313             * Sets the social activity persistence.
1314             *
1315             * @param socialActivityPersistence the social activity persistence
1316             */
1317            public void setSocialActivityPersistence(
1318                    SocialActivityPersistence socialActivityPersistence) {
1319                    this.socialActivityPersistence = socialActivityPersistence;
1320            }
1321    
1322            /**
1323             * Returns the social activity finder.
1324             *
1325             * @return the social activity finder
1326             */
1327            public SocialActivityFinder getSocialActivityFinder() {
1328                    return socialActivityFinder;
1329            }
1330    
1331            /**
1332             * Sets the social activity finder.
1333             *
1334             * @param socialActivityFinder the social activity finder
1335             */
1336            public void setSocialActivityFinder(
1337                    SocialActivityFinder socialActivityFinder) {
1338                    this.socialActivityFinder = socialActivityFinder;
1339            }
1340    
1341            /**
1342             * Returns the trash entry local service.
1343             *
1344             * @return the trash entry local service
1345             */
1346            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1347                    return trashEntryLocalService;
1348            }
1349    
1350            /**
1351             * Sets the trash entry local service.
1352             *
1353             * @param trashEntryLocalService the trash entry local service
1354             */
1355            public void setTrashEntryLocalService(
1356                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1357                    this.trashEntryLocalService = trashEntryLocalService;
1358            }
1359    
1360            /**
1361             * Returns the trash entry remote service.
1362             *
1363             * @return the trash entry remote service
1364             */
1365            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1366                    return trashEntryService;
1367            }
1368    
1369            /**
1370             * Sets the trash entry remote service.
1371             *
1372             * @param trashEntryService the trash entry remote service
1373             */
1374            public void setTrashEntryService(
1375                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1376                    this.trashEntryService = trashEntryService;
1377            }
1378    
1379            /**
1380             * Returns the trash entry persistence.
1381             *
1382             * @return the trash entry persistence
1383             */
1384            public TrashEntryPersistence getTrashEntryPersistence() {
1385                    return trashEntryPersistence;
1386            }
1387    
1388            /**
1389             * Sets the trash entry persistence.
1390             *
1391             * @param trashEntryPersistence the trash entry persistence
1392             */
1393            public void setTrashEntryPersistence(
1394                    TrashEntryPersistence trashEntryPersistence) {
1395                    this.trashEntryPersistence = trashEntryPersistence;
1396            }
1397    
1398            /**
1399             * Returns the trash version local service.
1400             *
1401             * @return the trash version local service
1402             */
1403            public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1404                    return trashVersionLocalService;
1405            }
1406    
1407            /**
1408             * Sets the trash version local service.
1409             *
1410             * @param trashVersionLocalService the trash version local service
1411             */
1412            public void setTrashVersionLocalService(
1413                    com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1414                    this.trashVersionLocalService = trashVersionLocalService;
1415            }
1416    
1417            /**
1418             * Returns the trash version persistence.
1419             *
1420             * @return the trash version persistence
1421             */
1422            public TrashVersionPersistence getTrashVersionPersistence() {
1423                    return trashVersionPersistence;
1424            }
1425    
1426            /**
1427             * Sets the trash version persistence.
1428             *
1429             * @param trashVersionPersistence the trash version persistence
1430             */
1431            public void setTrashVersionPersistence(
1432                    TrashVersionPersistence trashVersionPersistence) {
1433                    this.trashVersionPersistence = trashVersionPersistence;
1434            }
1435    
1436            public void afterPropertiesSet() {
1437                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.journal.model.JournalFolder",
1438                            journalFolderLocalService);
1439            }
1440    
1441            public void destroy() {
1442                    persistedModelLocalServiceRegistry.unregister(
1443                            "com.liferay.portlet.journal.model.JournalFolder");
1444            }
1445    
1446            /**
1447             * Returns the Spring bean ID for this bean.
1448             *
1449             * @return the Spring bean ID for this bean
1450             */
1451            @Override
1452            public String getBeanIdentifier() {
1453                    return _beanIdentifier;
1454            }
1455    
1456            /**
1457             * Sets the Spring bean ID for this bean.
1458             *
1459             * @param beanIdentifier the Spring bean ID for this bean
1460             */
1461            @Override
1462            public void setBeanIdentifier(String beanIdentifier) {
1463                    _beanIdentifier = beanIdentifier;
1464            }
1465    
1466            protected Class<?> getModelClass() {
1467                    return JournalFolder.class;
1468            }
1469    
1470            protected String getModelClassName() {
1471                    return JournalFolder.class.getName();
1472            }
1473    
1474            /**
1475             * Performs a SQL query.
1476             *
1477             * @param sql the sql query
1478             */
1479            protected void runSQL(String sql) {
1480                    try {
1481                            DataSource dataSource = journalFolderPersistence.getDataSource();
1482    
1483                            DB db = DBFactoryUtil.getDB();
1484    
1485                            sql = db.buildSQL(sql);
1486                            sql = PortalUtil.transformSQL(sql);
1487    
1488                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1489                                            sql, new int[0]);
1490    
1491                            sqlUpdate.update();
1492                    }
1493                    catch (Exception e) {
1494                            throw new SystemException(e);
1495                    }
1496            }
1497    
1498            @BeanReference(type = JournalFolderLocalService.class)
1499            protected JournalFolderLocalService journalFolderLocalService;
1500            @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderService.class)
1501            protected com.liferay.portlet.journal.service.JournalFolderService journalFolderService;
1502            @BeanReference(type = JournalFolderPersistence.class)
1503            protected JournalFolderPersistence journalFolderPersistence;
1504            @BeanReference(type = JournalFolderFinder.class)
1505            protected JournalFolderFinder journalFolderFinder;
1506            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1507            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1508            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1509            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1510            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1511            protected com.liferay.portal.service.ClassNameService classNameService;
1512            @BeanReference(type = ClassNamePersistence.class)
1513            protected ClassNamePersistence classNamePersistence;
1514            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1515            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1516            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1517            protected com.liferay.portal.service.GroupService groupService;
1518            @BeanReference(type = GroupPersistence.class)
1519            protected GroupPersistence groupPersistence;
1520            @BeanReference(type = GroupFinder.class)
1521            protected GroupFinder groupFinder;
1522            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1523            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1524            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1525            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1526            @BeanReference(type = SubscriptionPersistence.class)
1527            protected SubscriptionPersistence subscriptionPersistence;
1528            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1529            protected com.liferay.portal.service.UserLocalService userLocalService;
1530            @BeanReference(type = com.liferay.portal.service.UserService.class)
1531            protected com.liferay.portal.service.UserService userService;
1532            @BeanReference(type = UserPersistence.class)
1533            protected UserPersistence userPersistence;
1534            @BeanReference(type = UserFinder.class)
1535            protected UserFinder userFinder;
1536            @BeanReference(type = com.liferay.portal.service.WorkflowDefinitionLinkLocalService.class)
1537            protected com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService;
1538            @BeanReference(type = WorkflowDefinitionLinkPersistence.class)
1539            protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
1540            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1541            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1542            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1543            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1544            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1545            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1546            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1547            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1548            @BeanReference(type = AssetEntryPersistence.class)
1549            protected AssetEntryPersistence assetEntryPersistence;
1550            @BeanReference(type = AssetEntryFinder.class)
1551            protected AssetEntryFinder assetEntryFinder;
1552            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1553            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1554            @BeanReference(type = AssetLinkPersistence.class)
1555            protected AssetLinkPersistence assetLinkPersistence;
1556            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
1557            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
1558            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
1559            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
1560            @BeanReference(type = DDMStructurePersistence.class)
1561            protected DDMStructurePersistence ddmStructurePersistence;
1562            @BeanReference(type = DDMStructureFinder.class)
1563            protected DDMStructureFinder ddmStructureFinder;
1564            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService.class)
1565            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService ddmStructureLinkLocalService;
1566            @BeanReference(type = DDMStructureLinkPersistence.class)
1567            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
1568            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
1569            protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
1570            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
1571            protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService;
1572            @BeanReference(type = ExpandoValuePersistence.class)
1573            protected ExpandoValuePersistence expandoValuePersistence;
1574            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleLocalService.class)
1575            protected com.liferay.portlet.journal.service.JournalArticleLocalService journalArticleLocalService;
1576            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleService.class)
1577            protected com.liferay.portlet.journal.service.JournalArticleService journalArticleService;
1578            @BeanReference(type = JournalArticlePersistence.class)
1579            protected JournalArticlePersistence journalArticlePersistence;
1580            @BeanReference(type = JournalArticleFinder.class)
1581            protected JournalArticleFinder journalArticleFinder;
1582            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1583            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1584            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1585            protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1586            @BeanReference(type = SocialActivityPersistence.class)
1587            protected SocialActivityPersistence socialActivityPersistence;
1588            @BeanReference(type = SocialActivityFinder.class)
1589            protected SocialActivityFinder socialActivityFinder;
1590            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1591            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1592            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1593            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1594            @BeanReference(type = TrashEntryPersistence.class)
1595            protected TrashEntryPersistence trashEntryPersistence;
1596            @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1597            protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1598            @BeanReference(type = TrashVersionPersistence.class)
1599            protected TrashVersionPersistence trashVersionPersistence;
1600            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1601            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1602            private String _beanIdentifier;
1603    }