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