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