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.AssetCategoryProperty;
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 AssetCategoryPropertyLocalServiceBaseImpl
72 implements AssetCategoryPropertyLocalService {
73 public AssetCategoryProperty addAssetCategoryProperty(
74 AssetCategoryProperty assetCategoryProperty) throws SystemException {
75 assetCategoryProperty.setNew(true);
76
77 return assetCategoryPropertyPersistence.update(assetCategoryProperty,
78 false);
79 }
80
81 public AssetCategoryProperty createAssetCategoryProperty(
82 long categoryPropertyId) {
83 return assetCategoryPropertyPersistence.create(categoryPropertyId);
84 }
85
86 public void deleteAssetCategoryProperty(long categoryPropertyId)
87 throws PortalException, SystemException {
88 assetCategoryPropertyPersistence.remove(categoryPropertyId);
89 }
90
91 public void deleteAssetCategoryProperty(
92 AssetCategoryProperty assetCategoryProperty) throws SystemException {
93 assetCategoryPropertyPersistence.remove(assetCategoryProperty);
94 }
95
96 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
97 throws SystemException {
98 return assetCategoryPropertyPersistence.findWithDynamicQuery(dynamicQuery);
99 }
100
101 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
102 int end) throws SystemException {
103 return assetCategoryPropertyPersistence.findWithDynamicQuery(dynamicQuery,
104 start, end);
105 }
106
107 public AssetCategoryProperty getAssetCategoryProperty(
108 long categoryPropertyId) throws PortalException, SystemException {
109 return assetCategoryPropertyPersistence.findByPrimaryKey(categoryPropertyId);
110 }
111
112 public List<AssetCategoryProperty> getAssetCategoryProperties(int start,
113 int end) throws SystemException {
114 return assetCategoryPropertyPersistence.findAll(start, end);
115 }
116
117 public int getAssetCategoryPropertiesCount() throws SystemException {
118 return assetCategoryPropertyPersistence.countAll();
119 }
120
121 public AssetCategoryProperty updateAssetCategoryProperty(
122 AssetCategoryProperty assetCategoryProperty) throws SystemException {
123 assetCategoryProperty.setNew(false);
124
125 return assetCategoryPropertyPersistence.update(assetCategoryProperty,
126 true);
127 }
128
129 public AssetCategoryProperty updateAssetCategoryProperty(
130 AssetCategoryProperty assetCategoryProperty, boolean merge)
131 throws SystemException {
132 assetCategoryProperty.setNew(false);
133
134 return assetCategoryPropertyPersistence.update(assetCategoryProperty,
135 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 ResourceLocalService getResourceLocalService() {
383 return resourceLocalService;
384 }
385
386 public void setResourceLocalService(
387 ResourceLocalService resourceLocalService) {
388 this.resourceLocalService = resourceLocalService;
389 }
390
391 public ResourceService getResourceService() {
392 return resourceService;
393 }
394
395 public void setResourceService(ResourceService resourceService) {
396 this.resourceService = resourceService;
397 }
398
399 public ResourcePersistence getResourcePersistence() {
400 return resourcePersistence;
401 }
402
403 public void setResourcePersistence(ResourcePersistence resourcePersistence) {
404 this.resourcePersistence = resourcePersistence;
405 }
406
407 public ResourceFinder getResourceFinder() {
408 return resourceFinder;
409 }
410
411 public void setResourceFinder(ResourceFinder resourceFinder) {
412 this.resourceFinder = resourceFinder;
413 }
414
415 public UserLocalService getUserLocalService() {
416 return userLocalService;
417 }
418
419 public void setUserLocalService(UserLocalService userLocalService) {
420 this.userLocalService = userLocalService;
421 }
422
423 public UserService getUserService() {
424 return userService;
425 }
426
427 public void setUserService(UserService userService) {
428 this.userService = userService;
429 }
430
431 public UserPersistence getUserPersistence() {
432 return userPersistence;
433 }
434
435 public void setUserPersistence(UserPersistence userPersistence) {
436 this.userPersistence = userPersistence;
437 }
438
439 public UserFinder getUserFinder() {
440 return userFinder;
441 }
442
443 public void setUserFinder(UserFinder userFinder) {
444 this.userFinder = userFinder;
445 }
446
447 protected void runSQL(String sql) throws SystemException {
448 try {
449 DB db = DBFactoryUtil.getDB();
450
451 db.runSQL(sql);
452 }
453 catch (Exception e) {
454 throw new SystemException(e);
455 }
456 }
457
458 @BeanReference(name = "com.liferay.portlet.asset.service.AssetCategoryLocalService")
459 protected AssetCategoryLocalService assetCategoryLocalService;
460 @BeanReference(name = "com.liferay.portlet.asset.service.AssetCategoryService")
461 protected AssetCategoryService assetCategoryService;
462 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetCategoryPersistence")
463 protected AssetCategoryPersistence assetCategoryPersistence;
464 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetCategoryFinder")
465 protected AssetCategoryFinder assetCategoryFinder;
466 @BeanReference(name = "com.liferay.portlet.asset.service.AssetCategoryPropertyLocalService")
467 protected AssetCategoryPropertyLocalService assetCategoryPropertyLocalService;
468 @BeanReference(name = "com.liferay.portlet.asset.service.AssetCategoryPropertyService")
469 protected AssetCategoryPropertyService assetCategoryPropertyService;
470 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyPersistence")
471 protected AssetCategoryPropertyPersistence assetCategoryPropertyPersistence;
472 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetCategoryPropertyFinder")
473 protected AssetCategoryPropertyFinder assetCategoryPropertyFinder;
474 @BeanReference(name = "com.liferay.portlet.asset.service.AssetEntryLocalService")
475 protected AssetEntryLocalService assetEntryLocalService;
476 @BeanReference(name = "com.liferay.portlet.asset.service.AssetEntryService")
477 protected AssetEntryService assetEntryService;
478 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetEntryPersistence")
479 protected AssetEntryPersistence assetEntryPersistence;
480 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetEntryFinder")
481 protected AssetEntryFinder assetEntryFinder;
482 @BeanReference(name = "com.liferay.portlet.asset.service.AssetTagLocalService")
483 protected AssetTagLocalService assetTagLocalService;
484 @BeanReference(name = "com.liferay.portlet.asset.service.AssetTagService")
485 protected AssetTagService assetTagService;
486 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetTagPersistence")
487 protected AssetTagPersistence assetTagPersistence;
488 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetTagFinder")
489 protected AssetTagFinder assetTagFinder;
490 @BeanReference(name = "com.liferay.portlet.asset.service.AssetTagPropertyLocalService")
491 protected AssetTagPropertyLocalService assetTagPropertyLocalService;
492 @BeanReference(name = "com.liferay.portlet.asset.service.AssetTagPropertyService")
493 protected AssetTagPropertyService assetTagPropertyService;
494 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetTagPropertyPersistence")
495 protected AssetTagPropertyPersistence assetTagPropertyPersistence;
496 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetTagPropertyFinder")
497 protected AssetTagPropertyFinder assetTagPropertyFinder;
498 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetTagPropertyKeyFinder")
499 protected AssetTagPropertyKeyFinder assetTagPropertyKeyFinder;
500 @BeanReference(name = "com.liferay.portlet.asset.service.AssetTagStatsLocalService")
501 protected AssetTagStatsLocalService assetTagStatsLocalService;
502 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetTagStatsPersistence")
503 protected AssetTagStatsPersistence assetTagStatsPersistence;
504 @BeanReference(name = "com.liferay.portlet.asset.service.AssetVocabularyLocalService")
505 protected AssetVocabularyLocalService assetVocabularyLocalService;
506 @BeanReference(name = "com.liferay.portlet.asset.service.AssetVocabularyService")
507 protected AssetVocabularyService assetVocabularyService;
508 @BeanReference(name = "com.liferay.portlet.asset.service.persistence.AssetVocabularyPersistence")
509 protected AssetVocabularyPersistence assetVocabularyPersistence;
510 @BeanReference(name = "com.liferay.counter.service.CounterLocalService")
511 protected CounterLocalService counterLocalService;
512 @BeanReference(name = "com.liferay.counter.service.CounterService")
513 protected CounterService counterService;
514 @BeanReference(name = "com.liferay.portal.service.ResourceLocalService")
515 protected ResourceLocalService resourceLocalService;
516 @BeanReference(name = "com.liferay.portal.service.ResourceService")
517 protected ResourceService resourceService;
518 @BeanReference(name = "com.liferay.portal.service.persistence.ResourcePersistence")
519 protected ResourcePersistence resourcePersistence;
520 @BeanReference(name = "com.liferay.portal.service.persistence.ResourceFinder")
521 protected ResourceFinder resourceFinder;
522 @BeanReference(name = "com.liferay.portal.service.UserLocalService")
523 protected UserLocalService userLocalService;
524 @BeanReference(name = "com.liferay.portal.service.UserService")
525 protected UserService userService;
526 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence")
527 protected UserPersistence userPersistence;
528 @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder")
529 protected UserFinder userFinder;
530 }