001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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.ResourceService;
035    import com.liferay.portal.service.UserLocalService;
036    import com.liferay.portal.service.UserService;
037    import com.liferay.portal.service.persistence.ResourceFinder;
038    import com.liferay.portal.service.persistence.ResourcePersistence;
039    import com.liferay.portal.service.persistence.UserFinder;
040    import com.liferay.portal.service.persistence.UserPersistence;
041    
042    import com.liferay.portlet.asset.model.AssetTag;
043    import com.liferay.portlet.asset.service.AssetCategoryLocalService;
044    import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
045    import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
046    import com.liferay.portlet.asset.service.AssetCategoryService;
047    import com.liferay.portlet.asset.service.AssetEntryLocalService;
048    import com.liferay.portlet.asset.service.AssetEntryService;
049    import com.liferay.portlet.asset.service.AssetLinkLocalService;
050    import com.liferay.portlet.asset.service.AssetTagLocalService;
051    import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
052    import com.liferay.portlet.asset.service.AssetTagPropertyService;
053    import com.liferay.portlet.asset.service.AssetTagService;
054    import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
055    import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
056    import com.liferay.portlet.asset.service.AssetVocabularyService;
057    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
058    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
059    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
060    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
061    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
062    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
063    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
064    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
065    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
066    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
067    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
068    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
069    import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
070    import com.liferay.portlet.asset.service.persistence.AssetVocabularyFinder;
071    import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
072    
073    import java.io.Serializable;
074    
075    import java.util.List;
076    
077    import javax.sql.DataSource;
078    
079    /**
080     * The base implementation of the asset tag local service.
081     *
082     * <p>
083     * 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}.
084     * </p>
085     *
086     * @author Brian Wing Shun Chan
087     * @see com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl
088     * @see com.liferay.portlet.asset.service.AssetTagLocalServiceUtil
089     * @generated
090     */
091    public abstract class AssetTagLocalServiceBaseImpl extends BaseLocalServiceImpl
092            implements AssetTagLocalService, IdentifiableBean {
093            /*
094             * NOTE FOR DEVELOPERS:
095             *
096             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.asset.service.AssetTagLocalServiceUtil} to access the asset tag local service.
097             */
098    
099            /**
100             * Adds the asset tag to the database. Also notifies the appropriate model listeners.
101             *
102             * @param assetTag the asset tag
103             * @return the asset tag that was added
104             * @throws SystemException if a system exception occurred
105             */
106            @Indexable(type = IndexableType.REINDEX)
107            public AssetTag addAssetTag(AssetTag assetTag) throws SystemException {
108                    assetTag.setNew(true);
109    
110                    return assetTagPersistence.update(assetTag, false);
111            }
112    
113            /**
114             * Creates a new asset tag with the primary key. Does not add the asset tag to the database.
115             *
116             * @param tagId the primary key for the new asset tag
117             * @return the new asset tag
118             */
119            public AssetTag createAssetTag(long tagId) {
120                    return assetTagPersistence.create(tagId);
121            }
122    
123            /**
124             * Deletes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.
125             *
126             * @param tagId the primary key of the asset tag
127             * @return the asset tag that was removed
128             * @throws PortalException if a asset tag with the primary key could not be found
129             * @throws SystemException if a system exception occurred
130             */
131            @Indexable(type = IndexableType.DELETE)
132            public AssetTag deleteAssetTag(long tagId)
133                    throws PortalException, SystemException {
134                    return assetTagPersistence.remove(tagId);
135            }
136    
137            /**
138             * Deletes the asset tag from the database. Also notifies the appropriate model listeners.
139             *
140             * @param assetTag the asset tag
141             * @return the asset tag that was removed
142             * @throws SystemException if a system exception occurred
143             */
144            @Indexable(type = IndexableType.DELETE)
145            public AssetTag deleteAssetTag(AssetTag assetTag) throws SystemException {
146                    return assetTagPersistence.remove(assetTag);
147            }
148    
149            public DynamicQuery dynamicQuery() {
150                    Class<?> clazz = getClass();
151    
152                    return DynamicQueryFactoryUtil.forClass(AssetTag.class,
153                            clazz.getClassLoader());
154            }
155    
156            /**
157             * Performs a dynamic query on the database and returns the matching rows.
158             *
159             * @param dynamicQuery the dynamic query
160             * @return the matching rows
161             * @throws SystemException if a system exception occurred
162             */
163            @SuppressWarnings("rawtypes")
164            public List dynamicQuery(DynamicQuery dynamicQuery)
165                    throws SystemException {
166                    return assetTagPersistence.findWithDynamicQuery(dynamicQuery);
167            }
168    
169            /**
170             * Performs a dynamic query on the database and returns a range of the matching rows.
171             *
172             * <p>
173             * 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.
174             * </p>
175             *
176             * @param dynamicQuery the dynamic query
177             * @param start the lower bound of the range of model instances
178             * @param end the upper bound of the range of model instances (not inclusive)
179             * @return the range of matching rows
180             * @throws SystemException if a system exception occurred
181             */
182            @SuppressWarnings("rawtypes")
183            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
184                    throws SystemException {
185                    return assetTagPersistence.findWithDynamicQuery(dynamicQuery, start, end);
186            }
187    
188            /**
189             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
190             *
191             * <p>
192             * 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.
193             * </p>
194             *
195             * @param dynamicQuery the dynamic query
196             * @param start the lower bound of the range of model instances
197             * @param end the upper bound of the range of model instances (not inclusive)
198             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
199             * @return the ordered range of matching rows
200             * @throws SystemException if a system exception occurred
201             */
202            @SuppressWarnings("rawtypes")
203            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
204                    OrderByComparator orderByComparator) throws SystemException {
205                    return assetTagPersistence.findWithDynamicQuery(dynamicQuery, start,
206                            end, orderByComparator);
207            }
208    
209            /**
210             * Returns the number of rows that match the dynamic query.
211             *
212             * @param dynamicQuery the dynamic query
213             * @return the number of rows that match the dynamic query
214             * @throws SystemException if a system exception occurred
215             */
216            public long dynamicQueryCount(DynamicQuery dynamicQuery)
217                    throws SystemException {
218                    return assetTagPersistence.countWithDynamicQuery(dynamicQuery);
219            }
220    
221            public AssetTag fetchAssetTag(long tagId) throws SystemException {
222                    return assetTagPersistence.fetchByPrimaryKey(tagId);
223            }
224    
225            /**
226             * Returns the asset tag with the primary key.
227             *
228             * @param tagId the primary key of the asset tag
229             * @return the asset tag
230             * @throws PortalException if a asset tag with the primary key could not be found
231             * @throws SystemException if a system exception occurred
232             */
233            public AssetTag getAssetTag(long tagId)
234                    throws PortalException, SystemException {
235                    return assetTagPersistence.findByPrimaryKey(tagId);
236            }
237    
238            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
239                    throws PortalException, SystemException {
240                    return assetTagPersistence.findByPrimaryKey(primaryKeyObj);
241            }
242    
243            /**
244             * Returns a range of all the asset tags.
245             *
246             * <p>
247             * 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.
248             * </p>
249             *
250             * @param start the lower bound of the range of asset tags
251             * @param end the upper bound of the range of asset tags (not inclusive)
252             * @return the range of asset tags
253             * @throws SystemException if a system exception occurred
254             */
255            public List<AssetTag> getAssetTags(int start, int end)
256                    throws SystemException {
257                    return assetTagPersistence.findAll(start, end);
258            }
259    
260            /**
261             * Returns the number of asset tags.
262             *
263             * @return the number of asset tags
264             * @throws SystemException if a system exception occurred
265             */
266            public int getAssetTagsCount() throws SystemException {
267                    return assetTagPersistence.countAll();
268            }
269    
270            /**
271             * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
272             *
273             * @param assetTag the asset tag
274             * @return the asset tag that was updated
275             * @throws SystemException if a system exception occurred
276             */
277            @Indexable(type = IndexableType.REINDEX)
278            public AssetTag updateAssetTag(AssetTag assetTag) throws SystemException {
279                    return updateAssetTag(assetTag, true);
280            }
281    
282            /**
283             * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
284             *
285             * @param assetTag the asset tag
286             * @param merge whether to merge the asset tag 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.
287             * @return the asset tag that was updated
288             * @throws SystemException if a system exception occurred
289             */
290            @Indexable(type = IndexableType.REINDEX)
291            public AssetTag updateAssetTag(AssetTag assetTag, boolean merge)
292                    throws SystemException {
293                    assetTag.setNew(false);
294    
295                    return assetTagPersistence.update(assetTag, merge);
296            }
297    
298            /**
299             * Returns the asset category local service.
300             *
301             * @return the asset category local service
302             */
303            public AssetCategoryLocalService getAssetCategoryLocalService() {
304                    return assetCategoryLocalService;
305            }
306    
307            /**
308             * Sets the asset category local service.
309             *
310             * @param assetCategoryLocalService the asset category local service
311             */
312            public void setAssetCategoryLocalService(
313                    AssetCategoryLocalService assetCategoryLocalService) {
314                    this.assetCategoryLocalService = assetCategoryLocalService;
315            }
316    
317            /**
318             * Returns the asset category remote service.
319             *
320             * @return the asset category remote service
321             */
322            public AssetCategoryService getAssetCategoryService() {
323                    return assetCategoryService;
324            }
325    
326            /**
327             * Sets the asset category remote service.
328             *
329             * @param assetCategoryService the asset category remote service
330             */
331            public void setAssetCategoryService(
332                    AssetCategoryService assetCategoryService) {
333                    this.assetCategoryService = assetCategoryService;
334            }
335    
336            /**
337             * Returns the asset category persistence.
338             *
339             * @return the asset category persistence
340             */
341            public AssetCategoryPersistence getAssetCategoryPersistence() {
342                    return assetCategoryPersistence;
343            }
344    
345            /**
346             * Sets the asset category persistence.
347             *
348             * @param assetCategoryPersistence the asset category persistence
349             */
350            public void setAssetCategoryPersistence(
351                    AssetCategoryPersistence assetCategoryPersistence) {
352                    this.assetCategoryPersistence = assetCategoryPersistence;
353            }
354    
355            /**
356             * Returns the asset category finder.
357             *
358             * @return the asset category finder
359             */
360            public AssetCategoryFinder getAssetCategoryFinder() {
361                    return assetCategoryFinder;
362            }
363    
364            /**
365             * Sets the asset category finder.
366             *
367             * @param assetCategoryFinder the asset category finder
368             */
369            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
370                    this.assetCategoryFinder = assetCategoryFinder;
371            }
372    
373            /**
374             * Returns the asset category property local service.
375             *
376             * @return the asset category property local service
377             */
378            public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
379                    return assetCategoryPropertyLocalService;
380            }
381    
382            /**
383             * Sets the asset category property local service.
384             *
385             * @param assetCategoryPropertyLocalService the asset category property local service
386             */
387            public void setAssetCategoryPropertyLocalService(
388                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
389                    this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
390            }
391    
392            /**
393             * Returns the asset category property remote service.
394             *
395             * @return the asset category property remote service
396             */
397            public AssetCategoryPropertyService getAssetCategoryPropertyService() {
398                    return assetCategoryPropertyService;
399            }
400    
401            /**
402             * Sets the asset category property remote service.
403             *
404             * @param assetCategoryPropertyService the asset category property remote service
405             */
406            public void setAssetCategoryPropertyService(
407                    AssetCategoryPropertyService assetCategoryPropertyService) {
408                    this.assetCategoryPropertyService = assetCategoryPropertyService;
409            }
410    
411            /**
412             * Returns the asset category property persistence.
413             *
414             * @return the asset category property persistence
415             */
416            public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
417                    return assetCategoryPropertyPersistence;
418            }
419    
420            /**
421             * Sets the asset category property persistence.
422             *
423             * @param assetCategoryPropertyPersistence the asset category property persistence
424             */
425            public void setAssetCategoryPropertyPersistence(
426                    AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
427                    this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
428            }
429    
430            /**
431             * Returns the asset category property finder.
432             *
433             * @return the asset category property finder
434             */
435            public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
436                    return assetCategoryPropertyFinder;
437            }
438    
439            /**
440             * Sets the asset category property finder.
441             *
442             * @param assetCategoryPropertyFinder the asset category property finder
443             */
444            public void setAssetCategoryPropertyFinder(
445                    AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
446                    this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
447            }
448    
449            /**
450             * Returns the asset entry local service.
451             *
452             * @return the asset entry local service
453             */
454            public AssetEntryLocalService getAssetEntryLocalService() {
455                    return assetEntryLocalService;
456            }
457    
458            /**
459             * Sets the asset entry local service.
460             *
461             * @param assetEntryLocalService the asset entry local service
462             */
463            public void setAssetEntryLocalService(
464                    AssetEntryLocalService assetEntryLocalService) {
465                    this.assetEntryLocalService = assetEntryLocalService;
466            }
467    
468            /**
469             * Returns the asset entry remote service.
470             *
471             * @return the asset entry remote service
472             */
473            public AssetEntryService getAssetEntryService() {
474                    return assetEntryService;
475            }
476    
477            /**
478             * Sets the asset entry remote service.
479             *
480             * @param assetEntryService the asset entry remote service
481             */
482            public void setAssetEntryService(AssetEntryService assetEntryService) {
483                    this.assetEntryService = assetEntryService;
484            }
485    
486            /**
487             * Returns the asset entry persistence.
488             *
489             * @return the asset entry persistence
490             */
491            public AssetEntryPersistence getAssetEntryPersistence() {
492                    return assetEntryPersistence;
493            }
494    
495            /**
496             * Sets the asset entry persistence.
497             *
498             * @param assetEntryPersistence the asset entry persistence
499             */
500            public void setAssetEntryPersistence(
501                    AssetEntryPersistence assetEntryPersistence) {
502                    this.assetEntryPersistence = assetEntryPersistence;
503            }
504    
505            /**
506             * Returns the asset entry finder.
507             *
508             * @return the asset entry finder
509             */
510            public AssetEntryFinder getAssetEntryFinder() {
511                    return assetEntryFinder;
512            }
513    
514            /**
515             * Sets the asset entry finder.
516             *
517             * @param assetEntryFinder the asset entry finder
518             */
519            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
520                    this.assetEntryFinder = assetEntryFinder;
521            }
522    
523            /**
524             * Returns the asset link local service.
525             *
526             * @return the asset link local service
527             */
528            public AssetLinkLocalService getAssetLinkLocalService() {
529                    return assetLinkLocalService;
530            }
531    
532            /**
533             * Sets the asset link local service.
534             *
535             * @param assetLinkLocalService the asset link local service
536             */
537            public void setAssetLinkLocalService(
538                    AssetLinkLocalService assetLinkLocalService) {
539                    this.assetLinkLocalService = assetLinkLocalService;
540            }
541    
542            /**
543             * Returns the asset link persistence.
544             *
545             * @return the asset link persistence
546             */
547            public AssetLinkPersistence getAssetLinkPersistence() {
548                    return assetLinkPersistence;
549            }
550    
551            /**
552             * Sets the asset link persistence.
553             *
554             * @param assetLinkPersistence the asset link persistence
555             */
556            public void setAssetLinkPersistence(
557                    AssetLinkPersistence assetLinkPersistence) {
558                    this.assetLinkPersistence = assetLinkPersistence;
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 resource remote service.
882             *
883             * @return the resource remote service
884             */
885            public ResourceService getResourceService() {
886                    return resourceService;
887            }
888    
889            /**
890             * Sets the resource remote service.
891             *
892             * @param resourceService the resource remote service
893             */
894            public void setResourceService(ResourceService resourceService) {
895                    this.resourceService = resourceService;
896            }
897    
898            /**
899             * Returns the resource persistence.
900             *
901             * @return the resource persistence
902             */
903            public ResourcePersistence getResourcePersistence() {
904                    return resourcePersistence;
905            }
906    
907            /**
908             * Sets the resource persistence.
909             *
910             * @param resourcePersistence the resource persistence
911             */
912            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
913                    this.resourcePersistence = resourcePersistence;
914            }
915    
916            /**
917             * Returns the resource finder.
918             *
919             * @return the resource finder
920             */
921            public ResourceFinder getResourceFinder() {
922                    return resourceFinder;
923            }
924    
925            /**
926             * Sets the resource finder.
927             *
928             * @param resourceFinder the resource finder
929             */
930            public void setResourceFinder(ResourceFinder resourceFinder) {
931                    this.resourceFinder = resourceFinder;
932            }
933    
934            /**
935             * Returns the user local service.
936             *
937             * @return the user local service
938             */
939            public UserLocalService getUserLocalService() {
940                    return userLocalService;
941            }
942    
943            /**
944             * Sets the user local service.
945             *
946             * @param userLocalService the user local service
947             */
948            public void setUserLocalService(UserLocalService userLocalService) {
949                    this.userLocalService = userLocalService;
950            }
951    
952            /**
953             * Returns the user remote service.
954             *
955             * @return the user remote service
956             */
957            public UserService getUserService() {
958                    return userService;
959            }
960    
961            /**
962             * Sets the user remote service.
963             *
964             * @param userService the user remote service
965             */
966            public void setUserService(UserService userService) {
967                    this.userService = userService;
968            }
969    
970            /**
971             * Returns the user persistence.
972             *
973             * @return the user persistence
974             */
975            public UserPersistence getUserPersistence() {
976                    return userPersistence;
977            }
978    
979            /**
980             * Sets the user persistence.
981             *
982             * @param userPersistence the user persistence
983             */
984            public void setUserPersistence(UserPersistence userPersistence) {
985                    this.userPersistence = userPersistence;
986            }
987    
988            /**
989             * Returns the user finder.
990             *
991             * @return the user finder
992             */
993            public UserFinder getUserFinder() {
994                    return userFinder;
995            }
996    
997            /**
998             * Sets the user finder.
999             *
1000             * @param userFinder the user finder
1001             */
1002            public void setUserFinder(UserFinder userFinder) {
1003                    this.userFinder = userFinder;
1004            }
1005    
1006            public void afterPropertiesSet() {
1007                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.asset.model.AssetTag",
1008                            assetTagLocalService);
1009            }
1010    
1011            public void destroy() {
1012                    persistedModelLocalServiceRegistry.unregister(
1013                            "com.liferay.portlet.asset.model.AssetTag");
1014            }
1015    
1016            /**
1017             * Returns the Spring bean ID for this bean.
1018             *
1019             * @return the Spring bean ID for this bean
1020             */
1021            public String getBeanIdentifier() {
1022                    return _beanIdentifier;
1023            }
1024    
1025            /**
1026             * Sets the Spring bean ID for this bean.
1027             *
1028             * @param beanIdentifier the Spring bean ID for this bean
1029             */
1030            public void setBeanIdentifier(String beanIdentifier) {
1031                    _beanIdentifier = beanIdentifier;
1032            }
1033    
1034            protected Class<?> getModelClass() {
1035                    return AssetTag.class;
1036            }
1037    
1038            protected String getModelClassName() {
1039                    return AssetTag.class.getName();
1040            }
1041    
1042            /**
1043             * Performs an SQL query.
1044             *
1045             * @param sql the sql query
1046             */
1047            protected void runSQL(String sql) throws SystemException {
1048                    try {
1049                            DataSource dataSource = assetTagPersistence.getDataSource();
1050    
1051                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1052                                            sql, new int[0]);
1053    
1054                            sqlUpdate.update();
1055                    }
1056                    catch (Exception e) {
1057                            throw new SystemException(e);
1058                    }
1059            }
1060    
1061            @BeanReference(type = AssetCategoryLocalService.class)
1062            protected AssetCategoryLocalService assetCategoryLocalService;
1063            @BeanReference(type = AssetCategoryService.class)
1064            protected AssetCategoryService assetCategoryService;
1065            @BeanReference(type = AssetCategoryPersistence.class)
1066            protected AssetCategoryPersistence assetCategoryPersistence;
1067            @BeanReference(type = AssetCategoryFinder.class)
1068            protected AssetCategoryFinder assetCategoryFinder;
1069            @BeanReference(type = AssetCategoryPropertyLocalService.class)
1070            protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
1071            @BeanReference(type = AssetCategoryPropertyService.class)
1072            protected AssetCategoryPropertyService assetCategoryPropertyService;
1073            @BeanReference(type = AssetCategoryPropertyPersistence.class)
1074            protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
1075            @BeanReference(type = AssetCategoryPropertyFinder.class)
1076            protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
1077            @BeanReference(type = AssetEntryLocalService.class)
1078            protected AssetEntryLocalService assetEntryLocalService;
1079            @BeanReference(type = AssetEntryService.class)
1080            protected AssetEntryService assetEntryService;
1081            @BeanReference(type = AssetEntryPersistence.class)
1082            protected AssetEntryPersistence assetEntryPersistence;
1083            @BeanReference(type = AssetEntryFinder.class)
1084            protected AssetEntryFinder assetEntryFinder;
1085            @BeanReference(type = AssetLinkLocalService.class)
1086            protected AssetLinkLocalService assetLinkLocalService;
1087            @BeanReference(type = AssetLinkPersistence.class)
1088            protected AssetLinkPersistence assetLinkPersistence;
1089            @BeanReference(type = AssetTagLocalService.class)
1090            protected AssetTagLocalService assetTagLocalService;
1091            @BeanReference(type = AssetTagService.class)
1092            protected AssetTagService assetTagService;
1093            @BeanReference(type = AssetTagPersistence.class)
1094            protected AssetTagPersistence assetTagPersistence;
1095            @BeanReference(type = AssetTagFinder.class)
1096            protected AssetTagFinder assetTagFinder;
1097            @BeanReference(type = AssetTagPropertyLocalService.class)
1098            protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1099            @BeanReference(type = AssetTagPropertyService.class)
1100            protected AssetTagPropertyService assetTagPropertyService;
1101            @BeanReference(type = AssetTagPropertyPersistence.class)
1102            protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1103            @BeanReference(type = AssetTagPropertyFinder.class)
1104            protected AssetTagPropertyFinder assetTagPropertyFinder;
1105            @BeanReference(type = AssetTagPropertyKeyFinder.class)
1106            protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1107            @BeanReference(type = AssetTagStatsLocalService.class)
1108            protected AssetTagStatsLocalService assetTagStatsLocalService;
1109            @BeanReference(type = AssetTagStatsPersistence.class)
1110            protected AssetTagStatsPersistence assetTagStatsPersistence;
1111            @BeanReference(type = AssetVocabularyLocalService.class)
1112            protected AssetVocabularyLocalService assetVocabularyLocalService;
1113            @BeanReference(type = AssetVocabularyService.class)
1114            protected AssetVocabularyService assetVocabularyService;
1115            @BeanReference(type = AssetVocabularyPersistence.class)
1116            protected AssetVocabularyPersistence assetVocabularyPersistence;
1117            @BeanReference(type = AssetVocabularyFinder.class)
1118            protected AssetVocabularyFinder assetVocabularyFinder;
1119            @BeanReference(type = CounterLocalService.class)
1120            protected CounterLocalService counterLocalService;
1121            @BeanReference(type = ResourceLocalService.class)
1122            protected ResourceLocalService resourceLocalService;
1123            @BeanReference(type = ResourceService.class)
1124            protected ResourceService resourceService;
1125            @BeanReference(type = ResourcePersistence.class)
1126            protected ResourcePersistence resourcePersistence;
1127            @BeanReference(type = ResourceFinder.class)
1128            protected ResourceFinder resourceFinder;
1129            @BeanReference(type = UserLocalService.class)
1130            protected UserLocalService userLocalService;
1131            @BeanReference(type = UserService.class)
1132            protected UserService userService;
1133            @BeanReference(type = UserPersistence.class)
1134            protected UserPersistence userPersistence;
1135            @BeanReference(type = UserFinder.class)
1136            protected UserFinder userFinder;
1137            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1138            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1139            private String _beanIdentifier;
1140    }