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