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