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.ResourceService;
035    import com.liferay.portal.service.UserLocalService;
036    import com.liferay.portal.service.UserService;
037    import com.liferay.portal.service.persistence.ResourceFinder;
038    import com.liferay.portal.service.persistence.ResourcePersistence;
039    import com.liferay.portal.service.persistence.UserFinder;
040    import com.liferay.portal.service.persistence.UserPersistence;
041    
042    import com.liferay.portlet.asset.model.AssetTag;
043    import com.liferay.portlet.asset.service.AssetCategoryLocalService;
044    import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
045    import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
046    import com.liferay.portlet.asset.service.AssetCategoryService;
047    import com.liferay.portlet.asset.service.AssetEntryLocalService;
048    import com.liferay.portlet.asset.service.AssetEntryService;
049    import com.liferay.portlet.asset.service.AssetLinkLocalService;
050    import com.liferay.portlet.asset.service.AssetTagLocalService;
051    import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
052    import com.liferay.portlet.asset.service.AssetTagPropertyService;
053    import com.liferay.portlet.asset.service.AssetTagService;
054    import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
055    import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
056    import com.liferay.portlet.asset.service.AssetVocabularyService;
057    import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
058    import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
059    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
060    import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
061    import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
062    import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
063    import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
064    import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
065    import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
066    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
067    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
068    import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
069    import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
070    import com.liferay.portlet.asset.service.persistence.AssetVocabularyFinder;
071    import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
072    
073    import java.io.Serializable;
074    
075    import java.util.List;
076    
077    import javax.sql.DataSource;
078    
079    /**
080     * The base implementation of the asset tag local service.
081     *
082     * <p>
083     * This implementation exists only as a container for the default service methods generated by ServiceBuilder. All custom service methods should be put in {@link com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl}.
084     * </p>
085     *
086     * @author Brian Wing Shun Chan
087     * @see com.liferay.portlet.asset.service.impl.AssetTagLocalServiceImpl
088     * @see com.liferay.portlet.asset.service.AssetTagLocalServiceUtil
089     * @generated
090     */
091    public abstract class AssetTagLocalServiceBaseImpl extends BaseLocalServiceImpl
092            implements AssetTagLocalService, IdentifiableBean {
093            /*
094             * NOTE FOR DEVELOPERS:
095             *
096             * Never modify or reference this class directly. Always use {@link com.liferay.portlet.asset.service.AssetTagLocalServiceUtil} to access the asset tag local service.
097             */
098    
099            /**
100             * Adds the asset tag to the database. Also notifies the appropriate model listeners.
101             *
102             * @param assetTag the asset tag
103             * @return the asset tag that was added
104             * @throws SystemException if a system exception occurred
105             */
106            @Indexable(type = IndexableType.REINDEX)
107            public AssetTag addAssetTag(AssetTag assetTag) throws SystemException {
108                    assetTag.setNew(true);
109    
110                    return assetTagPersistence.update(assetTag, false);
111            }
112    
113            /**
114             * Creates a new asset tag with the primary key. Does not add the asset tag to the database.
115             *
116             * @param tagId the primary key for the new asset tag
117             * @return the new asset tag
118             */
119            public AssetTag createAssetTag(long tagId) {
120                    return assetTagPersistence.create(tagId);
121            }
122    
123            /**
124             * Deletes the asset tag with the primary key from the database. Also notifies the appropriate model listeners.
125             *
126             * @param tagId the primary key of the asset tag
127             * @return the asset tag that was removed
128             * @throws PortalException if a asset tag with the primary key could not be found
129             * @throws SystemException if a system exception occurred
130             */
131            @Indexable(type = IndexableType.DELETE)
132            public AssetTag deleteAssetTag(long tagId)
133                    throws PortalException, SystemException {
134                    return assetTagPersistence.remove(tagId);
135            }
136    
137            /**
138             * Deletes the asset tag from the database. Also notifies the appropriate model listeners.
139             *
140             * @param assetTag the asset tag
141             * @return the asset tag that was removed
142             * @throws SystemException if a system exception occurred
143             */
144            @Indexable(type = IndexableType.DELETE)
145            public AssetTag deleteAssetTag(AssetTag assetTag) throws SystemException {
146                    return assetTagPersistence.remove(assetTag);
147            }
148    
149            public DynamicQuery dynamicQuery() {
150                    Class<?> clazz = getClass();
151    
152                    return DynamicQueryFactoryUtil.forClass(AssetTag.class,
153                            clazz.getClassLoader());
154            }
155    
156            /**
157             * Performs a dynamic query on the database and returns the matching rows.
158             *
159             * @param dynamicQuery the dynamic query
160             * @return the matching rows
161             * @throws SystemException if a system exception occurred
162             */
163            @SuppressWarnings("rawtypes")
164            public List dynamicQuery(DynamicQuery dynamicQuery)
165                    throws SystemException {
166                    return assetTagPersistence.findWithDynamicQuery(dynamicQuery);
167            }
168    
169            /**
170             * Performs a dynamic query on the database and returns a range of the matching rows.
171             *
172             * <p>
173             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
174             * </p>
175             *
176             * @param dynamicQuery the dynamic query
177             * @param start the lower bound of the range of model instances
178             * @param end the upper bound of the range of model instances (not inclusive)
179             * @return the range of matching rows
180             * @throws SystemException if a system exception occurred
181             */
182            @SuppressWarnings("rawtypes")
183            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end)
184                    throws SystemException {
185                    return assetTagPersistence.findWithDynamicQuery(dynamicQuery, start, end);
186            }
187    
188            /**
189             * Performs a dynamic query on the database and returns an ordered range of the matching rows.
190             *
191             * <p>
192             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
193             * </p>
194             *
195             * @param dynamicQuery the dynamic query
196             * @param start the lower bound of the range of model instances
197             * @param end the upper bound of the range of model instances (not inclusive)
198             * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
199             * @return the ordered range of matching rows
200             * @throws SystemException if a system exception occurred
201             */
202            @SuppressWarnings("rawtypes")
203            public List dynamicQuery(DynamicQuery dynamicQuery, int start, int end,
204                    OrderByComparator orderByComparator) throws SystemException {
205                    return assetTagPersistence.findWithDynamicQuery(dynamicQuery, start,
206                            end, orderByComparator);
207            }
208    
209            /**
210             * Returns the number of rows that match the dynamic query.
211             *
212             * @param dynamicQuery the dynamic query
213             * @return the number of rows that match the dynamic query
214             * @throws SystemException if a system exception occurred
215             */
216            public long dynamicQueryCount(DynamicQuery dynamicQuery)
217                    throws SystemException {
218                    return assetTagPersistence.countWithDynamicQuery(dynamicQuery);
219            }
220    
221            public AssetTag fetchAssetTag(long tagId) throws SystemException {
222                    return assetTagPersistence.fetchByPrimaryKey(tagId);
223            }
224    
225            /**
226             * Returns the asset tag with the primary key.
227             *
228             * @param tagId the primary key of the asset tag
229             * @return the asset tag
230             * @throws PortalException if a asset tag with the primary key could not be found
231             * @throws SystemException if a system exception occurred
232             */
233            public AssetTag getAssetTag(long tagId)
234                    throws PortalException, SystemException {
235                    return assetTagPersistence.findByPrimaryKey(tagId);
236            }
237    
238            public PersistedModel getPersistedModel(Serializable primaryKeyObj)
239                    throws PortalException, SystemException {
240                    return assetTagPersistence.findByPrimaryKey(primaryKeyObj);
241            }
242    
243            /**
244             * Returns a range of all the asset tags.
245             *
246             * <p>
247             * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
248             * </p>
249             *
250             * @param start the lower bound of the range of asset tags
251             * @param end the upper bound of the range of asset tags (not inclusive)
252             * @return the range of asset tags
253             * @throws SystemException if a system exception occurred
254             */
255            public List<AssetTag> getAssetTags(int start, int end)
256                    throws SystemException {
257                    return assetTagPersistence.findAll(start, end);
258            }
259    
260            /**
261             * Returns the number of asset tags.
262             *
263             * @return the number of asset tags
264             * @throws SystemException if a system exception occurred
265             */
266            public int getAssetTagsCount() throws SystemException {
267                    return assetTagPersistence.countAll();
268            }
269    
270            /**
271             * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
272             *
273             * @param assetTag the asset tag
274             * @return the asset tag that was updated
275             * @throws SystemException if a system exception occurred
276             */
277            @Indexable(type = IndexableType.REINDEX)
278            public AssetTag updateAssetTag(AssetTag assetTag) throws SystemException {
279                    return updateAssetTag(assetTag, true);
280            }
281    
282            /**
283             * Updates the asset tag in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
284             *
285             * @param assetTag the asset tag
286             * @param merge whether to merge the asset tag with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
287             * @return the asset tag that was updated
288             * @throws SystemException if a system exception occurred
289             */
290            @Indexable(type = IndexableType.REINDEX)
291            public AssetTag updateAssetTag(AssetTag assetTag, boolean merge)
292                    throws SystemException {
293                    assetTag.setNew(false);
294    
295                    return assetTagPersistence.update(assetTag, merge);
296            }
297    
298            /**
299             * @throws SystemException if a system exception occurred
300             */
301            public void addAssetEntryAssetTag(long entryId, long tagId)
302                    throws SystemException {
303                    assetEntryPersistence.addAssetTag(entryId, tagId);
304            }
305    
306            /**
307             * @throws SystemException if a system exception occurred
308             */
309            public void addAssetEntryAssetTag(long entryId, AssetTag assetTag)
310                    throws SystemException {
311                    assetEntryPersistence.addAssetTag(entryId, assetTag);
312            }
313    
314            /**
315             * @throws SystemException if a system exception occurred
316             */
317            public void addAssetEntryAssetTags(long entryId, long[] tagIds)
318                    throws SystemException {
319                    assetEntryPersistence.addAssetTags(entryId, tagIds);
320            }
321    
322            /**
323             * @throws SystemException if a system exception occurred
324             */
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            public void clearAssetEntryAssetTags(long entryId)
334                    throws SystemException {
335                    assetEntryPersistence.clearAssetTags(entryId);
336            }
337    
338            /**
339             * @throws SystemException if a system exception occurred
340             */
341            public void deleteAssetEntryAssetTag(long entryId, long tagId)
342                    throws SystemException {
343                    assetEntryPersistence.removeAssetTag(entryId, tagId);
344            }
345    
346            /**
347             * @throws SystemException if a system exception occurred
348             */
349            public void deleteAssetEntryAssetTag(long entryId, AssetTag assetTag)
350                    throws SystemException {
351                    assetEntryPersistence.removeAssetTag(entryId, assetTag);
352            }
353    
354            /**
355             * @throws SystemException if a system exception occurred
356             */
357            public void deleteAssetEntryAssetTags(long entryId, long[] tagIds)
358                    throws SystemException {
359                    assetEntryPersistence.removeAssetTags(entryId, tagIds);
360            }
361    
362            /**
363             * @throws SystemException if a system exception occurred
364             */
365            public void deleteAssetEntryAssetTags(long entryId, List<AssetTag> AssetTags)
366                    throws SystemException {
367                    assetEntryPersistence.removeAssetTags(entryId, AssetTags);
368            }
369    
370            /**
371             * @throws SystemException if a system exception occurred
372             */
373            public List<AssetTag> getAssetEntryAssetTags(long entryId)
374                    throws SystemException {
375                    return assetEntryPersistence.getAssetTags(entryId);
376            }
377    
378            /**
379             * @throws SystemException if a system exception occurred
380             */
381            public List<AssetTag> getAssetEntryAssetTags(long entryId, int start,
382                    int end) throws SystemException {
383                    return assetEntryPersistence.getAssetTags(entryId, start, end);
384            }
385    
386            /**
387             * @throws SystemException if a system exception occurred
388             */
389            public List<AssetTag> getAssetEntryAssetTags(long entryId, int start,
390                    int end, OrderByComparator orderByComparator) throws SystemException {
391                    return assetEntryPersistence.getAssetTags(entryId, start, end,
392                            orderByComparator);
393            }
394    
395            /**
396             * @throws SystemException if a system exception occurred
397             */
398            public int getAssetEntryAssetTagsCount(long entryId)
399                    throws SystemException {
400                    return assetEntryPersistence.getAssetTagsSize(entryId);
401            }
402    
403            /**
404             * @throws SystemException if a system exception occurred
405             */
406            public boolean hasAssetEntryAssetTag(long entryId, long tagId)
407                    throws SystemException {
408                    return assetEntryPersistence.containsAssetTag(entryId, tagId);
409            }
410    
411            /**
412             * @throws SystemException if a system exception occurred
413             */
414            public boolean hasAssetEntryAssetTags(long entryId)
415                    throws SystemException {
416                    return assetEntryPersistence.containsAssetTags(entryId);
417            }
418    
419            /**
420             * @throws SystemException if a system exception occurred
421             */
422            public void setAssetEntryAssetTags(long entryId, long[] tagIds)
423                    throws SystemException {
424                    assetEntryPersistence.setAssetTags(entryId, tagIds);
425            }
426    
427            /**
428             * Returns the asset category local service.
429             *
430             * @return the asset category local service
431             */
432            public AssetCategoryLocalService getAssetCategoryLocalService() {
433                    return assetCategoryLocalService;
434            }
435    
436            /**
437             * Sets the asset category local service.
438             *
439             * @param assetCategoryLocalService the asset category local service
440             */
441            public void setAssetCategoryLocalService(
442                    AssetCategoryLocalService assetCategoryLocalService) {
443                    this.assetCategoryLocalService = assetCategoryLocalService;
444            }
445    
446            /**
447             * Returns the asset category remote service.
448             *
449             * @return the asset category remote service
450             */
451            public AssetCategoryService getAssetCategoryService() {
452                    return assetCategoryService;
453            }
454    
455            /**
456             * Sets the asset category remote service.
457             *
458             * @param assetCategoryService the asset category remote service
459             */
460            public void setAssetCategoryService(
461                    AssetCategoryService assetCategoryService) {
462                    this.assetCategoryService = assetCategoryService;
463            }
464    
465            /**
466             * Returns the asset category persistence.
467             *
468             * @return the asset category persistence
469             */
470            public AssetCategoryPersistence getAssetCategoryPersistence() {
471                    return assetCategoryPersistence;
472            }
473    
474            /**
475             * Sets the asset category persistence.
476             *
477             * @param assetCategoryPersistence the asset category persistence
478             */
479            public void setAssetCategoryPersistence(
480                    AssetCategoryPersistence assetCategoryPersistence) {
481                    this.assetCategoryPersistence = assetCategoryPersistence;
482            }
483    
484            /**
485             * Returns the asset category finder.
486             *
487             * @return the asset category finder
488             */
489            public AssetCategoryFinder getAssetCategoryFinder() {
490                    return assetCategoryFinder;
491            }
492    
493            /**
494             * Sets the asset category finder.
495             *
496             * @param assetCategoryFinder the asset category finder
497             */
498            public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
499                    this.assetCategoryFinder = assetCategoryFinder;
500            }
501    
502            /**
503             * Returns the asset category property local service.
504             *
505             * @return the asset category property local service
506             */
507            public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
508                    return assetCategoryPropertyLocalService;
509            }
510    
511            /**
512             * Sets the asset category property local service.
513             *
514             * @param assetCategoryPropertyLocalService the asset category property local service
515             */
516            public void setAssetCategoryPropertyLocalService(
517                    AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
518                    this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
519            }
520    
521            /**
522             * Returns the asset category property remote service.
523             *
524             * @return the asset category property remote service
525             */
526            public AssetCategoryPropertyService getAssetCategoryPropertyService() {
527                    return assetCategoryPropertyService;
528            }
529    
530            /**
531             * Sets the asset category property remote service.
532             *
533             * @param assetCategoryPropertyService the asset category property remote service
534             */
535            public void setAssetCategoryPropertyService(
536                    AssetCategoryPropertyService assetCategoryPropertyService) {
537                    this.assetCategoryPropertyService = assetCategoryPropertyService;
538            }
539    
540            /**
541             * Returns the asset category property persistence.
542             *
543             * @return the asset category property persistence
544             */
545            public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
546                    return assetCategoryPropertyPersistence;
547            }
548    
549            /**
550             * Sets the asset category property persistence.
551             *
552             * @param assetCategoryPropertyPersistence the asset category property persistence
553             */
554            public void setAssetCategoryPropertyPersistence(
555                    AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
556                    this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
557            }
558    
559            /**
560             * Returns the asset category property finder.
561             *
562             * @return the asset category property finder
563             */
564            public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
565                    return assetCategoryPropertyFinder;
566            }
567    
568            /**
569             * Sets the asset category property finder.
570             *
571             * @param assetCategoryPropertyFinder the asset category property finder
572             */
573            public void setAssetCategoryPropertyFinder(
574                    AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
575                    this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
576            }
577    
578            /**
579             * Returns the asset entry local service.
580             *
581             * @return the asset entry local service
582             */
583            public AssetEntryLocalService getAssetEntryLocalService() {
584                    return assetEntryLocalService;
585            }
586    
587            /**
588             * Sets the asset entry local service.
589             *
590             * @param assetEntryLocalService the asset entry local service
591             */
592            public void setAssetEntryLocalService(
593                    AssetEntryLocalService assetEntryLocalService) {
594                    this.assetEntryLocalService = assetEntryLocalService;
595            }
596    
597            /**
598             * Returns the asset entry remote service.
599             *
600             * @return the asset entry remote service
601             */
602            public AssetEntryService getAssetEntryService() {
603                    return assetEntryService;
604            }
605    
606            /**
607             * Sets the asset entry remote service.
608             *
609             * @param assetEntryService the asset entry remote service
610             */
611            public void setAssetEntryService(AssetEntryService assetEntryService) {
612                    this.assetEntryService = assetEntryService;
613            }
614    
615            /**
616             * Returns the asset entry persistence.
617             *
618             * @return the asset entry persistence
619             */
620            public AssetEntryPersistence getAssetEntryPersistence() {
621                    return assetEntryPersistence;
622            }
623    
624            /**
625             * Sets the asset entry persistence.
626             *
627             * @param assetEntryPersistence the asset entry persistence
628             */
629            public void setAssetEntryPersistence(
630                    AssetEntryPersistence assetEntryPersistence) {
631                    this.assetEntryPersistence = assetEntryPersistence;
632            }
633    
634            /**
635             * Returns the asset entry finder.
636             *
637             * @return the asset entry finder
638             */
639            public AssetEntryFinder getAssetEntryFinder() {
640                    return assetEntryFinder;
641            }
642    
643            /**
644             * Sets the asset entry finder.
645             *
646             * @param assetEntryFinder the asset entry finder
647             */
648            public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
649                    this.assetEntryFinder = assetEntryFinder;
650            }
651    
652            /**
653             * Returns the asset link local service.
654             *
655             * @return the asset link local service
656             */
657            public AssetLinkLocalService getAssetLinkLocalService() {
658                    return assetLinkLocalService;
659            }
660    
661            /**
662             * Sets the asset link local service.
663             *
664             * @param assetLinkLocalService the asset link local service
665             */
666            public void setAssetLinkLocalService(
667                    AssetLinkLocalService assetLinkLocalService) {
668                    this.assetLinkLocalService = assetLinkLocalService;
669            }
670    
671            /**
672             * Returns the asset link persistence.
673             *
674             * @return the asset link persistence
675             */
676            public AssetLinkPersistence getAssetLinkPersistence() {
677                    return assetLinkPersistence;
678            }
679    
680            /**
681             * Sets the asset link persistence.
682             *
683             * @param assetLinkPersistence the asset link persistence
684             */
685            public void setAssetLinkPersistence(
686                    AssetLinkPersistence assetLinkPersistence) {
687                    this.assetLinkPersistence = assetLinkPersistence;
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 resource remote service.
1011             *
1012             * @return the resource remote service
1013             */
1014            public ResourceService getResourceService() {
1015                    return resourceService;
1016            }
1017    
1018            /**
1019             * Sets the resource remote service.
1020             *
1021             * @param resourceService the resource remote service
1022             */
1023            public void setResourceService(ResourceService resourceService) {
1024                    this.resourceService = resourceService;
1025            }
1026    
1027            /**
1028             * Returns the resource persistence.
1029             *
1030             * @return the resource persistence
1031             */
1032            public ResourcePersistence getResourcePersistence() {
1033                    return resourcePersistence;
1034            }
1035    
1036            /**
1037             * Sets the resource persistence.
1038             *
1039             * @param resourcePersistence the resource persistence
1040             */
1041            public void setResourcePersistence(ResourcePersistence resourcePersistence) {
1042                    this.resourcePersistence = resourcePersistence;
1043            }
1044    
1045            /**
1046             * Returns the resource finder.
1047             *
1048             * @return the resource finder
1049             */
1050            public ResourceFinder getResourceFinder() {
1051                    return resourceFinder;
1052            }
1053    
1054            /**
1055             * Sets the resource finder.
1056             *
1057             * @param resourceFinder the resource finder
1058             */
1059            public void setResourceFinder(ResourceFinder resourceFinder) {
1060                    this.resourceFinder = resourceFinder;
1061            }
1062    
1063            /**
1064             * Returns the user local service.
1065             *
1066             * @return the user local service
1067             */
1068            public UserLocalService getUserLocalService() {
1069                    return userLocalService;
1070            }
1071    
1072            /**
1073             * Sets the user local service.
1074             *
1075             * @param userLocalService the user local service
1076             */
1077            public void setUserLocalService(UserLocalService userLocalService) {
1078                    this.userLocalService = userLocalService;
1079            }
1080    
1081            /**
1082             * Returns the user remote service.
1083             *
1084             * @return the user remote service
1085             */
1086            public UserService getUserService() {
1087                    return userService;
1088            }
1089    
1090            /**
1091             * Sets the user remote service.
1092             *
1093             * @param userService the user remote service
1094             */
1095            public void setUserService(UserService userService) {
1096                    this.userService = userService;
1097            }
1098    
1099            /**
1100             * Returns the user persistence.
1101             *
1102             * @return the user persistence
1103             */
1104            public UserPersistence getUserPersistence() {
1105                    return userPersistence;
1106            }
1107    
1108            /**
1109             * Sets the user persistence.
1110             *
1111             * @param userPersistence the user persistence
1112             */
1113            public void setUserPersistence(UserPersistence userPersistence) {
1114                    this.userPersistence = userPersistence;
1115            }
1116    
1117            /**
1118             * Returns the user finder.
1119             *
1120             * @return the user finder
1121             */
1122            public UserFinder getUserFinder() {
1123                    return userFinder;
1124            }
1125    
1126            /**
1127             * Sets the user finder.
1128             *
1129             * @param userFinder the user finder
1130             */
1131            public void setUserFinder(UserFinder userFinder) {
1132                    this.userFinder = userFinder;
1133            }
1134    
1135            public void afterPropertiesSet() {
1136                    persistedModelLocalServiceRegistry.register("com.liferay.portlet.asset.model.AssetTag",
1137                            assetTagLocalService);
1138            }
1139    
1140            public void destroy() {
1141                    persistedModelLocalServiceRegistry.unregister(
1142                            "com.liferay.portlet.asset.model.AssetTag");
1143            }
1144    
1145            /**
1146             * Returns the Spring bean ID for this bean.
1147             *
1148             * @return the Spring bean ID for this bean
1149             */
1150            public String getBeanIdentifier() {
1151                    return _beanIdentifier;
1152            }
1153    
1154            /**
1155             * Sets the Spring bean ID for this bean.
1156             *
1157             * @param beanIdentifier the Spring bean ID for this bean
1158             */
1159            public void setBeanIdentifier(String beanIdentifier) {
1160                    _beanIdentifier = beanIdentifier;
1161            }
1162    
1163            protected Class<?> getModelClass() {
1164                    return AssetTag.class;
1165            }
1166    
1167            protected String getModelClassName() {
1168                    return AssetTag.class.getName();
1169            }
1170    
1171            /**
1172             * Performs an SQL query.
1173             *
1174             * @param sql the sql query
1175             */
1176            protected void runSQL(String sql) throws SystemException {
1177                    try {
1178                            DataSource dataSource = assetTagPersistence.getDataSource();
1179    
1180                            SqlUpdate sqlUpdate = SqlUpdateFactoryUtil.getSqlUpdate(dataSource,
1181                                            sql, new int[0]);
1182    
1183                            sqlUpdate.update();
1184                    }
1185                    catch (Exception e) {
1186                            throw new SystemException(e);
1187                    }
1188            }
1189    
1190            @BeanReference(type = AssetCategoryLocalService.class)
1191            protected AssetCategoryLocalService assetCategoryLocalService;
1192            @BeanReference(type = AssetCategoryService.class)
1193            protected AssetCategoryService assetCategoryService;
1194            @BeanReference(type = AssetCategoryPersistence.class)
1195            protected AssetCategoryPersistence assetCategoryPersistence;
1196            @BeanReference(type = AssetCategoryFinder.class)
1197            protected AssetCategoryFinder assetCategoryFinder;
1198            @BeanReference(type = AssetCategoryPropertyLocalService.class)
1199            protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
1200            @BeanReference(type = AssetCategoryPropertyService.class)
1201            protected AssetCategoryPropertyService assetCategoryPropertyService;
1202            @BeanReference(type = AssetCategoryPropertyPersistence.class)
1203            protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
1204            @BeanReference(type = AssetCategoryPropertyFinder.class)
1205            protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
1206            @BeanReference(type = AssetEntryLocalService.class)
1207            protected AssetEntryLocalService assetEntryLocalService;
1208            @BeanReference(type = AssetEntryService.class)
1209            protected AssetEntryService assetEntryService;
1210            @BeanReference(type = AssetEntryPersistence.class)
1211            protected AssetEntryPersistence assetEntryPersistence;
1212            @BeanReference(type = AssetEntryFinder.class)
1213            protected AssetEntryFinder assetEntryFinder;
1214            @BeanReference(type = AssetLinkLocalService.class)
1215            protected AssetLinkLocalService assetLinkLocalService;
1216            @BeanReference(type = AssetLinkPersistence.class)
1217            protected AssetLinkPersistence assetLinkPersistence;
1218            @BeanReference(type = AssetTagLocalService.class)
1219            protected AssetTagLocalService assetTagLocalService;
1220            @BeanReference(type = AssetTagService.class)
1221            protected AssetTagService assetTagService;
1222            @BeanReference(type = AssetTagPersistence.class)
1223            protected AssetTagPersistence assetTagPersistence;
1224            @BeanReference(type = AssetTagFinder.class)
1225            protected AssetTagFinder assetTagFinder;
1226            @BeanReference(type = AssetTagPropertyLocalService.class)
1227            protected AssetTagPropertyLocalService assetTagPropertyLocalService;
1228            @BeanReference(type = AssetTagPropertyService.class)
1229            protected AssetTagPropertyService assetTagPropertyService;
1230            @BeanReference(type = AssetTagPropertyPersistence.class)
1231            protected AssetTagPropertyPersistence assetTagPropertyPersistence;
1232            @BeanReference(type = AssetTagPropertyFinder.class)
1233            protected AssetTagPropertyFinder assetTagPropertyFinder;
1234            @BeanReference(type = AssetTagPropertyKeyFinder.class)
1235            protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
1236            @BeanReference(type = AssetTagStatsLocalService.class)
1237            protected AssetTagStatsLocalService assetTagStatsLocalService;
1238            @BeanReference(type = AssetTagStatsPersistence.class)
1239            protected AssetTagStatsPersistence assetTagStatsPersistence;
1240            @BeanReference(type = AssetVocabularyLocalService.class)
1241            protected AssetVocabularyLocalService assetVocabularyLocalService;
1242            @BeanReference(type = AssetVocabularyService.class)
1243            protected AssetVocabularyService assetVocabularyService;
1244            @BeanReference(type = AssetVocabularyPersistence.class)
1245            protected AssetVocabularyPersistence assetVocabularyPersistence;
1246            @BeanReference(type = AssetVocabularyFinder.class)
1247            protected AssetVocabularyFinder assetVocabularyFinder;
1248            @BeanReference(type = CounterLocalService.class)
1249            protected CounterLocalService counterLocalService;
1250            @BeanReference(type = ResourceLocalService.class)
1251            protected ResourceLocalService resourceLocalService;
1252            @BeanReference(type = ResourceService.class)
1253            protected ResourceService resourceService;
1254            @BeanReference(type = ResourcePersistence.class)
1255            protected ResourcePersistence resourcePersistence;
1256            @BeanReference(type = ResourceFinder.class)
1257            protected ResourceFinder resourceFinder;
1258            @BeanReference(type = UserLocalService.class)
1259            protected UserLocalService userLocalService;
1260            @BeanReference(type = UserService.class)
1261            protected UserService userService;
1262            @BeanReference(type = UserPersistence.class)
1263            protected UserPersistence userPersistence;
1264            @BeanReference(type = UserFinder.class)
1265            protected UserFinder userFinder;
1266            @BeanReference(type = PersistedModelLocalServiceRegistry.class)
1267            protected PersistedModelLocalServiceRegistry persistedModelLocalServiceRegistry;
1268            private String _beanIdentifier;
1269    }