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