1
14
15 package com.liferay.portlet.asset.service.base;
16
17 import com.liferay.counter.service.CounterLocalService;
18
19 import com.liferay.portal.kernel.annotation.BeanReference;
20 import com.liferay.portal.kernel.dao.db.DB;
21 import com.liferay.portal.kernel.dao.db.DBFactoryUtil;
22 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
23 import com.liferay.portal.kernel.exception.PortalException;
24 import com.liferay.portal.kernel.exception.SystemException;
25 import com.liferay.portal.kernel.util.OrderByComparator;
26 import com.liferay.portal.service.ResourceLocalService;
27 import com.liferay.portal.service.ResourceService;
28 import com.liferay.portal.service.UserLocalService;
29 import com.liferay.portal.service.UserService;
30 import com.liferay.portal.service.persistence.ResourceFinder;
31 import com.liferay.portal.service.persistence.ResourcePersistence;
32 import com.liferay.portal.service.persistence.UserFinder;
33 import com.liferay.portal.service.persistence.UserPersistence;
34
35 import com.liferay.portlet.asset.model.AssetCategory;
36 import com.liferay.portlet.asset.service.AssetCategoryLocalService;
37 import com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService;
38 import com.liferay.portlet.asset.service.AssetCategoryPropertyService;
39 import com.liferay.portlet.asset.service.AssetCategoryService;
40 import com.liferay.portlet.asset.service.AssetEntryLocalService;
41 import com.liferay.portlet.asset.service.AssetEntryService;
42 import com.liferay.portlet.asset.service.AssetLinkLocalService;
43 import com.liferay.portlet.asset.service.AssetTagLocalService;
44 import com.liferay.portlet.asset.service.AssetTagPropertyLocalService;
45 import com.liferay.portlet.asset.service.AssetTagPropertyService;
46 import com.liferay.portlet.asset.service.AssetTagService;
47 import com.liferay.portlet.asset.service.AssetTagStatsLocalService;
48 import com.liferay.portlet.asset.service.AssetVocabularyLocalService;
49 import com.liferay.portlet.asset.service.AssetVocabularyService;
50 import com.liferay.portlet.asset.service.persistence.AssetCategoryFinder;
51 import com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence;
52 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder;
53 import com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence;
54 import com.liferay.portlet.asset.service.persistence.AssetEntryFinder;
55 import com.liferay.portlet.asset.service.persistence.AssetEntryPersistence;
56 import com.liferay.portlet.asset.service.persistence.AssetLinkPersistence;
57 import com.liferay.portlet.asset.service.persistence.AssetTagFinder;
58 import com.liferay.portlet.asset.service.persistence.AssetTagPersistence;
59 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder;
60 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder;
61 import com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence;
62 import com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence;
63 import com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence;
64
65 import java.util.List;
66
67
73 public abstract class AssetCategoryLocalServiceBaseImpl
74 implements AssetCategoryLocalService {
75 public AssetCategory addAssetCategory(AssetCategory assetCategory)
76 throws SystemException {
77 assetCategory.setNew(true);
78
79 return assetCategoryPersistence.update(assetCategory, false);
80 }
81
82 public AssetCategory createAssetCategory(long categoryId) {
83 return assetCategoryPersistence.create(categoryId);
84 }
85
86 public void deleteAssetCategory(long categoryId)
87 throws PortalException, SystemException {
88 assetCategoryPersistence.remove(categoryId);
89 }
90
91 public void deleteAssetCategory(AssetCategory assetCategory)
92 throws SystemException {
93 assetCategoryPersistence.remove(assetCategory);
94 }
95
96 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
97 throws SystemException {
98 return assetCategoryPersistence.findWithDynamicQuery(dynamicQuery);
99 }
100
101 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
102 int end) throws SystemException {
103 return assetCategoryPersistence.findWithDynamicQuery(dynamicQuery,
104 start, end);
105 }
106
107 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
108 int end, OrderByComparator orderByComparator) throws SystemException {
109 return assetCategoryPersistence.findWithDynamicQuery(dynamicQuery,
110 start, end, orderByComparator);
111 }
112
113 public int dynamicQueryCount(DynamicQuery dynamicQuery)
114 throws SystemException {
115 return assetCategoryPersistence.countWithDynamicQuery(dynamicQuery);
116 }
117
118 public AssetCategory getAssetCategory(long categoryId)
119 throws PortalException, SystemException {
120 return assetCategoryPersistence.findByPrimaryKey(categoryId);
121 }
122
123 public List<AssetCategory> getAssetCategories(int start, int end)
124 throws SystemException {
125 return assetCategoryPersistence.findAll(start, end);
126 }
127
128 public int getAssetCategoriesCount() throws SystemException {
129 return assetCategoryPersistence.countAll();
130 }
131
132 public AssetCategory updateAssetCategory(AssetCategory assetCategory)
133 throws SystemException {
134 assetCategory.setNew(false);
135
136 return assetCategoryPersistence.update(assetCategory, true);
137 }
138
139 public AssetCategory updateAssetCategory(AssetCategory assetCategory,
140 boolean merge) throws SystemException {
141 assetCategory.setNew(false);
142
143 return assetCategoryPersistence.update(assetCategory, merge);
144 }
145
146 public AssetCategoryLocalService getAssetCategoryLocalService() {
147 return assetCategoryLocalService;
148 }
149
150 public void setAssetCategoryLocalService(
151 AssetCategoryLocalService assetCategoryLocalService) {
152 this.assetCategoryLocalService = assetCategoryLocalService;
153 }
154
155 public AssetCategoryService getAssetCategoryService() {
156 return assetCategoryService;
157 }
158
159 public void setAssetCategoryService(
160 AssetCategoryService assetCategoryService) {
161 this.assetCategoryService = assetCategoryService;
162 }
163
164 public AssetCategoryPersistence getAssetCategoryPersistence() {
165 return assetCategoryPersistence;
166 }
167
168 public void setAssetCategoryPersistence(
169 AssetCategoryPersistence assetCategoryPersistence) {
170 this.assetCategoryPersistence = assetCategoryPersistence;
171 }
172
173 public AssetCategoryFinder getAssetCategoryFinder() {
174 return assetCategoryFinder;
175 }
176
177 public void setAssetCategoryFinder(AssetCategoryFinder assetCategoryFinder) {
178 this.assetCategoryFinder = assetCategoryFinder;
179 }
180
181 public AssetCategoryPropertyLocalService getAssetCategoryPropertyLocalService() {
182 return assetCategoryPropertyLocalService;
183 }
184
185 public void setAssetCategoryPropertyLocalService(
186 AssetCategoryPropertyLocalService assetCategoryPropertyLocalService) {
187 this.assetCategoryPropertyLocalService = assetCategoryPropertyLocalService;
188 }
189
190 public AssetCategoryPropertyService getAssetCategoryPropertyService() {
191 return assetCategoryPropertyService;
192 }
193
194 public void setAssetCategoryPropertyService(
195 AssetCategoryPropertyService assetCategoryPropertyService) {
196 this.assetCategoryPropertyService = assetCategoryPropertyService;
197 }
198
199 public AssetCategoryPropertyPersistence getAssetCategoryPropertyPersistence() {
200 return assetCategoryPropertyPersistence;
201 }
202
203 public void setAssetCategoryPropertyPersistence(
204 AssetCategoryPropertyPersistence assetCategoryPropertyPersistence) {
205 this.assetCategoryPropertyPersistence = assetCategoryPropertyPersistence;
206 }
207
208 public AssetCategoryPropertyFinder getAssetCategoryPropertyFinder() {
209 return assetCategoryPropertyFinder;
210 }
211
212 public void setAssetCategoryPropertyFinder(
213 AssetCategoryPropertyFinder assetCategoryPropertyFinder) {
214 this.assetCategoryPropertyFinder = assetCategoryPropertyFinder;
215 }
216
217 public AssetEntryLocalService getAssetEntryLocalService() {
218 return assetEntryLocalService;
219 }
220
221 public void setAssetEntryLocalService(
222 AssetEntryLocalService assetEntryLocalService) {
223 this.assetEntryLocalService = assetEntryLocalService;
224 }
225
226 public AssetEntryService getAssetEntryService() {
227 return assetEntryService;
228 }
229
230 public void setAssetEntryService(AssetEntryService assetEntryService) {
231 this.assetEntryService = assetEntryService;
232 }
233
234 public AssetEntryPersistence getAssetEntryPersistence() {
235 return assetEntryPersistence;
236 }
237
238 public void setAssetEntryPersistence(
239 AssetEntryPersistence assetEntryPersistence) {
240 this.assetEntryPersistence = assetEntryPersistence;
241 }
242
243 public AssetEntryFinder getAssetEntryFinder() {
244 return assetEntryFinder;
245 }
246
247 public void setAssetEntryFinder(AssetEntryFinder assetEntryFinder) {
248 this.assetEntryFinder = assetEntryFinder;
249 }
250
251 public AssetLinkLocalService getAssetLinkLocalService() {
252 return assetLinkLocalService;
253 }
254
255 public void setAssetLinkLocalService(
256 AssetLinkLocalService assetLinkLocalService) {
257 this.assetLinkLocalService = assetLinkLocalService;
258 }
259
260 public AssetLinkPersistence getAssetLinkPersistence() {
261 return assetLinkPersistence;
262 }
263
264 public void setAssetLinkPersistence(
265 AssetLinkPersistence assetLinkPersistence) {
266 this.assetLinkPersistence = assetLinkPersistence;
267 }
268
269 public AssetTagLocalService getAssetTagLocalService() {
270 return assetTagLocalService;
271 }
272
273 public void setAssetTagLocalService(
274 AssetTagLocalService assetTagLocalService) {
275 this.assetTagLocalService = assetTagLocalService;
276 }
277
278 public AssetTagService getAssetTagService() {
279 return assetTagService;
280 }
281
282 public void setAssetTagService(AssetTagService assetTagService) {
283 this.assetTagService = assetTagService;
284 }
285
286 public AssetTagPersistence getAssetTagPersistence() {
287 return assetTagPersistence;
288 }
289
290 public void setAssetTagPersistence(AssetTagPersistence assetTagPersistence) {
291 this.assetTagPersistence = assetTagPersistence;
292 }
293
294 public AssetTagFinder getAssetTagFinder() {
295 return assetTagFinder;
296 }
297
298 public void setAssetTagFinder(AssetTagFinder assetTagFinder) {
299 this.assetTagFinder = assetTagFinder;
300 }
301
302 public AssetTagPropertyLocalService getAssetTagPropertyLocalService() {
303 return assetTagPropertyLocalService;
304 }
305
306 public void setAssetTagPropertyLocalService(
307 AssetTagPropertyLocalService assetTagPropertyLocalService) {
308 this.assetTagPropertyLocalService = assetTagPropertyLocalService;
309 }
310
311 public AssetTagPropertyService getAssetTagPropertyService() {
312 return assetTagPropertyService;
313 }
314
315 public void setAssetTagPropertyService(
316 AssetTagPropertyService assetTagPropertyService) {
317 this.assetTagPropertyService = assetTagPropertyService;
318 }
319
320 public AssetTagPropertyPersistence getAssetTagPropertyPersistence() {
321 return assetTagPropertyPersistence;
322 }
323
324 public void setAssetTagPropertyPersistence(
325 AssetTagPropertyPersistence assetTagPropertyPersistence) {
326 this.assetTagPropertyPersistence = assetTagPropertyPersistence;
327 }
328
329 public AssetTagPropertyFinder getAssetTagPropertyFinder() {
330 return assetTagPropertyFinder;
331 }
332
333 public void setAssetTagPropertyFinder(
334 AssetTagPropertyFinder assetTagPropertyFinder) {
335 this.assetTagPropertyFinder = assetTagPropertyFinder;
336 }
337
338 public AssetTagPropertyKeyFinder getAssetTagPropertyKeyFinder() {
339 return assetTagPropertyKeyFinder;
340 }
341
342 public void setAssetTagPropertyKeyFinder(
343 AssetTagPropertyKeyFinder assetTagPropertyKeyFinder) {
344 this.assetTagPropertyKeyFinder = assetTagPropertyKeyFinder;
345 }
346
347 public AssetTagStatsLocalService getAssetTagStatsLocalService() {
348 return assetTagStatsLocalService;
349 }
350
351 public void setAssetTagStatsLocalService(
352 AssetTagStatsLocalService assetTagStatsLocalService) {
353 this.assetTagStatsLocalService = assetTagStatsLocalService;
354 }
355
356 public AssetTagStatsPersistence getAssetTagStatsPersistence() {
357 return assetTagStatsPersistence;
358 }
359
360 public void setAssetTagStatsPersistence(
361 AssetTagStatsPersistence assetTagStatsPersistence) {
362 this.assetTagStatsPersistence = assetTagStatsPersistence;
363 }
364
365 public AssetVocabularyLocalService getAssetVocabularyLocalService() {
366 return assetVocabularyLocalService;
367 }
368
369 public void setAssetVocabularyLocalService(
370 AssetVocabularyLocalService assetVocabularyLocalService) {
371 this.assetVocabularyLocalService = assetVocabularyLocalService;
372 }
373
374 public AssetVocabularyService getAssetVocabularyService() {
375 return assetVocabularyService;
376 }
377
378 public void setAssetVocabularyService(
379 AssetVocabularyService assetVocabularyService) {
380 this.assetVocabularyService = assetVocabularyService;
381 }
382
383 public AssetVocabularyPersistence getAssetVocabularyPersistence() {
384 return assetVocabularyPersistence;
385 }
386
387 public void setAssetVocabularyPersistence(
388 AssetVocabularyPersistence assetVocabularyPersistence) {
389 this.assetVocabularyPersistence = assetVocabularyPersistence;
390 }
391
392 public CounterLocalService getCounterLocalService() {
393 return counterLocalService;
394 }
395
396 public void setCounterLocalService(CounterLocalService counterLocalService) {
397 this.counterLocalService = counterLocalService;
398 }
399
400 public ResourceLocalService getResourceLocalService() {
401 return resourceLocalService;
402 }
403
404 public void setResourceLocalService(
405 ResourceLocalService resourceLocalService) {
406 this.resourceLocalService = resourceLocalService;
407 }
408
409 public ResourceService getResourceService() {
410 return resourceService;
411 }
412
413 public void setResourceService(ResourceService resourceService) {
414 this.resourceService = resourceService;
415 }
416
417 public ResourcePersistence getResourcePersistence() {
418 return resourcePersistence;
419 }
420
421 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
422 this.resourcePersistence = resourcePersistence;
423 }
424
425 public ResourceFinder getResourceFinder() {
426 return resourceFinder;
427 }
428
429 public void setResourceFinder(ResourceFinder resourceFinder) {
430 this.resourceFinder = resourceFinder;
431 }
432
433 public UserLocalService getUserLocalService() {
434 return userLocalService;
435 }
436
437 public void setUserLocalService(UserLocalService userLocalService) {
438 this.userLocalService = userLocalService;
439 }
440
441 public UserService getUserService() {
442 return userService;
443 }
444
445 public void setUserService(UserService userService) {
446 this.userService = userService;
447 }
448
449 public UserPersistence getUserPersistence() {
450 return userPersistence;
451 }
452
453 public void setUserPersistence(UserPersistence userPersistence) {
454 this.userPersistence = userPersistence;
455 }
456
457 public UserFinder getUserFinder() {
458 return userFinder;
459 }
460
461 public void setUserFinder(UserFinder userFinder) {
462 this.userFinder = userFinder;
463 }
464
465 protected void runSQL(String sql) throws SystemException {
466 try {
467 DB db = DBFactoryUtil.getDB();
468
469 db.runSQL(sql);
470 }
471 catch (Exception e) {
472 throw new SystemException(e);
473 }
474 }
475
476 @BeanReference(type = AssetCategoryLocalService.class)
477 protected AssetCategoryLocalService assetCategoryLocalService;
478 @BeanReference(type = AssetCategoryService.class)
479 protected AssetCategoryService assetCategoryService;
480 @BeanReference(type = AssetCategoryPersistence.class)
481 protected AssetCategoryPersistence assetCategoryPersistence;
482 @BeanReference(type = AssetCategoryFinder.class)
483 protected AssetCategoryFinder assetCategoryFinder;
484 @BeanReference(type = AssetCategoryPropertyLocalService.class)
485 protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
486 @BeanReference(type = AssetCategoryPropertyService.class)
487 protected AssetCategoryPropertyService assetCategoryPropertyService;
488 @BeanReference(type = AssetCategoryPropertyPersistence.class)
489 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
490 @BeanReference(type = AssetCategoryPropertyFinder.class)
491 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
492 @BeanReference(type = AssetEntryLocalService.class)
493 protected AssetEntryLocalService assetEntryLocalService;
494 @BeanReference(type = AssetEntryService.class)
495 protected AssetEntryService assetEntryService;
496 @BeanReference(type = AssetEntryPersistence.class)
497 protected AssetEntryPersistence assetEntryPersistence;
498 @BeanReference(type = AssetEntryFinder.class)
499 protected AssetEntryFinder assetEntryFinder;
500 @BeanReference(type = AssetLinkLocalService.class)
501 protected AssetLinkLocalService assetLinkLocalService;
502 @BeanReference(type = AssetLinkPersistence.class)
503 protected AssetLinkPersistence assetLinkPersistence;
504 @BeanReference(type = AssetTagLocalService.class)
505 protected AssetTagLocalService assetTagLocalService;
506 @BeanReference(type = AssetTagService.class)
507 protected AssetTagService assetTagService;
508 @BeanReference(type = AssetTagPersistence.class)
509 protected AssetTagPersistence assetTagPersistence;
510 @BeanReference(type = AssetTagFinder.class)
511 protected AssetTagFinder assetTagFinder;
512 @BeanReference(type = AssetTagPropertyLocalService.class)
513 protected AssetTagPropertyLocalService assetTagPropertyLocalService;
514 @BeanReference(type = AssetTagPropertyService.class)
515 protected AssetTagPropertyService assetTagPropertyService;
516 @BeanReference(type = AssetTagPropertyPersistence.class)
517 protected AssetTagPropertyPersistence assetTagPropertyPersistence;
518 @BeanReference(type = AssetTagPropertyFinder.class)
519 protected AssetTagPropertyFinder assetTagPropertyFinder;
520 @BeanReference(type = AssetTagPropertyKeyFinder.class)
521 protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
522 @BeanReference(type = AssetTagStatsLocalService.class)
523 protected AssetTagStatsLocalService assetTagStatsLocalService;
524 @BeanReference(type = AssetTagStatsPersistence.class)
525 protected AssetTagStatsPersistence assetTagStatsPersistence;
526 @BeanReference(type = AssetVocabularyLocalService.class)
527 protected AssetVocabularyLocalService assetVocabularyLocalService;
528 @BeanReference(type = AssetVocabularyService.class)
529 protected AssetVocabularyService assetVocabularyService;
530 @BeanReference(type = AssetVocabularyPersistence.class)
531 protected AssetVocabularyPersistence assetVocabularyPersistence;
532 @BeanReference(type = CounterLocalService.class)
533 protected CounterLocalService counterLocalService;
534 @BeanReference(type = ResourceLocalService.class)
535 protected ResourceLocalService resourceLocalService;
536 @BeanReference(type = ResourceService.class)
537 protected ResourceService resourceService;
538 @BeanReference(type = ResourcePersistence.class)
539 protected ResourcePersistence resourcePersistence;
540 @BeanReference(type = ResourceFinder.class)
541 protected ResourceFinder resourceFinder;
542 @BeanReference(type = UserLocalService.class)
543 protected UserLocalService userLocalService;
544 @BeanReference(type = UserService.class)
545 protected UserService userService;
546 @BeanReference(type = UserPersistence.class)
547 protected UserPersistence userPersistence;
548 @BeanReference(type = UserFinder.class)
549 protected UserFinder userFinder;
550 }