1
22
23 package com.liferay.portlet.tags.service.base;
24
25 import com.liferay.counter.service.CounterLocalService;
26 import com.liferay.counter.service.CounterService;
27
28 import com.liferay.portal.PortalException;
29 import com.liferay.portal.SystemException;
30 import com.liferay.portal.kernel.annotation.BeanReference;
31 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
32 import com.liferay.portal.service.UserLocalService;
33 import com.liferay.portal.service.UserService;
34 import com.liferay.portal.service.persistence.UserFinder;
35 import com.liferay.portal.service.persistence.UserPersistence;
36 import com.liferay.portal.util.PortalUtil;
37
38 import com.liferay.portlet.tags.model.TagsProperty;
39 import com.liferay.portlet.tags.service.TagsAssetLocalService;
40 import com.liferay.portlet.tags.service.TagsAssetService;
41 import com.liferay.portlet.tags.service.TagsEntryLocalService;
42 import com.liferay.portlet.tags.service.TagsEntryService;
43 import com.liferay.portlet.tags.service.TagsPropertyLocalService;
44 import com.liferay.portlet.tags.service.TagsPropertyService;
45 import com.liferay.portlet.tags.service.TagsSourceLocalService;
46 import com.liferay.portlet.tags.service.TagsSourceService;
47 import com.liferay.portlet.tags.service.TagsVocabularyLocalService;
48 import com.liferay.portlet.tags.service.TagsVocabularyService;
49 import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
50 import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
51 import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
52 import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
53 import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
54 import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
55 import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
56 import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
57 import com.liferay.portlet.tags.service.persistence.TagsVocabularyPersistence;
58
59 import java.util.List;
60
61
67 public abstract class TagsPropertyLocalServiceBaseImpl
68 implements TagsPropertyLocalService {
69 public TagsProperty addTagsProperty(TagsProperty tagsProperty)
70 throws SystemException {
71 tagsProperty.setNew(true);
72
73 return tagsPropertyPersistence.update(tagsProperty, false);
74 }
75
76 public TagsProperty createTagsProperty(long propertyId) {
77 return tagsPropertyPersistence.create(propertyId);
78 }
79
80 public void deleteTagsProperty(long propertyId)
81 throws PortalException, SystemException {
82 tagsPropertyPersistence.remove(propertyId);
83 }
84
85 public void deleteTagsProperty(TagsProperty tagsProperty)
86 throws SystemException {
87 tagsPropertyPersistence.remove(tagsProperty);
88 }
89
90 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
91 throws SystemException {
92 return tagsPropertyPersistence.findWithDynamicQuery(dynamicQuery);
93 }
94
95 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
96 int end) throws SystemException {
97 return tagsPropertyPersistence.findWithDynamicQuery(dynamicQuery,
98 start, end);
99 }
100
101 public TagsProperty getTagsProperty(long propertyId)
102 throws PortalException, SystemException {
103 return tagsPropertyPersistence.findByPrimaryKey(propertyId);
104 }
105
106 public List<TagsProperty> getTagsProperties(int start, int end)
107 throws SystemException {
108 return tagsPropertyPersistence.findAll(start, end);
109 }
110
111 public int getTagsPropertiesCount() throws SystemException {
112 return tagsPropertyPersistence.countAll();
113 }
114
115 public TagsProperty updateTagsProperty(TagsProperty tagsProperty)
116 throws SystemException {
117 tagsProperty.setNew(false);
118
119 return tagsPropertyPersistence.update(tagsProperty, true);
120 }
121
122 public TagsProperty updateTagsProperty(TagsProperty tagsProperty,
123 boolean merge) throws SystemException {
124 tagsProperty.setNew(false);
125
126 return tagsPropertyPersistence.update(tagsProperty, merge);
127 }
128
129 public TagsAssetLocalService getTagsAssetLocalService() {
130 return tagsAssetLocalService;
131 }
132
133 public void setTagsAssetLocalService(
134 TagsAssetLocalService tagsAssetLocalService) {
135 this.tagsAssetLocalService = tagsAssetLocalService;
136 }
137
138 public TagsAssetService getTagsAssetService() {
139 return tagsAssetService;
140 }
141
142 public void setTagsAssetService(TagsAssetService tagsAssetService) {
143 this.tagsAssetService = tagsAssetService;
144 }
145
146 public TagsAssetPersistence getTagsAssetPersistence() {
147 return tagsAssetPersistence;
148 }
149
150 public void setTagsAssetPersistence(
151 TagsAssetPersistence tagsAssetPersistence) {
152 this.tagsAssetPersistence = tagsAssetPersistence;
153 }
154
155 public TagsAssetFinder getTagsAssetFinder() {
156 return tagsAssetFinder;
157 }
158
159 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
160 this.tagsAssetFinder = tagsAssetFinder;
161 }
162
163 public TagsEntryLocalService getTagsEntryLocalService() {
164 return tagsEntryLocalService;
165 }
166
167 public void setTagsEntryLocalService(
168 TagsEntryLocalService tagsEntryLocalService) {
169 this.tagsEntryLocalService = tagsEntryLocalService;
170 }
171
172 public TagsEntryService getTagsEntryService() {
173 return tagsEntryService;
174 }
175
176 public void setTagsEntryService(TagsEntryService tagsEntryService) {
177 this.tagsEntryService = tagsEntryService;
178 }
179
180 public TagsEntryPersistence getTagsEntryPersistence() {
181 return tagsEntryPersistence;
182 }
183
184 public void setTagsEntryPersistence(
185 TagsEntryPersistence tagsEntryPersistence) {
186 this.tagsEntryPersistence = tagsEntryPersistence;
187 }
188
189 public TagsEntryFinder getTagsEntryFinder() {
190 return tagsEntryFinder;
191 }
192
193 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
194 this.tagsEntryFinder = tagsEntryFinder;
195 }
196
197 public TagsPropertyLocalService getTagsPropertyLocalService() {
198 return tagsPropertyLocalService;
199 }
200
201 public void setTagsPropertyLocalService(
202 TagsPropertyLocalService tagsPropertyLocalService) {
203 this.tagsPropertyLocalService = tagsPropertyLocalService;
204 }
205
206 public TagsPropertyService getTagsPropertyService() {
207 return tagsPropertyService;
208 }
209
210 public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
211 this.tagsPropertyService = tagsPropertyService;
212 }
213
214 public TagsPropertyPersistence getTagsPropertyPersistence() {
215 return tagsPropertyPersistence;
216 }
217
218 public void setTagsPropertyPersistence(
219 TagsPropertyPersistence tagsPropertyPersistence) {
220 this.tagsPropertyPersistence = tagsPropertyPersistence;
221 }
222
223 public TagsPropertyFinder getTagsPropertyFinder() {
224 return tagsPropertyFinder;
225 }
226
227 public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
228 this.tagsPropertyFinder = tagsPropertyFinder;
229 }
230
231 public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
232 return tagsPropertyKeyFinder;
233 }
234
235 public void setTagsPropertyKeyFinder(
236 TagsPropertyKeyFinder tagsPropertyKeyFinder) {
237 this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
238 }
239
240 public TagsSourceLocalService getTagsSourceLocalService() {
241 return tagsSourceLocalService;
242 }
243
244 public void setTagsSourceLocalService(
245 TagsSourceLocalService tagsSourceLocalService) {
246 this.tagsSourceLocalService = tagsSourceLocalService;
247 }
248
249 public TagsSourceService getTagsSourceService() {
250 return tagsSourceService;
251 }
252
253 public void setTagsSourceService(TagsSourceService tagsSourceService) {
254 this.tagsSourceService = tagsSourceService;
255 }
256
257 public TagsSourcePersistence getTagsSourcePersistence() {
258 return tagsSourcePersistence;
259 }
260
261 public void setTagsSourcePersistence(
262 TagsSourcePersistence tagsSourcePersistence) {
263 this.tagsSourcePersistence = tagsSourcePersistence;
264 }
265
266 public TagsVocabularyLocalService getTagsVocabularyLocalService() {
267 return tagsVocabularyLocalService;
268 }
269
270 public void setTagsVocabularyLocalService(
271 TagsVocabularyLocalService tagsVocabularyLocalService) {
272 this.tagsVocabularyLocalService = tagsVocabularyLocalService;
273 }
274
275 public TagsVocabularyService getTagsVocabularyService() {
276 return tagsVocabularyService;
277 }
278
279 public void setTagsVocabularyService(
280 TagsVocabularyService tagsVocabularyService) {
281 this.tagsVocabularyService = tagsVocabularyService;
282 }
283
284 public TagsVocabularyPersistence getTagsVocabularyPersistence() {
285 return tagsVocabularyPersistence;
286 }
287
288 public void setTagsVocabularyPersistence(
289 TagsVocabularyPersistence tagsVocabularyPersistence) {
290 this.tagsVocabularyPersistence = tagsVocabularyPersistence;
291 }
292
293 public CounterLocalService getCounterLocalService() {
294 return counterLocalService;
295 }
296
297 public void setCounterLocalService(CounterLocalService counterLocalService) {
298 this.counterLocalService = counterLocalService;
299 }
300
301 public CounterService getCounterService() {
302 return counterService;
303 }
304
305 public void setCounterService(CounterService counterService) {
306 this.counterService = counterService;
307 }
308
309 public UserLocalService getUserLocalService() {
310 return userLocalService;
311 }
312
313 public void setUserLocalService(UserLocalService userLocalService) {
314 this.userLocalService = userLocalService;
315 }
316
317 public UserService getUserService() {
318 return userService;
319 }
320
321 public void setUserService(UserService userService) {
322 this.userService = userService;
323 }
324
325 public UserPersistence getUserPersistence() {
326 return userPersistence;
327 }
328
329 public void setUserPersistence(UserPersistence userPersistence) {
330 this.userPersistence = userPersistence;
331 }
332
333 public UserFinder getUserFinder() {
334 return userFinder;
335 }
336
337 public void setUserFinder(UserFinder userFinder) {
338 this.userFinder = userFinder;
339 }
340
341 protected void runSQL(String sql) throws SystemException {
342 try {
343 PortalUtil.runSQL(sql);
344 }
345 catch (Exception e) {
346 throw new SystemException(e);
347 }
348 }
349
350 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
351 protected TagsAssetLocalService tagsAssetLocalService;
352 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
353 protected TagsAssetService tagsAssetService;
354 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
355 protected TagsAssetPersistence tagsAssetPersistence;
356 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
357 protected TagsAssetFinder tagsAssetFinder;
358 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryLocalService.impl")
359 protected TagsEntryLocalService tagsEntryLocalService;
360 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryService.impl")
361 protected TagsEntryService tagsEntryService;
362 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryPersistence.impl")
363 protected TagsEntryPersistence tagsEntryPersistence;
364 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryFinder.impl")
365 protected TagsEntryFinder tagsEntryFinder;
366 @BeanReference(name = "com.liferay.portlet.tags.service.TagsPropertyLocalService.impl")
367 protected TagsPropertyLocalService tagsPropertyLocalService;
368 @BeanReference(name = "com.liferay.portlet.tags.service.TagsPropertyService.impl")
369 protected TagsPropertyService tagsPropertyService;
370 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence.impl")
371 protected TagsPropertyPersistence tagsPropertyPersistence;
372 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyFinder.impl")
373 protected TagsPropertyFinder tagsPropertyFinder;
374 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder.impl")
375 protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
376 @BeanReference(name = "com.liferay.portlet.tags.service.TagsSourceLocalService.impl")
377 protected TagsSourceLocalService tagsSourceLocalService;
378 @BeanReference(name = "com.liferay.portlet.tags.service.TagsSourceService.impl")
379 protected TagsSourceService tagsSourceService;
380 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsSourcePersistence.impl")
381 protected TagsSourcePersistence tagsSourcePersistence;
382 @BeanReference(name = "com.liferay.portlet.tags.service.TagsVocabularyLocalService.impl")
383 protected TagsVocabularyLocalService tagsVocabularyLocalService;
384 @BeanReference(name = "com.liferay.portlet.tags.service.TagsVocabularyService.impl")
385 protected TagsVocabularyService tagsVocabularyService;
386 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsVocabularyPersistence.impl")
387 protected TagsVocabularyPersistence tagsVocabularyPersistence;
388 @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
389 protected CounterLocalService counterLocalService;
390 @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
391 protected CounterService counterService;
392 @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
393 protected UserLocalService userLocalService;
394 @BeanReference(name = "com.liferay.portal.service.UserService.impl")
395 protected UserService userService;
396 @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
397 protected UserPersistence userPersistence;
398 @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
399 protected UserFinder userFinder;
400 }