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 return tagsSourcePersistence.update(model, true);
99 }
100
101 public TagsAssetLocalService getTagsAssetLocalService() {
102 return tagsAssetLocalService;
103 }
104
105 public void setTagsAssetLocalService(
106 TagsAssetLocalService tagsAssetLocalService) {
107 this.tagsAssetLocalService = tagsAssetLocalService;
108 }
109
110 public TagsAssetService getTagsAssetService() {
111 return tagsAssetService;
112 }
113
114 public void setTagsAssetService(TagsAssetService tagsAssetService) {
115 this.tagsAssetService = tagsAssetService;
116 }
117
118 public TagsAssetPersistence getTagsAssetPersistence() {
119 return tagsAssetPersistence;
120 }
121
122 public void setTagsAssetPersistence(
123 TagsAssetPersistence tagsAssetPersistence) {
124 this.tagsAssetPersistence = tagsAssetPersistence;
125 }
126
127 public TagsAssetFinder getTagsAssetFinder() {
128 return tagsAssetFinder;
129 }
130
131 public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
132 this.tagsAssetFinder = tagsAssetFinder;
133 }
134
135 public TagsEntryLocalService getTagsEntryLocalService() {
136 return tagsEntryLocalService;
137 }
138
139 public void setTagsEntryLocalService(
140 TagsEntryLocalService tagsEntryLocalService) {
141 this.tagsEntryLocalService = tagsEntryLocalService;
142 }
143
144 public TagsEntryService getTagsEntryService() {
145 return tagsEntryService;
146 }
147
148 public void setTagsEntryService(TagsEntryService tagsEntryService) {
149 this.tagsEntryService = tagsEntryService;
150 }
151
152 public TagsEntryPersistence getTagsEntryPersistence() {
153 return tagsEntryPersistence;
154 }
155
156 public void setTagsEntryPersistence(
157 TagsEntryPersistence tagsEntryPersistence) {
158 this.tagsEntryPersistence = tagsEntryPersistence;
159 }
160
161 public TagsEntryFinder getTagsEntryFinder() {
162 return tagsEntryFinder;
163 }
164
165 public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
166 this.tagsEntryFinder = tagsEntryFinder;
167 }
168
169 public TagsPropertyLocalService getTagsPropertyLocalService() {
170 return tagsPropertyLocalService;
171 }
172
173 public void setTagsPropertyLocalService(
174 TagsPropertyLocalService tagsPropertyLocalService) {
175 this.tagsPropertyLocalService = tagsPropertyLocalService;
176 }
177
178 public TagsPropertyService getTagsPropertyService() {
179 return tagsPropertyService;
180 }
181
182 public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
183 this.tagsPropertyService = tagsPropertyService;
184 }
185
186 public TagsPropertyPersistence getTagsPropertyPersistence() {
187 return tagsPropertyPersistence;
188 }
189
190 public void setTagsPropertyPersistence(
191 TagsPropertyPersistence tagsPropertyPersistence) {
192 this.tagsPropertyPersistence = tagsPropertyPersistence;
193 }
194
195 public TagsPropertyFinder getTagsPropertyFinder() {
196 return tagsPropertyFinder;
197 }
198
199 public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
200 this.tagsPropertyFinder = tagsPropertyFinder;
201 }
202
203 public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
204 return tagsPropertyKeyFinder;
205 }
206
207 public void setTagsPropertyKeyFinder(
208 TagsPropertyKeyFinder tagsPropertyKeyFinder) {
209 this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
210 }
211
212 public TagsSourcePersistence getTagsSourcePersistence() {
213 return tagsSourcePersistence;
214 }
215
216 public void setTagsSourcePersistence(
217 TagsSourcePersistence tagsSourcePersistence) {
218 this.tagsSourcePersistence = tagsSourcePersistence;
219 }
220
221 public void afterPropertiesSet() {
222 if (tagsAssetLocalService == null) {
223 tagsAssetLocalService = TagsAssetLocalServiceFactory.getImpl();
224 }
225
226 if (tagsAssetService == null) {
227 tagsAssetService = TagsAssetServiceFactory.getImpl();
228 }
229
230 if (tagsAssetPersistence == null) {
231 tagsAssetPersistence = TagsAssetUtil.getPersistence();
232 }
233
234 if (tagsAssetFinder == null) {
235 tagsAssetFinder = TagsAssetFinderUtil.getFinder();
236 }
237
238 if (tagsEntryLocalService == null) {
239 tagsEntryLocalService = TagsEntryLocalServiceFactory.getImpl();
240 }
241
242 if (tagsEntryService == null) {
243 tagsEntryService = TagsEntryServiceFactory.getImpl();
244 }
245
246 if (tagsEntryPersistence == null) {
247 tagsEntryPersistence = TagsEntryUtil.getPersistence();
248 }
249
250 if (tagsEntryFinder == null) {
251 tagsEntryFinder = TagsEntryFinderUtil.getFinder();
252 }
253
254 if (tagsPropertyLocalService == null) {
255 tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getImpl();
256 }
257
258 if (tagsPropertyService == null) {
259 tagsPropertyService = TagsPropertyServiceFactory.getImpl();
260 }
261
262 if (tagsPropertyPersistence == null) {
263 tagsPropertyPersistence = TagsPropertyUtil.getPersistence();
264 }
265
266 if (tagsPropertyFinder == null) {
267 tagsPropertyFinder = TagsPropertyFinderUtil.getFinder();
268 }
269
270 if (tagsPropertyKeyFinder == null) {
271 tagsPropertyKeyFinder = TagsPropertyKeyFinderUtil.getFinder();
272 }
273
274 if (tagsSourcePersistence == null) {
275 tagsSourcePersistence = TagsSourceUtil.getPersistence();
276 }
277 }
278
279 protected TagsAssetLocalService tagsAssetLocalService;
280 protected TagsAssetService tagsAssetService;
281 protected TagsAssetPersistence tagsAssetPersistence;
282 protected TagsAssetFinder tagsAssetFinder;
283 protected TagsEntryLocalService tagsEntryLocalService;
284 protected TagsEntryService tagsEntryService;
285 protected TagsEntryPersistence tagsEntryPersistence;
286 protected TagsEntryFinder tagsEntryFinder;
287 protected TagsPropertyLocalService tagsPropertyLocalService;
288 protected TagsPropertyService tagsPropertyService;
289 protected TagsPropertyPersistence tagsPropertyPersistence;
290 protected TagsPropertyFinder tagsPropertyFinder;
291 protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
292 protected TagsSourcePersistence tagsSourcePersistence;
293 }