001    /**
002     * Copyright (c) 2000-2013 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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 matching the UUID and group.
258             *
259             * @param uuid the document library file entry type's UUID
260             * @param groupId the primary key of the group
261             * @return the matching document library file entry type
262             * @throws PortalException if a matching document library file entry type 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.documentlibrary.model.impl.DLFileEntryTypeModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
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             * @throws SystemException if a system exception occurred
312             */
313            public void addDLFolderDLFileEntryType(long folderId, long fileEntryTypeId)
314                    throws SystemException {
315                    dlFolderPersistence.addDLFileEntryType(folderId, fileEntryTypeId);
316            }
317    
318            /**
319             * @throws SystemException if a system exception occurred
320             */
321            public void addDLFolderDLFileEntryType(long folderId,
322                    DLFileEntryType dlFileEntryType) throws SystemException {
323                    dlFolderPersistence.addDLFileEntryType(folderId, dlFileEntryType);
324            }
325    
326            /**
327             * @throws SystemException if a system exception occurred
328             */
329            public void addDLFolderDLFileEntryTypes(long folderId,
330                    long[] fileEntryTypeIds) throws SystemException {
331                    dlFolderPersistence.addDLFileEntryTypes(folderId, fileEntryTypeIds);
332            }
333    
334            /**
335             * @throws SystemException if a system exception occurred
336             */
337            public void addDLFolderDLFileEntryTypes(long folderId,
338                    List<DLFileEntryType> DLFileEntryTypes) throws SystemException {
339                    dlFolderPersistence.addDLFileEntryTypes(folderId, DLFileEntryTypes);
340            }
341    
342            /**
343             * @throws SystemException if a system exception occurred
344             */
345            public void clearDLFolderDLFileEntryTypes(long folderId)
346                    throws SystemException {
347                    dlFolderPersistence.clearDLFileEntryTypes(folderId);
348            }
349    
350            /**
351             * @throws SystemException if a system exception occurred
352             */
353            public void deleteDLFolderDLFileEntryType(long folderId,
354                    long fileEntryTypeId) throws SystemException {
355                    dlFolderPersistence.removeDLFileEntryType(folderId, fileEntryTypeId);
356            }
357    
358            /**
359             * @throws SystemException if a system exception occurred
360             */
361            public void deleteDLFolderDLFileEntryType(long folderId,
362                    DLFileEntryType dlFileEntryType) throws SystemException {
363                    dlFolderPersistence.removeDLFileEntryType(folderId, dlFileEntryType);
364            }
365    
366            /**
367             * @throws SystemException if a system exception occurred
368             */
369            public void deleteDLFolderDLFileEntryTypes(long folderId,
370                    long[] fileEntryTypeIds) throws SystemException {
371                    dlFolderPersistence.removeDLFileEntryTypes(folderId, fileEntryTypeIds);
372            }
373    
374            /**
375             * @throws SystemException if a system exception occurred
376             */
377            public void deleteDLFolderDLFileEntryTypes(long folderId,
378                    List<DLFileEntryType> DLFileEntryTypes) throws SystemException {
379                    dlFolderPersistence.removeDLFileEntryTypes(folderId, DLFileEntryTypes);
380            }
381    
382            /**
383             * @throws SystemException if a system exception occurred
384             */
385            public List<DLFileEntryType> getDLFolderDLFileEntryTypes(long folderId)
386                    throws SystemException {
387                    return dlFolderPersistence.getDLFileEntryTypes(folderId);
388            }
389    
390            /**
391             * @throws SystemException if a system exception occurred
392             */
393            public List<DLFileEntryType> getDLFolderDLFileEntryTypes(long folderId,
394                    int start, int end) throws SystemException {
395                    return dlFolderPersistence.getDLFileEntryTypes(folderId, start, end);
396            }
397    
398            /**
399             * @throws SystemException if a system exception occurred
400             */
401            public List<DLFileEntryType> getDLFolderDLFileEntryTypes(long folderId,
402                    int start, int end, OrderByComparator orderByComparator)
403                    throws SystemException {
404                    return dlFolderPersistence.getDLFileEntryTypes(folderId, start, end,
405                            orderByComparator);
406            }
407    
408            /**
409             * @throws SystemException if a system exception occurred
410             */
411            public int getDLFolderDLFileEntryTypesCount(long folderId)
412                    throws SystemException {
413                    return dlFolderPersistence.getDLFileEntryTypesSize(folderId);
414            }
415    
416            /**
417             * @throws SystemException if a system exception occurred
418             */
419            public boolean hasDLFolderDLFileEntryType(long folderId,
420                    long fileEntryTypeId) throws SystemException {
421                    return dlFolderPersistence.containsDLFileEntryType(folderId,
422                            fileEntryTypeId);
423            }
424    
425            /**
426             * @throws SystemException if a system exception occurred
427             */
428            public boolean hasDLFolderDLFileEntryTypes(long folderId)
429                    throws SystemException {
430                    return dlFolderPersistence.containsDLFileEntryTypes(folderId);
431            }
432    
433            /**
434             * @throws SystemException if a system exception occurred
435             */
436            public void setDLFolderDLFileEntryTypes(long folderId,
437                    long[] fileEntryTypeIds) throws SystemException {
438                    dlFolderPersistence.setDLFileEntryTypes(folderId, fileEntryTypeIds);
439            }
440    
441            /**
442             * @throws SystemException if a system exception occurred
443             */
444            public void addDDMStructureDLFileEntryType(long structureId,
445                    long fileEntryTypeId) throws SystemException {
446                    ddmStructurePersistence.addDLFileEntryType(structureId, fileEntryTypeId);
447            }
448    
449            /**
450             * @throws SystemException if a system exception occurred
451             */
452            public void addDDMStructureDLFileEntryType(long structureId,
453                    DLFileEntryType dlFileEntryType) throws SystemException {
454                    ddmStructurePersistence.addDLFileEntryType(structureId, dlFileEntryType);
455            }
456    
457            /**
458             * @throws SystemException if a system exception occurred
459             */
460            public void addDDMStructureDLFileEntryTypes(long structureId,
461                    long[] fileEntryTypeIds) throws SystemException {
462                    ddmStructurePersistence.addDLFileEntryTypes(structureId,
463                            fileEntryTypeIds);
464            }
465    
466            /**
467             * @throws SystemException if a system exception occurred
468             */
469            public void addDDMStructureDLFileEntryTypes(long structureId,
470                    List<DLFileEntryType> DLFileEntryTypes) throws SystemException {
471                    ddmStructurePersistence.addDLFileEntryTypes(structureId,
472                            DLFileEntryTypes);
473            }
474    
475            /**
476             * @throws SystemException if a system exception occurred
477             */
478            public void clearDDMStructureDLFileEntryTypes(long structureId)
479                    throws SystemException {
480                    ddmStructurePersistence.clearDLFileEntryTypes(structureId);
481            }
482    
483            /**
484             * @throws SystemException if a system exception occurred
485             */
486            public void deleteDDMStructureDLFileEntryType(long structureId,
487                    long fileEntryTypeId) throws SystemException {
488                    ddmStructurePersistence.removeDLFileEntryType(structureId,
489                            fileEntryTypeId);
490            }
491    
492            /**
493             * @throws SystemException if a system exception occurred
494             */
495            public void deleteDDMStructureDLFileEntryType(long structureId,
496                    DLFileEntryType dlFileEntryType) throws SystemException {
497                    ddmStructurePersistence.removeDLFileEntryType(structureId,
498                            dlFileEntryType);
499            }
500    
501            /**
502             * @throws SystemException if a system exception occurred
503             */
504            public void deleteDDMStructureDLFileEntryTypes(long structureId,
505                    long[] fileEntryTypeIds) throws SystemException {
506                    ddmStructurePersistence.removeDLFileEntryTypes(structureId,
507                            fileEntryTypeIds);
508            }
509    
510            /**
511             * @throws SystemException if a system exception occurred
512             */
513            public void deleteDDMStructureDLFileEntryTypes(long structureId,
514                    List<DLFileEntryType> DLFileEntryTypes) throws SystemException {
515                    ddmStructurePersistence.removeDLFileEntryTypes(structureId,
516                            DLFileEntryTypes);
517            }
518    
519            /**
520             * @throws SystemException if a system exception occurred
521             */
522            public List<DLFileEntryType> getDDMStructureDLFileEntryTypes(
523                    long structureId) throws SystemException {
524                    return ddmStructurePersistence.getDLFileEntryTypes(structureId);
525            }
526    
527            /**
528             * @throws SystemException if a system exception occurred
529             */
530            public List<DLFileEntryType> getDDMStructureDLFileEntryTypes(
531                    long structureId, int start, int end) throws SystemException {
532                    return ddmStructurePersistence.getDLFileEntryTypes(structureId, start,
533                            end);
534            }
535    
536            /**
537             * @throws SystemException if a system exception occurred
538             */
539            public List<DLFileEntryType> getDDMStructureDLFileEntryTypes(
540                    long structureId, int start, int end,
541                    OrderByComparator orderByComparator) throws SystemException {
542                    return ddmStructurePersistence.getDLFileEntryTypes(structureId, start,
543                            end, orderByComparator);
544            }
545    
546            /**
547             * @throws SystemException if a system exception occurred
548             */
549            public int getDDMStructureDLFileEntryTypesCount(long structureId)
550                    throws SystemException {
551                    return ddmStructurePersistence.getDLFileEntryTypesSize(structureId);
552            }
553    
554            /**
555             * @throws SystemException if a system exception occurred
556             */
557            public boolean hasDDMStructureDLFileEntryType(long structureId,
558                    long fileEntryTypeId) throws SystemException {
559                    return ddmStructurePersistence.containsDLFileEntryType(structureId,
560                            fileEntryTypeId);
561            }
562    
563            /**
564             * @throws SystemException if a system exception occurred
565             */
566            public boolean hasDDMStructureDLFileEntryTypes(long structureId)
567                    throws SystemException {
568                    return ddmStructurePersistence.containsDLFileEntryTypes(structureId);
569            }
570    
571            /**
572             * @throws SystemException if a system exception occurred
573             */
574            public void setDDMStructureDLFileEntryTypes(long structureId,
575                    long[] fileEntryTypeIds) throws SystemException {
576                    ddmStructurePersistence.setDLFileEntryTypes(structureId,
577                            fileEntryTypeIds);
578            }
579    
580            /**
581             * Returns the d l app local service.
582             *
583             * @return the d l app local service
584             */
585            public DLAppLocalService getDLAppLocalService() {
586                    return dlAppLocalService;
587            }
588    
589            /**
590             * Sets the d l app local service.
591             *
592             * @param dlAppLocalService the d l app local service
593             */
594            public void setDLAppLocalService(DLAppLocalService dlAppLocalService) {
595                    this.dlAppLocalService = dlAppLocalService;
596            }
597    
598            /**
599             * Returns the d l app remote service.
600             *
601             * @return the d l app remote service
602             */
603            public DLAppService getDLAppService() {
604                    return dlAppService;
605            }
606    
607            /**
608             * Sets the d l app remote service.
609             *
610             * @param dlAppService the d l app remote service
611             */
612            public void setDLAppService(DLAppService dlAppService) {
613                    this.dlAppService = dlAppService;
614            }
615    
616            /**
617             * Returns the d l app helper local service.
618             *
619             * @return the d l app helper local service
620             */
621            public DLAppHelperLocalService getDLAppHelperLocalService() {
622                    return dlAppHelperLocalService;
623            }
624    
625            /**
626             * Sets the d l app helper local service.
627             *
628             * @param dlAppHelperLocalService the d l app helper local service
629             */
630            public void setDLAppHelperLocalService(
631                    DLAppHelperLocalService dlAppHelperLocalService) {
632                    this.dlAppHelperLocalService = dlAppHelperLocalService;
633            }
634    
635            /**
636             * Returns the document library content local service.
637             *
638             * @return the document library content local service
639             */
640            public DLContentLocalService getDLContentLocalService() {
641                    return dlContentLocalService;
642            }
643    
644            /**
645             * Sets the document library content local service.
646             *
647             * @param dlContentLocalService the document library content local service
648             */
649            public void setDLContentLocalService(
650                    DLContentLocalService dlContentLocalService) {
651                    this.dlContentLocalService = dlContentLocalService;
652            }
653    
654            /**
655             * Returns the document library content persistence.
656             *
657             * @return the document library content persistence
658             */
659            public DLContentPersistence getDLContentPersistence() {
660                    return dlContentPersistence;
661            }
662    
663            /**
664             * Sets the document library content persistence.
665             *
666             * @param dlContentPersistence the document library content persistence
667             */
668            public void setDLContentPersistence(
669                    DLContentPersistence dlContentPersistence) {
670                    this.dlContentPersistence = dlContentPersistence;
671            }
672    
673            /**
674             * Returns the document library file entry local service.
675             *
676             * @return the document library file entry local service
677             */
678            public DLFileEntryLocalService getDLFileEntryLocalService() {
679                    return dlFileEntryLocalService;
680            }
681    
682            /**
683             * Sets the document library file entry local service.
684             *
685             * @param dlFileEntryLocalService the document library file entry local service
686             */
687            public void setDLFileEntryLocalService(
688                    DLFileEntryLocalService dlFileEntryLocalService) {
689                    this.dlFileEntryLocalService = dlFileEntryLocalService;
690            }
691    
692            /**
693             * Returns the document library file entry remote service.
694             *
695             * @return the document library file entry remote service
696             */
697            public DLFileEntryService getDLFileEntryService() {
698                    return dlFileEntryService;
699            }
700    
701            /**
702             * Sets the document library file entry remote service.
703             *
704             * @param dlFileEntryService the document library file entry remote service
705             */
706            public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
707                    this.dlFileEntryService = dlFileEntryService;
708            }
709    
710            /**
711             * Returns the document library file entry persistence.
712             *
713             * @return the document library file entry persistence
714             */
715            public DLFileEntryPersistence getDLFileEntryPersistence() {
716                    return dlFileEntryPersistence;
717            }
718    
719            /**
720             * Sets the document library file entry persistence.
721             *
722             * @param dlFileEntryPersistence the document library file entry persistence
723             */
724            public void setDLFileEntryPersistence(
725                    DLFileEntryPersistence dlFileEntryPersistence) {
726                    this.dlFileEntryPersistence = dlFileEntryPersistence;
727            }
728    
729            /**
730             * Returns the document library file entry finder.
731             *
732             * @return the document library file entry finder
733             */
734            public DLFileEntryFinder getDLFileEntryFinder() {
735                    return dlFileEntryFinder;
736            }
737    
738            /**
739             * Sets the document library file entry finder.
740             *
741             * @param dlFileEntryFinder the document library file entry finder
742             */
743            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
744                    this.dlFileEntryFinder = dlFileEntryFinder;
745            }
746    
747            /**
748             * Returns the document library file entry metadata local service.
749             *
750             * @return the document library file entry metadata local service
751             */
752            public DLFileEntryMetadataLocalService getDLFileEntryMetadataLocalService() {
753                    return dlFileEntryMetadataLocalService;
754            }
755    
756            /**
757             * Sets the document library file entry metadata local service.
758             *
759             * @param dlFileEntryMetadataLocalService the document library file entry metadata local service
760             */
761            public void setDLFileEntryMetadataLocalService(
762                    DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService) {
763                    this.dlFileEntryMetadataLocalService = dlFileEntryMetadataLocalService;
764            }
765    
766            /**
767             * Returns the document library file entry metadata persistence.
768             *
769             * @return the document library file entry metadata persistence
770             */
771            public DLFileEntryMetadataPersistence getDLFileEntryMetadataPersistence() {
772                    return dlFileEntryMetadataPersistence;
773            }
774    
775            /**
776             * Sets the document library file entry metadata persistence.
777             *
778             * @param dlFileEntryMetadataPersistence the document library file entry metadata persistence
779             */
780            public void setDLFileEntryMetadataPersistence(
781                    DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence) {
782                    this.dlFileEntryMetadataPersistence = dlFileEntryMetadataPersistence;
783            }
784    
785            /**
786             * Returns the document library file entry type local service.
787             *
788             * @return the document library file entry type local service
789             */
790            public DLFileEntryTypeLocalService getDLFileEntryTypeLocalService() {
791                    return dlFileEntryTypeLocalService;
792            }
793    
794            /**
795             * Sets the document library file entry type local service.
796             *
797             * @param dlFileEntryTypeLocalService the document library file entry type local service
798             */
799            public void setDLFileEntryTypeLocalService(
800                    DLFileEntryTypeLocalService dlFileEntryTypeLocalService) {
801                    this.dlFileEntryTypeLocalService = dlFileEntryTypeLocalService;
802            }
803    
804            /**
805             * Returns the document library file entry type remote service.
806             *
807             * @return the document library file entry type remote service
808             */
809            public DLFileEntryTypeService getDLFileEntryTypeService() {
810                    return dlFileEntryTypeService;
811            }
812    
813            /**
814             * Sets the document library file entry type remote service.
815             *
816             * @param dlFileEntryTypeService the document library file entry type remote service
817             */
818            public void setDLFileEntryTypeService(
819                    DLFileEntryTypeService dlFileEntryTypeService) {
820                    this.dlFileEntryTypeService = dlFileEntryTypeService;
821            }
822    
823            /**
824             * Returns the document library file entry type persistence.
825             *
826             * @return the document library file entry type persistence
827             */
828            public DLFileEntryTypePersistence getDLFileEntryTypePersistence() {
829                    return dlFileEntryTypePersistence;
830            }
831    
832            /**
833             * Sets the document library file entry type persistence.
834             *
835             * @param dlFileEntryTypePersistence the document library file entry type persistence
836             */
837            public void setDLFileEntryTypePersistence(
838                    DLFileEntryTypePersistence dlFileEntryTypePersistence) {
839                    this.dlFileEntryTypePersistence = dlFileEntryTypePersistence;
840            }
841    
842            /**
843             * Returns the document library file entry type finder.
844             *
845             * @return the document library file entry type finder
846             */
847            public DLFileEntryTypeFinder getDLFileEntryTypeFinder() {
848                    return dlFileEntryTypeFinder;
849            }
850    
851            /**
852             * Sets the document library file entry type finder.
853             *
854             * @param dlFileEntryTypeFinder the document library file entry type finder
855             */
856            public void setDLFileEntryTypeFinder(
857                    DLFileEntryTypeFinder dlFileEntryTypeFinder) {
858                    this.dlFileEntryTypeFinder = dlFileEntryTypeFinder;
859            }
860    
861            /**
862             * Returns the document library file rank local service.
863             *
864             * @return the document library file rank local service
865             */
866            public DLFileRankLocalService getDLFileRankLocalService() {
867                    return dlFileRankLocalService;
868            }
869    
870            /**
871             * Sets the document library file rank local service.
872             *
873             * @param dlFileRankLocalService the document library file rank local service
874             */
875            public void setDLFileRankLocalService(
876                    DLFileRankLocalService dlFileRankLocalService) {
877                    this.dlFileRankLocalService = dlFileRankLocalService;
878            }
879    
880            /**
881             * Returns the document library file rank persistence.
882             *
883             * @return the document library file rank persistence
884             */
885            public DLFileRankPersistence getDLFileRankPersistence() {
886                    return dlFileRankPersistence;
887            }
888    
889            /**
890             * Sets the document library file rank persistence.
891             *
892             * @param dlFileRankPersistence the document library file rank persistence
893             */
894            public void setDLFileRankPersistence(
895                    DLFileRankPersistence dlFileRankPersistence) {
896                    this.dlFileRankPersistence = dlFileRankPersistence;
897            }
898    
899            /**
900             * Returns the document library file rank finder.
901             *
902             * @return the document library file rank finder
903             */
904            public DLFileRankFinder getDLFileRankFinder() {
905                    return dlFileRankFinder;
906            }
907    
908            /**
909             * Sets the document library file rank finder.
910             *
911             * @param dlFileRankFinder the document library file rank finder
912             */
913            public void setDLFileRankFinder(DLFileRankFinder dlFileRankFinder) {
914                    this.dlFileRankFinder = dlFileRankFinder;
915            }
916    
917            /**
918             * Returns the document library file shortcut local service.
919             *
920             * @return the document library file shortcut local service
921             */
922            public DLFileShortcutLocalService getDLFileShortcutLocalService() {
923                    return dlFileShortcutLocalService;
924            }
925    
926            /**
927             * Sets the document library file shortcut local service.
928             *
929             * @param dlFileShortcutLocalService the document library file shortcut local service
930             */
931            public void setDLFileShortcutLocalService(
932                    DLFileShortcutLocalService dlFileShortcutLocalService) {
933                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
934            }
935    
936            /**
937             * Returns the document library file shortcut remote service.
938             *
939             * @return the document library file shortcut remote service
940             */
941            public DLFileShortcutService getDLFileShortcutService() {
942                    return dlFileShortcutService;
943            }
944    
945            /**
946             * Sets the document library file shortcut remote service.
947             *
948             * @param dlFileShortcutService the document library file shortcut remote service
949             */
950            public void setDLFileShortcutService(
951                    DLFileShortcutService dlFileShortcutService) {
952                    this.dlFileShortcutService = dlFileShortcutService;
953            }
954    
955            /**
956             * Returns the document library file shortcut persistence.
957             *
958             * @return the document library file shortcut persistence
959             */
960            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
961                    return dlFileShortcutPersistence;
962            }
963    
964            /**
965             * Sets the document library file shortcut persistence.
966             *
967             * @param dlFileShortcutPersistence the document library file shortcut persistence
968             */
969            public void setDLFileShortcutPersistence(
970                    DLFileShortcutPersistence dlFileShortcutPersistence) {
971                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
972            }
973    
974            /**
975             * Returns the document library file version local service.
976             *
977             * @return the document library file version local service
978             */
979            public DLFileVersionLocalService getDLFileVersionLocalService() {
980                    return dlFileVersionLocalService;
981            }
982    
983            /**
984             * Sets the document library file version local service.
985             *
986             * @param dlFileVersionLocalService the document library file version local service
987             */
988            public void setDLFileVersionLocalService(
989                    DLFileVersionLocalService dlFileVersionLocalService) {
990                    this.dlFileVersionLocalService = dlFileVersionLocalService;
991            }
992    
993            /**
994             * Returns the document library file version remote service.
995             *
996             * @return the document library file version remote service
997             */
998            public DLFileVersionService getDLFileVersionService() {
999                    return dlFileVersionService;
1000            }
1001    
1002            /**
1003             * Sets the document library file version remote service.
1004             *
1005             * @param dlFileVersionService the document library file version remote service
1006             */
1007            public void setDLFileVersionService(
1008                    DLFileVersionService dlFileVersionService) {
1009                    this.dlFileVersionService = dlFileVersionService;
1010            }
1011    
1012            /**
1013             * Returns the document library file version persistence.
1014             *
1015             * @return the document library file version persistence
1016             */
1017            public DLFileVersionPersistence getDLFileVersionPersistence() {
1018                    return dlFileVersionPersistence;
1019            }
1020    
1021            /**
1022             * Sets the document library file version persistence.
1023             *
1024             * @param dlFileVersionPersistence the document library file version persistence
1025             */
1026            public void setDLFileVersionPersistence(
1027                    DLFileVersionPersistence dlFileVersionPersistence) {
1028                    this.dlFileVersionPersistence = dlFileVersionPersistence;
1029            }
1030    
1031            /**
1032             * Returns the document library folder local service.
1033             *
1034             * @return the document library folder local service
1035             */
1036            public DLFolderLocalService getDLFolderLocalService() {
1037                    return dlFolderLocalService;
1038            }
1039    
1040            /**
1041             * Sets the document library folder local service.
1042             *
1043             * @param dlFolderLocalService the document library folder local service
1044             */
1045            public void setDLFolderLocalService(
1046                    DLFolderLocalService dlFolderLocalService) {
1047                    this.dlFolderLocalService = dlFolderLocalService;
1048            }
1049    
1050            /**
1051             * Returns the document library folder remote service.
1052             *
1053             * @return the document library folder remote service
1054             */
1055            public DLFolderService getDLFolderService() {
1056                    return dlFolderService;
1057            }
1058    
1059            /**
1060             * Sets the document library folder remote service.
1061             *
1062             * @param dlFolderService the document library folder remote service
1063             */
1064            public void setDLFolderService(DLFolderService dlFolderService) {
1065                    this.dlFolderService = dlFolderService;
1066            }
1067    
1068            /**
1069             * Returns the document library folder persistence.
1070             *
1071             * @return the document library folder persistence
1072             */
1073            public DLFolderPersistence getDLFolderPersistence() {
1074                    return dlFolderPersistence;
1075            }
1076    
1077            /**
1078             * Sets the document library folder persistence.
1079             *
1080             * @param dlFolderPersistence the document library folder persistence
1081             */
1082            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
1083                    this.dlFolderPersistence = dlFolderPersistence;
1084            }
1085    
1086            /**
1087             * Returns the document library folder finder.
1088             *
1089             * @return the document library folder finder
1090             */
1091            public DLFolderFinder getDLFolderFinder() {
1092                    return dlFolderFinder;
1093            }
1094    
1095            /**
1096             * Sets the document library folder finder.
1097             *
1098             * @param dlFolderFinder the document library folder finder
1099             */
1100            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
1101                    this.dlFolderFinder = dlFolderFinder;
1102            }
1103    
1104            /**
1105             * Returns the d l sync local service.
1106             *
1107             * @return the d l sync local service
1108             */
1109            public DLSyncLocalService getDLSyncLocalService() {
1110                    return dlSyncLocalService;
1111            }
1112    
1113            /**
1114             * Sets the d l sync local service.
1115             *
1116             * @param dlSyncLocalService the d l sync local service
1117             */
1118            public void setDLSyncLocalService(DLSyncLocalService dlSyncLocalService) {
1119                    this.dlSyncLocalService = dlSyncLocalService;
1120            }
1121    
1122            /**
1123             * Returns the d l sync remote service.
1124             *
1125             * @return the d l sync remote service
1126             */
1127            public DLSyncService getDLSyncService() {
1128                    return dlSyncService;
1129            }
1130    
1131            /**
1132             * Sets the d l sync remote service.
1133             *
1134             * @param dlSyncService the d l sync remote service
1135             */
1136            public void setDLSyncService(DLSyncService dlSyncService) {
1137                    this.dlSyncService = dlSyncService;
1138            }
1139    
1140            /**
1141             * Returns the d l sync persistence.
1142             *
1143             * @return the d l sync persistence
1144             */
1145            public DLSyncPersistence getDLSyncPersistence() {
1146                    return dlSyncPersistence;
1147            }
1148    
1149            /**
1150             * Sets the d l sync persistence.
1151             *
1152             * @param dlSyncPersistence the d l sync persistence
1153             */
1154            public void setDLSyncPersistence(DLSyncPersistence dlSyncPersistence) {
1155                    this.dlSyncPersistence = dlSyncPersistence;
1156            }
1157    
1158            /**
1159             * Returns the d l sync finder.
1160             *
1161             * @return the d l sync finder
1162             */
1163            public DLSyncFinder getDLSyncFinder() {
1164                    return dlSyncFinder;
1165            }
1166    
1167            /**
1168             * Sets the d l sync finder.
1169             *
1170             * @param dlSyncFinder the d l sync finder
1171             */
1172            public void setDLSyncFinder(DLSyncFinder dlSyncFinder) {
1173                    this.dlSyncFinder = dlSyncFinder;
1174            }
1175    
1176            /**
1177             * Returns the counter local service.
1178             *
1179             * @return the counter local service
1180             */
1181            public CounterLocalService getCounterLocalService() {
1182                    return counterLocalService;
1183            }
1184    
1185            /**
1186             * Sets the counter local service.
1187             *
1188             * @param counterLocalService the counter local service
1189             */
1190            public void setCounterLocalService(CounterLocalService counterLocalService) {
1191                    this.counterLocalService = counterLocalService;
1192            }
1193    
1194            /**
1195             * Returns the resource local service.
1196             *
1197             * @return the resource local service
1198             */
1199            public ResourceLocalService getResourceLocalService() {
1200                    return resourceLocalService;
1201            }
1202    
1203            /**
1204             * Sets the resource local service.
1205             *
1206             * @param resourceLocalService the resource local service
1207             */
1208            public void setResourceLocalService(
1209                    ResourceLocalService resourceLocalService) {
1210                    this.resourceLocalService = resourceLocalService;
1211            }
1212    
1213            /**
1214             * Returns the user local service.
1215             *
1216             * @return the user local service
1217             */
1218            public UserLocalService getUserLocalService() {
1219                    return userLocalService;
1220            }
1221    
1222            /**
1223             * Sets the user local service.
1224             *
1225             * @param userLocalService the user local service
1226             */
1227            public void setUserLocalService(UserLocalService userLocalService) {
1228                    this.userLocalService = userLocalService;
1229            }
1230    
1231            /**
1232             * Returns the user remote service.
1233             *
1234             * @return the user remote service
1235             */
1236            public UserService getUserService() {
1237                    return userService;
1238            }
1239    
1240            /**
1241             * Sets the user remote service.
1242             *
1243             * @param userService the user remote service
1244             */
1245            public void setUserService(UserService userService) {
1246                    this.userService = userService;
1247            }
1248    
1249            /**
1250             * Returns the user persistence.
1251             *
1252             * @return the user persistence
1253             */
1254            public UserPersistence getUserPersistence() {
1255                    return userPersistence;
1256            }
1257    
1258            /**
1259             * Sets the user persistence.
1260             *
1261             * @param userPersistence the user persistence
1262             */
1263            public void setUserPersistence(UserPersistence userPersistence) {
1264                    this.userPersistence = userPersistence;
1265            }
1266    
1267            /**
1268             * Returns the user finder.
1269             *
1270             * @return the user finder
1271             */
1272            public UserFinder getUserFinder() {
1273                    return userFinder;
1274            }
1275    
1276            /**
1277             * Sets the user finder.
1278             *
1279             * @param userFinder the user finder
1280             */
1281            public void setUserFinder(UserFinder userFinder) {
1282                    this.userFinder = userFinder;
1283            }
1284    
1285            /**
1286             * Returns the workflow definition link local service.
1287             *
1288             * @return the workflow definition link local service
1289             */
1290            public WorkflowDefinitionLinkLocalService getWorkflowDefinitionLinkLocalService() {
1291                    return workflowDefinitionLinkLocalService;
1292            }
1293    
1294            /**
1295             * Sets the workflow definition link local service.
1296             *
1297             * @param workflowDefinitionLinkLocalService the workflow definition link local service
1298             */
1299            public void setWorkflowDefinitionLinkLocalService(
1300                    WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService) {
1301                    this.workflowDefinitionLinkLocalService = workflowDefinitionLinkLocalService;
1302            }
1303    
1304            /**
1305             * Returns the workflow definition link persistence.
1306             *
1307             * @return the workflow definition link persistence
1308             */
1309            public WorkflowDefinitionLinkPersistence getWorkflowDefinitionLinkPersistence() {
1310                    return workflowDefinitionLinkPersistence;
1311            }
1312    
1313            /**
1314             * Sets the workflow definition link persistence.
1315             *
1316             * @param workflowDefinitionLinkPersistence the workflow definition link persistence
1317             */
1318            public void setWorkflowDefinitionLinkPersistence(
1319                    WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence) {
1320                    this.workflowDefinitionLinkPersistence = workflowDefinitionLinkPersistence;
1321            }
1322    
1323            /**
1324             * Returns the workflow instance link local service.
1325             *
1326             * @return the workflow instance link local service
1327             */
1328            public WorkflowInstanceLinkLocalService getWorkflowInstanceLinkLocalService() {
1329                    return workflowInstanceLinkLocalService;
1330            }
1331    
1332            /**
1333             * Sets the workflow instance link local service.
1334             *
1335             * @param workflowInstanceLinkLocalService the workflow instance link local service
1336             */
1337            public void setWorkflowInstanceLinkLocalService(
1338                    WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService) {
1339                    this.workflowInstanceLinkLocalService = workflowInstanceLinkLocalService;
1340            }
1341    
1342            /**
1343             * Returns the workflow instance link persistence.
1344             *
1345             * @return the workflow instance link persistence
1346             */
1347            public WorkflowInstanceLinkPersistence getWorkflowInstanceLinkPersistence() {
1348                    return workflowInstanceLinkPersistence;
1349            }
1350    
1351            /**
1352             * Sets the workflow instance link persistence.
1353             *
1354             * @param workflowInstanceLinkPersistence the workflow instance link persistence
1355             */
1356            public void setWorkflowInstanceLinkPersistence(
1357                    WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence) {
1358                    this.workflowInstanceLinkPersistence = workflowInstanceLinkPersistence;
1359            }
1360    
1361            /**
1362             * Returns the d d m structure local service.
1363             *
1364             * @return the d d m structure local service
1365             */
1366            public DDMStructureLocalService getDDMStructureLocalService() {
1367                    return ddmStructureLocalService;
1368            }
1369    
1370            /**
1371             * Sets the d d m structure local service.
1372             *
1373             * @param ddmStructureLocalService the d d m structure local service
1374             */
1375            public void setDDMStructureLocalService(
1376                    DDMStructureLocalService ddmStructureLocalService) {
1377                    this.ddmStructureLocalService = ddmStructureLocalService;
1378            }
1379    
1380            /**
1381             * Returns the d d m structure remote service.
1382             *
1383             * @return the d d m structure remote service
1384             */
1385            public DDMStructureService getDDMStructureService() {
1386                    return ddmStructureService;
1387            }
1388    
1389            /**
1390             * Sets the d d m structure remote service.
1391             *
1392             * @param ddmStructureService the d d m structure remote service
1393             */
1394            public void setDDMStructureService(DDMStructureService ddmStructureService) {
1395                    this.ddmStructureService = ddmStructureService;
1396            }
1397    
1398            /**
1399             * Returns the d d m structure persistence.
1400             *
1401             * @return the d d m structure persistence
1402             */
1403            public DDMStructurePersistence getDDMStructurePersistence() {
1404                    return ddmStructurePersistence;
1405            }
1406    
1407            /**
1408             * Sets the d d m structure persistence.
1409             *
1410             * @param ddmStructurePersistence the d d m structure persistence
1411             */
1412            public void setDDMStructurePersistence(
1413                    DDMStructurePersistence ddmStructurePersistence) {
1414                    this.ddmStructurePersistence = ddmStructurePersistence;
1415            }
1416    
1417            /**
1418             * Returns the d d m structure finder.
1419             *
1420             * @return the d d m structure finder
1421             */
1422            public DDMStructureFinder getDDMStructureFinder() {
1423                    return ddmStructureFinder;
1424            }
1425    
1426            /**
1427             * Sets the d d m structure finder.
1428             *
1429             * @param ddmStructureFinder the d d m structure finder
1430             */
1431            public void setDDMStructureFinder(DDMStructureFinder ddmStructureFinder) {
1432                    this.ddmStructureFinder = ddmStructureFinder;
1433            }
1434    
1435            public void afterPropertiesSet() {
1436                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.documentlibrary.model.DLFileEntryType",
1437                            dlFileEntryTypeLocalService);
1438            }
1439    
1440            public void destroy() {
1441                    persistedModelLocalServiceRegistry.unregister(
1442                            "com.liferay.portlet.documentlibrary.model.DLFileEntryType");
1443            }
1444    
1445            /**
1446             * Returns the Spring bean ID for this bean.
1447             *
1448             * @return the Spring bean ID for this bean
1449             */
1450            public String getBeanIdentifier() {
1451                    return _beanIdentifier;
1452            }
1453    
1454            /**
1455             * Sets the Spring bean ID for this bean.
1456             *
1457             * @param beanIdentifier the Spring bean ID for this bean
1458             */
1459            public void setBeanIdentifier(String beanIdentifier) {
1460                    _beanIdentifier = beanIdentifier;
1461            }
1462    
1463            protected Class<?> getModelClass() {
1464                    return DLFileEntryType.class;
1465            }
1466    
1467            protected String getModelClassName() {
1468                    return DLFileEntryType.class.getName();
1469            }
1470    
1471            /**
1472             * Performs an SQL query.
1473             *
1474             * @param sql the sql query
1475             */
1476            protected void runSQL(String sql) throws SystemException {
1477                    try {
1478                            DataSource dataSource = dlFileEntryTypePersistence.getDataSource();
1479    
1480                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1481                                            sql, new int[0]);
1482    
1483                            sqlUpdate.update();
1484                    }
1485                    catch (Exception e) {
1486                            throw new SystemException(e);
1487                    }
1488            }
1489    
1490            @BeanReference(type = DLAppLocalService.class)
1491            protected DLAppLocalService dlAppLocalService;
1492            @BeanReference(type = DLAppService.class)
1493            protected DLAppService dlAppService;
1494            @BeanReference(type = DLAppHelperLocalService.class)
1495            protected DLAppHelperLocalService dlAppHelperLocalService;
1496            @BeanReference(type = DLContentLocalService.class)
1497            protected DLContentLocalService dlContentLocalService;
1498            @BeanReference(type = DLContentPersistence.class)
1499            protected DLContentPersistence dlContentPersistence;
1500            @BeanReference(type = DLFileEntryLocalService.class)
1501            protected DLFileEntryLocalService dlFileEntryLocalService;
1502            @BeanReference(type = DLFileEntryService.class)
1503            protected DLFileEntryService dlFileEntryService;
1504            @BeanReference(type = DLFileEntryPersistence.class)
1505            protected DLFileEntryPersistence dlFileEntryPersistence;
1506            @BeanReference(type = DLFileEntryFinder.class)
1507            protected DLFileEntryFinder dlFileEntryFinder;
1508            @BeanReference(type = DLFileEntryMetadataLocalService.class)
1509            protected DLFileEntryMetadataLocalService dlFileEntryMetadataLocalService;
1510            @BeanReference(type = DLFileEntryMetadataPersistence.class)
1511            protected DLFileEntryMetadataPersistence dlFileEntryMetadataPersistence;
1512            @BeanReference(type = DLFileEntryTypeLocalService.class)
1513            protected DLFileEntryTypeLocalService dlFileEntryTypeLocalService;
1514            @BeanReference(type = DLFileEntryTypeService.class)
1515            protected DLFileEntryTypeService dlFileEntryTypeService;
1516            @BeanReference(type = DLFileEntryTypePersistence.class)
1517            protected DLFileEntryTypePersistence dlFileEntryTypePersistence;
1518            @BeanReference(type = DLFileEntryTypeFinder.class)
1519            protected DLFileEntryTypeFinder dlFileEntryTypeFinder;
1520            @BeanReference(type = DLFileRankLocalService.class)
1521            protected DLFileRankLocalService dlFileRankLocalService;
1522            @BeanReference(type = DLFileRankPersistence.class)
1523            protected DLFileRankPersistence dlFileRankPersistence;
1524            @BeanReference(type = DLFileRankFinder.class)
1525            protected DLFileRankFinder dlFileRankFinder;
1526            @BeanReference(type = DLFileShortcutLocalService.class)
1527            protected DLFileShortcutLocalService dlFileShortcutLocalService;
1528            @BeanReference(type = DLFileShortcutService.class)
1529            protected DLFileShortcutService dlFileShortcutService;
1530            @BeanReference(type = DLFileShortcutPersistence.class)
1531            protected DLFileShortcutPersistence dlFileShortcutPersistence;
1532            @BeanReference(type = DLFileVersionLocalService.class)
1533            protected DLFileVersionLocalService dlFileVersionLocalService;
1534            @BeanReference(type = DLFileVersionService.class)
1535            protected DLFileVersionService dlFileVersionService;
1536            @BeanReference(type = DLFileVersionPersistence.class)
1537            protected DLFileVersionPersistence dlFileVersionPersistence;
1538            @BeanReference(type = DLFolderLocalService.class)
1539            protected DLFolderLocalService dlFolderLocalService;
1540            @BeanReference(type = DLFolderService.class)
1541            protected DLFolderService dlFolderService;
1542            @BeanReference(type = DLFolderPersistence.class)
1543            protected DLFolderPersistence dlFolderPersistence;
1544            @BeanReference(type = DLFolderFinder.class)
1545            protected DLFolderFinder dlFolderFinder;
1546            @BeanReference(type = DLSyncLocalService.class)
1547            protected DLSyncLocalService dlSyncLocalService;
1548            @BeanReference(type = DLSyncService.class)
1549            protected DLSyncService dlSyncService;
1550            @BeanReference(type = DLSyncPersistence.class)
1551            protected DLSyncPersistence dlSyncPersistence;
1552            @BeanReference(type = DLSyncFinder.class)
1553            protected DLSyncFinder dlSyncFinder;
1554            @BeanReference(type = CounterLocalService.class)
1555            protected CounterLocalService counterLocalService;
1556            @BeanReference(type = ResourceLocalService.class)
1557            protected ResourceLocalService resourceLocalService;
1558            @BeanReference(type = UserLocalService.class)
1559            protected UserLocalService userLocalService;
1560            @BeanReference(type = UserService.class)
1561            protected UserService userService;
1562            @BeanReference(type = UserPersistence.class)
1563            protected UserPersistence userPersistence;
1564            @BeanReference(type = UserFinder.class)
1565            protected UserFinder userFinder;
1566            @BeanReference(type = WorkflowDefinitionLinkLocalService.class)
1567            protected WorkflowDefinitionLinkLocalService workflowDefinitionLinkLocalService;
1568            @BeanReference(type = WorkflowDefinitionLinkPersistence.class)
1569            protected WorkflowDefinitionLinkPersistence workflowDefinitionLinkPersistence;
1570            @BeanReference(type = WorkflowInstanceLinkLocalService.class)
1571            protected WorkflowInstanceLinkLocalService workflowInstanceLinkLocalService;
1572            @BeanReference(type = WorkflowInstanceLinkPersistence.class)
1573            protected WorkflowInstanceLinkPersistence workflowInstanceLinkPersistence;
1574            @BeanReference(type = DDMStructureLocalService.class)
1575            protected DDMStructureLocalService ddmStructureLocalService;
1576            @BeanReference(type = DDMStructureService.class)
1577            protected DDMStructureService ddmStructureService;
1578            @BeanReference(type = DDMStructurePersistence.class)
1579            protected DDMStructurePersistence ddmStructurePersistence;
1580            @BeanReference(type = DDMStructureFinder.class)
1581            protected DDMStructureFinder ddmStructureFinder;
1582            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1583            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1584            private String _beanIdentifier;
1585    }