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