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