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