001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.documentlibrary.service.base;
016    
017    import com.liferay.counter.service.CounterLocalService;
018    
019    import com.liferay.portal.kernel.bean.BeanReference;
020    import com.liferay.portal.kernel.bean.IdentifiableBean;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
022    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
023    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
024    import com.liferay.portal.kernel.exception.PortalException;
025    import com.liferay.portal.kernel.exception.SystemException;
026    import com.liferay.portal.kernel.log.Log;
027    import com.liferay.portal.kernel.log.LogFactoryUtil;
028    import com.liferay.portal.kernel.search.Indexer;
029    import com.liferay.portal.kernel.search.IndexerRegistryUtil;
030    import com.liferay.portal.kernel.search.SearchException;
031    import com.liferay.portal.kernel.util.OrderByComparator;
032    import com.liferay.portal.model.PersistedModel;
033    import com.liferay.portal.service.PersistedModelLocalServiceRegistry;
034    import com.liferay.portal.service.ResourceLocalService;
035    import com.liferay.portal.service.ResourceService;
036    import com.liferay.portal.service.UserLocalService;
037    import com.liferay.portal.service.UserService;
038    import com.liferay.portal.service.persistence.ResourceFinder;
039    import com.liferay.portal.service.persistence.ResourcePersistence;
040    import com.liferay.portal.service.persistence.UserFinder;
041    import com.liferay.portal.service.persistence.UserPersistence;
042    
043    import com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata;
044    import com.liferay.portlet.documentlibrary.service.DLAppHelperLocalService;
045    import com.liferay.portlet.documentlibrary.service.DLAppLocalService;
046    import com.liferay.portlet.documentlibrary.service.DLAppService;
047    import com.liferay.portlet.documentlibrary.service.DLContentLocalService;
048    import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
049    import com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalService;
050    import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
051    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeLocalService;
052    import com.liferay.portlet.documentlibrary.service.DLFileEntryTypeService;
053    import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
054    import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
055    import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
056    import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
057    import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
058    import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
059    import com.liferay.portlet.documentlibrary.service.DLFolderService;
060    import com.liferay.portlet.documentlibrary.service.DLSyncLocalService;
061    import com.liferay.portlet.documentlibrary.service.DLSyncService;
062    import com.liferay.portlet.documentlibrary.service.persistence.DLContentPersistence;
063    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
064    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryMetadataPersistence;
065    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
066    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypeFinder;
067    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryTypePersistence;
068    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankFinder;
069    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
070    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
071    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
072    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
073    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
074    import com.liferay.portlet.documentlibrary.service.persistence.DLSyncPersistence;
075    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkLocalService;
076    import com.liferay.portlet.dynamicdatamapping.service.DDMStructureLinkService;
077    import com.liferay.portlet.dynamicdatamapping.service.persistence.DDMStructureLinkPersistence;
078    
079    import java.io.Serializable;
080    
081    import java.util.List;
082    
083    import javax.sql.DataSource;
084    
085    /**
086     * The base implementation of the document library file entry metadata local service.
087     *
088     * <p>
089     * 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.documentlibrary.service.impl.DLFileEntryMetadataLocalServiceImpl}.
090     * </p>
091     *
092     * @author Brian Wing Shun Chan
093     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileEntryMetadataLocalServiceImpl
094     * @see com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil
095     * @generated
096     */
097    public abstract class DLFileEntryMetadataLocalServiceBaseImpl
098            implements DLFileEntryMetadataLocalService, IdentifiableBean {
099            /*
100             * NOTE FOR DEVELOPERS:
101             *
102             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFileEntryMetadataLocalServiceUtil} to access the document library file entry metadata local service.
103             */
104    
105            /**
106             * Adds the document library file entry metadata to the database. Also notifies the appropriate model listeners.
107             *
108             * @param dlFileEntryMetadata the document library file entry metadata
109             * @return the document library file entry metadata that was added
110             * @throws SystemException if a system exception occurred
111             */
112            public DLFileEntryMetadata addDLFileEntryMetadata(
113                    DLFileEntryMetadata dlFileEntryMetadata) throws SystemException {
114                    dlFileEntryMetadata.setNew(true);
115    
116                    dlFileEntryMetadata = dlFileEntryMetadataPersistence.update(dlFileEntryMetadata,
117                                    false);
118    
119                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
120    
121                    if (indexer != null) {
122                            try {
123                                    indexer.reindex(dlFileEntryMetadata);
124                            }
125                            catch (SearchException se) {
126                                    if (_log.isWarnEnabled()) {
127                                            _log.warn(se, se);
128                                    }
129                            }
130                    }
131    
132                    return dlFileEntryMetadata;
133            }
134    
135            /**
136             * Creates a new document library file entry metadata with the primary key. Does not add the document library file entry metadata to the database.
137             *
138             * @param fileEntryMetadataId the primary key for the new document library file entry metadata
139             * @return the new document library file entry metadata
140             */
141            public DLFileEntryMetadata createDLFileEntryMetadata(
142                    long fileEntryMetadataId) {
143                    return dlFileEntryMetadataPersistence.create(fileEntryMetadataId);
144            }
145    
146            /**
147             * Deletes the document library file entry metadata with the primary key from the database. Also notifies the appropriate model listeners.
148             *
149             * @param fileEntryMetadataId the primary key of the document library file entry metadata
150             * @throws PortalException if a document library file entry metadata with the primary key could not be found
151             * @throws SystemException if a system exception occurred
152             */
153            public void deleteDLFileEntryMetadata(long fileEntryMetadataId)
154                    throws PortalException, SystemException {
155                    DLFileEntryMetadata dlFileEntryMetadata = dlFileEntryMetadataPersistence.remove(fileEntryMetadataId);
156    
157                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
158    
159                    if (indexer != null) {
160                            try {
161                                    indexer.delete(dlFileEntryMetadata);
162                            }
163                            catch (SearchException se) {
164                                    if (_log.isWarnEnabled()) {
165                                            _log.warn(se, se);
166                                    }
167                            }
168                    }
169            }
170    
171            /**
172             * Deletes the document library file entry metadata from the database. Also notifies the appropriate model listeners.
173             *
174             * @param dlFileEntryMetadata the document library file entry metadata
175             * @throws SystemException if a system exception occurred
176             */
177            public void deleteDLFileEntryMetadata(
178                    DLFileEntryMetadata dlFileEntryMetadata) throws SystemException {
179                    dlFileEntryMetadataPersistence.remove(dlFileEntryMetadata);
180    
181                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
182    
183                    if (indexer != null) {
184                            try {
185                                    indexer.delete(dlFileEntryMetadata);
186                            }
187                            catch (SearchException se) {
188                                    if (_log.isWarnEnabled()) {
189                                            _log.warn(se, se);
190                                    }
191                            }
192                    }
193            }
194    
195            /**
196             * Performs a dynamic query on the database and returns the matching rows.
197             *
198             * @param dynamicQuery the dynamic query
199             * @return the matching rows
200             * @throws SystemException if a system exception occurred
201             */
202            @SuppressWarnings("rawtypes")
203            public List dynamicQuery(DynamicQuery dynamicQuery)
204                    throws SystemException {
205                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery);
206            }
207    
208            /**
209             * Performs a dynamic query on the database and returns a range of the matching rows.
210             *
211             * <p>
212             * 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.
213             * </p>
214             *
215             * @param dynamicQuery the dynamic query
216             * @param start the lower bound of the range of model instances
217             * @param end the upper bound of the range of model instances (not inclusive)
218             * @return the range of matching rows
219             * @throws SystemException if a system exception occurred
220             */
221            @SuppressWarnings("rawtypes")
222            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
223                    throws SystemException {
224                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery,
225                            start, end);
226            }
227    
228            /**
229             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
230             *
231             * <p>
232             * 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.
233             * </p>
234             *
235             * @param dynamicQuery the dynamic query
236             * @param start the lower bound of the range of model instances
237             * @param end the upper bound of the range of model instances (not inclusive)
238             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
239             * @return the ordered range of matching rows
240             * @throws SystemException if a system exception occurred
241             */
242            @SuppressWarnings("rawtypes")
243            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
244                    OrderByComparator orderByComparator) throws SystemException {
245                    return dlFileEntryMetadataPersistence.findWithDynamicQuery(dynamicQuery,
246                            start, end, orderByComparator);
247            }
248    
249            /**
250             * Returns the number of rows that match the dynamic query.
251             *
252             * @param dynamicQuery the dynamic query
253             * @return the number of rows that match the dynamic query
254             * @throws SystemException if a system exception occurred
255             */
256            public long dynamicQueryCount(DynamicQuery dynamicQuery)
257                    throws SystemException {
258                    return dlFileEntryMetadataPersistence.countWithDynamicQuery(dynamicQuery);
259            }
260    
261            public DLFileEntryMetadata fetchDLFileEntryMetadata(
262                    long fileEntryMetadataId) throws SystemException {
263                    return dlFileEntryMetadataPersistence.fetchByPrimaryKey(fileEntryMetadataId);
264            }
265    
266            /**
267             * Returns the document library file entry metadata with the primary key.
268             *
269             * @param fileEntryMetadataId the primary key of the document library file entry metadata
270             * @return the document library file entry metadata
271             * @throws PortalException if a document library file entry metadata with the primary key could not be found
272             * @throws SystemException if a system exception occurred
273             */
274            public DLFileEntryMetadata getDLFileEntryMetadata(long fileEntryMetadataId)
275                    throws PortalException, SystemException {
276                    return dlFileEntryMetadataPersistence.findByPrimaryKey(fileEntryMetadataId);
277            }
278    
279            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
280                    throws PortalException, SystemException {
281                    return dlFileEntryMetadataPersistence.findByPrimaryKey(primaryKeyObj);
282            }
283    
284            /**
285             * Returns a range of all the document library file entry metadatas.
286             *
287             * <p>
288             * 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.
289             * </p>
290             *
291             * @param start the lower bound of the range of document library file entry metadatas
292             * @param end the upper bound of the range of document library file entry metadatas (not inclusive)
293             * @return the range of document library file entry metadatas
294             * @throws SystemException if a system exception occurred
295             */
296            public List<DLFileEntryMetadata> getDLFileEntryMetadatas(int start, int end)
297                    throws SystemException {
298                    return dlFileEntryMetadataPersistence.findAll(start, end);
299            }
300    
301            /**
302             * Returns the number of document library file entry metadatas.
303             *
304             * @return the number of document library file entry metadatas
305             * @throws SystemException if a system exception occurred
306             */
307            public int getDLFileEntryMetadatasCount() throws SystemException {
308                    return dlFileEntryMetadataPersistence.countAll();
309            }
310    
311            /**
312             * Updates the document library file entry metadata in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
313             *
314             * @param dlFileEntryMetadata the document library file entry metadata
315             * @return the document library file entry metadata that was updated
316             * @throws SystemException if a system exception occurred
317             */
318            public DLFileEntryMetadata updateDLFileEntryMetadata(
319                    DLFileEntryMetadata dlFileEntryMetadata) throws SystemException {
320                    return updateDLFileEntryMetadata(dlFileEntryMetadata, true);
321            }
322    
323            /**
324             * Updates the document library file entry metadata in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
325             *
326             * @param dlFileEntryMetadata the document library file entry metadata
327             * @param merge whether to merge the document library file entry metadata with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
328             * @return the document library file entry metadata that was updated
329             * @throws SystemException if a system exception occurred
330             */
331            public DLFileEntryMetadata updateDLFileEntryMetadata(
332                    DLFileEntryMetadata dlFileEntryMetadata, boolean merge)
333                    throws SystemException {
334                    dlFileEntryMetadata.setNew(false);
335    
336                    dlFileEntryMetadata = dlFileEntryMetadataPersistence.update(dlFileEntryMetadata,
337                                    merge);
338    
339                    Indexer indexer = IndexerRegistryUtil.getIndexer(getModelClassName());
340    
341                    if (indexer != null) {
342                            try {
343                                    indexer.reindex(dlFileEntryMetadata);
344                            }
345                            catch (SearchException se) {
346                                    if (_log.isWarnEnabled()) {
347                                            _log.warn(se, se);
348                                    }
349                            }
350                    }
351    
352                    return dlFileEntryMetadata;
353            }
354    
355            /**
356             * Returns the d l app local service.
357             *
358             * @return the d l app local service
359             */
360            public DLAppLocalService getDLAppLocalService() {
361                    return dlAppLocalService;
362            }
363    
364            /**
365             * Sets the d l app local service.
366             *
367             * @param dlAppLocalService the d l app local service
368             */
369            public void setDLAppLocalService(DLAppLocalService dlAppLocalService) {
370                    this.dlAppLocalService = dlAppLocalService;
371            }
372    
373            /**
374             * Returns the d l app remote service.
375             *
376             * @return the d l app remote service
377             */
378            public DLAppService getDLAppService() {
379                    return dlAppService;
380            }
381    
382            /**
383             * Sets the d l app remote service.
384             *
385             * @param dlAppService the d l app remote service
386             */
387            public void setDLAppService(DLAppService dlAppService) {
388                    this.dlAppService = dlAppService;
389            }
390    
391            /**
392             * Returns the d l app helper local service.
393             *
394             * @return the d l app helper local service
395             */
396            public DLAppHelperLocalService getDLAppHelperLocalService() {
397                    return dlAppHelperLocalService;
398            }
399    
400            /**
401             * Sets the d l app helper local service.
402             *
403             * @param dlAppHelperLocalService the d l app helper local service
404             */
405            public void setDLAppHelperLocalService(
406                    DLAppHelperLocalService dlAppHelperLocalService) {
407                    this.dlAppHelperLocalService = dlAppHelperLocalService;
408            }
409    
410            /**
411             * Returns the document library content local service.
412             *
413             * @return the document library content local service
414             */
415            public DLContentLocalService getDLContentLocalService() {
416                    return dlContentLocalService;
417            }
418    
419            /**
420             * Sets the document library content local service.
421             *
422             * @param dlContentLocalService the document library content local service
423             */
424            public void setDLContentLocalService(
425                    DLContentLocalService dlContentLocalService) {
426                    this.dlContentLocalService = dlContentLocalService;
427            }
428    
429            /**
430             * Returns the document library content persistence.
431             *
432             * @return the document library content persistence
433             */
434            public DLContentPersistence getDLContentPersistence() {
435                    return dlContentPersistence;
436            }
437    
438            /**
439             * Sets the document library content persistence.
440             *
441             * @param dlContentPersistence the document library content persistence
442             */
443            public void setDLContentPersistence(
444                    DLContentPersistence dlContentPersistence) {
445                    this.dlContentPersistence = dlContentPersistence;
446            }
447    
448            /**
449             * Returns the document library file entry local service.
450             *
451             * @return the document library file entry local service
452             */
453            public DLFileEntryLocalService getDLFileEntryLocalService() {
454                    return dlFileEntryLocalService;
455            }
456    
457            /**
458             * Sets the document library file entry local service.
459             *
460             * @param dlFileEntryLocalService the document library file entry local service
461             */
462            public void setDLFileEntryLocalService(
463                    DLFileEntryLocalService dlFileEntryLocalService) {
464                    this.dlFileEntryLocalService = dlFileEntryLocalService;
465            }
466    
467            /**
468             * Returns the document library file entry remote service.
469             *
470             * @return the document library file entry remote service
471             */
472            public DLFileEntryService getDLFileEntryService() {
473                    return dlFileEntryService;
474            }
475    
476            /**
477             * Sets the document library file entry remote service.
478             *
479             * @param dlFileEntryService the document library file entry remote service
480             */
481            public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
482                    this.dlFileEntryService = dlFileEntryService;
483            }
484    
485            /**
486             * Returns the document library file entry persistence.
487             *
488             * @return the document library file entry persistence
489             */
490            public DLFileEntryPersistence getDLFileEntryPersistence() {
491                    return dlFileEntryPersistence;
492            }
493    
494            /**
495             * Sets the document library file entry persistence.
496             *
497             * @param dlFileEntryPersistence the document library file entry persistence
498             */
499            public void setDLFileEntryPersistence(
500                    DLFileEntryPersistence dlFileEntryPersistence) {
501                    this.dlFileEntryPersistence = dlFileEntryPersistence;
502            }
503    
504            /**
505             * Returns the document library file entry finder.
506             *
507             * @return the document library file entry finder
508             */
509            public DLFileEntryFinder getDLFileEntryFinder() {
510                    return dlFileEntryFinder;
511            }
512    
513            /**
514             * Sets the document library file entry finder.
515             *
516             * @param dlFileEntryFinder the document library file entry finder
517             */
518            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
519                    this.dlFileEntryFinder = dlFileEntryFinder;
520            }
521    
522            /**
523             * Returns the document library file entry metadata local service.
524             *
525             * @return the document library file entry metadata local service
526             */
527            public DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
528                    return dlFileEntryMetadataLocalService;
529            }
530    
531            /**
532             * Sets the document library file entry metadata local service.
533             *
534             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
535             */
536            public void setDLFileEntryMetadataLocalService(
537                    DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
538                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
539            }
540    
541            /**
542             * Returns the document library file entry metadata persistence.
543             *
544             * @return the document library file entry metadata persistence
545             */
546            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
547                    return dlFileEntryMetadataPersistence;
548            }
549    
550            /**
551             * Sets the document library file entry metadata persistence.
552             *
553             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
554             */
555            public void setDLFileEntryMetadataPersistence(
556                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
557                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
558            }
559    
560            /**
561             * Returns the document library file entry type local service.
562             *
563             * @return the document library file entry type local service
564             */
565            public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
566                    return dlFileEntryTypeLocalService;
567            }
568    
569            /**
570             * Sets the document library file entry type local service.
571             *
572             * @param dlFileEntryTypeLocalService the document library file entry type local service
573             */
574            public void setDLFileEntryTypeLocalService(
575                    DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
576                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
577            }
578    
579            /**
580             * Returns the document library file entry type remote service.
581             *
582             * @return the document library file entry type remote service
583             */
584            public DLFileEntryTypeService getDLFileEntryTypeService() {
585                    return dlFileEntryTypeService;
586            }
587    
588            /**
589             * Sets the document library file entry type remote service.
590             *
591             * @param dlFileEntryTypeService the document library file entry type remote service
592             */
593            public void setDLFileEntryTypeService(
594                    DLFileEntryTypeService dlFileEntryTypeService) {
595                    this.dlFileEntryTypeService = dlFileEntryTypeService;
596            }
597    
598            /**
599             * Returns the document library file entry type persistence.
600             *
601             * @return the document library file entry type persistence
602             */
603            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
604                    return dlFileEntryTypePersistence;
605            }
606    
607            /**
608             * Sets the document library file entry type persistence.
609             *
610             * @param dlFileEntryTypePersistence the document library file entry type persistence
611             */
612            public void setDLFileEntryTypePersistence(
613                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
614                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
615            }
616    
617            /**
618             * Returns the document library file entry type finder.
619             *
620             * @return the document library file entry type finder
621             */
622            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
623                    return dlFileEntryTypeFinder;
624            }
625    
626            /**
627             * Sets the document library file entry type finder.
628             *
629             * @param dlFileEntryTypeFinder the document library file entry type finder
630             */
631            public void setDLFileEntryTypeFinder(
632                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
633                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
634            }
635    
636            /**
637             * Returns the document library file rank local service.
638             *
639             * @return the document library file rank local service
640             */
641            public DLFileRankLocalService getDLFileRankLocalService() {
642                    return dlFileRankLocalService;
643            }
644    
645            /**
646             * Sets the document library file rank local service.
647             *
648             * @param dlFileRankLocalService the document library file rank local service
649             */
650            public void setDLFileRankLocalService(
651                    DLFileRankLocalService dlFileRankLocalService) {
652                    this.dlFileRankLocalService = dlFileRankLocalService;
653            }
654    
655            /**
656             * Returns the document library file rank persistence.
657             *
658             * @return the document library file rank persistence
659             */
660            public DLFileRankPersistence getDLFileRankPersistence() {
661                    return dlFileRankPersistence;
662            }
663    
664            /**
665             * Sets the document library file rank persistence.
666             *
667             * @param dlFileRankPersistence the document library file rank persistence
668             */
669            public void setDLFileRankPersistence(
670                    DLFileRankPersistence dlFileRankPersistence) {
671                    this.dlFileRankPersistence = dlFileRankPersistence;
672            }
673    
674            /**
675             * Returns the document library file rank finder.
676             *
677             * @return the document library file rank finder
678             */
679            public DLFileRankFinder getDLFileRankFinder() {
680                    return dlFileRankFinder;
681            }
682    
683            /**
684             * Sets the document library file rank finder.
685             *
686             * @param dlFileRankFinder the document library file rank finder
687             */
688            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
689                    this.dlFileRankFinder = dlFileRankFinder;
690            }
691    
692            /**
693             * Returns the document library file shortcut local service.
694             *
695             * @return the document library file shortcut local service
696             */
697            public DLFileShortcutLocalService getDLFileShortcutLocalService() {
698                    return dlFileShortcutLocalService;
699            }
700    
701            /**
702             * Sets the document library file shortcut local service.
703             *
704             * @param dlFileShortcutLocalService the document library file shortcut local service
705             */
706            public void setDLFileShortcutLocalService(
707                    DLFileShortcutLocalService dlFileShortcutLocalService) {
708                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
709            }
710    
711            /**
712             * Returns the document library file shortcut remote service.
713             *
714             * @return the document library file shortcut remote service
715             */
716            public DLFileShortcutService getDLFileShortcutService() {
717                    return dlFileShortcutService;
718            }
719    
720            /**
721             * Sets the document library file shortcut remote service.
722             *
723             * @param dlFileShortcutService the document library file shortcut remote service
724             */
725            public void setDLFileShortcutService(
726                    DLFileShortcutService dlFileShortcutService) {
727                    this.dlFileShortcutService = dlFileShortcutService;
728            }
729    
730            /**
731             * Returns the document library file shortcut persistence.
732             *
733             * @return the document library file shortcut persistence
734             */
735            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
736                    return dlFileShortcutPersistence;
737            }
738    
739            /**
740             * Sets the document library file shortcut persistence.
741             *
742             * @param dlFileShortcutPersistence the document library file shortcut persistence
743             */
744            public void setDLFileShortcutPersistence(
745                    DLFileShortcutPersistence dlFileShortcutPersistence) {
746                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
747            }
748    
749            /**
750             * Returns the document library file version local service.
751             *
752             * @return the document library file version local service
753             */
754            public DLFileVersionLocalService getDLFileVersionLocalService() {
755                    return dlFileVersionLocalService;
756            }
757    
758            /**
759             * Sets the document library file version local service.
760             *
761             * @param dlFileVersionLocalService the document library file version local service
762             */
763            public void setDLFileVersionLocalService(
764                    DLFileVersionLocalService dlFileVersionLocalService) {
765                    this.dlFileVersionLocalService = dlFileVersionLocalService;
766            }
767    
768            /**
769             * Returns the document library file version remote service.
770             *
771             * @return the document library file version remote service
772             */
773            public DLFileVersionService getDLFileVersionService() {
774                    return dlFileVersionService;
775            }
776    
777            /**
778             * Sets the document library file version remote service.
779             *
780             * @param dlFileVersionService the document library file version remote service
781             */
782            public void setDLFileVersionService(
783                    DLFileVersionService dlFileVersionService) {
784                    this.dlFileVersionService = dlFileVersionService;
785            }
786    
787            /**
788             * Returns the document library file version persistence.
789             *
790             * @return the document library file version persistence
791             */
792            public DLFileVersionPersistence getDLFileVersionPersistence() {
793                    return dlFileVersionPersistence;
794            }
795    
796            /**
797             * Sets the document library file version persistence.
798             *
799             * @param dlFileVersionPersistence the document library file version persistence
800             */
801            public void setDLFileVersionPersistence(
802                    DLFileVersionPersistence dlFileVersionPersistence) {
803                    this.dlFileVersionPersistence = dlFileVersionPersistence;
804            }
805    
806            /**
807             * Returns the document library folder local service.
808             *
809             * @return the document library folder local service
810             */
811            public DLFolderLocalService getDLFolderLocalService() {
812                    return dlFolderLocalService;
813            }
814    
815            /**
816             * Sets the document library folder local service.
817             *
818             * @param dlFolderLocalService the document library folder local service
819             */
820            public void setDLFolderLocalService(
821                    DLFolderLocalService dlFolderLocalService) {
822                    this.dlFolderLocalService = dlFolderLocalService;
823            }
824    
825            /**
826             * Returns the document library folder remote service.
827             *
828             * @return the document library folder remote service
829             */
830            public DLFolderService getDLFolderService() {
831                    return dlFolderService;
832            }
833    
834            /**
835             * Sets the document library folder remote service.
836             *
837             * @param dlFolderService the document library folder remote service
838             */
839            public void setDLFolderService(DLFolderService dlFolderService) {
840                    this.dlFolderService = dlFolderService;
841            }
842    
843            /**
844             * Returns the document library folder persistence.
845             *
846             * @return the document library folder persistence
847             */
848            public DLFolderPersistence getDLFolderPersistence() {
849                    return dlFolderPersistence;
850            }
851    
852            /**
853             * Sets the document library folder persistence.
854             *
855             * @param dlFolderPersistence the document library folder persistence
856             */
857            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
858                    this.dlFolderPersistence = dlFolderPersistence;
859            }
860    
861            /**
862             * Returns the document library folder finder.
863             *
864             * @return the document library folder finder
865             */
866            public DLFolderFinder getDLFolderFinder() {
867                    return dlFolderFinder;
868            }
869    
870            /**
871             * Sets the document library folder finder.
872             *
873             * @param dlFolderFinder the document library folder finder
874             */
875            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
876                    this.dlFolderFinder = dlFolderFinder;
877            }
878    
879            /**
880             * Returns the d l sync local service.
881             *
882             * @return the d l sync local service
883             */
884            public DLSyncLocalService getDLSyncLocalService() {
885                    return dlSyncLocalService;
886            }
887    
888            /**
889             * Sets the d l sync local service.
890             *
891             * @param dlSyncLocalService the d l sync local service
892             */
893            public void setDLSyncLocalService(DLSyncLocalService dlSyncLocalService) {
894                    this.dlSyncLocalService = dlSyncLocalService;
895            }
896    
897            /**
898             * Returns the d l sync remote service.
899             *
900             * @return the d l sync remote service
901             */
902            public DLSyncService getDLSyncService() {
903                    return dlSyncService;
904            }
905    
906            /**
907             * Sets the d l sync remote service.
908             *
909             * @param dlSyncService the d l sync remote service
910             */
911            public void setDLSyncService(DLSyncService dlSyncService) {
912                    this.dlSyncService = dlSyncService;
913            }
914    
915            /**
916             * Returns the d l sync persistence.
917             *
918             * @return the d l sync persistence
919             */
920            public DLSyncPersistence getDLSyncPersistence() {
921                    return dlSyncPersistence;
922            }
923    
924            /**
925             * Sets the d l sync persistence.
926             *
927             * @param dlSyncPersistence the d l sync persistence
928             */
929            public void setDLSyncPersistence(DLSyncPersistence dlSyncPersistence) {
930                    this.dlSyncPersistence = dlSyncPersistence;
931            }
932    
933            /**
934             * Returns the counter local service.
935             *
936             * @return the counter local service
937             */
938            public CounterLocalService getCounterLocalService() {
939                    return counterLocalService;
940            }
941    
942            /**
943             * Sets the counter local service.
944             *
945             * @param counterLocalService the counter local service
946             */
947            public void setCounterLocalService(CounterLocalService counterLocalService) {
948                    this.counterLocalService = counterLocalService;
949            }
950    
951            /**
952             * Returns the resource local service.
953             *
954             * @return the resource local service
955             */
956            public ResourceLocalService getResourceLocalService() {
957                    return resourceLocalService;
958            }
959    
960            /**
961             * Sets the resource local service.
962             *
963             * @param resourceLocalService the resource local service
964             */
965            public void setResourceLocalService(
966                    ResourceLocalService resourceLocalService) {
967                    this.resourceLocalService = resourceLocalService;
968            }
969    
970            /**
971             * Returns the resource remote service.
972             *
973             * @return the resource remote service
974             */
975            public ResourceService getResourceService() {
976                    return resourceService;
977            }
978    
979            /**
980             * Sets the resource remote service.
981             *
982             * @param resourceService the resource remote service
983             */
984            public void setResourceService(ResourceService resourceService) {
985                    this.resourceService = resourceService;
986            }
987    
988            /**
989             * Returns the resource persistence.
990             *
991             * @return the resource persistence
992             */
993            public ResourcePersistence getResourcePersistence() {
994                    return resourcePersistence;
995            }
996    
997            /**
998             * Sets the resource persistence.
999             *
1000             * @param resourcePersistence the resource persistence
1001             */
1002            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
1003                    this.resourcePersistence = resourcePersistence;
1004            }
1005    
1006            /**
1007             * Returns the resource finder.
1008             *
1009             * @return the resource finder
1010             */
1011            public ResourceFinder getResourceFinder() {
1012                    return resourceFinder;
1013            }
1014    
1015            /**
1016             * Sets the resource finder.
1017             *
1018             * @param resourceFinder the resource finder
1019             */
1020            public void setResourceFinder(ResourceFinder resourceFinder) {
1021                    this.resourceFinder = resourceFinder;
1022            }
1023    
1024            /**
1025             * Returns the user local service.
1026             *
1027             * @return the user local service
1028             */
1029            public UserLocalService getUserLocalService() {
1030                    return userLocalService;
1031            }
1032    
1033            /**
1034             * Sets the user local service.
1035             *
1036             * @param userLocalService the user local service
1037             */
1038            public void setUserLocalService(UserLocalService userLocalService) {
1039                    this.userLocalService = userLocalService;
1040            }
1041    
1042            /**
1043             * Returns the user remote service.
1044             *
1045             * @return the user remote service
1046             */
1047            public UserService getUserService() {
1048                    return userService;
1049            }
1050    
1051            /**
1052             * Sets the user remote service.
1053             *
1054             * @param userService the user remote service
1055             */
1056            public void setUserService(UserService userService) {
1057                    this.userService = userService;
1058            }
1059    
1060            /**
1061             * Returns the user persistence.
1062             *
1063             * @return the user persistence
1064             */
1065            public UserPersistence getUserPersistence() {
1066                    return userPersistence;
1067            }
1068    
1069            /**
1070             * Sets the user persistence.
1071             *
1072             * @param userPersistence the user persistence
1073             */
1074            public void setUserPersistence(UserPersistence userPersistence) {
1075                    this.userPersistence = userPersistence;
1076            }
1077    
1078            /**
1079             * Returns the user finder.
1080             *
1081             * @return the user finder
1082             */
1083            public UserFinder getUserFinder() {
1084                    return userFinder;
1085            }
1086    
1087            /**
1088             * Sets the user finder.
1089             *
1090             * @param userFinder the user finder
1091             */
1092            public void setUserFinder(UserFinder userFinder) {
1093                    this.userFinder = userFinder;
1094            }
1095    
1096            /**
1097             * Returns the d d m structure link local service.
1098             *
1099             * @return the d d m structure link local service
1100             */
1101            public DDMStructureLinkLocalService getDDMStructureLinkLocalService() {
1102                    return ddmStructureLinkLocalService;
1103            }
1104    
1105            /**
1106             * Sets the d d m structure link local service.
1107             *
1108             * @param ddmStructureLinkLocalService the d d m structure link local service
1109             */
1110            public void setDDMStructureLinkLocalService(
1111                    DDMStructureLinkLocalService ddmStructureLinkLocalService) {
1112                    this.ddmStructureLinkLocalService = ddmStructureLinkLocalService;
1113            }
1114    
1115            /**
1116             * Returns the d d m structure link remote service.
1117             *
1118             * @return the d d m structure link remote service
1119             */
1120            public DDMStructureLinkService getDDMStructureLinkService() {
1121                    return ddmStructureLinkService;
1122            }
1123    
1124            /**
1125             * Sets the d d m structure link remote service.
1126             *
1127             * @param ddmStructureLinkService the d d m structure link remote service
1128             */
1129            public void setDDMStructureLinkService(
1130                    DDMStructureLinkService ddmStructureLinkService) {
1131                    this.ddmStructureLinkService = ddmStructureLinkService;
1132            }
1133    
1134            /**
1135             * Returns the d d m structure link persistence.
1136             *
1137             * @return the d d m structure link persistence
1138             */
1139            public DDMStructureLinkPersistence getDDMStructureLinkPersistence() {
1140                    return ddmStructureLinkPersistence;
1141            }
1142    
1143            /**
1144             * Sets the d d m structure link persistence.
1145             *
1146             * @param ddmStructureLinkPersistence the d d m structure link persistence
1147             */
1148            public void setDDMStructureLinkPersistence(
1149                    DDMStructureLinkPersistence ddmStructureLinkPersistence) {
1150                    this.ddmStructureLinkPersistence = ddmStructureLinkPersistence;
1151            }
1152    
1153            public void afterPropertiesSet() {
1154                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata",
1155                            dlFileEntryMetadataLocalService);
1156            }
1157    
1158            public void destroy() {
1159                    persistedModelLocalServiceRegistry.unregister(
1160                            "com.liferay.portlet.documentlibrary.model.DLFileEntryMetadata");
1161            }
1162    
1163            /**
1164             * Returns the Spring bean ID for this bean.
1165             *
1166             * @return the Spring bean ID for this bean
1167             */
1168            public String getBeanIdentifier() {
1169                    return _beanIdentifier;
1170            }
1171    
1172            /**
1173             * Sets the Spring bean ID for this bean.
1174             *
1175             * @param beanIdentifier the Spring bean ID for this bean
1176             */
1177            public void setBeanIdentifier(String beanIdentifier) {
1178                    _beanIdentifier = beanIdentifier;
1179            }
1180    
1181            protected Class<?> getModelClass() {
1182                    return DLFileEntryMetadata.class;
1183            }
1184    
1185            protected String getModelClassName() {
1186                    return DLFileEntryMetadata.class.getName();
1187            }
1188    
1189            /**
1190             * Performs an SQL query.
1191             *
1192             * @param sql the sql query
1193             */
1194            protected void runSQL(String sql) throws SystemException {
1195                    try {
1196                            DataSource dataSource = dlFileEntryMetadataPersistence.getDataSource();
1197    
1198                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1199                                            sql, new int[0]);
1200    
1201                            sqlUpdate.update();
1202                    }
1203                    catch (Exception e) {
1204                            throw new SystemException(e);
1205                    }
1206            }
1207    
1208            @BeanReference(type = DLAppLocalService.class)
1209            protected DLAppLocalService dlAppLocalService;
1210            @BeanReference(type = DLAppService.class)
1211            protected DLAppService dlAppService;
1212            @BeanReference(type = DLAppHelperLocalService.class)
1213            protected DLAppHelperLocalService dlAppHelperLocalService;
1214            @BeanReference(type = DLContentLocalService.class)
1215            protected DLContentLocalService dlContentLocalService;
1216            @BeanReference(type = DLContentPersistence.class)
1217            protected DLContentPersistence dlContentPersistence;
1218            @BeanReference(type = DLFileEntryLocalService.class)
1219            protected DLFileEntryLocalService dlFileEntryLocalService;
1220            @BeanReference(type = DLFileEntryService.class)
1221            protected DLFileEntryService dlFileEntryService;
1222            @BeanReference(type = DLFileEntryPersistence.class)
1223            protected DLFileEntryPersistence dlFileEntryPersistence;
1224            @BeanReference(type = DLFileEntryFinder.class)
1225            protected DLFileEntryFinder dlFileEntryFinder;
1226            @BeanReference(type = DLFileEntryMetadataLocalService.class)
1227            protected DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1228            @BeanReference(type = DLFileEntryMetadataPersistence.class)
1229            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1230            @BeanReference(type = DLFileEntryTypeLocalService.class)
1231            protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1232            @BeanReference(type = DLFileEntryTypeService.class)
1233            protected DLFileEntryTypeService dlFileEntryTypeService;
1234            @BeanReference(type = DLFileEntryTypePersistence.class)
1235            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1236            @BeanReference(type = DLFileEntryTypeFinder.class)
1237            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1238            @BeanReference(type = DLFileRankLocalService.class)
1239            protected DLFileRankLocalService dlFileRankLocalService;
1240            @BeanReference(type = DLFileRankPersistence.class)
1241            protected DLFileRankPersistence dlFileRankPersistence;
1242            @BeanReference(type = DLFileRankFinder.class)
1243            protected DLFileRankFinder dlFileRankFinder;
1244            @BeanReference(type = DLFileShortcutLocalService.class)
1245            protected DLFileShortcutLocalService dlFileShortcutLocalService;
1246            @BeanReference(type = DLFileShortcutService.class)
1247            protected DLFileShortcutService dlFileShortcutService;
1248            @BeanReference(type = DLFileShortcutPersistence.class)
1249            protected DLFileShortcutPersistence dlFileShortcutPersistence;
1250            @BeanReference(type = DLFileVersionLocalService.class)
1251            protected DLFileVersionLocalService dlFileVersionLocalService;
1252            @BeanReference(type = DLFileVersionService.class)
1253            protected DLFileVersionService dlFileVersionService;
1254            @BeanReference(type = DLFileVersionPersistence.class)
1255            protected DLFileVersionPersistence dlFileVersionPersistence;
1256            @BeanReference(type = DLFolderLocalService.class)
1257            protected DLFolderLocalService dlFolderLocalService;
1258            @BeanReference(type = DLFolderService.class)
1259            protected DLFolderService dlFolderService;
1260            @BeanReference(type = DLFolderPersistence.class)
1261            protected DLFolderPersistence dlFolderPersistence;
1262            @BeanReference(type = DLFolderFinder.class)
1263            protected DLFolderFinder dlFolderFinder;
1264            @BeanReference(type = DLSyncLocalService.class)
1265            protected DLSyncLocalService dlSyncLocalService;
1266            @BeanReference(type = DLSyncService.class)
1267            protected DLSyncService dlSyncService;
1268            @BeanReference(type = DLSyncPersistence.class)
1269            protected DLSyncPersistence dlSyncPersistence;
1270            @BeanReference(type = CounterLocalService.class)
1271            protected CounterLocalService counterLocalService;
1272            @BeanReference(type = ResourceLocalService.class)
1273            protected ResourceLocalService resourceLocalService;
1274            @BeanReference(type = ResourceService.class)
1275            protected ResourceService resourceService;
1276            @BeanReference(type = ResourcePersistence.class)
1277            protected ResourcePersistence resourcePersistence;
1278            @BeanReference(type = ResourceFinder.class)
1279            protected ResourceFinder resourceFinder;
1280            @BeanReference(type = UserLocalService.class)
1281            protected UserLocalService userLocalService;
1282            @BeanReference(type = UserService.class)
1283            protected UserService userService;
1284            @BeanReference(type = UserPersistence.class)
1285            protected UserPersistence userPersistence;
1286            @BeanReference(type = UserFinder.class)
1287            protected UserFinder userFinder;
1288            @BeanReference(type = DDMStructureLinkLocalService.class)
1289            protected DDMStructureLinkLocalService ddmStructureLinkLocalService;
1290            @BeanReference(type = DDMStructureLinkService.class)
1291            protected DDMStructureLinkService ddmStructureLinkService;
1292            @BeanReference(type = DDMStructureLinkPersistence.class)
1293            protected DDMStructureLinkPersistence ddmStructureLinkPersistence;
1294            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1295            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1296            private static Log _log = LogFactoryUtil.getLog(DLFileEntryMetadataLocalServiceBaseImpl.class);
1297            private String _beanIdentifier;
1298    }