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