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