1   /**
2    * Copyright (c) 2000-2008 Liferay, Inc. All rights reserved.
3    *
4    * Permission is hereby granted, free of charge, to any person obtaining a copy
5    * of this software and associated documentation files (the "Software"), to deal
6    * in the Software without restriction, including without limitation the rights
7    * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
8    * copies of the Software, and to permit persons to whom the Software is
9    * furnished to do so, subject to the following conditions:
10   *
11   * The above copyright notice and this permission notice shall be included in
12   * all copies or substantial portions of the Software.
13   *
14   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
15   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
16   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
17   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
18   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
19   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
20   * SOFTWARE.
21   */
22  
23  package com.liferay.portlet.tags.service.base;
24  
25  import com.liferay.portal.service.impl.PrincipalBean;
26  
27  import com.liferay.portlet.tags.service.TagsAssetLocalService;
28  import com.liferay.portlet.tags.service.TagsAssetLocalServiceFactory;
29  import com.liferay.portlet.tags.service.TagsAssetService;
30  import com.liferay.portlet.tags.service.TagsAssetServiceFactory;
31  import com.liferay.portlet.tags.service.TagsEntryLocalService;
32  import com.liferay.portlet.tags.service.TagsEntryLocalServiceFactory;
33  import com.liferay.portlet.tags.service.TagsEntryService;
34  import com.liferay.portlet.tags.service.TagsEntryServiceFactory;
35  import com.liferay.portlet.tags.service.TagsPropertyLocalService;
36  import com.liferay.portlet.tags.service.TagsPropertyLocalServiceFactory;
37  import com.liferay.portlet.tags.service.TagsPropertyService;
38  import com.liferay.portlet.tags.service.TagsPropertyServiceFactory;
39  import com.liferay.portlet.tags.service.TagsSourceLocalService;
40  import com.liferay.portlet.tags.service.TagsSourceLocalServiceFactory;
41  import com.liferay.portlet.tags.service.TagsSourceService;
42  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
43  import com.liferay.portlet.tags.service.persistence.TagsAssetFinderUtil;
44  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
45  import com.liferay.portlet.tags.service.persistence.TagsAssetUtil;
46  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
47  import com.liferay.portlet.tags.service.persistence.TagsEntryFinderUtil;
48  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
49  import com.liferay.portlet.tags.service.persistence.TagsEntryUtil;
50  import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
51  import com.liferay.portlet.tags.service.persistence.TagsPropertyFinderUtil;
52  import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
53  import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinderUtil;
54  import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
55  import com.liferay.portlet.tags.service.persistence.TagsPropertyUtil;
56  import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
57  import com.liferay.portlet.tags.service.persistence.TagsSourceUtil;
58  
59  import org.springframework.beans.factory.InitializingBean;
60  
61  /**
62   * <a href="TagsSourceServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
63   *
64   * @author Brian Wing Shun Chan
65   *
66   */
67  public abstract class TagsSourceServiceBaseImpl extends PrincipalBean
68      implements TagsSourceService, InitializingBean {
69      public TagsAssetLocalService getTagsAssetLocalService() {
70          return tagsAssetLocalService;
71      }
72  
73      public void setTagsAssetLocalService(
74          TagsAssetLocalService tagsAssetLocalService) {
75          this.tagsAssetLocalService = tagsAssetLocalService;
76      }
77  
78      public TagsAssetService getTagsAssetService() {
79          return tagsAssetService;
80      }
81  
82      public void setTagsAssetService(TagsAssetService tagsAssetService) {
83          this.tagsAssetService = tagsAssetService;
84      }
85  
86      public TagsAssetPersistence getTagsAssetPersistence() {
87          return tagsAssetPersistence;
88      }
89  
90      public void setTagsAssetPersistence(
91          TagsAssetPersistence tagsAssetPersistence) {
92          this.tagsAssetPersistence = tagsAssetPersistence;
93      }
94  
95      public TagsAssetFinder getTagsAssetFinder() {
96          return tagsAssetFinder;
97      }
98  
99      public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
100         this.tagsAssetFinder = tagsAssetFinder;
101     }
102 
103     public TagsEntryLocalService getTagsEntryLocalService() {
104         return tagsEntryLocalService;
105     }
106 
107     public void setTagsEntryLocalService(
108         TagsEntryLocalService tagsEntryLocalService) {
109         this.tagsEntryLocalService = tagsEntryLocalService;
110     }
111 
112     public TagsEntryService getTagsEntryService() {
113         return tagsEntryService;
114     }
115 
116     public void setTagsEntryService(TagsEntryService tagsEntryService) {
117         this.tagsEntryService = tagsEntryService;
118     }
119 
120     public TagsEntryPersistence getTagsEntryPersistence() {
121         return tagsEntryPersistence;
122     }
123 
124     public void setTagsEntryPersistence(
125         TagsEntryPersistence tagsEntryPersistence) {
126         this.tagsEntryPersistence = tagsEntryPersistence;
127     }
128 
129     public TagsEntryFinder getTagsEntryFinder() {
130         return tagsEntryFinder;
131     }
132 
133     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
134         this.tagsEntryFinder = tagsEntryFinder;
135     }
136 
137     public TagsPropertyLocalService getTagsPropertyLocalService() {
138         return tagsPropertyLocalService;
139     }
140 
141     public void setTagsPropertyLocalService(
142         TagsPropertyLocalService tagsPropertyLocalService) {
143         this.tagsPropertyLocalService = tagsPropertyLocalService;
144     }
145 
146     public TagsPropertyService getTagsPropertyService() {
147         return tagsPropertyService;
148     }
149 
150     public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
151         this.tagsPropertyService = tagsPropertyService;
152     }
153 
154     public TagsPropertyPersistence getTagsPropertyPersistence() {
155         return tagsPropertyPersistence;
156     }
157 
158     public void setTagsPropertyPersistence(
159         TagsPropertyPersistence tagsPropertyPersistence) {
160         this.tagsPropertyPersistence = tagsPropertyPersistence;
161     }
162 
163     public TagsPropertyFinder getTagsPropertyFinder() {
164         return tagsPropertyFinder;
165     }
166 
167     public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
168         this.tagsPropertyFinder = tagsPropertyFinder;
169     }
170 
171     public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
172         return tagsPropertyKeyFinder;
173     }
174 
175     public void setTagsPropertyKeyFinder(
176         TagsPropertyKeyFinder tagsPropertyKeyFinder) {
177         this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
178     }
179 
180     public TagsSourceLocalService getTagsSourceLocalService() {
181         return tagsSourceLocalService;
182     }
183 
184     public void setTagsSourceLocalService(
185         TagsSourceLocalService tagsSourceLocalService) {
186         this.tagsSourceLocalService = tagsSourceLocalService;
187     }
188 
189     public TagsSourcePersistence getTagsSourcePersistence() {
190         return tagsSourcePersistence;
191     }
192 
193     public void setTagsSourcePersistence(
194         TagsSourcePersistence tagsSourcePersistence) {
195         this.tagsSourcePersistence = tagsSourcePersistence;
196     }
197 
198     public void afterPropertiesSet() {
199         if (tagsAssetLocalService == null) {
200             tagsAssetLocalService = TagsAssetLocalServiceFactory.getImpl();
201         }
202 
203         if (tagsAssetService == null) {
204             tagsAssetService = TagsAssetServiceFactory.getImpl();
205         }
206 
207         if (tagsAssetPersistence == null) {
208             tagsAssetPersistence = TagsAssetUtil.getPersistence();
209         }
210 
211         if (tagsAssetFinder == null) {
212             tagsAssetFinder = TagsAssetFinderUtil.getFinder();
213         }
214 
215         if (tagsEntryLocalService == null) {
216             tagsEntryLocalService = TagsEntryLocalServiceFactory.getImpl();
217         }
218 
219         if (tagsEntryService == null) {
220             tagsEntryService = TagsEntryServiceFactory.getImpl();
221         }
222 
223         if (tagsEntryPersistence == null) {
224             tagsEntryPersistence = TagsEntryUtil.getPersistence();
225         }
226 
227         if (tagsEntryFinder == null) {
228             tagsEntryFinder = TagsEntryFinderUtil.getFinder();
229         }
230 
231         if (tagsPropertyLocalService == null) {
232             tagsPropertyLocalService = TagsPropertyLocalServiceFactory.getImpl();
233         }
234 
235         if (tagsPropertyService == null) {
236             tagsPropertyService = TagsPropertyServiceFactory.getImpl();
237         }
238 
239         if (tagsPropertyPersistence == null) {
240             tagsPropertyPersistence = TagsPropertyUtil.getPersistence();
241         }
242 
243         if (tagsPropertyFinder == null) {
244             tagsPropertyFinder = TagsPropertyFinderUtil.getFinder();
245         }
246 
247         if (tagsPropertyKeyFinder == null) {
248             tagsPropertyKeyFinder = TagsPropertyKeyFinderUtil.getFinder();
249         }
250 
251         if (tagsSourceLocalService == null) {
252             tagsSourceLocalService = TagsSourceLocalServiceFactory.getImpl();
253         }
254 
255         if (tagsSourcePersistence == null) {
256             tagsSourcePersistence = TagsSourceUtil.getPersistence();
257         }
258     }
259 
260     protected TagsAssetLocalService tagsAssetLocalService;
261     protected TagsAssetService tagsAssetService;
262     protected TagsAssetPersistence tagsAssetPersistence;
263     protected TagsAssetFinder tagsAssetFinder;
264     protected TagsEntryLocalService tagsEntryLocalService;
265     protected TagsEntryService tagsEntryService;
266     protected TagsEntryPersistence tagsEntryPersistence;
267     protected TagsEntryFinder tagsEntryFinder;
268     protected TagsPropertyLocalService tagsPropertyLocalService;
269     protected TagsPropertyService tagsPropertyService;
270     protected TagsPropertyPersistence tagsPropertyPersistence;
271     protected TagsPropertyFinder tagsPropertyFinder;
272     protected TagsPropertyKeyFinder tagsPropertyKeyFinder;
273     protected TagsSourceLocalService tagsSourceLocalService;
274     protected TagsSourcePersistence tagsSourcePersistence;
275 }