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