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