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