1
22
23 package com.liferay.portlet.tags.service.base;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.BeanReference;
28 import com.liferay.portal.kernel.dao.orm.DynamicQuery;
29
30 import com.liferay.portlet.tags.model.TagsSource;
31 import com.liferay.portlet.tags.service.TagsAssetLocalService;
32 import com.liferay.portlet.tags.service.TagsAssetService;
33 import com.liferay.portlet.tags.service.TagsEntryLocalService;
34 import com.liferay.portlet.tags.service.TagsEntryService;
35 import com.liferay.portlet.tags.service.TagsPropertyLocalService;
36 import com.liferay.portlet.tags.service.TagsPropertyService;
37 import com.liferay.portlet.tags.service.TagsSourceLocalService;
38 import com.liferay.portlet.tags.service.TagsSourceService;
39 import com.liferay.portlet.tags.service.TagsVocabularyLocalService;
40 import com.liferay.portlet.tags.service.TagsVocabularyService;
41 import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
42 import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
43 import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
44 import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
45 import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
46 import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
47 import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
48 import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
49 import com.liferay.portlet.tags.service.persistence.TagsVocabularyPersistence;
50
51 import java.util.List;
52
53
59 public abstract class TagsSourceLocalServiceBaseImpl
60 implements TagsSourceLocalService {
61 public TagsSource addTagsSource(TagsSource tagsSource)
62 throws SystemException {
63 tagsSource.setNew(true);
64
65 return tagsSourcePersistence.update(tagsSource, false);
66 }
67
68 public TagsSource createTagsSource(long sourceId) {
69 return tagsSourcePersistence.create(sourceId);
70 }
71
72 public void deleteTagsSource(long sourceId)
73 throws PortalException, SystemException {
74 tagsSourcePersistence.remove(sourceId);
75 }
76
77 public void deleteTagsSource(TagsSource tagsSource)
78 throws SystemException {
79 tagsSourcePersistence.remove(tagsSource);
80 }
81
82 public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
83 throws SystemException {
84 return tagsSourcePersistence.findWithDynamicQuery(dynamicQuery);
85 }
86
87 public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
88 int end) throws SystemException {
89 return tagsSourcePersistence.findWithDynamicQuery(dynamicQuery, start,
90 end);
91 }
92
93 public TagsSource getTagsSource(long sourceId)
94 throws PortalException, SystemException {
95 return tagsSourcePersistence.findByPrimaryKey(sourceId);
96 }
97
98 public List<TagsSource> getTagsSources(int start, int end)
99 throws SystemException {
100 return tagsSourcePersistence.findAll(start, end);
101 }
102
103 public int getTagsSourcesCount() throws SystemException {
104 return tagsSourcePersistence.countAll();
105 }
106
107 public TagsSource updateTagsSource(TagsSource tagsSource)
108 throws SystemException {
109 tagsSource.setNew(false);
110
111 return tagsSourcePersistence.update(tagsSource, true);
112 }
113
114 public TagsAssetLocalService getTagsAssetLocalService() {
115 return tagsAssetLocalService;
116 }
117
118 public void setTagsAssetLocalService(
119 TagsAssetLocalService tagsAssetLocalService) {
120 this.tagsAssetLocalService = tagsAssetLocalService;
121 }
122
123 public TagsAssetService getTagsAssetService() {
124 return tagsAssetService;
125 }
126
127 public void setTagsAssetService(TagsAssetService tagsAssetService) {
128 this.tagsAssetService = tagsAssetService;
129 }
130
131 public TagsAssetPersistence getTagsAssetPersistence() {
132 return tagsAssetPersistence;
133 }
134
135 public void setTagsAssetPersistence(
136 TagsAssetPersistence tagsAssetPersistence) {
137 this.tagsAssetPersistence = tagsAssetPersistence;
138 }
139
140 public TagsAssetFinder getTagsAssetFinder() {
141 return tagsAssetFinder;
142 }
143
144 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
145 this.tagsAssetFinder = tagsAssetFinder;
146 }
147
148 public TagsEntryLocalService getTagsEntryLocalService() {
149 return tagsEntryLocalService;
150 }
151
152 public void setTagsEntryLocalService(
153 TagsEntryLocalService tagsEntryLocalService) {
154 this.tagsEntryLocalService = tagsEntryLocalService;
155 }
156
157 public TagsEntryService getTagsEntryService() {
158 return tagsEntryService;
159 }
160
161 public void setTagsEntryService(TagsEntryService tagsEntryService) {
162 this.tagsEntryService = tagsEntryService;
163 }
164
165 public TagsEntryPersistence getTagsEntryPersistence() {
166 return tagsEntryPersistence;
167 }
168
169 public void setTagsEntryPersistence(
170 TagsEntryPersistence tagsEntryPersistence) {
171 this.tagsEntryPersistence = tagsEntryPersistence;
172 }
173
174 public TagsEntryFinder getTagsEntryFinder() {
175 return tagsEntryFinder;
176 }
177
178 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
179 this.tagsEntryFinder = tagsEntryFinder;
180 }
181
182 public TagsPropertyLocalService getTagsPropertyLocalService() {
183 return tagsPropertyLocalService;
184 }
185
186 public void setTagsPropertyLocalService(
187 TagsPropertyLocalService tagsPropertyLocalService) {
188 this.tagsPropertyLocalService = tagsPropertyLocalService;
189 }
190
191 public TagsPropertyService getTagsPropertyService() {
192 return tagsPropertyService;
193 }
194
195 public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
196 this.tagsPropertyService = tagsPropertyService;
197 }
198
199 public TagsPropertyPersistence getTagsPropertyPersistence() {
200 return tagsPropertyPersistence;
201 }
202
203 public void setTagsPropertyPersistence(
204 TagsPropertyPersistence tagsPropertyPersistence) {
205 this.tagsPropertyPersistence = tagsPropertyPersistence;
206 }
207
208 public TagsPropertyFinder getTagsPropertyFinder() {
209 return tagsPropertyFinder;
210 }
211
212 public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
213 this.tagsPropertyFinder = tagsPropertyFinder;
214 }
215
216 public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
217 return tagsPropertyKeyFinder;
218 }
219
220 public void setTagsPropertyKeyFinder(
221 TagsPropertyKeyFinder tagsPropertyKeyFinder) {
222 this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
223 }
224
225 public TagsSourceLocalService getTagsSourceLocalService() {
226 return tagsSourceLocalService;
227 }
228
229 public void setTagsSourceLocalService(
230 TagsSourceLocalService tagsSourceLocalService) {
231 this.tagsSourceLocalService = tagsSourceLocalService;
232 }
233
234 public TagsSourceService getTagsSourceService() {
235 return tagsSourceService;
236 }
237
238 public void setTagsSourceService(TagsSourceService tagsSourceService) {
239 this.tagsSourceService = tagsSourceService;
240 }
241
242 public TagsSourcePersistence getTagsSourcePersistence() {
243 return tagsSourcePersistence;
244 }
245
246 public void setTagsSourcePersistence(
247 TagsSourcePersistence tagsSourcePersistence) {
248 this.tagsSourcePersistence = tagsSourcePersistence;
249 }
250
251 public TagsVocabularyLocalService getTagsVocabularyLocalService() {
252 return tagsVocabularyLocalService;
253 }
254
255 public void setTagsVocabularyLocalService(
256 TagsVocabularyLocalService tagsVocabularyLocalService) {
257 this.tagsVocabularyLocalService = tagsVocabularyLocalService;
258 }
259
260 public TagsVocabularyService getTagsVocabularyService() {
261 return tagsVocabularyService;
262 }
263
264 public void setTagsVocabularyService(
265 TagsVocabularyService tagsVocabularyService) {
266 this.tagsVocabularyService = tagsVocabularyService;
267 }
268
269 public TagsVocabularyPersistence getTagsVocabularyPersistence() {
270 return tagsVocabularyPersistence;
271 }
272
273 public void setTagsVocabularyPersistence(
274 TagsVocabularyPersistence tagsVocabularyPersistence) {
275 this.tagsVocabularyPersistence = tagsVocabularyPersistence;
276 }
277
278 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetLocalService.impl")
279 protected TagsAssetLocalService tagsAssetLocalService;
280 @BeanReference(name = "com.liferay.portlet.tags.service.TagsAssetService.impl")
281 protected TagsAssetService tagsAssetService;
282 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetPersistence.impl")
283 protected TagsAssetPersistence tagsAssetPersistence;
284 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsAssetFinder.impl")
285 protected TagsAssetFinder tagsAssetFinder;
286 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryLocalService.impl")
287 protected TagsEntryLocalService tagsEntryLocalService;
288 @BeanReference(name = "com.liferay.portlet.tags.service.TagsEntryService.impl")
289 protected TagsEntryService tagsEntryService;
290 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryPersistence.impl")
291 protected TagsEntryPersistence tagsEntryPersistence;
292 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsEntryFinder.impl")
293 protected TagsEntryFinder tagsEntryFinder;
294 @BeanReference(name = "com.liferay.portlet.tags.service.TagsPropertyLocalService.impl")
295 protected TagsPropertyLocalService tagsPropertyLocalService;
296 @BeanReference(name = "com.liferay.portlet.tags.service.TagsPropertyService.impl")
297 protected TagsPropertyService tagsPropertyService;
298 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence.impl")
299 protected TagsPropertyPersistence tagsPropertyPersistence;
300 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyFinder.impl")
301 protected TagsPropertyFinder tagsPropertyFinder;
302 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder.impl")
303 protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
304 @BeanReference(name = "com.liferay.portlet.tags.service.TagsSourceLocalService.impl")
305 protected TagsSourceLocalService tagsSourceLocalService;
306 @BeanReference(name = "com.liferay.portlet.tags.service.TagsSourceService.impl")
307 protected TagsSourceService tagsSourceService;
308 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsSourcePersistence.impl")
309 protected TagsSourcePersistence tagsSourcePersistence;
310 @BeanReference(name = "com.liferay.portlet.tags.service.TagsVocabularyLocalService.impl")
311 protected TagsVocabularyLocalService tagsVocabularyLocalService;
312 @BeanReference(name = "com.liferay.portlet.tags.service.TagsVocabularyService.impl")
313 protected TagsVocabularyService tagsVocabularyService;
314 @BeanReference(name = "com.liferay.portlet.tags.service.persistence.TagsVocabularyPersistence.impl")
315 protected TagsVocabularyPersistence tagsVocabularyPersistence;
316 }