1
22
23 package com.liferay.portlet.tags.service.base;
24
25 import com.liferay.portal.SystemException;
26 import com.liferay.portal.kernel.dao.DynamicQueryInitializer;
27
28 import com.liferay.portlet.tags.model.TagsSource;
29 import com.liferay.portlet.tags.model.impl.TagsSourceImpl;
30 import com.liferay.portlet.tags.service.TagsAssetLocalService;
31 import com.liferay.portlet.tags.service.TagsAssetLocalServiceFactory;
32 import com.liferay.portlet.tags.service.TagsAssetService;
33 import com.liferay.portlet.tags.service.TagsAssetServiceFactory;
34 import com.liferay.portlet.tags.service.TagsEntryLocalService;
35 import com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory;
36 import com.liferay.portlet.tags.service.TagsEntryService;
37 import com.liferay.portlet.tags.service.TagsEntryServiceFactory;
38 import com.liferay.portlet.tags.service.TagsPropertyLocalService;
39 import com.liferay.portlet.tags.service.TagsPropertyLocalServiceFactory;
40 import com.liferay.portlet.tags.service.TagsPropertyService;
41 import com.liferay.portlet.tags.service.TagsPropertyServiceFactory;
42 import com.liferay.portlet.tags.service.TagsSourceLocalService;
43 import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
44 import com.liferay.portlet.tags.service.persistence.TagsAssetFinderUtil;
45 import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
46 import com.liferay.portlet.tags.service.persistence.TagsAssetUtil;
47 import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
48 import com.liferay.portlet.tags.service.persistence.TagsEntryFinderUtil;
49 import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
50 import com.liferay.portlet.tags.service.persistence.TagsEntryUtil;
51 import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
52 import com.liferay.portlet.tags.service.persistence.TagsPropertyFinderUtil;
53 import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
54 import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinderUtil;
55 import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
56 import com.liferay.portlet.tags.service.persistence.TagsPropertyUtil;
57 import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
58 import com.liferay.portlet.tags.service.persistence.TagsSourceUtil;
59
60 import org.springframework.beans.factory.InitializingBean;
61
62 import java.util.List;
63
64
70 public abstract class TagsSourceLocalServiceBaseImpl
71 implements TagsSourceLocalService, InitializingBean {
72 public TagsSource addTagsSource(TagsSource model) throws SystemException {
73 TagsSource tagsSource = new TagsSourceImpl();
74
75 tagsSource.setNew(true);
76
77 tagsSource.setSourceId(model.getSourceId());
78 tagsSource.setParentSourceId(model.getParentSourceId());
79 tagsSource.setName(model.getName());
80 tagsSource.setAcronym(model.getAcronym());
81
82 return tagsSourcePersistence.update(tagsSource);
83 }
84
85 public List dynamicQuery(DynamicQueryInitializer queryInitializer)
86 throws SystemException {
87 return tagsSourcePersistence.findWithDynamicQuery(queryInitializer);
88 }
89
90 public List dynamicQuery(DynamicQueryInitializer queryInitializer,
91 int begin, int end) throws SystemException {
92 return tagsSourcePersistence.findWithDynamicQuery(queryInitializer,
93 begin, end);
94 }
95
96 public TagsSource updateTagsSource(TagsSource model)
97 throws SystemException {
98 TagsSource tagsSource = new TagsSourceImpl();
99
100 tagsSource.setNew(false);
101
102 tagsSource.setSourceId(model.getSourceId());
103 tagsSource.setParentSourceId(model.getParentSourceId());
104 tagsSource.setName(model.getName());
105 tagsSource.setAcronym(model.getAcronym());
106
107 return tagsSourcePersistence.update(tagsSource);
108 }
109
110 public TagsAssetLocalService getTagsAssetLocalService() {
111 return tagsAssetLocalService;
112 }
113
114 public void setTagsAssetLocalService(
115 TagsAssetLocalService tagsAssetLocalService) {
116 this.tagsAssetLocalService = tagsAssetLocalService;
117 }
118
119 public TagsAssetService getTagsAssetService() {
120 return tagsAssetService;
121 }
122
123 public void setTagsAssetService(TagsAssetService tagsAssetService) {
124 this.tagsAssetService = tagsAssetService;
125 }
126
127 public TagsAssetPersistence getTagsAssetPersistence() {
128 return tagsAssetPersistence;
129 }
130
131 public void setTagsAssetPersistence(
132 TagsAssetPersistence tagsAssetPersistence) {
133 this.tagsAssetPersistence = tagsAssetPersistence;
134 }
135
136 public TagsAssetFinder getTagsAssetFinder() {
137 return tagsAssetFinder;
138 }
139
140 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
141 this.tagsAssetFinder = tagsAssetFinder;
142 }
143
144 public TagsEntryLocalService getTagsEntryLocalService() {
145 return tagsEntryLocalService;
146 }
147
148 public void setTagsEntryLocalService(
149 TagsEntryLocalService tagsEntryLocalService) {
150 this.tagsEntryLocalService = tagsEntryLocalService;
151 }
152
153 public TagsEntryService getTagsEntryService() {
154 return tagsEntryService;
155 }
156
157 public void setTagsEntryService(TagsEntryService tagsEntryService) {
158 this.tagsEntryService = tagsEntryService;
159 }
160
161 public TagsEntryPersistence getTagsEntryPersistence() {
162 return tagsEntryPersistence;
163 }
164
165 public void setTagsEntryPersistence(
166 TagsEntryPersistence tagsEntryPersistence) {
167 this.tagsEntryPersistence = tagsEntryPersistence;
168 }
169
170 public TagsEntryFinder getTagsEntryFinder() {
171 return tagsEntryFinder;
172 }
173
174 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
175 this.tagsEntryFinder = tagsEntryFinder;
176 }
177
178 public TagsPropertyLocalService getTagsPropertyLocalService() {
179 return tagsPropertyLocalService;
180 }
181
182 public void setTagsPropertyLocalService(
183 TagsPropertyLocalService tagsPropertyLocalService) {
184 this.tagsPropertyLocalService = tagsPropertyLocalService;
185 }
186
187 public TagsPropertyService getTagsPropertyService() {
188 return tagsPropertyService;
189 }
190
191 public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
192 this.tagsPropertyService = tagsPropertyService;
193 }
194
195 public TagsPropertyPersistence getTagsPropertyPersistence() {
196 return tagsPropertyPersistence;
197 }
198
199 public void setTagsPropertyPersistence(
200 TagsPropertyPersistence tagsPropertyPersistence) {
201 this.tagsPropertyPersistence = tagsPropertyPersistence;
202 }
203
204 public TagsPropertyFinder getTagsPropertyFinder() {
205 return tagsPropertyFinder;
206 }
207
208 public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
209 this.tagsPropertyFinder = tagsPropertyFinder;
210 }
211
212 public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
213 return tagsPropertyKeyFinder;
214 }
215
216 public void setTagsPropertyKeyFinder(
217 TagsPropertyKeyFinder tagsPropertyKeyFinder) {
218 this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
219 }
220
221 public TagsSourcePersistence getTagsSourcePersistence() {
222 return tagsSourcePersistence;
223 }
224
225 public void setTagsSourcePersistence(
226 TagsSourcePersistence tagsSourcePersistence) {
227 this.tagsSourcePersistence = tagsSourcePersistence;
228 }
229
230 public void afterPropertiesSet() {
231 if (tagsAssetLocalService == null) {
232 tagsAssetLocalService = TagsAssetLocalServiceFactory.getImpl();
233 }
234
235 if (tagsAssetService == null) {
236 tagsAssetService = TagsAssetServiceFactory.getImpl();
237 }
238
239 if (tagsAssetPersistence == null) {
240 tagsAssetPersistence = TagsAssetUtil.getPersistence();
241 }
242
243 if (tagsAssetFinder == null) {
244 tagsAssetFinder = TagsAssetFinderUtil.getFinder();
245 }
246
247 if (tagsEntryLocalService == null) {
248 tagsEntryLocalService = TagsEntryLocalServiceFactory.getImpl();
249 }
250
251 if (tagsEntryService == null) {
252 tagsEntryService = TagsEntryServiceFactory.getImpl();
253 }
254
255 if (tagsEntryPersistence == null) {
256 tagsEntryPersistence = TagsEntryUtil.getPersistence();
257 }
258
259 if (tagsEntryFinder == null) {
260 tagsEntryFinder = TagsEntryFinderUtil.getFinder();
261 }
262
263 if (tagsPropertyLocalService == null) {
264 tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getImpl();
265 }
266
267 if (tagsPropertyService == null) {
268 tagsPropertyService = TagsPropertyServiceFactory.getImpl();
269 }
270
271 if (tagsPropertyPersistence == null) {
272 tagsPropertyPersistence = TagsPropertyUtil.getPersistence();
273 }
274
275 if (tagsPropertyFinder == null) {
276 tagsPropertyFinder = TagsPropertyFinderUtil.getFinder();
277 }
278
279 if (tagsPropertyKeyFinder == null) {
280 tagsPropertyKeyFinder = TagsPropertyKeyFinderUtil.getFinder();
281 }
282
283 if (tagsSourcePersistence == null) {
284 tagsSourcePersistence = TagsSourceUtil.getPersistence();
285 }
286 }
287
288 protected TagsAssetLocalService tagsAssetLocalService;
289 protected TagsAssetService tagsAssetService;
290 protected TagsAssetPersistence tagsAssetPersistence;
291 protected TagsAssetFinder tagsAssetFinder;
292 protected TagsEntryLocalService tagsEntryLocalService;
293 protected TagsEntryService tagsEntryService;
294 protected TagsEntryPersistence tagsEntryPersistence;
295 protected TagsEntryFinder tagsEntryFinder;
296 protected TagsPropertyLocalService tagsPropertyLocalService;
297 protected TagsPropertyService tagsPropertyService;
298 protected TagsPropertyPersistence tagsPropertyPersistence;
299 protected TagsPropertyFinder tagsPropertyFinder;
300 protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
301 protected TagsSourcePersistence tagsSourcePersistence;
302 }