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