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