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 matching the dynamic query.
214             *
215             * @param dynamicQuery the dynamic query
216             * @return the number of rows matching 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 matching 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 matching 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            /**
369             * Returns all the journal folders matching the UUID and company.
370             *
371             * @param uuid the UUID of the journal folders
372             * @param companyId the primary key of the company
373             * @return the matching journal folders, or an empty list if no matches were found
374             */
375            @Override
376            public List<JournalFolder> getJournalFoldersByUuidAndCompanyId(
377                    String uuid, long companyId) {
378                    return journalFolderPersistence.findByUuid_C(uuid, companyId);
379            }
380    
381            /**
382             * Returns a range of journal folders matching the UUID and company.
383             *
384             * @param uuid the UUID of the journal folders
385             * @param companyId the primary key of the company
386             * @param start the lower bound of the range of journal folders
387             * @param end the upper bound of the range of journal folders (not inclusive)
388             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
389             * @return the range of matching journal folders, or an empty list if no matches were found
390             */
391            @Override
392            public List<JournalFolder> getJournalFoldersByUuidAndCompanyId(
393                    String uuid, long companyId, int start, int end,
394                    OrderByComparator<JournalFolder> orderByComparator) {
395                    return journalFolderPersistence.findByUuid_C(uuid, companyId, start,
396                            end, orderByComparator);
397            }
398    
399            /**
400             * Returns the journal folder matching the UUID and group.
401             *
402             * @param uuid the journal folder's UUID
403             * @param groupId the primary key of the group
404             * @return the matching journal folder
405             * @throws PortalException if a matching journal folder could not be found
406             */
407            @Override
408            public JournalFolder getJournalFolderByUuidAndGroupId(String uuid,
409                    long groupId) throws PortalException {
410                    return journalFolderPersistence.findByUUID_G(uuid, groupId);
411            }
412    
413            /**
414             * Returns a range of all the journal folders.
415             *
416             * <p>
417             * 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.
418             * </p>
419             *
420             * @param start the lower bound of the range of journal folders
421             * @param end the upper bound of the range of journal folders (not inclusive)
422             * @return the range of journal folders
423             */
424            @Override
425            public List<JournalFolder> getJournalFolders(int start, int end) {
426                    return journalFolderPersistence.findAll(start, end);
427            }
428    
429            /**
430             * Returns the number of journal folders.
431             *
432             * @return the number of journal folders
433             */
434            @Override
435            public int getJournalFoldersCount() {
436                    return journalFolderPersistence.countAll();
437            }
438    
439            /**
440             * Updates the journal folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
441             *
442             * @param journalFolder the journal folder
443             * @return the journal folder that was updated
444             */
445            @Indexable(type = IndexableType.REINDEX)
446            @Override
447            public JournalFolder updateJournalFolder(JournalFolder journalFolder) {
448                    return journalFolderPersistence.update(journalFolder);
449            }
450    
451            /**
452             */
453            @Override
454            public void addDDMStructureJournalFolder(long structureId, long folderId) {
455                    ddmStructurePersistence.addJournalFolder(structureId, folderId);
456            }
457    
458            /**
459             */
460            @Override
461            public void addDDMStructureJournalFolder(long structureId,
462                    JournalFolder journalFolder) {
463                    ddmStructurePersistence.addJournalFolder(structureId, journalFolder);
464            }
465    
466            /**
467             */
468            @Override
469            public void addDDMStructureJournalFolders(long structureId, long[] folderIds) {
470                    ddmStructurePersistence.addJournalFolders(structureId, folderIds);
471            }
472    
473            /**
474             */
475            @Override
476            public void addDDMStructureJournalFolders(long structureId,
477                    List<JournalFolder> JournalFolders) {
478                    ddmStructurePersistence.addJournalFolders(structureId, JournalFolders);
479            }
480    
481            /**
482             */
483            @Override
484            public void clearDDMStructureJournalFolders(long structureId) {
485                    ddmStructurePersistence.clearJournalFolders(structureId);
486            }
487    
488            /**
489             */
490            @Override
491            public void deleteDDMStructureJournalFolder(long structureId, long folderId) {
492                    ddmStructurePersistence.removeJournalFolder(structureId, folderId);
493            }
494    
495            /**
496             */
497            @Override
498            public void deleteDDMStructureJournalFolder(long structureId,
499                    JournalFolder journalFolder) {
500                    ddmStructurePersistence.removeJournalFolder(structureId, journalFolder);
501            }
502    
503            /**
504             */
505            @Override
506            public void deleteDDMStructureJournalFolders(long structureId,
507                    long[] folderIds) {
508                    ddmStructurePersistence.removeJournalFolders(structureId, folderIds);
509            }
510    
511            /**
512             */
513            @Override
514            public void deleteDDMStructureJournalFolders(long structureId,
515                    List<JournalFolder> JournalFolders) {
516                    ddmStructurePersistence.removeJournalFolders(structureId, JournalFolders);
517            }
518    
519            /**
520             * Returns the structureIds of the d d m structures associated with the journal folder.
521             *
522             * @param folderId the folderId of the journal folder
523             * @return long[] the structureIds of d d m structures associated with the journal folder
524             */
525            @Override
526            public long[] getDDMStructurePrimaryKeys(long folderId) {
527                    return journalFolderPersistence.getDDMStructurePrimaryKeys(folderId);
528            }
529    
530            /**
531             */
532            @Override
533            public List<JournalFolder> getDDMStructureJournalFolders(long structureId) {
534                    return ddmStructurePersistence.getJournalFolders(structureId);
535            }
536    
537            /**
538             */
539            @Override
540            public List<JournalFolder> getDDMStructureJournalFolders(long structureId,
541                    int start, int end) {
542                    return ddmStructurePersistence.getJournalFolders(structureId, start, end);
543            }
544    
545            /**
546             */
547            @Override
548            public List<JournalFolder> getDDMStructureJournalFolders(long structureId,
549                    int start, int end, OrderByComparator<JournalFolder> orderByComparator) {
550                    return ddmStructurePersistence.getJournalFolders(structureId, start,
551                            end, orderByComparator);
552            }
553    
554            /**
555             */
556            @Override
557            public int getDDMStructureJournalFoldersCount(long structureId) {
558                    return ddmStructurePersistence.getJournalFoldersSize(structureId);
559            }
560    
561            /**
562             */
563            @Override
564            public boolean hasDDMStructureJournalFolder(long structureId, long folderId) {
565                    return ddmStructurePersistence.containsJournalFolder(structureId,
566                            folderId);
567            }
568    
569            /**
570             */
571            @Override
572            public boolean hasDDMStructureJournalFolders(long structureId) {
573                    return ddmStructurePersistence.containsJournalFolders(structureId);
574            }
575    
576            /**
577             */
578            @Override
579            public void setDDMStructureJournalFolders(long structureId, long[] folderIds) {
580                    ddmStructurePersistence.setJournalFolders(structureId, folderIds);
581            }
582    
583            /**
584             * Returns the journal folder local service.
585             *
586             * @return the journal folder local service
587             */
588            public com.liferay.portlet.journal.service.JournalFolderLocalService getJournalFolderLocalService() {
589                    return journalFolderLocalService;
590            }
591    
592            /**
593             * Sets the journal folder local service.
594             *
595             * @param journalFolderLocalService the journal folder local service
596             */
597            public void setJournalFolderLocalService(
598                    com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService) {
599                    this.journalFolderLocalService = journalFolderLocalService;
600            }
601    
602            /**
603             * Returns the journal folder remote service.
604             *
605             * @return the journal folder remote service
606             */
607            public com.liferay.portlet.journal.service.JournalFolderService getJournalFolderService() {
608                    return journalFolderService;
609            }
610    
611            /**
612             * Sets the journal folder remote service.
613             *
614             * @param journalFolderService the journal folder remote service
615             */
616            public void setJournalFolderService(
617                    com.liferay.portlet.journal.service.JournalFolderService journalFolderService) {
618                    this.journalFolderService = journalFolderService;
619            }
620    
621            /**
622             * Returns the journal folder persistence.
623             *
624             * @return the journal folder persistence
625             */
626            public JournalFolderPersistence getJournalFolderPersistence() {
627                    return journalFolderPersistence;
628            }
629    
630            /**
631             * Sets the journal folder persistence.
632             *
633             * @param journalFolderPersistence the journal folder persistence
634             */
635            public void setJournalFolderPersistence(
636                    JournalFolderPersistence journalFolderPersistence) {
637                    this.journalFolderPersistence = journalFolderPersistence;
638            }
639    
640            /**
641             * Returns the journal folder finder.
642             *
643             * @return the journal folder finder
644             */
645            public JournalFolderFinder getJournalFolderFinder() {
646                    return journalFolderFinder;
647            }
648    
649            /**
650             * Sets the journal folder finder.
651             *
652             * @param journalFolderFinder the journal folder finder
653             */
654            public void setJournalFolderFinder(JournalFolderFinder journalFolderFinder) {
655                    this.journalFolderFinder = journalFolderFinder;
656            }
657    
658            /**
659             * Returns the counter local service.
660             *
661             * @return the counter local service
662             */
663            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
664                    return counterLocalService;
665            }
666    
667            /**
668             * Sets the counter local service.
669             *
670             * @param counterLocalService the counter local service
671             */
672            public void setCounterLocalService(
673                    com.liferay.counter.service.CounterLocalService counterLocalService) {
674                    this.counterLocalService = counterLocalService;
675            }
676    
677            /**
678             * Returns the class name local service.
679             *
680             * @return the class name local service
681             */
682            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
683                    return classNameLocalService;
684            }
685    
686            /**
687             * Sets the class name local service.
688             *
689             * @param classNameLocalService the class name local service
690             */
691            public void setClassNameLocalService(
692                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
693                    this.classNameLocalService = classNameLocalService;
694            }
695    
696            /**
697             * Returns the class name remote service.
698             *
699             * @return the class name remote service
700             */
701            public com.liferay.portal.service.ClassNameService getClassNameService() {
702                    return classNameService;
703            }
704    
705            /**
706             * Sets the class name remote service.
707             *
708             * @param classNameService the class name remote service
709             */
710            public void setClassNameService(
711                    com.liferay.portal.service.ClassNameService classNameService) {
712                    this.classNameService = classNameService;
713            }
714    
715            /**
716             * Returns the class name persistence.
717             *
718             * @return the class name persistence
719             */
720            public ClassNamePersistence getClassNamePersistence() {
721                    return classNamePersistence;
722            }
723    
724            /**
725             * Sets the class name persistence.
726             *
727             * @param classNamePersistence the class name persistence
728             */
729            public void setClassNamePersistence(
730                    ClassNamePersistence classNamePersistence) {
731                    this.classNamePersistence = classNamePersistence;
732            }
733    
734            /**
735             * Returns the group local service.
736             *
737             * @return the group local service
738             */
739            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
740                    return groupLocalService;
741            }
742    
743            /**
744             * Sets the group local service.
745             *
746             * @param groupLocalService the group local service
747             */
748            public void setGroupLocalService(
749                    com.liferay.portal.service.GroupLocalService groupLocalService) {
750                    this.groupLocalService = groupLocalService;
751            }
752    
753            /**
754             * Returns the group remote service.
755             *
756             * @return the group remote service
757             */
758            public com.liferay.portal.service.GroupService getGroupService() {
759                    return groupService;
760            }
761    
762            /**
763             * Sets the group remote service.
764             *
765             * @param groupService the group remote service
766             */
767            public void setGroupService(
768                    com.liferay.portal.service.GroupService groupService) {
769                    this.groupService = groupService;
770            }
771    
772            /**
773             * Returns the group persistence.
774             *
775             * @return the group persistence
776             */
777            public GroupPersistence getGroupPersistence() {
778                    return groupPersistence;
779            }
780    
781            /**
782             * Sets the group persistence.
783             *
784             * @param groupPersistence the group persistence
785             */
786            public void setGroupPersistence(GroupPersistence groupPersistence) {
787                    this.groupPersistence = groupPersistence;
788            }
789    
790            /**
791             * Returns the group finder.
792             *
793             * @return the group finder
794             */
795            public GroupFinder getGroupFinder() {
796                    return groupFinder;
797            }
798    
799            /**
800             * Sets the group finder.
801             *
802             * @param groupFinder the group finder
803             */
804            public void setGroupFinder(GroupFinder groupFinder) {
805                    this.groupFinder = groupFinder;
806            }
807    
808            /**
809             * Returns the resource local service.
810             *
811             * @return the resource local service
812             */
813            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
814                    return resourceLocalService;
815            }
816    
817            /**
818             * Sets the resource local service.
819             *
820             * @param resourceLocalService the resource local service
821             */
822            public void setResourceLocalService(
823                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
824                    this.resourceLocalService = resourceLocalService;
825            }
826    
827            /**
828             * Returns the subscription local service.
829             *
830             * @return the subscription local service
831             */
832            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
833                    return subscriptionLocalService;
834            }
835    
836            /**
837             * Sets the subscription local service.
838             *
839             * @param subscriptionLocalService the subscription local service
840             */
841            public void setSubscriptionLocalService(
842                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
843                    this.subscriptionLocalService = subscriptionLocalService;
844            }
845    
846            /**
847             * Returns the subscription persistence.
848             *
849             * @return the subscription persistence
850             */
851            public SubscriptionPersistence getSubscriptionPersistence() {
852                    return subscriptionPersistence;
853            }
854    
855            /**
856             * Sets the subscription persistence.
857             *
858             * @param subscriptionPersistence the subscription persistence
859             */
860            public void setSubscriptionPersistence(
861                    SubscriptionPersistence subscriptionPersistence) {
862                    this.subscriptionPersistence = subscriptionPersistence;
863            }
864    
865            /**
866             * Returns the user local service.
867             *
868             * @return the user local service
869             */
870            public com.liferay.portal.service.UserLocalService getUserLocalService() {
871                    return userLocalService;
872            }
873    
874            /**
875             * Sets the user local service.
876             *
877             * @param userLocalService the user local service
878             */
879            public void setUserLocalService(
880                    com.liferay.portal.service.UserLocalService userLocalService) {
881                    this.userLocalService = userLocalService;
882            }
883    
884            /**
885             * Returns the user remote service.
886             *
887             * @return the user remote service
888             */
889            public com.liferay.portal.service.UserService getUserService() {
890                    return userService;
891            }
892    
893            /**
894             * Sets the user remote service.
895             *
896             * @param userService the user remote service
897             */
898            public void setUserService(
899                    com.liferay.portal.service.UserService userService) {
900                    this.userService = userService;
901            }
902    
903            /**
904             * Returns the user persistence.
905             *
906             * @return the user persistence
907             */
908            public UserPersistence getUserPersistence() {
909                    return userPersistence;
910            }
911    
912            /**
913             * Sets the user persistence.
914             *
915             * @param userPersistence the user persistence
916             */
917            public void setUserPersistence(UserPersistence userPersistence) {
918                    this.userPersistence = userPersistence;
919            }
920    
921            /**
922             * Returns the user finder.
923             *
924             * @return the user finder
925             */
926            public UserFinder getUserFinder() {
927                    return userFinder;
928            }
929    
930            /**
931             * Sets the user finder.
932             *
933             * @param userFinder the user finder
934             */
935            public void setUserFinder(UserFinder userFinder) {
936                    this.userFinder = userFinder;
937            }
938    
939            /**
940             * Returns the workflow definition link local service.
941             *
942             * @return the workflow definition link local service
943             */
944            public com.liferay.portal.service.WorkflowDefinitionLinkLocalService getWorkflowDefinitionLinkLocalService() {
945                    return workflowDefinitionLinkLocalService;
946            }
947    
948            /**
949             * Sets the workflow definition link local service.
950             *
951             * @param workflowDefinitionLinkLocalService the workflow definition link local service
952             */
953            public void setWorkflowDefinitionLinkLocalService(
954                    com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
955                    this.workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
956            }
957    
958            /**
959             * Returns the workflow definition link persistence.
960             *
961             * @return the workflow definition link persistence
962             */
963            public WorkflowDefinitionLinkPersistence getWorkflowDefinitionLinkPersistence() {
964                    return workflowDefinitionLinkPersistence;
965            }
966    
967            /**
968             * Sets the workflow definition link persistence.
969             *
970             * @param workflowDefinitionLinkPersistence the workflow definition link persistence
971             */
972            public void setWorkflowDefinitionLinkPersistence(
973                    WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence) {
974                    this.workflowDefinitionLinkPersistence = workflowDefinitionLinkPersistence;
975            }
976    
977            /**
978             * Returns the workflow instance link local service.
979             *
980             * @return the workflow instance link local service
981             */
982            public com.liferay.portal.service.WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
983                    return workflowInstanceLinkLocalService;
984            }
985    
986            /**
987             * Sets the workflow instance link local service.
988             *
989             * @param workflowInstanceLinkLocalService the workflow instance link local service
990             */
991            public void setWorkflowInstanceLinkLocalService(
992                    com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
993                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
994            }
995    
996            /**
997             * Returns the workflow instance link persistence.
998             *
999             * @return the workflow instance link persistence
1000             */
1001            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1002                    return workflowInstanceLinkPersistence;
1003            }
1004    
1005            /**
1006             * Sets the workflow instance link persistence.
1007             *
1008             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1009             */
1010            public void setWorkflowInstanceLinkPersistence(
1011                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1012                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1013            }
1014    
1015            /**
1016             * Returns the asset entry local service.
1017             *
1018             * @return the asset entry local service
1019             */
1020            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
1021                    return assetEntryLocalService;
1022            }
1023    
1024            /**
1025             * Sets the asset entry local service.
1026             *
1027             * @param assetEntryLocalService the asset entry local service
1028             */
1029            public void setAssetEntryLocalService(
1030                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
1031                    this.assetEntryLocalService = assetEntryLocalService;
1032            }
1033    
1034            /**
1035             * Returns the asset entry remote service.
1036             *
1037             * @return the asset entry remote service
1038             */
1039            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
1040                    return assetEntryService;
1041            }
1042    
1043            /**
1044             * Sets the asset entry remote service.
1045             *
1046             * @param assetEntryService the asset entry remote service
1047             */
1048            public void setAssetEntryService(
1049                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
1050                    this.assetEntryService = assetEntryService;
1051            }
1052    
1053            /**
1054             * Returns the asset entry persistence.
1055             *
1056             * @return the asset entry persistence
1057             */
1058            public AssetEntryPersistence getAssetEntryPersistence() {
1059                    return assetEntryPersistence;
1060            }
1061    
1062            /**
1063             * Sets the asset entry persistence.
1064             *
1065             * @param assetEntryPersistence the asset entry persistence
1066             */
1067            public void setAssetEntryPersistence(
1068                    AssetEntryPersistence assetEntryPersistence) {
1069                    this.assetEntryPersistence = assetEntryPersistence;
1070            }
1071    
1072            /**
1073             * Returns the asset entry finder.
1074             *
1075             * @return the asset entry finder
1076             */
1077            public AssetEntryFinder getAssetEntryFinder() {
1078                    return assetEntryFinder;
1079            }
1080    
1081            /**
1082             * Sets the asset entry finder.
1083             *
1084             * @param assetEntryFinder the asset entry finder
1085             */
1086            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
1087                    this.assetEntryFinder = assetEntryFinder;
1088            }
1089    
1090            /**
1091             * Returns the asset link local service.
1092             *
1093             * @return the asset link local service
1094             */
1095            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
1096                    return assetLinkLocalService;
1097            }
1098    
1099            /**
1100             * Sets the asset link local service.
1101             *
1102             * @param assetLinkLocalService the asset link local service
1103             */
1104            public void setAssetLinkLocalService(
1105                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
1106                    this.assetLinkLocalService = assetLinkLocalService;
1107            }
1108    
1109            /**
1110             * Returns the asset link persistence.
1111             *
1112             * @return the asset link persistence
1113             */
1114            public AssetLinkPersistence getAssetLinkPersistence() {
1115                    return assetLinkPersistence;
1116            }
1117    
1118            /**
1119             * Sets the asset link persistence.
1120             *
1121             * @param assetLinkPersistence the asset link persistence
1122             */
1123            public void setAssetLinkPersistence(
1124                    AssetLinkPersistence assetLinkPersistence) {
1125                    this.assetLinkPersistence = assetLinkPersistence;
1126            }
1127    
1128            /**
1129             * Returns the d d m structure local service.
1130             *
1131             * @return the d d m structure local service
1132             */
1133            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService getDDMStructureLocalService() {
1134                    return ddmStructureLocalService;
1135            }
1136    
1137            /**
1138             * Sets the d d m structure local service.
1139             *
1140             * @param ddmStructureLocalService the d d m structure local service
1141             */
1142            public void setDDMStructureLocalService(
1143                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService) {
1144                    this.ddmStructureLocalService = ddmStructureLocalService;
1145            }
1146    
1147            /**
1148             * Returns the d d m structure remote service.
1149             *
1150             * @return the d d m structure remote service
1151             */
1152            public com.liferay.portlet.dynamicdatamapping.service.DDMStructureService getDDMStructureService() {
1153                    return ddmStructureService;
1154            }
1155    
1156            /**
1157             * Sets the d d m structure remote service.
1158             *
1159             * @param ddmStructureService the d d m structure remote service
1160             */
1161            public void setDDMStructureService(
1162                    com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService) {
1163                    this.ddmStructureService = ddmStructureService;
1164            }
1165    
1166            /**
1167             * Returns the d d m structure persistence.
1168             *
1169             * @return the d d m structure persistence
1170             */
1171            public DDMStructurePersistence getDDMStructurePersistence() {
1172                    return ddmStructurePersistence;
1173            }
1174    
1175            /**
1176             * Sets the d d m structure persistence.
1177             *
1178             * @param ddmStructurePersistence the d d m structure persistence
1179             */
1180            public void setDDMStructurePersistence(
1181                    DDMStructurePersistence ddmStructurePersistence) {
1182                    this.ddmStructurePersistence = ddmStructurePersistence;
1183            }
1184    
1185            /**
1186             * Returns the d d m structure finder.
1187             *
1188             * @return the d d m structure finder
1189             */
1190            public DDMStructureFinder getDDMStructureFinder() {
1191                    return ddmStructureFinder;
1192            }
1193    
1194            /**
1195             * Sets the d d m structure finder.
1196             *
1197             * @param ddmStructureFinder the d d m structure finder
1198             */
1199            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
1200                    this.ddmStructureFinder = ddmStructureFinder;
1201            }
1202    
1203            /**
1204             * Returns the expando value local service.
1205             *
1206             * @return the expando value local service
1207             */
1208            public com.liferay.portlet.expando.service.ExpandoValueLocalService getExpandoValueLocalService() {
1209                    return expandoValueLocalService;
1210            }
1211    
1212            /**
1213             * Sets the expando value local service.
1214             *
1215             * @param expandoValueLocalService the expando value local service
1216             */
1217            public void setExpandoValueLocalService(
1218                    com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService) {
1219                    this.expandoValueLocalService = expandoValueLocalService;
1220            }
1221    
1222            /**
1223             * Returns the expando value remote service.
1224             *
1225             * @return the expando value remote service
1226             */
1227            public com.liferay.portlet.expando.service.ExpandoValueService getExpandoValueService() {
1228                    return expandoValueService;
1229            }
1230    
1231            /**
1232             * Sets the expando value remote service.
1233             *
1234             * @param expandoValueService the expando value remote service
1235             */
1236            public void setExpandoValueService(
1237                    com.liferay.portlet.expando.service.ExpandoValueService expandoValueService) {
1238                    this.expandoValueService = expandoValueService;
1239            }
1240    
1241            /**
1242             * Returns the expando value persistence.
1243             *
1244             * @return the expando value persistence
1245             */
1246            public ExpandoValuePersistence getExpandoValuePersistence() {
1247                    return expandoValuePersistence;
1248            }
1249    
1250            /**
1251             * Sets the expando value persistence.
1252             *
1253             * @param expandoValuePersistence the expando value persistence
1254             */
1255            public void setExpandoValuePersistence(
1256                    ExpandoValuePersistence expandoValuePersistence) {
1257                    this.expandoValuePersistence = expandoValuePersistence;
1258            }
1259    
1260            /**
1261             * Returns the journal article local service.
1262             *
1263             * @return the journal article local service
1264             */
1265            public com.liferay.portlet.journal.service.JournalArticleLocalService getJournalArticleLocalService() {
1266                    return journalArticleLocalService;
1267            }
1268    
1269            /**
1270             * Sets the journal article local service.
1271             *
1272             * @param journalArticleLocalService the journal article local service
1273             */
1274            public void setJournalArticleLocalService(
1275                    com.liferay.portlet.journal.service.JournalArticleLocalService journalArticleLocalService) {
1276                    this.journalArticleLocalService = journalArticleLocalService;
1277            }
1278    
1279            /**
1280             * Returns the journal article remote service.
1281             *
1282             * @return the journal article remote service
1283             */
1284            public com.liferay.portlet.journal.service.JournalArticleService getJournalArticleService() {
1285                    return journalArticleService;
1286            }
1287    
1288            /**
1289             * Sets the journal article remote service.
1290             *
1291             * @param journalArticleService the journal article remote service
1292             */
1293            public void setJournalArticleService(
1294                    com.liferay.portlet.journal.service.JournalArticleService journalArticleService) {
1295                    this.journalArticleService = journalArticleService;
1296            }
1297    
1298            /**
1299             * Returns the journal article persistence.
1300             *
1301             * @return the journal article persistence
1302             */
1303            public JournalArticlePersistence getJournalArticlePersistence() {
1304                    return journalArticlePersistence;
1305            }
1306    
1307            /**
1308             * Sets the journal article persistence.
1309             *
1310             * @param journalArticlePersistence the journal article persistence
1311             */
1312            public void setJournalArticlePersistence(
1313                    JournalArticlePersistence journalArticlePersistence) {
1314                    this.journalArticlePersistence = journalArticlePersistence;
1315            }
1316    
1317            /**
1318             * Returns the journal article finder.
1319             *
1320             * @return the journal article finder
1321             */
1322            public JournalArticleFinder getJournalArticleFinder() {
1323                    return journalArticleFinder;
1324            }
1325    
1326            /**
1327             * Sets the journal article finder.
1328             *
1329             * @param journalArticleFinder the journal article finder
1330             */
1331            public void setJournalArticleFinder(
1332                    JournalArticleFinder journalArticleFinder) {
1333                    this.journalArticleFinder = journalArticleFinder;
1334            }
1335    
1336            /**
1337             * Returns the social activity local service.
1338             *
1339             * @return the social activity local service
1340             */
1341            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1342                    return socialActivityLocalService;
1343            }
1344    
1345            /**
1346             * Sets the social activity local service.
1347             *
1348             * @param socialActivityLocalService the social activity local service
1349             */
1350            public void setSocialActivityLocalService(
1351                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1352                    this.socialActivityLocalService = socialActivityLocalService;
1353            }
1354    
1355            /**
1356             * Returns the social activity remote service.
1357             *
1358             * @return the social activity remote service
1359             */
1360            public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1361                    return socialActivityService;
1362            }
1363    
1364            /**
1365             * Sets the social activity remote service.
1366             *
1367             * @param socialActivityService the social activity remote service
1368             */
1369            public void setSocialActivityService(
1370                    com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1371                    this.socialActivityService = socialActivityService;
1372            }
1373    
1374            /**
1375             * Returns the social activity persistence.
1376             *
1377             * @return the social activity persistence
1378             */
1379            public SocialActivityPersistence getSocialActivityPersistence() {
1380                    return socialActivityPersistence;
1381            }
1382    
1383            /**
1384             * Sets the social activity persistence.
1385             *
1386             * @param socialActivityPersistence the social activity persistence
1387             */
1388            public void setSocialActivityPersistence(
1389                    SocialActivityPersistence socialActivityPersistence) {
1390                    this.socialActivityPersistence = socialActivityPersistence;
1391            }
1392    
1393            /**
1394             * Returns the social activity finder.
1395             *
1396             * @return the social activity finder
1397             */
1398            public SocialActivityFinder getSocialActivityFinder() {
1399                    return socialActivityFinder;
1400            }
1401    
1402            /**
1403             * Sets the social activity finder.
1404             *
1405             * @param socialActivityFinder the social activity finder
1406             */
1407            public void setSocialActivityFinder(
1408                    SocialActivityFinder socialActivityFinder) {
1409                    this.socialActivityFinder = socialActivityFinder;
1410            }
1411    
1412            /**
1413             * Returns the trash entry local service.
1414             *
1415             * @return the trash entry local service
1416             */
1417            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1418                    return trashEntryLocalService;
1419            }
1420    
1421            /**
1422             * Sets the trash entry local service.
1423             *
1424             * @param trashEntryLocalService the trash entry local service
1425             */
1426            public void setTrashEntryLocalService(
1427                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1428                    this.trashEntryLocalService = trashEntryLocalService;
1429            }
1430    
1431            /**
1432             * Returns the trash entry remote service.
1433             *
1434             * @return the trash entry remote service
1435             */
1436            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1437                    return trashEntryService;
1438            }
1439    
1440            /**
1441             * Sets the trash entry remote service.
1442             *
1443             * @param trashEntryService the trash entry remote service
1444             */
1445            public void setTrashEntryService(
1446                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1447                    this.trashEntryService = trashEntryService;
1448            }
1449    
1450            /**
1451             * Returns the trash entry persistence.
1452             *
1453             * @return the trash entry persistence
1454             */
1455            public TrashEntryPersistence getTrashEntryPersistence() {
1456                    return trashEntryPersistence;
1457            }
1458    
1459            /**
1460             * Sets the trash entry persistence.
1461             *
1462             * @param trashEntryPersistence the trash entry persistence
1463             */
1464            public void setTrashEntryPersistence(
1465                    TrashEntryPersistence trashEntryPersistence) {
1466                    this.trashEntryPersistence = trashEntryPersistence;
1467            }
1468    
1469            /**
1470             * Returns the trash version local service.
1471             *
1472             * @return the trash version local service
1473             */
1474            public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1475                    return trashVersionLocalService;
1476            }
1477    
1478            /**
1479             * Sets the trash version local service.
1480             *
1481             * @param trashVersionLocalService the trash version local service
1482             */
1483            public void setTrashVersionLocalService(
1484                    com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1485                    this.trashVersionLocalService = trashVersionLocalService;
1486            }
1487    
1488            /**
1489             * Returns the trash version persistence.
1490             *
1491             * @return the trash version persistence
1492             */
1493            public TrashVersionPersistence getTrashVersionPersistence() {
1494                    return trashVersionPersistence;
1495            }
1496    
1497            /**
1498             * Sets the trash version persistence.
1499             *
1500             * @param trashVersionPersistence the trash version persistence
1501             */
1502            public void setTrashVersionPersistence(
1503                    TrashVersionPersistence trashVersionPersistence) {
1504                    this.trashVersionPersistence = trashVersionPersistence;
1505            }
1506    
1507            public void afterPropertiesSet() {
1508                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.journal.model.JournalFolder",
1509                            journalFolderLocalService);
1510            }
1511    
1512            public void destroy() {
1513                    persistedModelLocalServiceRegistry.unregister(
1514                            "com.liferay.portlet.journal.model.JournalFolder");
1515            }
1516    
1517            /**
1518             * Returns the Spring bean ID for this bean.
1519             *
1520             * @return the Spring bean ID for this bean
1521             */
1522            @Override
1523            public String getBeanIdentifier() {
1524                    return _beanIdentifier;
1525            }
1526    
1527            /**
1528             * Sets the Spring bean ID for this bean.
1529             *
1530             * @param beanIdentifier the Spring bean ID for this bean
1531             */
1532            @Override
1533            public void setBeanIdentifier(String beanIdentifier) {
1534                    _beanIdentifier = beanIdentifier;
1535            }
1536    
1537            protected Class<?> getModelClass() {
1538                    return JournalFolder.class;
1539            }
1540    
1541            protected String getModelClassName() {
1542                    return JournalFolder.class.getName();
1543            }
1544    
1545            /**
1546             * Performs a SQL query.
1547             *
1548             * @param sql the sql query
1549             */
1550            protected void runSQL(String sql) {
1551                    try {
1552                            DataSource dataSource = journalFolderPersistence.getDataSource();
1553    
1554                            DB db = DBFactoryUtil.getDB();
1555    
1556                            sql = db.buildSQL(sql);
1557                            sql = PortalUtil.transformSQL(sql);
1558    
1559                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1560                                            sql, new int[0]);
1561    
1562                            sqlUpdate.update();
1563                    }
1564                    catch (Exception e) {
1565                            throw new SystemException(e);
1566                    }
1567            }
1568    
1569            @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderLocalService.class)
1570            protected com.liferay.portlet.journal.service.JournalFolderLocalService journalFolderLocalService;
1571            @BeanReference(type = com.liferay.portlet.journal.service.JournalFolderService.class)
1572            protected com.liferay.portlet.journal.service.JournalFolderService journalFolderService;
1573            @BeanReference(type = JournalFolderPersistence.class)
1574            protected JournalFolderPersistence journalFolderPersistence;
1575            @BeanReference(type = JournalFolderFinder.class)
1576            protected JournalFolderFinder journalFolderFinder;
1577            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1578            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1579            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1580            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1581            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1582            protected com.liferay.portal.service.ClassNameService classNameService;
1583            @BeanReference(type = ClassNamePersistence.class)
1584            protected ClassNamePersistence classNamePersistence;
1585            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1586            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1587            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1588            protected com.liferay.portal.service.GroupService groupService;
1589            @BeanReference(type = GroupPersistence.class)
1590            protected GroupPersistence groupPersistence;
1591            @BeanReference(type = GroupFinder.class)
1592            protected GroupFinder groupFinder;
1593            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1594            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1595            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1596            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1597            @BeanReference(type = SubscriptionPersistence.class)
1598            protected SubscriptionPersistence subscriptionPersistence;
1599            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1600            protected com.liferay.portal.service.UserLocalService userLocalService;
1601            @BeanReference(type = com.liferay.portal.service.UserService.class)
1602            protected com.liferay.portal.service.UserService userService;
1603            @BeanReference(type = UserPersistence.class)
1604            protected UserPersistence userPersistence;
1605            @BeanReference(type = UserFinder.class)
1606            protected UserFinder userFinder;
1607            @BeanReference(type = com.liferay.portal.service.WorkflowDefinitionLinkLocalService.class)
1608            protected com.liferay.portal.service.WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService;
1609            @BeanReference(type = WorkflowDefinitionLinkPersistence.class)
1610            protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
1611            @BeanReference(type = com.liferay.portal.service.WorkflowInstanceLinkLocalService.class)
1612            protected com.liferay.portal.service.WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1613            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1614            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1615            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1616            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1617            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1618            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1619            @BeanReference(type = AssetEntryPersistence.class)
1620            protected AssetEntryPersistence assetEntryPersistence;
1621            @BeanReference(type = AssetEntryFinder.class)
1622            protected AssetEntryFinder assetEntryFinder;
1623            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1624            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1625            @BeanReference(type = AssetLinkPersistence.class)
1626            protected AssetLinkPersistence assetLinkPersistence;
1627            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService.class)
1628            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureLocalService ddmStructureLocalService;
1629            @BeanReference(type = com.liferay.portlet.dynamicdatamapping.service.DDMStructureService.class)
1630            protected com.liferay.portlet.dynamicdatamapping.service.DDMStructureService ddmStructureService;
1631            @BeanReference(type = DDMStructurePersistence.class)
1632            protected DDMStructurePersistence ddmStructurePersistence;
1633            @BeanReference(type = DDMStructureFinder.class)
1634            protected DDMStructureFinder ddmStructureFinder;
1635            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueLocalService.class)
1636            protected com.liferay.portlet.expando.service.ExpandoValueLocalService expandoValueLocalService;
1637            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoValueService.class)
1638            protected com.liferay.portlet.expando.service.ExpandoValueService expandoValueService;
1639            @BeanReference(type = ExpandoValuePersistence.class)
1640            protected ExpandoValuePersistence expandoValuePersistence;
1641            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleLocalService.class)
1642            protected com.liferay.portlet.journal.service.JournalArticleLocalService journalArticleLocalService;
1643            @BeanReference(type = com.liferay.portlet.journal.service.JournalArticleService.class)
1644            protected com.liferay.portlet.journal.service.JournalArticleService journalArticleService;
1645            @BeanReference(type = JournalArticlePersistence.class)
1646            protected JournalArticlePersistence journalArticlePersistence;
1647            @BeanReference(type = JournalArticleFinder.class)
1648            protected JournalArticleFinder journalArticleFinder;
1649            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1650            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1651            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1652            protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1653            @BeanReference(type = SocialActivityPersistence.class)
1654            protected SocialActivityPersistence socialActivityPersistence;
1655            @BeanReference(type = SocialActivityFinder.class)
1656            protected SocialActivityFinder socialActivityFinder;
1657            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1658            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1659            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1660            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1661            @BeanReference(type = TrashEntryPersistence.class)
1662            protected TrashEntryPersistence trashEntryPersistence;
1663            @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1664            protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1665            @BeanReference(type = TrashVersionPersistence.class)
1666            protected TrashVersionPersistence trashVersionPersistence;
1667            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1668            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1669            private String _beanIdentifier;
1670    }