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.asset.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.GroupLocalService;
027    import com.liferay.portal.service.GroupService;
028    import com.liferay.portal.service.ResourceLocalService;
029    import com.liferay.portal.service.ResourceService;
030    import com.liferay.portal.service.UserLocalService;
031    import com.liferay.portal.service.UserService;
032    import com.liferay.portal.service.persistence.GroupFinder;
033    import com.liferay.portal.service.persistence.GroupPersistence;
034    import com.liferay.portal.service.persistence.ResourceFinder;
035    import com.liferay.portal.service.persistence.ResourcePersistence;
036    import com.liferay.portal.service.persistence.UserFinder;
037    import com.liferay.portal.service.persistence.UserPersistence;
038    
039    import com.liferay.portlet.asset.model.AssetVocabulary;
040    import com.liferay.portlet.asset.service.AssetCategoryLocalService;
041    import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
042    import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
043    import com.liferay.portlet.asset.service.AssetCategoryService;
044    import com.liferay.portlet.asset.service.AssetEntryLocalService;
045    import com.liferay.portlet.asset.service.AssetEntryService;
046    import com.liferay.portlet.asset.service.AssetLinkLocalService;
047    import com.liferay.portlet.asset.service.AssetTagLocalService;
048    import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
049    import com.liferay.portlet.asset.service.AssetTagPropertyService;
050    import com.liferay.portlet.asset.service.AssetTagService;
051    import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
052    import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
053    import com.liferay.portlet.asset.service.AssetVocabularyService;
054    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
055    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
056    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
057    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
058    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
059    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
060    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
061    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
062    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
063    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
064    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
065    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
066    import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
067    import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
068    
069    import java.util.List;
070    
071    import javax.sql.DataSource;
072    
073    /**
074     * The base implementation of the asset vocabulary local service.
075     *
076     * <p>
077     * 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.asset.service.impl.AssetVocabularyLocalServiceImpl}.
078     * </p>
079     *
080     * <p>
081     * Never modify or reference this class directly. Always use {@link com.liferay.portlet.asset.service.AssetVocabularyLocalServiceUtil} to access the asset vocabulary local service.
082     * </p>
083     *
084     * @author Brian Wing Shun Chan
085     * @see com.liferay.portlet.asset.service.impl.AssetVocabularyLocalServiceImpl
086     * @see com.liferay.portlet.asset.service.AssetVocabularyLocalServiceUtil
087     * @generated
088     */
089    public abstract class AssetVocabularyLocalServiceBaseImpl
090            implements AssetVocabularyLocalService {
091            /**
092             * Adds the asset vocabulary to the database. Also notifies the appropriate model listeners.
093             *
094             * @param assetVocabulary the asset vocabulary to add
095             * @return the asset vocabulary that was added
096             * @throws SystemException if a system exception occurred
097             */
098            public AssetVocabulary addAssetVocabulary(AssetVocabulary assetVocabulary)
099                    throws SystemException {
100                    assetVocabulary.setNew(true);
101    
102                    return assetVocabularyPersistence.update(assetVocabulary, false);
103            }
104    
105            /**
106             * Creates a new asset vocabulary with the primary key. Does not add the asset vocabulary to the database.
107             *
108             * @param vocabularyId the primary key for the new asset vocabulary
109             * @return the new asset vocabulary
110             */
111            public AssetVocabulary createAssetVocabulary(long vocabularyId) {
112                    return assetVocabularyPersistence.create(vocabularyId);
113            }
114    
115            /**
116             * Deletes the asset vocabulary with the primary key from the database. Also notifies the appropriate model listeners.
117             *
118             * @param vocabularyId the primary key of the asset vocabulary to delete
119             * @throws PortalException if a asset vocabulary with the primary key could not be found
120             * @throws SystemException if a system exception occurred
121             */
122            public void deleteAssetVocabulary(long vocabularyId)
123                    throws PortalException, SystemException {
124                    assetVocabularyPersistence.remove(vocabularyId);
125            }
126    
127            /**
128             * Deletes the asset vocabulary from the database. Also notifies the appropriate model listeners.
129             *
130             * @param assetVocabulary the asset vocabulary to delete
131             * @throws SystemException if a system exception occurred
132             */
133            public void deleteAssetVocabulary(AssetVocabulary assetVocabulary)
134                    throws SystemException {
135                    assetVocabularyPersistence.remove(assetVocabulary);
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 assetVocabularyPersistence.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 assetVocabularyPersistence.findWithDynamicQuery(dynamicQuery,
168                            start, end);
169            }
170    
171            /**
172             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
173             *
174             * <p>
175             * 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.
176             * </p>
177             *
178             * @param dynamicQuery the dynamic query to search with
179             * @param start the lower bound of the range of model instances to return
180             * @param end the upper bound of the range of model instances to return (not inclusive)
181             * @param orderByComparator the comparator to order the results by
182             * @return the ordered range of matching rows
183             * @throws SystemException if a system exception occurred
184             */
185            @SuppressWarnings("rawtypes")
186            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
187                    OrderByComparator orderByComparator) throws SystemException {
188                    return assetVocabularyPersistence.findWithDynamicQuery(dynamicQuery,
189                            start, end, orderByComparator);
190            }
191    
192            /**
193             * Counts the number of rows that match the dynamic query.
194             *
195             * @param dynamicQuery the dynamic query to search with
196             * @return the number of rows that match the dynamic query
197             * @throws SystemException if a system exception occurred
198             */
199            public long dynamicQueryCount(DynamicQuery dynamicQuery)
200                    throws SystemException {
201                    return assetVocabularyPersistence.countWithDynamicQuery(dynamicQuery);
202            }
203    
204            /**
205             * Gets the asset vocabulary with the primary key.
206             *
207             * @param vocabularyId the primary key of the asset vocabulary to get
208             * @return the asset vocabulary
209             * @throws PortalException if a asset vocabulary with the primary key could not be found
210             * @throws SystemException if a system exception occurred
211             */
212            public AssetVocabulary getAssetVocabulary(long vocabularyId)
213                    throws PortalException, SystemException {
214                    return assetVocabularyPersistence.findByPrimaryKey(vocabularyId);
215            }
216    
217            /**
218             * Gets the asset vocabulary with the UUID and group id.
219             *
220             * @param uuid the UUID of asset vocabulary to get
221             * @param groupId the group id of the asset vocabulary to get
222             * @return the asset vocabulary
223             * @throws PortalException if a asset vocabulary with the UUID and group id could not be found
224             * @throws SystemException if a system exception occurred
225             */
226            public AssetVocabulary getAssetVocabularyByUuidAndGroupId(String uuid,
227                    long groupId) throws PortalException, SystemException {
228                    return assetVocabularyPersistence.findByUUID_G(uuid, groupId);
229            }
230    
231            /**
232             * Gets a range of all the asset vocabularies.
233             *
234             * <p>
235             * 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.
236             * </p>
237             *
238             * @param start the lower bound of the range of asset vocabularies to return
239             * @param end the upper bound of the range of asset vocabularies to return (not inclusive)
240             * @return the range of asset vocabularies
241             * @throws SystemException if a system exception occurred
242             */
243            public List<AssetVocabulary> getAssetVocabularies(int start, int end)
244                    throws SystemException {
245                    return assetVocabularyPersistence.findAll(start, end);
246            }
247    
248            /**
249             * Gets the number of asset vocabularies.
250             *
251             * @return the number of asset vocabularies
252             * @throws SystemException if a system exception occurred
253             */
254            public int getAssetVocabulariesCount() throws SystemException {
255                    return assetVocabularyPersistence.countAll();
256            }
257    
258            /**
259             * Updates the asset vocabulary in the database. Also notifies the appropriate model listeners.
260             *
261             * @param assetVocabulary the asset vocabulary to update
262             * @return the asset vocabulary that was updated
263             * @throws SystemException if a system exception occurred
264             */
265            public AssetVocabulary updateAssetVocabulary(
266                    AssetVocabulary assetVocabulary) throws SystemException {
267                    assetVocabulary.setNew(false);
268    
269                    return assetVocabularyPersistence.update(assetVocabulary, true);
270            }
271    
272            /**
273             * Updates the asset vocabulary in the database. Also notifies the appropriate model listeners.
274             *
275             * @param assetVocabulary the asset vocabulary to update
276             * @param merge whether to merge the asset vocabulary 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.
277             * @return the asset vocabulary that was updated
278             * @throws SystemException if a system exception occurred
279             */
280            public AssetVocabulary updateAssetVocabulary(
281                    AssetVocabulary assetVocabulary, boolean merge)
282                    throws SystemException {
283                    assetVocabulary.setNew(false);
284    
285                    return assetVocabularyPersistence.update(assetVocabulary, merge);
286            }
287    
288            /**
289             * Gets the asset category local service.
290             *
291             * @return the asset category local service
292             */
293            public AssetCategoryLocalService getAssetCategoryLocalService() {
294                    return assetCategoryLocalService;
295            }
296    
297            /**
298             * Sets the asset category local service.
299             *
300             * @param assetCategoryLocalService the asset category local service
301             */
302            public void setAssetCategoryLocalService(
303                    AssetCategoryLocalService assetCategoryLocalService) {
304                    this.assetCategoryLocalService = assetCategoryLocalService;
305            }
306    
307            /**
308             * Gets the asset category remote service.
309             *
310             * @return the asset category remote service
311             */
312            public AssetCategoryService getAssetCategoryService() {
313                    return assetCategoryService;
314            }
315    
316            /**
317             * Sets the asset category remote service.
318             *
319             * @param assetCategoryService the asset category remote service
320             */
321            public void setAssetCategoryService(
322                    AssetCategoryService assetCategoryService) {
323                    this.assetCategoryService = assetCategoryService;
324            }
325    
326            /**
327             * Gets the asset category persistence.
328             *
329             * @return the asset category persistence
330             */
331            public AssetCategoryPersistence getAssetCategoryPersistence() {
332                    return assetCategoryPersistence;
333            }
334    
335            /**
336             * Sets the asset category persistence.
337             *
338             * @param assetCategoryPersistence the asset category persistence
339             */
340            public void setAssetCategoryPersistence(
341                    AssetCategoryPersistence assetCategoryPersistence) {
342                    this.assetCategoryPersistence = assetCategoryPersistence;
343            }
344    
345            /**
346             * Gets the asset category finder.
347             *
348             * @return the asset category finder
349             */
350            public AssetCategoryFinder getAssetCategoryFinder() {
351                    return assetCategoryFinder;
352            }
353    
354            /**
355             * Sets the asset category finder.
356             *
357             * @param assetCategoryFinder the asset category finder
358             */
359            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
360                    this.assetCategoryFinder = assetCategoryFinder;
361            }
362    
363            /**
364             * Gets the asset category property local service.
365             *
366             * @return the asset category property local service
367             */
368            public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
369                    return assetCategoryPropertyLocalService;
370            }
371    
372            /**
373             * Sets the asset category property local service.
374             *
375             * @param assetCategoryPropertyLocalService the asset category property local service
376             */
377            public void setAssetCategoryPropertyLocalService(
378                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
379                    this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
380            }
381    
382            /**
383             * Gets the asset category property remote service.
384             *
385             * @return the asset category property remote service
386             */
387            public AssetCategoryPropertyService getAssetCategoryPropertyService() {
388                    return assetCategoryPropertyService;
389            }
390    
391            /**
392             * Sets the asset category property remote service.
393             *
394             * @param assetCategoryPropertyService the asset category property remote service
395             */
396            public void setAssetCategoryPropertyService(
397                    AssetCategoryPropertyService assetCategoryPropertyService) {
398                    this.assetCategoryPropertyService = assetCategoryPropertyService;
399            }
400    
401            /**
402             * Gets the asset category property persistence.
403             *
404             * @return the asset category property persistence
405             */
406            public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
407                    return assetCategoryPropertyPersistence;
408            }
409    
410            /**
411             * Sets the asset category property persistence.
412             *
413             * @param assetCategoryPropertyPersistence the asset category property persistence
414             */
415            public void setAssetCategoryPropertyPersistence(
416                    AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
417                    this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
418            }
419    
420            /**
421             * Gets the asset category property finder.
422             *
423             * @return the asset category property finder
424             */
425            public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
426                    return assetCategoryPropertyFinder;
427            }
428    
429            /**
430             * Sets the asset category property finder.
431             *
432             * @param assetCategoryPropertyFinder the asset category property finder
433             */
434            public void setAssetCategoryPropertyFinder(
435                    AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
436                    this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
437            }
438    
439            /**
440             * Gets the asset entry local service.
441             *
442             * @return the asset entry local service
443             */
444            public AssetEntryLocalService getAssetEntryLocalService() {
445                    return assetEntryLocalService;
446            }
447    
448            /**
449             * Sets the asset entry local service.
450             *
451             * @param assetEntryLocalService the asset entry local service
452             */
453            public void setAssetEntryLocalService(
454                    AssetEntryLocalService assetEntryLocalService) {
455                    this.assetEntryLocalService = assetEntryLocalService;
456            }
457    
458            /**
459             * Gets the asset entry remote service.
460             *
461             * @return the asset entry remote service
462             */
463            public AssetEntryService getAssetEntryService() {
464                    return assetEntryService;
465            }
466    
467            /**
468             * Sets the asset entry remote service.
469             *
470             * @param assetEntryService the asset entry remote service
471             */
472            public void setAssetEntryService(AssetEntryService assetEntryService) {
473                    this.assetEntryService = assetEntryService;
474            }
475    
476            /**
477             * Gets the asset entry persistence.
478             *
479             * @return the asset entry persistence
480             */
481            public AssetEntryPersistence getAssetEntryPersistence() {
482                    return assetEntryPersistence;
483            }
484    
485            /**
486             * Sets the asset entry persistence.
487             *
488             * @param assetEntryPersistence the asset entry persistence
489             */
490            public void setAssetEntryPersistence(
491                    AssetEntryPersistence assetEntryPersistence) {
492                    this.assetEntryPersistence = assetEntryPersistence;
493            }
494    
495            /**
496             * Gets the asset entry finder.
497             *
498             * @return the asset entry finder
499             */
500            public AssetEntryFinder getAssetEntryFinder() {
501                    return assetEntryFinder;
502            }
503    
504            /**
505             * Sets the asset entry finder.
506             *
507             * @param assetEntryFinder the asset entry finder
508             */
509            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
510                    this.assetEntryFinder = assetEntryFinder;
511            }
512    
513            /**
514             * Gets the asset link local service.
515             *
516             * @return the asset link local service
517             */
518            public AssetLinkLocalService getAssetLinkLocalService() {
519                    return assetLinkLocalService;
520            }
521    
522            /**
523             * Sets the asset link local service.
524             *
525             * @param assetLinkLocalService the asset link local service
526             */
527            public void setAssetLinkLocalService(
528                    AssetLinkLocalService assetLinkLocalService) {
529                    this.assetLinkLocalService = assetLinkLocalService;
530            }
531    
532            /**
533             * Gets the asset link persistence.
534             *
535             * @return the asset link persistence
536             */
537            public AssetLinkPersistence getAssetLinkPersistence() {
538                    return assetLinkPersistence;
539            }
540    
541            /**
542             * Sets the asset link persistence.
543             *
544             * @param assetLinkPersistence the asset link persistence
545             */
546            public void setAssetLinkPersistence(
547                    AssetLinkPersistence assetLinkPersistence) {
548                    this.assetLinkPersistence = assetLinkPersistence;
549            }
550    
551            /**
552             * Gets the asset tag local service.
553             *
554             * @return the asset tag local service
555             */
556            public AssetTagLocalService getAssetTagLocalService() {
557                    return assetTagLocalService;
558            }
559    
560            /**
561             * Sets the asset tag local service.
562             *
563             * @param assetTagLocalService the asset tag local service
564             */
565            public void setAssetTagLocalService(
566                    AssetTagLocalService assetTagLocalService) {
567                    this.assetTagLocalService = assetTagLocalService;
568            }
569    
570            /**
571             * Gets the asset tag remote service.
572             *
573             * @return the asset tag remote service
574             */
575            public AssetTagService getAssetTagService() {
576                    return assetTagService;
577            }
578    
579            /**
580             * Sets the asset tag remote service.
581             *
582             * @param assetTagService the asset tag remote service
583             */
584            public void setAssetTagService(AssetTagService assetTagService) {
585                    this.assetTagService = assetTagService;
586            }
587    
588            /**
589             * Gets the asset tag persistence.
590             *
591             * @return the asset tag persistence
592             */
593            public AssetTagPersistence getAssetTagPersistence() {
594                    return assetTagPersistence;
595            }
596    
597            /**
598             * Sets the asset tag persistence.
599             *
600             * @param assetTagPersistence the asset tag persistence
601             */
602            public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
603                    this.assetTagPersistence = assetTagPersistence;
604            }
605    
606            /**
607             * Gets the asset tag finder.
608             *
609             * @return the asset tag finder
610             */
611            public AssetTagFinder getAssetTagFinder() {
612                    return assetTagFinder;
613            }
614    
615            /**
616             * Sets the asset tag finder.
617             *
618             * @param assetTagFinder the asset tag finder
619             */
620            public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
621                    this.assetTagFinder = assetTagFinder;
622            }
623    
624            /**
625             * Gets the asset tag property local service.
626             *
627             * @return the asset tag property local service
628             */
629            public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
630                    return assetTagPropertyLocalService;
631            }
632    
633            /**
634             * Sets the asset tag property local service.
635             *
636             * @param assetTagPropertyLocalService the asset tag property local service
637             */
638            public void setAssetTagPropertyLocalService(
639                    AssetTagPropertyLocalService assetTagPropertyLocalService) {
640                    this.assetTagPropertyLocalService = assetTagPropertyLocalService;
641            }
642    
643            /**
644             * Gets the asset tag property remote service.
645             *
646             * @return the asset tag property remote service
647             */
648            public AssetTagPropertyService getAssetTagPropertyService() {
649                    return assetTagPropertyService;
650            }
651    
652            /**
653             * Sets the asset tag property remote service.
654             *
655             * @param assetTagPropertyService the asset tag property remote service
656             */
657            public void setAssetTagPropertyService(
658                    AssetTagPropertyService assetTagPropertyService) {
659                    this.assetTagPropertyService = assetTagPropertyService;
660            }
661    
662            /**
663             * Gets the asset tag property persistence.
664             *
665             * @return the asset tag property persistence
666             */
667            public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
668                    return assetTagPropertyPersistence;
669            }
670    
671            /**
672             * Sets the asset tag property persistence.
673             *
674             * @param assetTagPropertyPersistence the asset tag property persistence
675             */
676            public void setAssetTagPropertyPersistence(
677                    AssetTagPropertyPersistence assetTagPropertyPersistence) {
678                    this.assetTagPropertyPersistence = assetTagPropertyPersistence;
679            }
680    
681            /**
682             * Gets the asset tag property finder.
683             *
684             * @return the asset tag property finder
685             */
686            public AssetTagPropertyFinder getAssetTagPropertyFinder() {
687                    return assetTagPropertyFinder;
688            }
689    
690            /**
691             * Sets the asset tag property finder.
692             *
693             * @param assetTagPropertyFinder the asset tag property finder
694             */
695            public void setAssetTagPropertyFinder(
696                    AssetTagPropertyFinder assetTagPropertyFinder) {
697                    this.assetTagPropertyFinder = assetTagPropertyFinder;
698            }
699    
700            /**
701             * Gets the asset tag property key finder.
702             *
703             * @return the asset tag property key finder
704             */
705            public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
706                    return assetTagPropertyKeyFinder;
707            }
708    
709            /**
710             * Sets the asset tag property key finder.
711             *
712             * @param assetTagPropertyKeyFinder the asset tag property key finder
713             */
714            public void setAssetTagPropertyKeyFinder(
715                    AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
716                    this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
717            }
718    
719            /**
720             * Gets the asset tag stats local service.
721             *
722             * @return the asset tag stats local service
723             */
724            public AssetTagStatsLocalService getAssetTagStatsLocalService() {
725                    return assetTagStatsLocalService;
726            }
727    
728            /**
729             * Sets the asset tag stats local service.
730             *
731             * @param assetTagStatsLocalService the asset tag stats local service
732             */
733            public void setAssetTagStatsLocalService(
734                    AssetTagStatsLocalService assetTagStatsLocalService) {
735                    this.assetTagStatsLocalService = assetTagStatsLocalService;
736            }
737    
738            /**
739             * Gets the asset tag stats persistence.
740             *
741             * @return the asset tag stats persistence
742             */
743            public AssetTagStatsPersistence getAssetTagStatsPersistence() {
744                    return assetTagStatsPersistence;
745            }
746    
747            /**
748             * Sets the asset tag stats persistence.
749             *
750             * @param assetTagStatsPersistence the asset tag stats persistence
751             */
752            public void setAssetTagStatsPersistence(
753                    AssetTagStatsPersistence assetTagStatsPersistence) {
754                    this.assetTagStatsPersistence = assetTagStatsPersistence;
755            }
756    
757            /**
758             * Gets the asset vocabulary local service.
759             *
760             * @return the asset vocabulary local service
761             */
762            public AssetVocabularyLocalService getAssetVocabularyLocalService() {
763                    return assetVocabularyLocalService;
764            }
765    
766            /**
767             * Sets the asset vocabulary local service.
768             *
769             * @param assetVocabularyLocalService the asset vocabulary local service
770             */
771            public void setAssetVocabularyLocalService(
772                    AssetVocabularyLocalService assetVocabularyLocalService) {
773                    this.assetVocabularyLocalService = assetVocabularyLocalService;
774            }
775    
776            /**
777             * Gets the asset vocabulary remote service.
778             *
779             * @return the asset vocabulary remote service
780             */
781            public AssetVocabularyService getAssetVocabularyService() {
782                    return assetVocabularyService;
783            }
784    
785            /**
786             * Sets the asset vocabulary remote service.
787             *
788             * @param assetVocabularyService the asset vocabulary remote service
789             */
790            public void setAssetVocabularyService(
791                    AssetVocabularyService assetVocabularyService) {
792                    this.assetVocabularyService = assetVocabularyService;
793            }
794    
795            /**
796             * Gets the asset vocabulary persistence.
797             *
798             * @return the asset vocabulary persistence
799             */
800            public AssetVocabularyPersistence getAssetVocabularyPersistence() {
801                    return assetVocabularyPersistence;
802            }
803    
804            /**
805             * Sets the asset vocabulary persistence.
806             *
807             * @param assetVocabularyPersistence the asset vocabulary persistence
808             */
809            public void setAssetVocabularyPersistence(
810                    AssetVocabularyPersistence assetVocabularyPersistence) {
811                    this.assetVocabularyPersistence = assetVocabularyPersistence;
812            }
813    
814            /**
815             * Gets the counter local service.
816             *
817             * @return the counter local service
818             */
819            public CounterLocalService getCounterLocalService() {
820                    return counterLocalService;
821            }
822    
823            /**
824             * Sets the counter local service.
825             *
826             * @param counterLocalService the counter local service
827             */
828            public void setCounterLocalService(CounterLocalService counterLocalService) {
829                    this.counterLocalService = counterLocalService;
830            }
831    
832            /**
833             * Gets the group local service.
834             *
835             * @return the group local service
836             */
837            public GroupLocalService getGroupLocalService() {
838                    return groupLocalService;
839            }
840    
841            /**
842             * Sets the group local service.
843             *
844             * @param groupLocalService the group local service
845             */
846            public void setGroupLocalService(GroupLocalService groupLocalService) {
847                    this.groupLocalService = groupLocalService;
848            }
849    
850            /**
851             * Gets the group remote service.
852             *
853             * @return the group remote service
854             */
855            public GroupService getGroupService() {
856                    return groupService;
857            }
858    
859            /**
860             * Sets the group remote service.
861             *
862             * @param groupService the group remote service
863             */
864            public void setGroupService(GroupService groupService) {
865                    this.groupService = groupService;
866            }
867    
868            /**
869             * Gets the group persistence.
870             *
871             * @return the group persistence
872             */
873            public GroupPersistence getGroupPersistence() {
874                    return groupPersistence;
875            }
876    
877            /**
878             * Sets the group persistence.
879             *
880             * @param groupPersistence the group persistence
881             */
882            public void setGroupPersistence(GroupPersistence groupPersistence) {
883                    this.groupPersistence = groupPersistence;
884            }
885    
886            /**
887             * Gets the group finder.
888             *
889             * @return the group finder
890             */
891            public GroupFinder getGroupFinder() {
892                    return groupFinder;
893            }
894    
895            /**
896             * Sets the group finder.
897             *
898             * @param groupFinder the group finder
899             */
900            public void setGroupFinder(GroupFinder groupFinder) {
901                    this.groupFinder = groupFinder;
902            }
903    
904            /**
905             * Gets the resource local service.
906             *
907             * @return the resource local service
908             */
909            public ResourceLocalService getResourceLocalService() {
910                    return resourceLocalService;
911            }
912    
913            /**
914             * Sets the resource local service.
915             *
916             * @param resourceLocalService the resource local service
917             */
918            public void setResourceLocalService(
919                    ResourceLocalService resourceLocalService) {
920                    this.resourceLocalService = resourceLocalService;
921            }
922    
923            /**
924             * Gets the resource remote service.
925             *
926             * @return the resource remote service
927             */
928            public ResourceService getResourceService() {
929                    return resourceService;
930            }
931    
932            /**
933             * Sets the resource remote service.
934             *
935             * @param resourceService the resource remote service
936             */
937            public void setResourceService(ResourceService resourceService) {
938                    this.resourceService = resourceService;
939            }
940    
941            /**
942             * Gets the resource persistence.
943             *
944             * @return the resource persistence
945             */
946            public ResourcePersistence getResourcePersistence() {
947                    return resourcePersistence;
948            }
949    
950            /**
951             * Sets the resource persistence.
952             *
953             * @param resourcePersistence the resource persistence
954             */
955            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
956                    this.resourcePersistence = resourcePersistence;
957            }
958    
959            /**
960             * Gets the resource finder.
961             *
962             * @return the resource finder
963             */
964            public ResourceFinder getResourceFinder() {
965                    return resourceFinder;
966            }
967    
968            /**
969             * Sets the resource finder.
970             *
971             * @param resourceFinder the resource finder
972             */
973            public void setResourceFinder(ResourceFinder resourceFinder) {
974                    this.resourceFinder = resourceFinder;
975            }
976    
977            /**
978             * Gets the user local service.
979             *
980             * @return the user local service
981             */
982            public UserLocalService getUserLocalService() {
983                    return userLocalService;
984            }
985    
986            /**
987             * Sets the user local service.
988             *
989             * @param userLocalService the user local service
990             */
991            public void setUserLocalService(UserLocalService userLocalService) {
992                    this.userLocalService = userLocalService;
993            }
994    
995            /**
996             * Gets the user remote service.
997             *
998             * @return the user remote service
999             */
1000            public UserService getUserService() {
1001                    return userService;
1002            }
1003    
1004            /**
1005             * Sets the user remote service.
1006             *
1007             * @param userService the user remote service
1008             */
1009            public void setUserService(UserService userService) {
1010                    this.userService = userService;
1011            }
1012    
1013            /**
1014             * Gets the user persistence.
1015             *
1016             * @return the user persistence
1017             */
1018            public UserPersistence getUserPersistence() {
1019                    return userPersistence;
1020            }
1021    
1022            /**
1023             * Sets the user persistence.
1024             *
1025             * @param userPersistence the user persistence
1026             */
1027            public void setUserPersistence(UserPersistence userPersistence) {
1028                    this.userPersistence = userPersistence;
1029            }
1030    
1031            /**
1032             * Gets the user finder.
1033             *
1034             * @return the user finder
1035             */
1036            public UserFinder getUserFinder() {
1037                    return userFinder;
1038            }
1039    
1040            /**
1041             * Sets the user finder.
1042             *
1043             * @param userFinder the user finder
1044             */
1045            public void setUserFinder(UserFinder userFinder) {
1046                    this.userFinder = userFinder;
1047            }
1048    
1049            /**
1050             * Performs an SQL query.
1051             *
1052             * @param sql the sql query to perform
1053             */
1054            protected void runSQL(String sql) throws SystemException {
1055                    try {
1056                            DataSource dataSource = assetVocabularyPersistence.getDataSource();
1057    
1058                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1059                                            sql, new int[0]);
1060    
1061                            sqlUpdate.update();
1062                    }
1063                    catch (Exception e) {
1064                            throw new SystemException(e);
1065                    }
1066            }
1067    
1068            @BeanReference(type = AssetCategoryLocalService.class)
1069            protected AssetCategoryLocalService assetCategoryLocalService;
1070            @BeanReference(type = AssetCategoryService.class)
1071            protected AssetCategoryService assetCategoryService;
1072            @BeanReference(type = AssetCategoryPersistence.class)
1073            protected AssetCategoryPersistence assetCategoryPersistence;
1074            @BeanReference(type = AssetCategoryFinder.class)
1075            protected AssetCategoryFinder assetCategoryFinder;
1076            @BeanReference(type = AssetCategoryPropertyLocalService.class)
1077            protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
1078            @BeanReference(type = AssetCategoryPropertyService.class)
1079            protected AssetCategoryPropertyService assetCategoryPropertyService;
1080            @BeanReference(type = AssetCategoryPropertyPersistence.class)
1081            protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
1082            @BeanReference(type = AssetCategoryPropertyFinder.class)
1083            protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
1084            @BeanReference(type = AssetEntryLocalService.class)
1085            protected AssetEntryLocalService assetEntryLocalService;
1086            @BeanReference(type = AssetEntryService.class)
1087            protected AssetEntryService assetEntryService;
1088            @BeanReference(type = AssetEntryPersistence.class)
1089            protected AssetEntryPersistence assetEntryPersistence;
1090            @BeanReference(type = AssetEntryFinder.class)
1091            protected AssetEntryFinder assetEntryFinder;
1092            @BeanReference(type = AssetLinkLocalService.class)
1093            protected AssetLinkLocalService assetLinkLocalService;
1094            @BeanReference(type = AssetLinkPersistence.class)
1095            protected AssetLinkPersistence assetLinkPersistence;
1096            @BeanReference(type = AssetTagLocalService.class)
1097            protected AssetTagLocalService assetTagLocalService;
1098            @BeanReference(type = AssetTagService.class)
1099            protected AssetTagService assetTagService;
1100            @BeanReference(type = AssetTagPersistence.class)
1101            protected AssetTagPersistence assetTagPersistence;
1102            @BeanReference(type = AssetTagFinder.class)
1103            protected AssetTagFinder assetTagFinder;
1104            @BeanReference(type = AssetTagPropertyLocalService.class)
1105            protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1106            @BeanReference(type = AssetTagPropertyService.class)
1107            protected AssetTagPropertyService assetTagPropertyService;
1108            @BeanReference(type = AssetTagPropertyPersistence.class)
1109            protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1110            @BeanReference(type = AssetTagPropertyFinder.class)
1111            protected AssetTagPropertyFinder assetTagPropertyFinder;
1112            @BeanReference(type = AssetTagPropertyKeyFinder.class)
1113            protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1114            @BeanReference(type = AssetTagStatsLocalService.class)
1115            protected AssetTagStatsLocalService assetTagStatsLocalService;
1116            @BeanReference(type = AssetTagStatsPersistence.class)
1117            protected AssetTagStatsPersistence assetTagStatsPersistence;
1118            @BeanReference(type = AssetVocabularyLocalService.class)
1119            protected AssetVocabularyLocalService assetVocabularyLocalService;
1120            @BeanReference(type = AssetVocabularyService.class)
1121            protected AssetVocabularyService assetVocabularyService;
1122            @BeanReference(type = AssetVocabularyPersistence.class)
1123            protected AssetVocabularyPersistence assetVocabularyPersistence;
1124            @BeanReference(type = CounterLocalService.class)
1125            protected CounterLocalService counterLocalService;
1126            @BeanReference(type = GroupLocalService.class)
1127            protected GroupLocalService groupLocalService;
1128            @BeanReference(type = GroupService.class)
1129            protected GroupService groupService;
1130            @BeanReference(type = GroupPersistence.class)
1131            protected GroupPersistence groupPersistence;
1132            @BeanReference(type = GroupFinder.class)
1133            protected GroupFinder groupFinder;
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    }