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