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.bookmarks.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.util.PortalUtil;
055    
056    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
057    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
058    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
059    import com.liferay.portlet.bookmarks.model.BookmarksFolder;
060    import com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService;
061    import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryFinder;
062    import com.liferay.portlet.bookmarks.service.persistence.BookmarksEntryPersistence;
063    import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderFinder;
064    import com.liferay.portlet.bookmarks.service.persistence.BookmarksFolderPersistence;
065    import com.liferay.portlet.expando.service.persistence.ExpandoRowPersistence;
066    import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
067    import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
068    import com.liferay.portlet.trash.service.persistence.TrashEntryPersistence;
069    import com.liferay.portlet.trash.service.persistence.TrashVersionPersistence;
070    
071    import java.io.Serializable;
072    
073    import java.util.List;
074    
075    import javax.sql.DataSource;
076    
077    /**
078     * Provides the base implementation for the bookmarks folder local service.
079     *
080     * <p>
081     * 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.bookmarks.service.impl.BookmarksFolderLocalServiceImpl}.
082     * </p>
083     *
084     * @author Brian Wing Shun Chan
085     * @see com.liferay.portlet.bookmarks.service.impl.BookmarksFolderLocalServiceImpl
086     * @see com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceUtil
087     * @generated
088     */
089    @ProviderType
090    public abstract class BookmarksFolderLocalServiceBaseImpl
091            extends BaseLocalServiceImpl implements BookmarksFolderLocalService,
092                    IdentifiableBean {
093            /*
094             * NOTE FOR DEVELOPERS:
095             *
096             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceUtil} to access the bookmarks folder local service.
097             */
098    
099            /**
100             * Adds the bookmarks folder to the database. Also notifies the appropriate model listeners.
101             *
102             * @param bookmarksFolder the bookmarks folder
103             * @return the bookmarks folder that was added
104             */
105            @Indexable(type = IndexableType.REINDEX)
106            @Override
107            public BookmarksFolder addBookmarksFolder(BookmarksFolder bookmarksFolder) {
108                    bookmarksFolder.setNew(true);
109    
110                    return bookmarksFolderPersistence.update(bookmarksFolder);
111            }
112    
113            /**
114             * Creates a new bookmarks folder with the primary key. Does not add the bookmarks folder to the database.
115             *
116             * @param folderId the primary key for the new bookmarks folder
117             * @return the new bookmarks folder
118             */
119            @Override
120            public BookmarksFolder createBookmarksFolder(long folderId) {
121                    return bookmarksFolderPersistence.create(folderId);
122            }
123    
124            /**
125             * Deletes the bookmarks folder with the primary key from the database. Also notifies the appropriate model listeners.
126             *
127             * @param folderId the primary key of the bookmarks folder
128             * @return the bookmarks folder that was removed
129             * @throws PortalException if a bookmarks folder with the primary key could not be found
130             */
131            @Indexable(type = IndexableType.DELETE)
132            @Override
133            public BookmarksFolder deleteBookmarksFolder(long folderId)
134                    throws PortalException {
135                    return bookmarksFolderPersistence.remove(folderId);
136            }
137    
138            /**
139             * Deletes the bookmarks folder from the database. Also notifies the appropriate model listeners.
140             *
141             * @param bookmarksFolder the bookmarks folder
142             * @return the bookmarks folder that was removed
143             */
144            @Indexable(type = IndexableType.DELETE)
145            @Override
146            public BookmarksFolder deleteBookmarksFolder(
147                    BookmarksFolder bookmarksFolder) {
148                    return bookmarksFolderPersistence.remove(bookmarksFolder);
149            }
150    
151            @Override
152            public DynamicQuery dynamicQuery() {
153                    Class<?> clazz = getClass();
154    
155                    return DynamicQueryFactoryUtil.forClass(BookmarksFolder.class,
156                            clazz.getClassLoader());
157            }
158    
159            /**
160             * Performs a dynamic query on the database and returns the matching rows.
161             *
162             * @param dynamicQuery the dynamic query
163             * @return the matching rows
164             */
165            @Override
166            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery) {
167                    return bookmarksFolderPersistence.findWithDynamicQuery(dynamicQuery);
168            }
169    
170            /**
171             * Performs a dynamic query on the database and returns a range of the matching rows.
172             *
173             * <p>
174             * 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.bookmarks.model.impl.BookmarksFolderModelImpl}. 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.
175             * </p>
176             *
177             * @param dynamicQuery the dynamic query
178             * @param start the lower bound of the range of model instances
179             * @param end the upper bound of the range of model instances (not inclusive)
180             * @return the range of matching rows
181             */
182            @Override
183            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
184                    int end) {
185                    return bookmarksFolderPersistence.findWithDynamicQuery(dynamicQuery,
186                            start, end);
187            }
188    
189            /**
190             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
191             *
192             * <p>
193             * 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.bookmarks.model.impl.BookmarksFolderModelImpl}. 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.
194             * </p>
195             *
196             * @param dynamicQuery the dynamic query
197             * @param start the lower bound of the range of model instances
198             * @param end the upper bound of the range of model instances (not inclusive)
199             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
200             * @return the ordered range of matching rows
201             */
202            @Override
203            public <T> List<T> dynamicQuery(DynamicQuery dynamicQuery, int start,
204                    int end, OrderByComparator<T> orderByComparator) {
205                    return bookmarksFolderPersistence.findWithDynamicQuery(dynamicQuery,
206                            start, end, orderByComparator);
207            }
208    
209            /**
210             * Returns the number of rows that match the dynamic query.
211             *
212             * @param dynamicQuery the dynamic query
213             * @return the number of rows that match the dynamic query
214             */
215            @Override
216            public long dynamicQueryCount(DynamicQuery dynamicQuery) {
217                    return bookmarksFolderPersistence.countWithDynamicQuery(dynamicQuery);
218            }
219    
220            /**
221             * Returns the number of rows that match the dynamic query.
222             *
223             * @param dynamicQuery the dynamic query
224             * @param projection the projection to apply to the query
225             * @return the number of rows that match the dynamic query
226             */
227            @Override
228            public long dynamicQueryCount(DynamicQuery dynamicQuery,
229                    Projection projection) {
230                    return bookmarksFolderPersistence.countWithDynamicQuery(dynamicQuery,
231                            projection);
232            }
233    
234            @Override
235            public BookmarksFolder fetchBookmarksFolder(long folderId) {
236                    return bookmarksFolderPersistence.fetchByPrimaryKey(folderId);
237            }
238    
239            /**
240             * Returns the bookmarks folder matching the UUID and group.
241             *
242             * @param uuid the bookmarks folder's UUID
243             * @param groupId the primary key of the group
244             * @return the matching bookmarks folder, or <code>null</code> if a matching bookmarks folder could not be found
245             */
246            @Override
247            public BookmarksFolder fetchBookmarksFolderByUuidAndGroupId(String uuid,
248                    long groupId) {
249                    return bookmarksFolderPersistence.fetchByUUID_G(uuid, groupId);
250            }
251    
252            /**
253             * Returns the bookmarks folder with the primary key.
254             *
255             * @param folderId the primary key of the bookmarks folder
256             * @return the bookmarks folder
257             * @throws PortalException if a bookmarks folder with the primary key could not be found
258             */
259            @Override
260            public BookmarksFolder getBookmarksFolder(long folderId)
261                    throws PortalException {
262                    return bookmarksFolderPersistence.findByPrimaryKey(folderId);
263            }
264    
265            @Override
266            public ActionableDynamicQuery getActionableDynamicQuery() {
267                    ActionableDynamicQuery actionableDynamicQuery = new DefaultActionableDynamicQuery();
268    
269                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceUtil.getService());
270                    actionableDynamicQuery.setClass(BookmarksFolder.class);
271                    actionableDynamicQuery.setClassLoader(getClassLoader());
272    
273                    actionableDynamicQuery.setPrimaryKeyPropertyName("folderId");
274    
275                    return actionableDynamicQuery;
276            }
277    
278            protected void initActionableDynamicQuery(
279                    ActionableDynamicQuery actionableDynamicQuery) {
280                    actionableDynamicQuery.setBaseLocalService(com.liferay.portlet.bookmarks.service.BookmarksFolderLocalServiceUtil.getService());
281                    actionableDynamicQuery.setClass(BookmarksFolder.class);
282                    actionableDynamicQuery.setClassLoader(getClassLoader());
283    
284                    actionableDynamicQuery.setPrimaryKeyPropertyName("folderId");
285            }
286    
287            @Override
288            public ExportActionableDynamicQuery getExportActionableDynamicQuery(
289                    final PortletDataContext portletDataContext) {
290                    final ExportActionableDynamicQuery exportActionableDynamicQuery = new ExportActionableDynamicQuery() {
291                                    @Override
292                                    public long performCount() throws PortalException {
293                                            ManifestSummary manifestSummary = portletDataContext.getManifestSummary();
294    
295                                            StagedModelType stagedModelType = getStagedModelType();
296    
297                                            long modelAdditionCount = super.performCount();
298    
299                                            manifestSummary.addModelAdditionCount(stagedModelType.toString(),
300                                                    modelAdditionCount);
301    
302                                            long modelDeletionCount = ExportImportHelperUtil.getModelDeletionCount(portletDataContext,
303                                                            stagedModelType);
304    
305                                            manifestSummary.addModelDeletionCount(stagedModelType.toString(),
306                                                    modelDeletionCount);
307    
308                                            return modelAdditionCount;
309                                    }
310                            };
311    
312                    initActionableDynamicQuery(exportActionableDynamicQuery);
313    
314                    exportActionableDynamicQuery.setAddCriteriaMethod(new ActionableDynamicQuery.AddCriteriaMethod() {
315                                    @Override
316                                    public void addCriteria(DynamicQuery dynamicQuery) {
317                                            portletDataContext.addDateRangeCriteria(dynamicQuery,
318                                                    "modifiedDate");
319    
320                                            StagedModelDataHandler<?> stagedModelDataHandler = StagedModelDataHandlerRegistryUtil.getStagedModelDataHandler(BookmarksFolder.class.getName());
321    
322                                            Property workflowStatusProperty = PropertyFactoryUtil.forName(
323                                                            "status");
324    
325                                            dynamicQuery.add(workflowStatusProperty.in(
326                                                            stagedModelDataHandler.getExportableStatuses()));
327                                    }
328                            });
329    
330                    exportActionableDynamicQuery.setCompanyId(portletDataContext.getCompanyId());
331    
332                    exportActionableDynamicQuery.setGroupId(portletDataContext.getScopeGroupId());
333    
334                    exportActionableDynamicQuery.setPerformActionMethod(new ActionableDynamicQuery.PerformActionMethod() {
335                                    @Override
336                                    public void performAction(Object object)
337                                            throws PortalException {
338                                            BookmarksFolder stagedModel = (BookmarksFolder)object;
339    
340                                            StagedModelDataHandlerUtil.exportStagedModel(portletDataContext,
341                                                    stagedModel);
342                                    }
343                            });
344                    exportActionableDynamicQuery.setStagedModelType(new StagedModelType(
345                                    PortalUtil.getClassNameId(BookmarksFolder.class.getName())));
346    
347                    return exportActionableDynamicQuery;
348            }
349    
350            /**
351             * @throws PortalException
352             */
353            @Override
354            public PersistedModel deletePersistedModel(PersistedModel persistedModel)
355                    throws PortalException {
356                    return bookmarksFolderLocalService.deleteBookmarksFolder((BookmarksFolder)persistedModel);
357            }
358    
359            @Override
360            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
361                    throws PortalException {
362                    return bookmarksFolderPersistence.findByPrimaryKey(primaryKeyObj);
363            }
364    
365            @Override
366            public List<BookmarksFolder> getBookmarksFoldersByUuidAndCompanyId(
367                    String uuid, long companyId) {
368                    return bookmarksFolderPersistence.findByUuid_C(uuid, companyId);
369            }
370    
371            @Override
372            public List<BookmarksFolder> getBookmarksFoldersByUuidAndCompanyId(
373                    String uuid, long companyId, int start, int end,
374                    OrderByComparator<BookmarksFolder> orderByComparator) {
375                    return bookmarksFolderPersistence.findByUuid_C(uuid, companyId, start,
376                            end, orderByComparator);
377            }
378    
379            /**
380             * Returns the bookmarks folder matching the UUID and group.
381             *
382             * @param uuid the bookmarks folder's UUID
383             * @param groupId the primary key of the group
384             * @return the matching bookmarks folder
385             * @throws PortalException if a matching bookmarks folder could not be found
386             */
387            @Override
388            public BookmarksFolder getBookmarksFolderByUuidAndGroupId(String uuid,
389                    long groupId) throws PortalException {
390                    return bookmarksFolderPersistence.findByUUID_G(uuid, groupId);
391            }
392    
393            /**
394             * Returns a range of all the bookmarks folders.
395             *
396             * <p>
397             * 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.bookmarks.model.impl.BookmarksFolderModelImpl}. 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.
398             * </p>
399             *
400             * @param start the lower bound of the range of bookmarks folders
401             * @param end the upper bound of the range of bookmarks folders (not inclusive)
402             * @return the range of bookmarks folders
403             */
404            @Override
405            public List<BookmarksFolder> getBookmarksFolders(int start, int end) {
406                    return bookmarksFolderPersistence.findAll(start, end);
407            }
408    
409            /**
410             * Returns the number of bookmarks folders.
411             *
412             * @return the number of bookmarks folders
413             */
414            @Override
415            public int getBookmarksFoldersCount() {
416                    return bookmarksFolderPersistence.countAll();
417            }
418    
419            /**
420             * Updates the bookmarks folder in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
421             *
422             * @param bookmarksFolder the bookmarks folder
423             * @return the bookmarks folder that was updated
424             */
425            @Indexable(type = IndexableType.REINDEX)
426            @Override
427            public BookmarksFolder updateBookmarksFolder(
428                    BookmarksFolder bookmarksFolder) {
429                    return bookmarksFolderPersistence.update(bookmarksFolder);
430            }
431    
432            /**
433             * Returns the bookmarks entry local service.
434             *
435             * @return the bookmarks entry local service
436             */
437            public com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService getBookmarksEntryLocalService() {
438                    return bookmarksEntryLocalService;
439            }
440    
441            /**
442             * Sets the bookmarks entry local service.
443             *
444             * @param bookmarksEntryLocalService the bookmarks entry local service
445             */
446            public void setBookmarksEntryLocalService(
447                    com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService bookmarksEntryLocalService) {
448                    this.bookmarksEntryLocalService = bookmarksEntryLocalService;
449            }
450    
451            /**
452             * Returns the bookmarks entry remote service.
453             *
454             * @return the bookmarks entry remote service
455             */
456            public com.liferay.portlet.bookmarks.service.BookmarksEntryService getBookmarksEntryService() {
457                    return bookmarksEntryService;
458            }
459    
460            /**
461             * Sets the bookmarks entry remote service.
462             *
463             * @param bookmarksEntryService the bookmarks entry remote service
464             */
465            public void setBookmarksEntryService(
466                    com.liferay.portlet.bookmarks.service.BookmarksEntryService bookmarksEntryService) {
467                    this.bookmarksEntryService = bookmarksEntryService;
468            }
469    
470            /**
471             * Returns the bookmarks entry persistence.
472             *
473             * @return the bookmarks entry persistence
474             */
475            public BookmarksEntryPersistence getBookmarksEntryPersistence() {
476                    return bookmarksEntryPersistence;
477            }
478    
479            /**
480             * Sets the bookmarks entry persistence.
481             *
482             * @param bookmarksEntryPersistence the bookmarks entry persistence
483             */
484            public void setBookmarksEntryPersistence(
485                    BookmarksEntryPersistence bookmarksEntryPersistence) {
486                    this.bookmarksEntryPersistence = bookmarksEntryPersistence;
487            }
488    
489            /**
490             * Returns the bookmarks entry finder.
491             *
492             * @return the bookmarks entry finder
493             */
494            public BookmarksEntryFinder getBookmarksEntryFinder() {
495                    return bookmarksEntryFinder;
496            }
497    
498            /**
499             * Sets the bookmarks entry finder.
500             *
501             * @param bookmarksEntryFinder the bookmarks entry finder
502             */
503            public void setBookmarksEntryFinder(
504                    BookmarksEntryFinder bookmarksEntryFinder) {
505                    this.bookmarksEntryFinder = bookmarksEntryFinder;
506            }
507    
508            /**
509             * Returns the bookmarks folder local service.
510             *
511             * @return the bookmarks folder local service
512             */
513            public com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService getBookmarksFolderLocalService() {
514                    return bookmarksFolderLocalService;
515            }
516    
517            /**
518             * Sets the bookmarks folder local service.
519             *
520             * @param bookmarksFolderLocalService the bookmarks folder local service
521             */
522            public void setBookmarksFolderLocalService(
523                    com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService bookmarksFolderLocalService) {
524                    this.bookmarksFolderLocalService = bookmarksFolderLocalService;
525            }
526    
527            /**
528             * Returns the bookmarks folder remote service.
529             *
530             * @return the bookmarks folder remote service
531             */
532            public com.liferay.portlet.bookmarks.service.BookmarksFolderService getBookmarksFolderService() {
533                    return bookmarksFolderService;
534            }
535    
536            /**
537             * Sets the bookmarks folder remote service.
538             *
539             * @param bookmarksFolderService the bookmarks folder remote service
540             */
541            public void setBookmarksFolderService(
542                    com.liferay.portlet.bookmarks.service.BookmarksFolderService bookmarksFolderService) {
543                    this.bookmarksFolderService = bookmarksFolderService;
544            }
545    
546            /**
547             * Returns the bookmarks folder persistence.
548             *
549             * @return the bookmarks folder persistence
550             */
551            public BookmarksFolderPersistence getBookmarksFolderPersistence() {
552                    return bookmarksFolderPersistence;
553            }
554    
555            /**
556             * Sets the bookmarks folder persistence.
557             *
558             * @param bookmarksFolderPersistence the bookmarks folder persistence
559             */
560            public void setBookmarksFolderPersistence(
561                    BookmarksFolderPersistence bookmarksFolderPersistence) {
562                    this.bookmarksFolderPersistence = bookmarksFolderPersistence;
563            }
564    
565            /**
566             * Returns the bookmarks folder finder.
567             *
568             * @return the bookmarks folder finder
569             */
570            public BookmarksFolderFinder getBookmarksFolderFinder() {
571                    return bookmarksFolderFinder;
572            }
573    
574            /**
575             * Sets the bookmarks folder finder.
576             *
577             * @param bookmarksFolderFinder the bookmarks folder finder
578             */
579            public void setBookmarksFolderFinder(
580                    BookmarksFolderFinder bookmarksFolderFinder) {
581                    this.bookmarksFolderFinder = bookmarksFolderFinder;
582            }
583    
584            /**
585             * Returns the counter local service.
586             *
587             * @return the counter local service
588             */
589            public com.liferay.counter.service.CounterLocalService getCounterLocalService() {
590                    return counterLocalService;
591            }
592    
593            /**
594             * Sets the counter local service.
595             *
596             * @param counterLocalService the counter local service
597             */
598            public void setCounterLocalService(
599                    com.liferay.counter.service.CounterLocalService counterLocalService) {
600                    this.counterLocalService = counterLocalService;
601            }
602    
603            /**
604             * Returns the class name local service.
605             *
606             * @return the class name local service
607             */
608            public com.liferay.portal.service.ClassNameLocalService getClassNameLocalService() {
609                    return classNameLocalService;
610            }
611    
612            /**
613             * Sets the class name local service.
614             *
615             * @param classNameLocalService the class name local service
616             */
617            public void setClassNameLocalService(
618                    com.liferay.portal.service.ClassNameLocalService classNameLocalService) {
619                    this.classNameLocalService = classNameLocalService;
620            }
621    
622            /**
623             * Returns the class name remote service.
624             *
625             * @return the class name remote service
626             */
627            public com.liferay.portal.service.ClassNameService getClassNameService() {
628                    return classNameService;
629            }
630    
631            /**
632             * Sets the class name remote service.
633             *
634             * @param classNameService the class name remote service
635             */
636            public void setClassNameService(
637                    com.liferay.portal.service.ClassNameService classNameService) {
638                    this.classNameService = classNameService;
639            }
640    
641            /**
642             * Returns the class name persistence.
643             *
644             * @return the class name persistence
645             */
646            public ClassNamePersistence getClassNamePersistence() {
647                    return classNamePersistence;
648            }
649    
650            /**
651             * Sets the class name persistence.
652             *
653             * @param classNamePersistence the class name persistence
654             */
655            public void setClassNamePersistence(
656                    ClassNamePersistence classNamePersistence) {
657                    this.classNamePersistence = classNamePersistence;
658            }
659    
660            /**
661             * Returns the group local service.
662             *
663             * @return the group local service
664             */
665            public com.liferay.portal.service.GroupLocalService getGroupLocalService() {
666                    return groupLocalService;
667            }
668    
669            /**
670             * Sets the group local service.
671             *
672             * @param groupLocalService the group local service
673             */
674            public void setGroupLocalService(
675                    com.liferay.portal.service.GroupLocalService groupLocalService) {
676                    this.groupLocalService = groupLocalService;
677            }
678    
679            /**
680             * Returns the group remote service.
681             *
682             * @return the group remote service
683             */
684            public com.liferay.portal.service.GroupService getGroupService() {
685                    return groupService;
686            }
687    
688            /**
689             * Sets the group remote service.
690             *
691             * @param groupService the group remote service
692             */
693            public void setGroupService(
694                    com.liferay.portal.service.GroupService groupService) {
695                    this.groupService = groupService;
696            }
697    
698            /**
699             * Returns the group persistence.
700             *
701             * @return the group persistence
702             */
703            public GroupPersistence getGroupPersistence() {
704                    return groupPersistence;
705            }
706    
707            /**
708             * Sets the group persistence.
709             *
710             * @param groupPersistence the group persistence
711             */
712            public void setGroupPersistence(GroupPersistence groupPersistence) {
713                    this.groupPersistence = groupPersistence;
714            }
715    
716            /**
717             * Returns the group finder.
718             *
719             * @return the group finder
720             */
721            public GroupFinder getGroupFinder() {
722                    return groupFinder;
723            }
724    
725            /**
726             * Sets the group finder.
727             *
728             * @param groupFinder the group finder
729             */
730            public void setGroupFinder(GroupFinder groupFinder) {
731                    this.groupFinder = groupFinder;
732            }
733    
734            /**
735             * Returns the resource local service.
736             *
737             * @return the resource local service
738             */
739            public com.liferay.portal.service.ResourceLocalService getResourceLocalService() {
740                    return resourceLocalService;
741            }
742    
743            /**
744             * Sets the resource local service.
745             *
746             * @param resourceLocalService the resource local service
747             */
748            public void setResourceLocalService(
749                    com.liferay.portal.service.ResourceLocalService resourceLocalService) {
750                    this.resourceLocalService = resourceLocalService;
751            }
752    
753            /**
754             * Returns the subscription local service.
755             *
756             * @return the subscription local service
757             */
758            public com.liferay.portal.service.SubscriptionLocalService getSubscriptionLocalService() {
759                    return subscriptionLocalService;
760            }
761    
762            /**
763             * Sets the subscription local service.
764             *
765             * @param subscriptionLocalService the subscription local service
766             */
767            public void setSubscriptionLocalService(
768                    com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService) {
769                    this.subscriptionLocalService = subscriptionLocalService;
770            }
771    
772            /**
773             * Returns the subscription persistence.
774             *
775             * @return the subscription persistence
776             */
777            public SubscriptionPersistence getSubscriptionPersistence() {
778                    return subscriptionPersistence;
779            }
780    
781            /**
782             * Sets the subscription persistence.
783             *
784             * @param subscriptionPersistence the subscription persistence
785             */
786            public void setSubscriptionPersistence(
787                    SubscriptionPersistence subscriptionPersistence) {
788                    this.subscriptionPersistence = subscriptionPersistence;
789            }
790    
791            /**
792             * Returns the user local service.
793             *
794             * @return the user local service
795             */
796            public com.liferay.portal.service.UserLocalService getUserLocalService() {
797                    return userLocalService;
798            }
799    
800            /**
801             * Sets the user local service.
802             *
803             * @param userLocalService the user local service
804             */
805            public void setUserLocalService(
806                    com.liferay.portal.service.UserLocalService userLocalService) {
807                    this.userLocalService = userLocalService;
808            }
809    
810            /**
811             * Returns the user remote service.
812             *
813             * @return the user remote service
814             */
815            public com.liferay.portal.service.UserService getUserService() {
816                    return userService;
817            }
818    
819            /**
820             * Sets the user remote service.
821             *
822             * @param userService the user remote service
823             */
824            public void setUserService(
825                    com.liferay.portal.service.UserService userService) {
826                    this.userService = userService;
827            }
828    
829            /**
830             * Returns the user persistence.
831             *
832             * @return the user persistence
833             */
834            public UserPersistence getUserPersistence() {
835                    return userPersistence;
836            }
837    
838            /**
839             * Sets the user persistence.
840             *
841             * @param userPersistence the user persistence
842             */
843            public void setUserPersistence(UserPersistence userPersistence) {
844                    this.userPersistence = userPersistence;
845            }
846    
847            /**
848             * Returns the user finder.
849             *
850             * @return the user finder
851             */
852            public UserFinder getUserFinder() {
853                    return userFinder;
854            }
855    
856            /**
857             * Sets the user finder.
858             *
859             * @param userFinder the user finder
860             */
861            public void setUserFinder(UserFinder userFinder) {
862                    this.userFinder = userFinder;
863            }
864    
865            /**
866             * Returns the asset entry local service.
867             *
868             * @return the asset entry local service
869             */
870            public com.liferay.portlet.asset.service.AssetEntryLocalService getAssetEntryLocalService() {
871                    return assetEntryLocalService;
872            }
873    
874            /**
875             * Sets the asset entry local service.
876             *
877             * @param assetEntryLocalService the asset entry local service
878             */
879            public void setAssetEntryLocalService(
880                    com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService) {
881                    this.assetEntryLocalService = assetEntryLocalService;
882            }
883    
884            /**
885             * Returns the asset entry remote service.
886             *
887             * @return the asset entry remote service
888             */
889            public com.liferay.portlet.asset.service.AssetEntryService getAssetEntryService() {
890                    return assetEntryService;
891            }
892    
893            /**
894             * Sets the asset entry remote service.
895             *
896             * @param assetEntryService the asset entry remote service
897             */
898            public void setAssetEntryService(
899                    com.liferay.portlet.asset.service.AssetEntryService assetEntryService) {
900                    this.assetEntryService = assetEntryService;
901            }
902    
903            /**
904             * Returns the asset entry persistence.
905             *
906             * @return the asset entry persistence
907             */
908            public AssetEntryPersistence getAssetEntryPersistence() {
909                    return assetEntryPersistence;
910            }
911    
912            /**
913             * Sets the asset entry persistence.
914             *
915             * @param assetEntryPersistence the asset entry persistence
916             */
917            public void setAssetEntryPersistence(
918                    AssetEntryPersistence assetEntryPersistence) {
919                    this.assetEntryPersistence = assetEntryPersistence;
920            }
921    
922            /**
923             * Returns the asset entry finder.
924             *
925             * @return the asset entry finder
926             */
927            public AssetEntryFinder getAssetEntryFinder() {
928                    return assetEntryFinder;
929            }
930    
931            /**
932             * Sets the asset entry finder.
933             *
934             * @param assetEntryFinder the asset entry finder
935             */
936            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
937                    this.assetEntryFinder = assetEntryFinder;
938            }
939    
940            /**
941             * Returns the asset link local service.
942             *
943             * @return the asset link local service
944             */
945            public com.liferay.portlet.asset.service.AssetLinkLocalService getAssetLinkLocalService() {
946                    return assetLinkLocalService;
947            }
948    
949            /**
950             * Sets the asset link local service.
951             *
952             * @param assetLinkLocalService the asset link local service
953             */
954            public void setAssetLinkLocalService(
955                    com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService) {
956                    this.assetLinkLocalService = assetLinkLocalService;
957            }
958    
959            /**
960             * Returns the asset link persistence.
961             *
962             * @return the asset link persistence
963             */
964            public AssetLinkPersistence getAssetLinkPersistence() {
965                    return assetLinkPersistence;
966            }
967    
968            /**
969             * Sets the asset link persistence.
970             *
971             * @param assetLinkPersistence the asset link persistence
972             */
973            public void setAssetLinkPersistence(
974                    AssetLinkPersistence assetLinkPersistence) {
975                    this.assetLinkPersistence = assetLinkPersistence;
976            }
977    
978            /**
979             * Returns the expando row local service.
980             *
981             * @return the expando row local service
982             */
983            public com.liferay.portlet.expando.service.ExpandoRowLocalService getExpandoRowLocalService() {
984                    return expandoRowLocalService;
985            }
986    
987            /**
988             * Sets the expando row local service.
989             *
990             * @param expandoRowLocalService the expando row local service
991             */
992            public void setExpandoRowLocalService(
993                    com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService) {
994                    this.expandoRowLocalService = expandoRowLocalService;
995            }
996    
997            /**
998             * Returns the expando row persistence.
999             *
1000             * @return the expando row persistence
1001             */
1002            public ExpandoRowPersistence getExpandoRowPersistence() {
1003                    return expandoRowPersistence;
1004            }
1005    
1006            /**
1007             * Sets the expando row persistence.
1008             *
1009             * @param expandoRowPersistence the expando row persistence
1010             */
1011            public void setExpandoRowPersistence(
1012                    ExpandoRowPersistence expandoRowPersistence) {
1013                    this.expandoRowPersistence = expandoRowPersistence;
1014            }
1015    
1016            /**
1017             * Returns the social activity local service.
1018             *
1019             * @return the social activity local service
1020             */
1021            public com.liferay.portlet.social.service.SocialActivityLocalService getSocialActivityLocalService() {
1022                    return socialActivityLocalService;
1023            }
1024    
1025            /**
1026             * Sets the social activity local service.
1027             *
1028             * @param socialActivityLocalService the social activity local service
1029             */
1030            public void setSocialActivityLocalService(
1031                    com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService) {
1032                    this.socialActivityLocalService = socialActivityLocalService;
1033            }
1034    
1035            /**
1036             * Returns the social activity remote service.
1037             *
1038             * @return the social activity remote service
1039             */
1040            public com.liferay.portlet.social.service.SocialActivityService getSocialActivityService() {
1041                    return socialActivityService;
1042            }
1043    
1044            /**
1045             * Sets the social activity remote service.
1046             *
1047             * @param socialActivityService the social activity remote service
1048             */
1049            public void setSocialActivityService(
1050                    com.liferay.portlet.social.service.SocialActivityService socialActivityService) {
1051                    this.socialActivityService = socialActivityService;
1052            }
1053    
1054            /**
1055             * Returns the social activity persistence.
1056             *
1057             * @return the social activity persistence
1058             */
1059            public SocialActivityPersistence getSocialActivityPersistence() {
1060                    return socialActivityPersistence;
1061            }
1062    
1063            /**
1064             * Sets the social activity persistence.
1065             *
1066             * @param socialActivityPersistence the social activity persistence
1067             */
1068            public void setSocialActivityPersistence(
1069                    SocialActivityPersistence socialActivityPersistence) {
1070                    this.socialActivityPersistence = socialActivityPersistence;
1071            }
1072    
1073            /**
1074             * Returns the social activity finder.
1075             *
1076             * @return the social activity finder
1077             */
1078            public SocialActivityFinder getSocialActivityFinder() {
1079                    return socialActivityFinder;
1080            }
1081    
1082            /**
1083             * Sets the social activity finder.
1084             *
1085             * @param socialActivityFinder the social activity finder
1086             */
1087            public void setSocialActivityFinder(
1088                    SocialActivityFinder socialActivityFinder) {
1089                    this.socialActivityFinder = socialActivityFinder;
1090            }
1091    
1092            /**
1093             * Returns the trash entry local service.
1094             *
1095             * @return the trash entry local service
1096             */
1097            public com.liferay.portlet.trash.service.TrashEntryLocalService getTrashEntryLocalService() {
1098                    return trashEntryLocalService;
1099            }
1100    
1101            /**
1102             * Sets the trash entry local service.
1103             *
1104             * @param trashEntryLocalService the trash entry local service
1105             */
1106            public void setTrashEntryLocalService(
1107                    com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService) {
1108                    this.trashEntryLocalService = trashEntryLocalService;
1109            }
1110    
1111            /**
1112             * Returns the trash entry remote service.
1113             *
1114             * @return the trash entry remote service
1115             */
1116            public com.liferay.portlet.trash.service.TrashEntryService getTrashEntryService() {
1117                    return trashEntryService;
1118            }
1119    
1120            /**
1121             * Sets the trash entry remote service.
1122             *
1123             * @param trashEntryService the trash entry remote service
1124             */
1125            public void setTrashEntryService(
1126                    com.liferay.portlet.trash.service.TrashEntryService trashEntryService) {
1127                    this.trashEntryService = trashEntryService;
1128            }
1129    
1130            /**
1131             * Returns the trash entry persistence.
1132             *
1133             * @return the trash entry persistence
1134             */
1135            public TrashEntryPersistence getTrashEntryPersistence() {
1136                    return trashEntryPersistence;
1137            }
1138    
1139            /**
1140             * Sets the trash entry persistence.
1141             *
1142             * @param trashEntryPersistence the trash entry persistence
1143             */
1144            public void setTrashEntryPersistence(
1145                    TrashEntryPersistence trashEntryPersistence) {
1146                    this.trashEntryPersistence = trashEntryPersistence;
1147            }
1148    
1149            /**
1150             * Returns the trash version local service.
1151             *
1152             * @return the trash version local service
1153             */
1154            public com.liferay.portlet.trash.service.TrashVersionLocalService getTrashVersionLocalService() {
1155                    return trashVersionLocalService;
1156            }
1157    
1158            /**
1159             * Sets the trash version local service.
1160             *
1161             * @param trashVersionLocalService the trash version local service
1162             */
1163            public void setTrashVersionLocalService(
1164                    com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService) {
1165                    this.trashVersionLocalService = trashVersionLocalService;
1166            }
1167    
1168            /**
1169             * Returns the trash version persistence.
1170             *
1171             * @return the trash version persistence
1172             */
1173            public TrashVersionPersistence getTrashVersionPersistence() {
1174                    return trashVersionPersistence;
1175            }
1176    
1177            /**
1178             * Sets the trash version persistence.
1179             *
1180             * @param trashVersionPersistence the trash version persistence
1181             */
1182            public void setTrashVersionPersistence(
1183                    TrashVersionPersistence trashVersionPersistence) {
1184                    this.trashVersionPersistence = trashVersionPersistence;
1185            }
1186    
1187            public void afterPropertiesSet() {
1188                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.bookmarks.model.BookmarksFolder",
1189                            bookmarksFolderLocalService);
1190            }
1191    
1192            public void destroy() {
1193                    persistedModelLocalServiceRegistry.unregister(
1194                            "com.liferay.portlet.bookmarks.model.BookmarksFolder");
1195            }
1196    
1197            /**
1198             * Returns the Spring bean ID for this bean.
1199             *
1200             * @return the Spring bean ID for this bean
1201             */
1202            @Override
1203            public String getBeanIdentifier() {
1204                    return _beanIdentifier;
1205            }
1206    
1207            /**
1208             * Sets the Spring bean ID for this bean.
1209             *
1210             * @param beanIdentifier the Spring bean ID for this bean
1211             */
1212            @Override
1213            public void setBeanIdentifier(String beanIdentifier) {
1214                    _beanIdentifier = beanIdentifier;
1215            }
1216    
1217            protected Class<?> getModelClass() {
1218                    return BookmarksFolder.class;
1219            }
1220    
1221            protected String getModelClassName() {
1222                    return BookmarksFolder.class.getName();
1223            }
1224    
1225            /**
1226             * Performs a SQL query.
1227             *
1228             * @param sql the sql query
1229             */
1230            protected void runSQL(String sql) {
1231                    try {
1232                            DataSource dataSource = bookmarksFolderPersistence.getDataSource();
1233    
1234                            DB db = DBFactoryUtil.getDB();
1235    
1236                            sql = db.buildSQL(sql);
1237                            sql = PortalUtil.transformSQL(sql);
1238    
1239                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1240                                            sql, new int[0]);
1241    
1242                            sqlUpdate.update();
1243                    }
1244                    catch (Exception e) {
1245                            throw new SystemException(e);
1246                    }
1247            }
1248    
1249            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService.class)
1250            protected com.liferay.portlet.bookmarks.service.BookmarksEntryLocalService bookmarksEntryLocalService;
1251            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksEntryService.class)
1252            protected com.liferay.portlet.bookmarks.service.BookmarksEntryService bookmarksEntryService;
1253            @BeanReference(type = BookmarksEntryPersistence.class)
1254            protected BookmarksEntryPersistence bookmarksEntryPersistence;
1255            @BeanReference(type = BookmarksEntryFinder.class)
1256            protected BookmarksEntryFinder bookmarksEntryFinder;
1257            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService.class)
1258            protected com.liferay.portlet.bookmarks.service.BookmarksFolderLocalService bookmarksFolderLocalService;
1259            @BeanReference(type = com.liferay.portlet.bookmarks.service.BookmarksFolderService.class)
1260            protected com.liferay.portlet.bookmarks.service.BookmarksFolderService bookmarksFolderService;
1261            @BeanReference(type = BookmarksFolderPersistence.class)
1262            protected BookmarksFolderPersistence bookmarksFolderPersistence;
1263            @BeanReference(type = BookmarksFolderFinder.class)
1264            protected BookmarksFolderFinder bookmarksFolderFinder;
1265            @BeanReference(type = com.liferay.counter.service.CounterLocalService.class)
1266            protected com.liferay.counter.service.CounterLocalService counterLocalService;
1267            @BeanReference(type = com.liferay.portal.service.ClassNameLocalService.class)
1268            protected com.liferay.portal.service.ClassNameLocalService classNameLocalService;
1269            @BeanReference(type = com.liferay.portal.service.ClassNameService.class)
1270            protected com.liferay.portal.service.ClassNameService classNameService;
1271            @BeanReference(type = ClassNamePersistence.class)
1272            protected ClassNamePersistence classNamePersistence;
1273            @BeanReference(type = com.liferay.portal.service.GroupLocalService.class)
1274            protected com.liferay.portal.service.GroupLocalService groupLocalService;
1275            @BeanReference(type = com.liferay.portal.service.GroupService.class)
1276            protected com.liferay.portal.service.GroupService groupService;
1277            @BeanReference(type = GroupPersistence.class)
1278            protected GroupPersistence groupPersistence;
1279            @BeanReference(type = GroupFinder.class)
1280            protected GroupFinder groupFinder;
1281            @BeanReference(type = com.liferay.portal.service.ResourceLocalService.class)
1282            protected com.liferay.portal.service.ResourceLocalService resourceLocalService;
1283            @BeanReference(type = com.liferay.portal.service.SubscriptionLocalService.class)
1284            protected com.liferay.portal.service.SubscriptionLocalService subscriptionLocalService;
1285            @BeanReference(type = SubscriptionPersistence.class)
1286            protected SubscriptionPersistence subscriptionPersistence;
1287            @BeanReference(type = com.liferay.portal.service.UserLocalService.class)
1288            protected com.liferay.portal.service.UserLocalService userLocalService;
1289            @BeanReference(type = com.liferay.portal.service.UserService.class)
1290            protected com.liferay.portal.service.UserService userService;
1291            @BeanReference(type = UserPersistence.class)
1292            protected UserPersistence userPersistence;
1293            @BeanReference(type = UserFinder.class)
1294            protected UserFinder userFinder;
1295            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryLocalService.class)
1296            protected com.liferay.portlet.asset.service.AssetEntryLocalService assetEntryLocalService;
1297            @BeanReference(type = com.liferay.portlet.asset.service.AssetEntryService.class)
1298            protected com.liferay.portlet.asset.service.AssetEntryService assetEntryService;
1299            @BeanReference(type = AssetEntryPersistence.class)
1300            protected AssetEntryPersistence assetEntryPersistence;
1301            @BeanReference(type = AssetEntryFinder.class)
1302            protected AssetEntryFinder assetEntryFinder;
1303            @BeanReference(type = com.liferay.portlet.asset.service.AssetLinkLocalService.class)
1304            protected com.liferay.portlet.asset.service.AssetLinkLocalService assetLinkLocalService;
1305            @BeanReference(type = AssetLinkPersistence.class)
1306            protected AssetLinkPersistence assetLinkPersistence;
1307            @BeanReference(type = com.liferay.portlet.expando.service.ExpandoRowLocalService.class)
1308            protected com.liferay.portlet.expando.service.ExpandoRowLocalService expandoRowLocalService;
1309            @BeanReference(type = ExpandoRowPersistence.class)
1310            protected ExpandoRowPersistence expandoRowPersistence;
1311            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityLocalService.class)
1312            protected com.liferay.portlet.social.service.SocialActivityLocalService socialActivityLocalService;
1313            @BeanReference(type = com.liferay.portlet.social.service.SocialActivityService.class)
1314            protected com.liferay.portlet.social.service.SocialActivityService socialActivityService;
1315            @BeanReference(type = SocialActivityPersistence.class)
1316            protected SocialActivityPersistence socialActivityPersistence;
1317            @BeanReference(type = SocialActivityFinder.class)
1318            protected SocialActivityFinder socialActivityFinder;
1319            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryLocalService.class)
1320            protected com.liferay.portlet.trash.service.TrashEntryLocalService trashEntryLocalService;
1321            @BeanReference(type = com.liferay.portlet.trash.service.TrashEntryService.class)
1322            protected com.liferay.portlet.trash.service.TrashEntryService trashEntryService;
1323            @BeanReference(type = TrashEntryPersistence.class)
1324            protected TrashEntryPersistence trashEntryPersistence;
1325            @BeanReference(type = com.liferay.portlet.trash.service.TrashVersionLocalService.class)
1326            protected com.liferay.portlet.trash.service.TrashVersionLocalService trashVersionLocalService;
1327            @BeanReference(type = TrashVersionPersistence.class)
1328            protected TrashVersionPersistence trashVersionPersistence;
1329            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1330            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1331            private String _beanIdentifier;
1332    }