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