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