001    /**
002     * Copyright (c) 2000-2010 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.documentlibrary.service.DLLocalService;
020    import com.liferay.documentlibrary.service.DLService;
021    
022    import com.liferay.portal.kernel.annotation.BeanReference;
023    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
024    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
025    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
026    import com.liferay.portal.kernel.exception.PortalException;
027    import com.liferay.portal.kernel.exception.SystemException;
028    import com.liferay.portal.kernel.util.OrderByComparator;
029    import com.liferay.portal.service.GroupLocalService;
030    import com.liferay.portal.service.GroupService;
031    import com.liferay.portal.service.LayoutLocalService;
032    import com.liferay.portal.service.LayoutService;
033    import com.liferay.portal.service.LockLocalService;
034    import com.liferay.portal.service.ResourceLocalService;
035    import com.liferay.portal.service.ResourceService;
036    import com.liferay.portal.service.UserLocalService;
037    import com.liferay.portal.service.UserService;
038    import com.liferay.portal.service.WebDAVPropsLocalService;
039    import com.liferay.portal.service.persistence.GroupFinder;
040    import com.liferay.portal.service.persistence.GroupPersistence;
041    import com.liferay.portal.service.persistence.LayoutFinder;
042    import com.liferay.portal.service.persistence.LayoutPersistence;
043    import com.liferay.portal.service.persistence.LockPersistence;
044    import com.liferay.portal.service.persistence.ResourceFinder;
045    import com.liferay.portal.service.persistence.ResourcePersistence;
046    import com.liferay.portal.service.persistence.UserFinder;
047    import com.liferay.portal.service.persistence.UserPersistence;
048    import com.liferay.portal.service.persistence.WebDAVPropsPersistence;
049    
050    import com.liferay.portlet.documentlibrary.model.DLFolder;
051    import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
052    import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
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.persistence.DLFileEntryFinder;
061    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
062    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
063    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
064    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
065    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
066    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
067    import com.liferay.portlet.expando.service.ExpandoValueLocalService;
068    import com.liferay.portlet.expando.service.ExpandoValueService;
069    import com.liferay.portlet.expando.service.persistence.ExpandoValuePersistence;
070    
071    import java.util.List;
072    
073    import javax.sql.DataSource;
074    
075    /**
076     * The base implementation of the d l folder local service.
077     *
078     * <p>
079     * 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.DLFolderLocalServiceImpl}.
080     * </p>
081     *
082     * <p>
083     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil} to access the d l folder local service.
084     * </p>
085     *
086     * @author Brian Wing Shun Chan
087     * @see com.liferay.portlet.documentlibrary.service.impl.DLFolderLocalServiceImpl
088     * @see com.liferay.portlet.documentlibrary.service.DLFolderLocalServiceUtil
089     * @generated
090     */
091    public abstract class DLFolderLocalServiceBaseImpl
092            implements DLFolderLocalService {
093            /**
094             * Adds the d l folder to the database. Also notifies the appropriate model listeners.
095             *
096             * @param dlFolder the d l folder to add
097             * @return the d l folder that was added
098             * @throws SystemException if a system exception occurred
099             */
100            public DLFolder addDLFolder(DLFolder dlFolder) throws SystemException {
101                    dlFolder.setNew(true);
102    
103                    return dlFolderPersistence.update(dlFolder, false);
104            }
105    
106            /**
107             * Creates a new d l folder with the primary key. Does not add the d l folder to the database.
108             *
109             * @param folderId the primary key for the new d l folder
110             * @return the new d l folder
111             */
112            public DLFolder createDLFolder(long folderId) {
113                    return dlFolderPersistence.create(folderId);
114            }
115    
116            /**
117             * Deletes the d l folder with the primary key from the database. Also notifies the appropriate model listeners.
118             *
119             * @param folderId the primary key of the d l folder to delete
120             * @throws PortalException if a d l folder with the primary key could not be found
121             * @throws SystemException if a system exception occurred
122             */
123            public void deleteDLFolder(long folderId)
124                    throws PortalException, SystemException {
125                    dlFolderPersistence.remove(folderId);
126            }
127    
128            /**
129             * Deletes the d l folder from the database. Also notifies the appropriate model listeners.
130             *
131             * @param dlFolder the d l folder to delete
132             * @throws SystemException if a system exception occurred
133             */
134            public void deleteDLFolder(DLFolder dlFolder) throws SystemException {
135                    dlFolderPersistence.remove(dlFolder);
136            }
137    
138            /**
139             * Performs a dynamic query on the database and returns the matching rows.
140             *
141             * @param dynamicQuery the dynamic query to search with
142             * @return the matching rows
143             * @throws SystemException if a system exception occurred
144             */
145            @SuppressWarnings("rawtypes")
146            public List dynamicQuery(DynamicQuery dynamicQuery)
147                    throws SystemException {
148                    return dlFolderPersistence.findWithDynamicQuery(dynamicQuery);
149            }
150    
151            /**
152             * Performs a dynamic query on the database and returns a range of the matching rows.
153             *
154             * <p>
155             * 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.
156             * </p>
157             *
158             * @param dynamicQuery the dynamic query to search with
159             * @param start the lower bound of the range of model instances to return
160             * @param end the upper bound of the range of model instances to return (not inclusive)
161             * @return the range of matching rows
162             * @throws SystemException if a system exception occurred
163             */
164            @SuppressWarnings("rawtypes")
165            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
166                    throws SystemException {
167                    return dlFolderPersistence.findWithDynamicQuery(dynamicQuery, start, end);
168            }
169    
170            /**
171             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
172             *
173             * <p>
174             * 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.
175             * </p>
176             *
177             * @param dynamicQuery the dynamic query to search with
178             * @param start the lower bound of the range of model instances to return
179             * @param end the upper bound of the range of model instances to return (not inclusive)
180             * @param orderByComparator the comparator to order the results by
181             * @return the ordered range of matching rows
182             * @throws SystemException if a system exception occurred
183             */
184            @SuppressWarnings("rawtypes")
185            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
186                    OrderByComparator orderByComparator) throws SystemException {
187                    return dlFolderPersistence.findWithDynamicQuery(dynamicQuery, start,
188                            end, orderByComparator);
189            }
190    
191            /**
192             * Counts the number of rows that match the dynamic query.
193             *
194             * @param dynamicQuery the dynamic query to search with
195             * @return the number of rows that match the dynamic query
196             * @throws SystemException if a system exception occurred
197             */
198            public long dynamicQueryCount(DynamicQuery dynamicQuery)
199                    throws SystemException {
200                    return dlFolderPersistence.countWithDynamicQuery(dynamicQuery);
201            }
202    
203            /**
204             * Gets the d l folder with the primary key.
205             *
206             * @param folderId the primary key of the d l folder to get
207             * @return the d l folder
208             * @throws PortalException if a d l folder with the primary key could not be found
209             * @throws SystemException if a system exception occurred
210             */
211            public DLFolder getDLFolder(long folderId)
212                    throws PortalException, SystemException {
213                    return dlFolderPersistence.findByPrimaryKey(folderId);
214            }
215    
216            /**
217             * Gets the d l folder with the UUID and group id.
218             *
219             * @param uuid the UUID of d l folder to get
220             * @param groupId the group id of the d l folder to get
221             * @return the d l folder
222             * @throws PortalException if a d l folder with the UUID and group id could not be found
223             * @throws SystemException if a system exception occurred
224             */
225            public DLFolder getDLFolderByUuidAndGroupId(String uuid, long groupId)
226                    throws PortalException, SystemException {
227                    return dlFolderPersistence.findByUUID_G(uuid, groupId);
228            }
229    
230            /**
231             * Gets a range of all the d l folders.
232             *
233             * <p>
234             * 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.
235             * </p>
236             *
237             * @param start the lower bound of the range of d l folders to return
238             * @param end the upper bound of the range of d l folders to return (not inclusive)
239             * @return the range of d l folders
240             * @throws SystemException if a system exception occurred
241             */
242            public List<DLFolder> getDLFolders(int start, int end)
243                    throws SystemException {
244                    return dlFolderPersistence.findAll(start, end);
245            }
246    
247            /**
248             * Gets the number of d l folders.
249             *
250             * @return the number of d l folders
251             * @throws SystemException if a system exception occurred
252             */
253            public int getDLFoldersCount() throws SystemException {
254                    return dlFolderPersistence.countAll();
255            }
256    
257            /**
258             * Updates the d l folder in the database. Also notifies the appropriate model listeners.
259             *
260             * @param dlFolder the d l folder to update
261             * @return the d l folder that was updated
262             * @throws SystemException if a system exception occurred
263             */
264            public DLFolder updateDLFolder(DLFolder dlFolder) throws SystemException {
265                    dlFolder.setNew(false);
266    
267                    return dlFolderPersistence.update(dlFolder, true);
268            }
269    
270            /**
271             * Updates the d l folder in the database. Also notifies the appropriate model listeners.
272             *
273             * @param dlFolder the d l folder to update
274             * @param merge whether to merge the d l folder with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
275             * @return the d l folder that was updated
276             * @throws SystemException if a system exception occurred
277             */
278            public DLFolder updateDLFolder(DLFolder dlFolder, boolean merge)
279                    throws SystemException {
280                    dlFolder.setNew(false);
281    
282                    return dlFolderPersistence.update(dlFolder, merge);
283            }
284    
285            /**
286             * Gets the d l file entry local service.
287             *
288             * @return the d l file entry local service
289             */
290            public DLFileEntryLocalService getDLFileEntryLocalService() {
291                    return dlFileEntryLocalService;
292            }
293    
294            /**
295             * Sets the d l file entry local service.
296             *
297             * @param dlFileEntryLocalService the d l file entry local service
298             */
299            public void setDLFileEntryLocalService(
300                    DLFileEntryLocalService dlFileEntryLocalService) {
301                    this.dlFileEntryLocalService = dlFileEntryLocalService;
302            }
303    
304            /**
305             * Gets the d l file entry remote service.
306             *
307             * @return the d l file entry remote service
308             */
309            public DLFileEntryService getDLFileEntryService() {
310                    return dlFileEntryService;
311            }
312    
313            /**
314             * Sets the d l file entry remote service.
315             *
316             * @param dlFileEntryService the d l file entry remote service
317             */
318            public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
319                    this.dlFileEntryService = dlFileEntryService;
320            }
321    
322            /**
323             * Gets the d l file entry persistence.
324             *
325             * @return the d l file entry persistence
326             */
327            public DLFileEntryPersistence getDLFileEntryPersistence() {
328                    return dlFileEntryPersistence;
329            }
330    
331            /**
332             * Sets the d l file entry persistence.
333             *
334             * @param dlFileEntryPersistence the d l file entry persistence
335             */
336            public void setDLFileEntryPersistence(
337                    DLFileEntryPersistence dlFileEntryPersistence) {
338                    this.dlFileEntryPersistence = dlFileEntryPersistence;
339            }
340    
341            /**
342             * Gets the d l file entry finder.
343             *
344             * @return the d l file entry finder
345             */
346            public DLFileEntryFinder getDLFileEntryFinder() {
347                    return dlFileEntryFinder;
348            }
349    
350            /**
351             * Sets the d l file entry finder.
352             *
353             * @param dlFileEntryFinder the d l file entry finder
354             */
355            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
356                    this.dlFileEntryFinder = dlFileEntryFinder;
357            }
358    
359            /**
360             * Gets the d l file rank local service.
361             *
362             * @return the d l file rank local service
363             */
364            public DLFileRankLocalService getDLFileRankLocalService() {
365                    return dlFileRankLocalService;
366            }
367    
368            /**
369             * Sets the d l file rank local service.
370             *
371             * @param dlFileRankLocalService the d l file rank local service
372             */
373            public void setDLFileRankLocalService(
374                    DLFileRankLocalService dlFileRankLocalService) {
375                    this.dlFileRankLocalService = dlFileRankLocalService;
376            }
377    
378            /**
379             * Gets the d l file rank persistence.
380             *
381             * @return the d l file rank persistence
382             */
383            public DLFileRankPersistence getDLFileRankPersistence() {
384                    return dlFileRankPersistence;
385            }
386    
387            /**
388             * Sets the d l file rank persistence.
389             *
390             * @param dlFileRankPersistence the d l file rank persistence
391             */
392            public void setDLFileRankPersistence(
393                    DLFileRankPersistence dlFileRankPersistence) {
394                    this.dlFileRankPersistence = dlFileRankPersistence;
395            }
396    
397            /**
398             * Gets the d l file shortcut local service.
399             *
400             * @return the d l file shortcut local service
401             */
402            public DLFileShortcutLocalService getDLFileShortcutLocalService() {
403                    return dlFileShortcutLocalService;
404            }
405    
406            /**
407             * Sets the d l file shortcut local service.
408             *
409             * @param dlFileShortcutLocalService the d l file shortcut local service
410             */
411            public void setDLFileShortcutLocalService(
412                    DLFileShortcutLocalService dlFileShortcutLocalService) {
413                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
414            }
415    
416            /**
417             * Gets the d l file shortcut remote service.
418             *
419             * @return the d l file shortcut remote service
420             */
421            public DLFileShortcutService getDLFileShortcutService() {
422                    return dlFileShortcutService;
423            }
424    
425            /**
426             * Sets the d l file shortcut remote service.
427             *
428             * @param dlFileShortcutService the d l file shortcut remote service
429             */
430            public void setDLFileShortcutService(
431                    DLFileShortcutService dlFileShortcutService) {
432                    this.dlFileShortcutService = dlFileShortcutService;
433            }
434    
435            /**
436             * Gets the d l file shortcut persistence.
437             *
438             * @return the d l file shortcut persistence
439             */
440            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
441                    return dlFileShortcutPersistence;
442            }
443    
444            /**
445             * Sets the d l file shortcut persistence.
446             *
447             * @param dlFileShortcutPersistence the d l file shortcut persistence
448             */
449            public void setDLFileShortcutPersistence(
450                    DLFileShortcutPersistence dlFileShortcutPersistence) {
451                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
452            }
453    
454            /**
455             * Gets the d l file version local service.
456             *
457             * @return the d l file version local service
458             */
459            public DLFileVersionLocalService getDLFileVersionLocalService() {
460                    return dlFileVersionLocalService;
461            }
462    
463            /**
464             * Sets the d l file version local service.
465             *
466             * @param dlFileVersionLocalService the d l file version local service
467             */
468            public void setDLFileVersionLocalService(
469                    DLFileVersionLocalService dlFileVersionLocalService) {
470                    this.dlFileVersionLocalService = dlFileVersionLocalService;
471            }
472    
473            /**
474             * Gets the d l file version remote service.
475             *
476             * @return the d l file version remote service
477             */
478            public DLFileVersionService getDLFileVersionService() {
479                    return dlFileVersionService;
480            }
481    
482            /**
483             * Sets the d l file version remote service.
484             *
485             * @param dlFileVersionService the d l file version remote service
486             */
487            public void setDLFileVersionService(
488                    DLFileVersionService dlFileVersionService) {
489                    this.dlFileVersionService = dlFileVersionService;
490            }
491    
492            /**
493             * Gets the d l file version persistence.
494             *
495             * @return the d l file version persistence
496             */
497            public DLFileVersionPersistence getDLFileVersionPersistence() {
498                    return dlFileVersionPersistence;
499            }
500    
501            /**
502             * Sets the d l file version persistence.
503             *
504             * @param dlFileVersionPersistence the d l file version persistence
505             */
506            public void setDLFileVersionPersistence(
507                    DLFileVersionPersistence dlFileVersionPersistence) {
508                    this.dlFileVersionPersistence = dlFileVersionPersistence;
509            }
510    
511            /**
512             * Gets the d l folder local service.
513             *
514             * @return the d l folder local service
515             */
516            public DLFolderLocalService getDLFolderLocalService() {
517                    return dlFolderLocalService;
518            }
519    
520            /**
521             * Sets the d l folder local service.
522             *
523             * @param dlFolderLocalService the d l folder local service
524             */
525            public void setDLFolderLocalService(
526                    DLFolderLocalService dlFolderLocalService) {
527                    this.dlFolderLocalService = dlFolderLocalService;
528            }
529    
530            /**
531             * Gets the d l folder remote service.
532             *
533             * @return the d l folder remote service
534             */
535            public DLFolderService getDLFolderService() {
536                    return dlFolderService;
537            }
538    
539            /**
540             * Sets the d l folder remote service.
541             *
542             * @param dlFolderService the d l folder remote service
543             */
544            public void setDLFolderService(DLFolderService dlFolderService) {
545                    this.dlFolderService = dlFolderService;
546            }
547    
548            /**
549             * Gets the d l folder persistence.
550             *
551             * @return the d l folder persistence
552             */
553            public DLFolderPersistence getDLFolderPersistence() {
554                    return dlFolderPersistence;
555            }
556    
557            /**
558             * Sets the d l folder persistence.
559             *
560             * @param dlFolderPersistence the d l folder persistence
561             */
562            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
563                    this.dlFolderPersistence = dlFolderPersistence;
564            }
565    
566            /**
567             * Gets the d l folder finder.
568             *
569             * @return the d l folder finder
570             */
571            public DLFolderFinder getDLFolderFinder() {
572                    return dlFolderFinder;
573            }
574    
575            /**
576             * Sets the d l folder finder.
577             *
578             * @param dlFolderFinder the d l folder finder
579             */
580            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
581                    this.dlFolderFinder = dlFolderFinder;
582            }
583    
584            /**
585             * Gets the counter local service.
586             *
587             * @return the counter local service
588             */
589            public CounterLocalService getCounterLocalService() {
590                    return counterLocalService;
591            }
592    
593            /**
594             * Sets the counter local service.
595             *
596             * @param counterLocalService the counter local service
597             */
598            public void setCounterLocalService(CounterLocalService counterLocalService) {
599                    this.counterLocalService = counterLocalService;
600            }
601    
602            /**
603             * Gets the d l local service.
604             *
605             * @return the d l local service
606             */
607            public DLLocalService getDLLocalService() {
608                    return dlLocalService;
609            }
610    
611            /**
612             * Sets the d l local service.
613             *
614             * @param dlLocalService the d l local service
615             */
616            public void setDLLocalService(DLLocalService dlLocalService) {
617                    this.dlLocalService = dlLocalService;
618            }
619    
620            /**
621             * Gets the d l remote service.
622             *
623             * @return the d l remote service
624             */
625            public DLService getDLService() {
626                    return dlService;
627            }
628    
629            /**
630             * Sets the d l remote service.
631             *
632             * @param dlService the d l remote service
633             */
634            public void setDLService(DLService dlService) {
635                    this.dlService = dlService;
636            }
637    
638            /**
639             * Gets the group local service.
640             *
641             * @return the group local service
642             */
643            public GroupLocalService getGroupLocalService() {
644                    return groupLocalService;
645            }
646    
647            /**
648             * Sets the group local service.
649             *
650             * @param groupLocalService the group local service
651             */
652            public void setGroupLocalService(GroupLocalService groupLocalService) {
653                    this.groupLocalService = groupLocalService;
654            }
655    
656            /**
657             * Gets the group remote service.
658             *
659             * @return the group remote service
660             */
661            public GroupService getGroupService() {
662                    return groupService;
663            }
664    
665            /**
666             * Sets the group remote service.
667             *
668             * @param groupService the group remote service
669             */
670            public void setGroupService(GroupService groupService) {
671                    this.groupService = groupService;
672            }
673    
674            /**
675             * Gets the group persistence.
676             *
677             * @return the group persistence
678             */
679            public GroupPersistence getGroupPersistence() {
680                    return groupPersistence;
681            }
682    
683            /**
684             * Sets the group persistence.
685             *
686             * @param groupPersistence the group persistence
687             */
688            public void setGroupPersistence(GroupPersistence groupPersistence) {
689                    this.groupPersistence = groupPersistence;
690            }
691    
692            /**
693             * Gets the group finder.
694             *
695             * @return the group finder
696             */
697            public GroupFinder getGroupFinder() {
698                    return groupFinder;
699            }
700    
701            /**
702             * Sets the group finder.
703             *
704             * @param groupFinder the group finder
705             */
706            public void setGroupFinder(GroupFinder groupFinder) {
707                    this.groupFinder = groupFinder;
708            }
709    
710            /**
711             * Gets the layout local service.
712             *
713             * @return the layout local service
714             */
715            public LayoutLocalService getLayoutLocalService() {
716                    return layoutLocalService;
717            }
718    
719            /**
720             * Sets the layout local service.
721             *
722             * @param layoutLocalService the layout local service
723             */
724            public void setLayoutLocalService(LayoutLocalService layoutLocalService) {
725                    this.layoutLocalService = layoutLocalService;
726            }
727    
728            /**
729             * Gets the layout remote service.
730             *
731             * @return the layout remote service
732             */
733            public LayoutService getLayoutService() {
734                    return layoutService;
735            }
736    
737            /**
738             * Sets the layout remote service.
739             *
740             * @param layoutService the layout remote service
741             */
742            public void setLayoutService(LayoutService layoutService) {
743                    this.layoutService = layoutService;
744            }
745    
746            /**
747             * Gets the layout persistence.
748             *
749             * @return the layout persistence
750             */
751            public LayoutPersistence getLayoutPersistence() {
752                    return layoutPersistence;
753            }
754    
755            /**
756             * Sets the layout persistence.
757             *
758             * @param layoutPersistence the layout persistence
759             */
760            public void setLayoutPersistence(LayoutPersistence layoutPersistence) {
761                    this.layoutPersistence = layoutPersistence;
762            }
763    
764            /**
765             * Gets the layout finder.
766             *
767             * @return the layout finder
768             */
769            public LayoutFinder getLayoutFinder() {
770                    return layoutFinder;
771            }
772    
773            /**
774             * Sets the layout finder.
775             *
776             * @param layoutFinder the layout finder
777             */
778            public void setLayoutFinder(LayoutFinder layoutFinder) {
779                    this.layoutFinder = layoutFinder;
780            }
781    
782            /**
783             * Gets the lock local service.
784             *
785             * @return the lock local service
786             */
787            public LockLocalService getLockLocalService() {
788                    return lockLocalService;
789            }
790    
791            /**
792             * Sets the lock local service.
793             *
794             * @param lockLocalService the lock local service
795             */
796            public void setLockLocalService(LockLocalService lockLocalService) {
797                    this.lockLocalService = lockLocalService;
798            }
799    
800            /**
801             * Gets the lock persistence.
802             *
803             * @return the lock persistence
804             */
805            public LockPersistence getLockPersistence() {
806                    return lockPersistence;
807            }
808    
809            /**
810             * Sets the lock persistence.
811             *
812             * @param lockPersistence the lock persistence
813             */
814            public void setLockPersistence(LockPersistence lockPersistence) {
815                    this.lockPersistence = lockPersistence;
816            }
817    
818            /**
819             * Gets the resource local service.
820             *
821             * @return the resource local service
822             */
823            public ResourceLocalService getResourceLocalService() {
824                    return resourceLocalService;
825            }
826    
827            /**
828             * Sets the resource local service.
829             *
830             * @param resourceLocalService the resource local service
831             */
832            public void setResourceLocalService(
833                    ResourceLocalService resourceLocalService) {
834                    this.resourceLocalService = resourceLocalService;
835            }
836    
837            /**
838             * Gets the resource remote service.
839             *
840             * @return the resource remote service
841             */
842            public ResourceService getResourceService() {
843                    return resourceService;
844            }
845    
846            /**
847             * Sets the resource remote service.
848             *
849             * @param resourceService the resource remote service
850             */
851            public void setResourceService(ResourceService resourceService) {
852                    this.resourceService = resourceService;
853            }
854    
855            /**
856             * Gets the resource persistence.
857             *
858             * @return the resource persistence
859             */
860            public ResourcePersistence getResourcePersistence() {
861                    return resourcePersistence;
862            }
863    
864            /**
865             * Sets the resource persistence.
866             *
867             * @param resourcePersistence the resource persistence
868             */
869            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
870                    this.resourcePersistence = resourcePersistence;
871            }
872    
873            /**
874             * Gets the resource finder.
875             *
876             * @return the resource finder
877             */
878            public ResourceFinder getResourceFinder() {
879                    return resourceFinder;
880            }
881    
882            /**
883             * Sets the resource finder.
884             *
885             * @param resourceFinder the resource finder
886             */
887            public void setResourceFinder(ResourceFinder resourceFinder) {
888                    this.resourceFinder = resourceFinder;
889            }
890    
891            /**
892             * Gets the user local service.
893             *
894             * @return the user local service
895             */
896            public UserLocalService getUserLocalService() {
897                    return userLocalService;
898            }
899    
900            /**
901             * Sets the user local service.
902             *
903             * @param userLocalService the user local service
904             */
905            public void setUserLocalService(UserLocalService userLocalService) {
906                    this.userLocalService = userLocalService;
907            }
908    
909            /**
910             * Gets the user remote service.
911             *
912             * @return the user remote service
913             */
914            public UserService getUserService() {
915                    return userService;
916            }
917    
918            /**
919             * Sets the user remote service.
920             *
921             * @param userService the user remote service
922             */
923            public void setUserService(UserService userService) {
924                    this.userService = userService;
925            }
926    
927            /**
928             * Gets the user persistence.
929             *
930             * @return the user persistence
931             */
932            public UserPersistence getUserPersistence() {
933                    return userPersistence;
934            }
935    
936            /**
937             * Sets the user persistence.
938             *
939             * @param userPersistence the user persistence
940             */
941            public void setUserPersistence(UserPersistence userPersistence) {
942                    this.userPersistence = userPersistence;
943            }
944    
945            /**
946             * Gets the user finder.
947             *
948             * @return the user finder
949             */
950            public UserFinder getUserFinder() {
951                    return userFinder;
952            }
953    
954            /**
955             * Sets the user finder.
956             *
957             * @param userFinder the user finder
958             */
959            public void setUserFinder(UserFinder userFinder) {
960                    this.userFinder = userFinder;
961            }
962    
963            /**
964             * Gets the web d a v props local service.
965             *
966             * @return the web d a v props local service
967             */
968            public WebDAVPropsLocalService getWebDAVPropsLocalService() {
969                    return webDAVPropsLocalService;
970            }
971    
972            /**
973             * Sets the web d a v props local service.
974             *
975             * @param webDAVPropsLocalService the web d a v props local service
976             */
977            public void setWebDAVPropsLocalService(
978                    WebDAVPropsLocalService webDAVPropsLocalService) {
979                    this.webDAVPropsLocalService = webDAVPropsLocalService;
980            }
981    
982            /**
983             * Gets the web d a v props persistence.
984             *
985             * @return the web d a v props persistence
986             */
987            public WebDAVPropsPersistence getWebDAVPropsPersistence() {
988                    return webDAVPropsPersistence;
989            }
990    
991            /**
992             * Sets the web d a v props persistence.
993             *
994             * @param webDAVPropsPersistence the web d a v props persistence
995             */
996            public void setWebDAVPropsPersistence(
997                    WebDAVPropsPersistence webDAVPropsPersistence) {
998                    this.webDAVPropsPersistence = webDAVPropsPersistence;
999            }
1000    
1001            /**
1002             * Gets the expando value local service.
1003             *
1004             * @return the expando value local service
1005             */
1006            public ExpandoValueLocalService getExpandoValueLocalService() {
1007                    return expandoValueLocalService;
1008            }
1009    
1010            /**
1011             * Sets the expando value local service.
1012             *
1013             * @param expandoValueLocalService the expando value local service
1014             */
1015            public void setExpandoValueLocalService(
1016                    ExpandoValueLocalService expandoValueLocalService) {
1017                    this.expandoValueLocalService = expandoValueLocalService;
1018            }
1019    
1020            /**
1021             * Gets the expando value remote service.
1022             *
1023             * @return the expando value remote service
1024             */
1025            public ExpandoValueService getExpandoValueService() {
1026                    return expandoValueService;
1027            }
1028    
1029            /**
1030             * Sets the expando value remote service.
1031             *
1032             * @param expandoValueService the expando value remote service
1033             */
1034            public void setExpandoValueService(ExpandoValueService expandoValueService) {
1035                    this.expandoValueService = expandoValueService;
1036            }
1037    
1038            /**
1039             * Gets the expando value persistence.
1040             *
1041             * @return the expando value persistence
1042             */
1043            public ExpandoValuePersistence getExpandoValuePersistence() {
1044                    return expandoValuePersistence;
1045            }
1046    
1047            /**
1048             * Sets the expando value persistence.
1049             *
1050             * @param expandoValuePersistence the expando value persistence
1051             */
1052            public void setExpandoValuePersistence(
1053                    ExpandoValuePersistence expandoValuePersistence) {
1054                    this.expandoValuePersistence = expandoValuePersistence;
1055            }
1056    
1057            /**
1058             * Performs an SQL query.
1059             *
1060             * @param sql the sql query to perform
1061             */
1062            protected void runSQL(String sql) throws SystemException {
1063                    try {
1064                            DataSource dataSource = dlFolderPersistence.getDataSource();
1065    
1066                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1067                                            sql, new int[0]);
1068    
1069                            sqlUpdate.update();
1070                    }
1071                    catch (Exception e) {
1072                            throw new SystemException(e);
1073                    }
1074            }
1075    
1076            @BeanReference(type = DLFileEntryLocalService.class)
1077            protected DLFileEntryLocalService dlFileEntryLocalService;
1078            @BeanReference(type = DLFileEntryService.class)
1079            protected DLFileEntryService dlFileEntryService;
1080            @BeanReference(type = DLFileEntryPersistence.class)
1081            protected DLFileEntryPersistence dlFileEntryPersistence;
1082            @BeanReference(type = DLFileEntryFinder.class)
1083            protected DLFileEntryFinder dlFileEntryFinder;
1084            @BeanReference(type = DLFileRankLocalService.class)
1085            protected DLFileRankLocalService dlFileRankLocalService;
1086            @BeanReference(type = DLFileRankPersistence.class)
1087            protected DLFileRankPersistence dlFileRankPersistence;
1088            @BeanReference(type = DLFileShortcutLocalService.class)
1089            protected DLFileShortcutLocalService dlFileShortcutLocalService;
1090            @BeanReference(type = DLFileShortcutService.class)
1091            protected DLFileShortcutService dlFileShortcutService;
1092            @BeanReference(type = DLFileShortcutPersistence.class)
1093            protected DLFileShortcutPersistence dlFileShortcutPersistence;
1094            @BeanReference(type = DLFileVersionLocalService.class)
1095            protected DLFileVersionLocalService dlFileVersionLocalService;
1096            @BeanReference(type = DLFileVersionService.class)
1097            protected DLFileVersionService dlFileVersionService;
1098            @BeanReference(type = DLFileVersionPersistence.class)
1099            protected DLFileVersionPersistence dlFileVersionPersistence;
1100            @BeanReference(type = DLFolderLocalService.class)
1101            protected DLFolderLocalService dlFolderLocalService;
1102            @BeanReference(type = DLFolderService.class)
1103            protected DLFolderService dlFolderService;
1104            @BeanReference(type = DLFolderPersistence.class)
1105            protected DLFolderPersistence dlFolderPersistence;
1106            @BeanReference(type = DLFolderFinder.class)
1107            protected DLFolderFinder dlFolderFinder;
1108            @BeanReference(type = CounterLocalService.class)
1109            protected CounterLocalService counterLocalService;
1110            @BeanReference(type = DLLocalService.class)
1111            protected DLLocalService dlLocalService;
1112            @BeanReference(type = DLService.class)
1113            protected DLService dlService;
1114            @BeanReference(type = GroupLocalService.class)
1115            protected GroupLocalService groupLocalService;
1116            @BeanReference(type = GroupService.class)
1117            protected GroupService groupService;
1118            @BeanReference(type = GroupPersistence.class)
1119            protected GroupPersistence groupPersistence;
1120            @BeanReference(type = GroupFinder.class)
1121            protected GroupFinder groupFinder;
1122            @BeanReference(type = LayoutLocalService.class)
1123            protected LayoutLocalService layoutLocalService;
1124            @BeanReference(type = LayoutService.class)
1125            protected LayoutService layoutService;
1126            @BeanReference(type = LayoutPersistence.class)
1127            protected LayoutPersistence layoutPersistence;
1128            @BeanReference(type = LayoutFinder.class)
1129            protected LayoutFinder layoutFinder;
1130            @BeanReference(type = LockLocalService.class)
1131            protected LockLocalService lockLocalService;
1132            @BeanReference(type = LockPersistence.class)
1133            protected LockPersistence lockPersistence;
1134            @BeanReference(type = ResourceLocalService.class)
1135            protected ResourceLocalService resourceLocalService;
1136            @BeanReference(type = ResourceService.class)
1137            protected ResourceService resourceService;
1138            @BeanReference(type = ResourcePersistence.class)
1139            protected ResourcePersistence resourcePersistence;
1140            @BeanReference(type = ResourceFinder.class)
1141            protected ResourceFinder resourceFinder;
1142            @BeanReference(type = UserLocalService.class)
1143            protected UserLocalService userLocalService;
1144            @BeanReference(type = UserService.class)
1145            protected UserService userService;
1146            @BeanReference(type = UserPersistence.class)
1147            protected UserPersistence userPersistence;
1148            @BeanReference(type = UserFinder.class)
1149            protected UserFinder userFinder;
1150            @BeanReference(type = WebDAVPropsLocalService.class)
1151            protected WebDAVPropsLocalService webDAVPropsLocalService;
1152            @BeanReference(type = WebDAVPropsPersistence.class)
1153            protected WebDAVPropsPersistence webDAVPropsPersistence;
1154            @BeanReference(type = ExpandoValueLocalService.class)
1155            protected ExpandoValueLocalService expandoValueLocalService;
1156            @BeanReference(type = ExpandoValueService.class)
1157            protected ExpandoValueService expandoValueService;
1158            @BeanReference(type = ExpandoValuePersistence.class)
1159            protected ExpandoValuePersistence expandoValuePersistence;
1160    }