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.portal.kernel.annotation.BeanReference;
020    import com.liferay.portal.kernel.dao.jdbc.SqlUpdate;
021    import com.liferay.portal.kernel.dao.jdbc.SqlUpdateFactoryUtil;
022    import com.liferay.portal.kernel.dao.orm.DynamicQuery;
023    import com.liferay.portal.kernel.exception.PortalException;
024    import com.liferay.portal.kernel.exception.SystemException;
025    import com.liferay.portal.kernel.util.OrderByComparator;
026    import com.liferay.portal.service.ResourceLocalService;
027    import com.liferay.portal.service.ResourceService;
028    import com.liferay.portal.service.UserLocalService;
029    import com.liferay.portal.service.UserService;
030    import com.liferay.portal.service.persistence.ResourceFinder;
031    import com.liferay.portal.service.persistence.ResourcePersistence;
032    import com.liferay.portal.service.persistence.UserFinder;
033    import com.liferay.portal.service.persistence.UserPersistence;
034    
035    import com.liferay.portlet.asset.service.AssetEntryLocalService;
036    import com.liferay.portlet.asset.service.AssetEntryService;
037    import com.liferay.portlet.asset.service.AssetTagLocalService;
038    import com.liferay.portlet.asset.service.AssetTagService;
039    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
040    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
041    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
042    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
043    import com.liferay.portlet.documentlibrary.model.DLFileShortcut;
044    import com.liferay.portlet.documentlibrary.service.DLFileEntryLocalService;
045    import com.liferay.portlet.documentlibrary.service.DLFileEntryService;
046    import com.liferay.portlet.documentlibrary.service.DLFileRankLocalService;
047    import com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalService;
048    import com.liferay.portlet.documentlibrary.service.DLFileShortcutService;
049    import com.liferay.portlet.documentlibrary.service.DLFileVersionLocalService;
050    import com.liferay.portlet.documentlibrary.service.DLFileVersionService;
051    import com.liferay.portlet.documentlibrary.service.DLFolderLocalService;
052    import com.liferay.portlet.documentlibrary.service.DLFolderService;
053    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryFinder;
054    import com.liferay.portlet.documentlibrary.service.persistence.DLFileEntryPersistence;
055    import com.liferay.portlet.documentlibrary.service.persistence.DLFileRankPersistence;
056    import com.liferay.portlet.documentlibrary.service.persistence.DLFileShortcutPersistence;
057    import com.liferay.portlet.documentlibrary.service.persistence.DLFileVersionPersistence;
058    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderFinder;
059    import com.liferay.portlet.documentlibrary.service.persistence.DLFolderPersistence;
060    
061    import java.util.List;
062    
063    import javax.sql.DataSource;
064    
065    /**
066     * The base implementation of the d l file shortcut local service.
067     *
068     * <p>
069     * 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.DLFileShortcutLocalServiceImpl}.
070     * </p>
071     *
072     * <p>
073     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalServiceUtil} to access the d l file shortcut local service.
074     * </p>
075     *
076     * @author Brian Wing Shun Chan
077     * @see com.liferay.portlet.documentlibrary.service.impl.DLFileShortcutLocalServiceImpl
078     * @see com.liferay.portlet.documentlibrary.service.DLFileShortcutLocalServiceUtil
079     * @generated
080     */
081    public abstract class DLFileShortcutLocalServiceBaseImpl
082            implements DLFileShortcutLocalService {
083            /**
084             * Adds the d l file shortcut to the database. Also notifies the appropriate model listeners.
085             *
086             * @param dlFileShortcut the d l file shortcut to add
087             * @return the d l file shortcut that was added
088             * @throws SystemException if a system exception occurred
089             */
090            public DLFileShortcut addDLFileShortcut(DLFileShortcut dlFileShortcut)
091                    throws SystemException {
092                    dlFileShortcut.setNew(true);
093    
094                    return dlFileShortcutPersistence.update(dlFileShortcut, false);
095            }
096    
097            /**
098             * Creates a new d l file shortcut with the primary key. Does not add the d l file shortcut to the database.
099             *
100             * @param fileShortcutId the primary key for the new d l file shortcut
101             * @return the new d l file shortcut
102             */
103            public DLFileShortcut createDLFileShortcut(long fileShortcutId) {
104                    return dlFileShortcutPersistence.create(fileShortcutId);
105            }
106    
107            /**
108             * Deletes the d l file shortcut with the primary key from the database. Also notifies the appropriate model listeners.
109             *
110             * @param fileShortcutId the primary key of the d l file shortcut to delete
111             * @throws PortalException if a d l file shortcut with the primary key could not be found
112             * @throws SystemException if a system exception occurred
113             */
114            public void deleteDLFileShortcut(long fileShortcutId)
115                    throws PortalException, SystemException {
116                    dlFileShortcutPersistence.remove(fileShortcutId);
117            }
118    
119            /**
120             * Deletes the d l file shortcut from the database. Also notifies the appropriate model listeners.
121             *
122             * @param dlFileShortcut the d l file shortcut to delete
123             * @throws SystemException if a system exception occurred
124             */
125            public void deleteDLFileShortcut(DLFileShortcut dlFileShortcut)
126                    throws SystemException {
127                    dlFileShortcutPersistence.remove(dlFileShortcut);
128            }
129    
130            /**
131             * Performs a dynamic query on the database and returns the matching rows.
132             *
133             * @param dynamicQuery the dynamic query to search with
134             * @return the matching rows
135             * @throws SystemException if a system exception occurred
136             */
137            @SuppressWarnings("rawtypes")
138            public List dynamicQuery(DynamicQuery dynamicQuery)
139                    throws SystemException {
140                    return dlFileShortcutPersistence.findWithDynamicQuery(dynamicQuery);
141            }
142    
143            /**
144             * Performs a dynamic query on the database and returns a range of the matching rows.
145             *
146             * <p>
147             * 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.
148             * </p>
149             *
150             * @param dynamicQuery the dynamic query to search with
151             * @param start the lower bound of the range of model instances to return
152             * @param end the upper bound of the range of model instances to return (not inclusive)
153             * @return the range of matching rows
154             * @throws SystemException if a system exception occurred
155             */
156            @SuppressWarnings("rawtypes")
157            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
158                    throws SystemException {
159                    return dlFileShortcutPersistence.findWithDynamicQuery(dynamicQuery,
160                            start, end);
161            }
162    
163            /**
164             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
165             *
166             * <p>
167             * 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.
168             * </p>
169             *
170             * @param dynamicQuery the dynamic query to search with
171             * @param start the lower bound of the range of model instances to return
172             * @param end the upper bound of the range of model instances to return (not inclusive)
173             * @param orderByComparator the comparator to order the results by
174             * @return the ordered range of matching rows
175             * @throws SystemException if a system exception occurred
176             */
177            @SuppressWarnings("rawtypes")
178            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
179                    OrderByComparator orderByComparator) throws SystemException {
180                    return dlFileShortcutPersistence.findWithDynamicQuery(dynamicQuery,
181                            start, end, orderByComparator);
182            }
183    
184            /**
185             * Counts the number of rows that match the dynamic query.
186             *
187             * @param dynamicQuery the dynamic query to search with
188             * @return the number of rows that match the dynamic query
189             * @throws SystemException if a system exception occurred
190             */
191            public long dynamicQueryCount(DynamicQuery dynamicQuery)
192                    throws SystemException {
193                    return dlFileShortcutPersistence.countWithDynamicQuery(dynamicQuery);
194            }
195    
196            /**
197             * Gets the d l file shortcut with the primary key.
198             *
199             * @param fileShortcutId the primary key of the d l file shortcut to get
200             * @return the d l file shortcut
201             * @throws PortalException if a d l file shortcut with the primary key could not be found
202             * @throws SystemException if a system exception occurred
203             */
204            public DLFileShortcut getDLFileShortcut(long fileShortcutId)
205                    throws PortalException, SystemException {
206                    return dlFileShortcutPersistence.findByPrimaryKey(fileShortcutId);
207            }
208    
209            /**
210             * Gets the d l file shortcut with the UUID and group id.
211             *
212             * @param uuid the UUID of d l file shortcut to get
213             * @param groupId the group id of the d l file shortcut to get
214             * @return the d l file shortcut
215             * @throws PortalException if a d l file shortcut with the UUID and group id could not be found
216             * @throws SystemException if a system exception occurred
217             */
218            public DLFileShortcut getDLFileShortcutByUuidAndGroupId(String uuid,
219                    long groupId) throws PortalException, SystemException {
220                    return dlFileShortcutPersistence.findByUUID_G(uuid, groupId);
221            }
222    
223            /**
224             * Gets a range of all the d l file shortcuts.
225             *
226             * <p>
227             * 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.
228             * </p>
229             *
230             * @param start the lower bound of the range of d l file shortcuts to return
231             * @param end the upper bound of the range of d l file shortcuts to return (not inclusive)
232             * @return the range of d l file shortcuts
233             * @throws SystemException if a system exception occurred
234             */
235            public List<DLFileShortcut> getDLFileShortcuts(int start, int end)
236                    throws SystemException {
237                    return dlFileShortcutPersistence.findAll(start, end);
238            }
239    
240            /**
241             * Gets the number of d l file shortcuts.
242             *
243             * @return the number of d l file shortcuts
244             * @throws SystemException if a system exception occurred
245             */
246            public int getDLFileShortcutsCount() throws SystemException {
247                    return dlFileShortcutPersistence.countAll();
248            }
249    
250            /**
251             * Updates the d l file shortcut in the database. Also notifies the appropriate model listeners.
252             *
253             * @param dlFileShortcut the d l file shortcut to update
254             * @return the d l file shortcut that was updated
255             * @throws SystemException if a system exception occurred
256             */
257            public DLFileShortcut updateDLFileShortcut(DLFileShortcut dlFileShortcut)
258                    throws SystemException {
259                    dlFileShortcut.setNew(false);
260    
261                    return dlFileShortcutPersistence.update(dlFileShortcut, true);
262            }
263    
264            /**
265             * Updates the d l file shortcut in the database. Also notifies the appropriate model listeners.
266             *
267             * @param dlFileShortcut the d l file shortcut to update
268             * @param merge whether to merge the d l file shortcut 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.
269             * @return the d l file shortcut that was updated
270             * @throws SystemException if a system exception occurred
271             */
272            public DLFileShortcut updateDLFileShortcut(DLFileShortcut dlFileShortcut,
273                    boolean merge) throws SystemException {
274                    dlFileShortcut.setNew(false);
275    
276                    return dlFileShortcutPersistence.update(dlFileShortcut, merge);
277            }
278    
279            /**
280             * Gets the d l file entry local service.
281             *
282             * @return the d l file entry local service
283             */
284            public DLFileEntryLocalService getDLFileEntryLocalService() {
285                    return dlFileEntryLocalService;
286            }
287    
288            /**
289             * Sets the d l file entry local service.
290             *
291             * @param dlFileEntryLocalService the d l file entry local service
292             */
293            public void setDLFileEntryLocalService(
294                    DLFileEntryLocalService dlFileEntryLocalService) {
295                    this.dlFileEntryLocalService = dlFileEntryLocalService;
296            }
297    
298            /**
299             * Gets the d l file entry remote service.
300             *
301             * @return the d l file entry remote service
302             */
303            public DLFileEntryService getDLFileEntryService() {
304                    return dlFileEntryService;
305            }
306    
307            /**
308             * Sets the d l file entry remote service.
309             *
310             * @param dlFileEntryService the d l file entry remote service
311             */
312            public void setDLFileEntryService(DLFileEntryService dlFileEntryService) {
313                    this.dlFileEntryService = dlFileEntryService;
314            }
315    
316            /**
317             * Gets the d l file entry persistence.
318             *
319             * @return the d l file entry persistence
320             */
321            public DLFileEntryPersistence getDLFileEntryPersistence() {
322                    return dlFileEntryPersistence;
323            }
324    
325            /**
326             * Sets the d l file entry persistence.
327             *
328             * @param dlFileEntryPersistence the d l file entry persistence
329             */
330            public void setDLFileEntryPersistence(
331                    DLFileEntryPersistence dlFileEntryPersistence) {
332                    this.dlFileEntryPersistence = dlFileEntryPersistence;
333            }
334    
335            /**
336             * Gets the d l file entry finder.
337             *
338             * @return the d l file entry finder
339             */
340            public DLFileEntryFinder getDLFileEntryFinder() {
341                    return dlFileEntryFinder;
342            }
343    
344            /**
345             * Sets the d l file entry finder.
346             *
347             * @param dlFileEntryFinder the d l file entry finder
348             */
349            public void setDLFileEntryFinder(DLFileEntryFinder dlFileEntryFinder) {
350                    this.dlFileEntryFinder = dlFileEntryFinder;
351            }
352    
353            /**
354             * Gets the d l file rank local service.
355             *
356             * @return the d l file rank local service
357             */
358            public DLFileRankLocalService getDLFileRankLocalService() {
359                    return dlFileRankLocalService;
360            }
361    
362            /**
363             * Sets the d l file rank local service.
364             *
365             * @param dlFileRankLocalService the d l file rank local service
366             */
367            public void setDLFileRankLocalService(
368                    DLFileRankLocalService dlFileRankLocalService) {
369                    this.dlFileRankLocalService = dlFileRankLocalService;
370            }
371    
372            /**
373             * Gets the d l file rank persistence.
374             *
375             * @return the d l file rank persistence
376             */
377            public DLFileRankPersistence getDLFileRankPersistence() {
378                    return dlFileRankPersistence;
379            }
380    
381            /**
382             * Sets the d l file rank persistence.
383             *
384             * @param dlFileRankPersistence the d l file rank persistence
385             */
386            public void setDLFileRankPersistence(
387                    DLFileRankPersistence dlFileRankPersistence) {
388                    this.dlFileRankPersistence = dlFileRankPersistence;
389            }
390    
391            /**
392             * Gets the d l file shortcut local service.
393             *
394             * @return the d l file shortcut local service
395             */
396            public DLFileShortcutLocalService getDLFileShortcutLocalService() {
397                    return dlFileShortcutLocalService;
398            }
399    
400            /**
401             * Sets the d l file shortcut local service.
402             *
403             * @param dlFileShortcutLocalService the d l file shortcut local service
404             */
405            public void setDLFileShortcutLocalService(
406                    DLFileShortcutLocalService dlFileShortcutLocalService) {
407                    this.dlFileShortcutLocalService = dlFileShortcutLocalService;
408            }
409    
410            /**
411             * Gets the d l file shortcut remote service.
412             *
413             * @return the d l file shortcut remote service
414             */
415            public DLFileShortcutService getDLFileShortcutService() {
416                    return dlFileShortcutService;
417            }
418    
419            /**
420             * Sets the d l file shortcut remote service.
421             *
422             * @param dlFileShortcutService the d l file shortcut remote service
423             */
424            public void setDLFileShortcutService(
425                    DLFileShortcutService dlFileShortcutService) {
426                    this.dlFileShortcutService = dlFileShortcutService;
427            }
428    
429            /**
430             * Gets the d l file shortcut persistence.
431             *
432             * @return the d l file shortcut persistence
433             */
434            public DLFileShortcutPersistence getDLFileShortcutPersistence() {
435                    return dlFileShortcutPersistence;
436            }
437    
438            /**
439             * Sets the d l file shortcut persistence.
440             *
441             * @param dlFileShortcutPersistence the d l file shortcut persistence
442             */
443            public void setDLFileShortcutPersistence(
444                    DLFileShortcutPersistence dlFileShortcutPersistence) {
445                    this.dlFileShortcutPersistence = dlFileShortcutPersistence;
446            }
447    
448            /**
449             * Gets the d l file version local service.
450             *
451             * @return the d l file version local service
452             */
453            public DLFileVersionLocalService getDLFileVersionLocalService() {
454                    return dlFileVersionLocalService;
455            }
456    
457            /**
458             * Sets the d l file version local service.
459             *
460             * @param dlFileVersionLocalService the d l file version local service
461             */
462            public void setDLFileVersionLocalService(
463                    DLFileVersionLocalService dlFileVersionLocalService) {
464                    this.dlFileVersionLocalService = dlFileVersionLocalService;
465            }
466    
467            /**
468             * Gets the d l file version remote service.
469             *
470             * @return the d l file version remote service
471             */
472            public DLFileVersionService getDLFileVersionService() {
473                    return dlFileVersionService;
474            }
475    
476            /**
477             * Sets the d l file version remote service.
478             *
479             * @param dlFileVersionService the d l file version remote service
480             */
481            public void setDLFileVersionService(
482                    DLFileVersionService dlFileVersionService) {
483                    this.dlFileVersionService = dlFileVersionService;
484            }
485    
486            /**
487             * Gets the d l file version persistence.
488             *
489             * @return the d l file version persistence
490             */
491            public DLFileVersionPersistence getDLFileVersionPersistence() {
492                    return dlFileVersionPersistence;
493            }
494    
495            /**
496             * Sets the d l file version persistence.
497             *
498             * @param dlFileVersionPersistence the d l file version persistence
499             */
500            public void setDLFileVersionPersistence(
501                    DLFileVersionPersistence dlFileVersionPersistence) {
502                    this.dlFileVersionPersistence = dlFileVersionPersistence;
503            }
504    
505            /**
506             * Gets the d l folder local service.
507             *
508             * @return the d l folder local service
509             */
510            public DLFolderLocalService getDLFolderLocalService() {
511                    return dlFolderLocalService;
512            }
513    
514            /**
515             * Sets the d l folder local service.
516             *
517             * @param dlFolderLocalService the d l folder local service
518             */
519            public void setDLFolderLocalService(
520                    DLFolderLocalService dlFolderLocalService) {
521                    this.dlFolderLocalService = dlFolderLocalService;
522            }
523    
524            /**
525             * Gets the d l folder remote service.
526             *
527             * @return the d l folder remote service
528             */
529            public DLFolderService getDLFolderService() {
530                    return dlFolderService;
531            }
532    
533            /**
534             * Sets the d l folder remote service.
535             *
536             * @param dlFolderService the d l folder remote service
537             */
538            public void setDLFolderService(DLFolderService dlFolderService) {
539                    this.dlFolderService = dlFolderService;
540            }
541    
542            /**
543             * Gets the d l folder persistence.
544             *
545             * @return the d l folder persistence
546             */
547            public DLFolderPersistence getDLFolderPersistence() {
548                    return dlFolderPersistence;
549            }
550    
551            /**
552             * Sets the d l folder persistence.
553             *
554             * @param dlFolderPersistence the d l folder persistence
555             */
556            public void setDLFolderPersistence(DLFolderPersistence dlFolderPersistence) {
557                    this.dlFolderPersistence = dlFolderPersistence;
558            }
559    
560            /**
561             * Gets the d l folder finder.
562             *
563             * @return the d l folder finder
564             */
565            public DLFolderFinder getDLFolderFinder() {
566                    return dlFolderFinder;
567            }
568    
569            /**
570             * Sets the d l folder finder.
571             *
572             * @param dlFolderFinder the d l folder finder
573             */
574            public void setDLFolderFinder(DLFolderFinder dlFolderFinder) {
575                    this.dlFolderFinder = dlFolderFinder;
576            }
577    
578            /**
579             * Gets the counter local service.
580             *
581             * @return the counter local service
582             */
583            public CounterLocalService getCounterLocalService() {
584                    return counterLocalService;
585            }
586    
587            /**
588             * Sets the counter local service.
589             *
590             * @param counterLocalService the counter local service
591             */
592            public void setCounterLocalService(CounterLocalService counterLocalService) {
593                    this.counterLocalService = counterLocalService;
594            }
595    
596            /**
597             * Gets the resource local service.
598             *
599             * @return the resource local service
600             */
601            public ResourceLocalService getResourceLocalService() {
602                    return resourceLocalService;
603            }
604    
605            /**
606             * Sets the resource local service.
607             *
608             * @param resourceLocalService the resource local service
609             */
610            public void setResourceLocalService(
611                    ResourceLocalService resourceLocalService) {
612                    this.resourceLocalService = resourceLocalService;
613            }
614    
615            /**
616             * Gets the resource remote service.
617             *
618             * @return the resource remote service
619             */
620            public ResourceService getResourceService() {
621                    return resourceService;
622            }
623    
624            /**
625             * Sets the resource remote service.
626             *
627             * @param resourceService the resource remote service
628             */
629            public void setResourceService(ResourceService resourceService) {
630                    this.resourceService = resourceService;
631            }
632    
633            /**
634             * Gets the resource persistence.
635             *
636             * @return the resource persistence
637             */
638            public ResourcePersistence getResourcePersistence() {
639                    return resourcePersistence;
640            }
641    
642            /**
643             * Sets the resource persistence.
644             *
645             * @param resourcePersistence the resource persistence
646             */
647            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
648                    this.resourcePersistence = resourcePersistence;
649            }
650    
651            /**
652             * Gets the resource finder.
653             *
654             * @return the resource finder
655             */
656            public ResourceFinder getResourceFinder() {
657                    return resourceFinder;
658            }
659    
660            /**
661             * Sets the resource finder.
662             *
663             * @param resourceFinder the resource finder
664             */
665            public void setResourceFinder(ResourceFinder resourceFinder) {
666                    this.resourceFinder = resourceFinder;
667            }
668    
669            /**
670             * Gets the user local service.
671             *
672             * @return the user local service
673             */
674            public UserLocalService getUserLocalService() {
675                    return userLocalService;
676            }
677    
678            /**
679             * Sets the user local service.
680             *
681             * @param userLocalService the user local service
682             */
683            public void setUserLocalService(UserLocalService userLocalService) {
684                    this.userLocalService = userLocalService;
685            }
686    
687            /**
688             * Gets the user remote service.
689             *
690             * @return the user remote service
691             */
692            public UserService getUserService() {
693                    return userService;
694            }
695    
696            /**
697             * Sets the user remote service.
698             *
699             * @param userService the user remote service
700             */
701            public void setUserService(UserService userService) {
702                    this.userService = userService;
703            }
704    
705            /**
706             * Gets the user persistence.
707             *
708             * @return the user persistence
709             */
710            public UserPersistence getUserPersistence() {
711                    return userPersistence;
712            }
713    
714            /**
715             * Sets the user persistence.
716             *
717             * @param userPersistence the user persistence
718             */
719            public void setUserPersistence(UserPersistence userPersistence) {
720                    this.userPersistence = userPersistence;
721            }
722    
723            /**
724             * Gets the user finder.
725             *
726             * @return the user finder
727             */
728            public UserFinder getUserFinder() {
729                    return userFinder;
730            }
731    
732            /**
733             * Sets the user finder.
734             *
735             * @param userFinder the user finder
736             */
737            public void setUserFinder(UserFinder userFinder) {
738                    this.userFinder = userFinder;
739            }
740    
741            /**
742             * Gets the asset entry local service.
743             *
744             * @return the asset entry local service
745             */
746            public AssetEntryLocalService getAssetEntryLocalService() {
747                    return assetEntryLocalService;
748            }
749    
750            /**
751             * Sets the asset entry local service.
752             *
753             * @param assetEntryLocalService the asset entry local service
754             */
755            public void setAssetEntryLocalService(
756                    AssetEntryLocalService assetEntryLocalService) {
757                    this.assetEntryLocalService = assetEntryLocalService;
758            }
759    
760            /**
761             * Gets the asset entry remote service.
762             *
763             * @return the asset entry remote service
764             */
765            public AssetEntryService getAssetEntryService() {
766                    return assetEntryService;
767            }
768    
769            /**
770             * Sets the asset entry remote service.
771             *
772             * @param assetEntryService the asset entry remote service
773             */
774            public void setAssetEntryService(AssetEntryService assetEntryService) {
775                    this.assetEntryService = assetEntryService;
776            }
777    
778            /**
779             * Gets the asset entry persistence.
780             *
781             * @return the asset entry persistence
782             */
783            public AssetEntryPersistence getAssetEntryPersistence() {
784                    return assetEntryPersistence;
785            }
786    
787            /**
788             * Sets the asset entry persistence.
789             *
790             * @param assetEntryPersistence the asset entry persistence
791             */
792            public void setAssetEntryPersistence(
793                    AssetEntryPersistence assetEntryPersistence) {
794                    this.assetEntryPersistence = assetEntryPersistence;
795            }
796    
797            /**
798             * Gets the asset entry finder.
799             *
800             * @return the asset entry finder
801             */
802            public AssetEntryFinder getAssetEntryFinder() {
803                    return assetEntryFinder;
804            }
805    
806            /**
807             * Sets the asset entry finder.
808             *
809             * @param assetEntryFinder the asset entry finder
810             */
811            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
812                    this.assetEntryFinder = assetEntryFinder;
813            }
814    
815            /**
816             * Gets the asset tag local service.
817             *
818             * @return the asset tag local service
819             */
820            public AssetTagLocalService getAssetTagLocalService() {
821                    return assetTagLocalService;
822            }
823    
824            /**
825             * Sets the asset tag local service.
826             *
827             * @param assetTagLocalService the asset tag local service
828             */
829            public void setAssetTagLocalService(
830                    AssetTagLocalService assetTagLocalService) {
831                    this.assetTagLocalService = assetTagLocalService;
832            }
833    
834            /**
835             * Gets the asset tag remote service.
836             *
837             * @return the asset tag remote service
838             */
839            public AssetTagService getAssetTagService() {
840                    return assetTagService;
841            }
842    
843            /**
844             * Sets the asset tag remote service.
845             *
846             * @param assetTagService the asset tag remote service
847             */
848            public void setAssetTagService(AssetTagService assetTagService) {
849                    this.assetTagService = assetTagService;
850            }
851    
852            /**
853             * Gets the asset tag persistence.
854             *
855             * @return the asset tag persistence
856             */
857            public AssetTagPersistence getAssetTagPersistence() {
858                    return assetTagPersistence;
859            }
860    
861            /**
862             * Sets the asset tag persistence.
863             *
864             * @param assetTagPersistence the asset tag persistence
865             */
866            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
867                    this.assetTagPersistence = assetTagPersistence;
868            }
869    
870            /**
871             * Gets the asset tag finder.
872             *
873             * @return the asset tag finder
874             */
875            public AssetTagFinder getAssetTagFinder() {
876                    return assetTagFinder;
877            }
878    
879            /**
880             * Sets the asset tag finder.
881             *
882             * @param assetTagFinder the asset tag finder
883             */
884            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
885                    this.assetTagFinder = assetTagFinder;
886            }
887    
888            /**
889             * Performs an SQL query.
890             *
891             * @param sql the sql query to perform
892             */
893            protected void runSQL(String sql) throws SystemException {
894                    try {
895                            DataSource dataSource = dlFileShortcutPersistence.getDataSource();
896    
897                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
898                                            sql, new int[0]);
899    
900                            sqlUpdate.update();
901                    }
902                    catch (Exception e) {
903                            throw new SystemException(e);
904                    }
905            }
906    
907            @BeanReference(type = DLFileEntryLocalService.class)
908            protected DLFileEntryLocalService dlFileEntryLocalService;
909            @BeanReference(type = DLFileEntryService.class)
910            protected DLFileEntryService dlFileEntryService;
911            @BeanReference(type = DLFileEntryPersistence.class)
912            protected DLFileEntryPersistence dlFileEntryPersistence;
913            @BeanReference(type = DLFileEntryFinder.class)
914            protected DLFileEntryFinder dlFileEntryFinder;
915            @BeanReference(type = DLFileRankLocalService.class)
916            protected DLFileRankLocalService dlFileRankLocalService;
917            @BeanReference(type = DLFileRankPersistence.class)
918            protected DLFileRankPersistence dlFileRankPersistence;
919            @BeanReference(type = DLFileShortcutLocalService.class)
920            protected DLFileShortcutLocalService dlFileShortcutLocalService;
921            @BeanReference(type = DLFileShortcutService.class)
922            protected DLFileShortcutService dlFileShortcutService;
923            @BeanReference(type = DLFileShortcutPersistence.class)
924            protected DLFileShortcutPersistence dlFileShortcutPersistence;
925            @BeanReference(type = DLFileVersionLocalService.class)
926            protected DLFileVersionLocalService dlFileVersionLocalService;
927            @BeanReference(type = DLFileVersionService.class)
928            protected DLFileVersionService dlFileVersionService;
929            @BeanReference(type = DLFileVersionPersistence.class)
930            protected DLFileVersionPersistence dlFileVersionPersistence;
931            @BeanReference(type = DLFolderLocalService.class)
932            protected DLFolderLocalService dlFolderLocalService;
933            @BeanReference(type = DLFolderService.class)
934            protected DLFolderService dlFolderService;
935            @BeanReference(type = DLFolderPersistence.class)
936            protected DLFolderPersistence dlFolderPersistence;
937            @BeanReference(type = DLFolderFinder.class)
938            protected DLFolderFinder dlFolderFinder;
939            @BeanReference(type = CounterLocalService.class)
940            protected CounterLocalService counterLocalService;
941            @BeanReference(type = ResourceLocalService.class)
942            protected ResourceLocalService resourceLocalService;
943            @BeanReference(type = ResourceService.class)
944            protected ResourceService resourceService;
945            @BeanReference(type = ResourcePersistence.class)
946            protected ResourcePersistence resourcePersistence;
947            @BeanReference(type = ResourceFinder.class)
948            protected ResourceFinder resourceFinder;
949            @BeanReference(type = UserLocalService.class)
950            protected UserLocalService userLocalService;
951            @BeanReference(type = UserService.class)
952            protected UserService userService;
953            @BeanReference(type = UserPersistence.class)
954            protected UserPersistence userPersistence;
955            @BeanReference(type = UserFinder.class)
956            protected UserFinder userFinder;
957            @BeanReference(type = AssetEntryLocalService.class)
958            protected AssetEntryLocalService assetEntryLocalService;
959            @BeanReference(type = AssetEntryService.class)
960            protected AssetEntryService assetEntryService;
961            @BeanReference(type = AssetEntryPersistence.class)
962            protected AssetEntryPersistence assetEntryPersistence;
963            @BeanReference(type = AssetEntryFinder.class)
964            protected AssetEntryFinder assetEntryFinder;
965            @BeanReference(type = AssetTagLocalService.class)
966            protected AssetTagLocalService assetTagLocalService;
967            @BeanReference(type = AssetTagService.class)
968            protected AssetTagService assetTagService;
969            @BeanReference(type = AssetTagPersistence.class)
970            protected AssetTagPersistence assetTagPersistence;
971            @BeanReference(type = AssetTagFinder.class)
972            protected AssetTagFinder assetTagFinder;
973    }