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.kernel.bean.InitializingBean;
26  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
27  import com.liferay.portal.service.base.PrincipalBean;
28  
29  import com.liferay.portlet.tags.service.TagsAssetLocalService;
30  import com.liferay.portlet.tags.service.TagsAssetService;
31  import com.liferay.portlet.tags.service.TagsEntryLocalService;
32  import com.liferay.portlet.tags.service.TagsEntryService;
33  import com.liferay.portlet.tags.service.TagsPropertyLocalService;
34  import com.liferay.portlet.tags.service.TagsPropertyService;
35  import com.liferay.portlet.tags.service.TagsSourceLocalService;
36  import com.liferay.portlet.tags.service.TagsSourceService;
37  import com.liferay.portlet.tags.service.persistence.TagsAssetFinder;
38  import com.liferay.portlet.tags.service.persistence.TagsAssetPersistence;
39  import com.liferay.portlet.tags.service.persistence.TagsEntryFinder;
40  import com.liferay.portlet.tags.service.persistence.TagsEntryPersistence;
41  import com.liferay.portlet.tags.service.persistence.TagsPropertyFinder;
42  import com.liferay.portlet.tags.service.persistence.TagsPropertyKeyFinder;
43  import com.liferay.portlet.tags.service.persistence.TagsPropertyPersistence;
44  import com.liferay.portlet.tags.service.persistence.TagsSourcePersistence;
45  
46  /**
47   * <a href="TagsSourceServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
48   *
49   * @author Brian Wing Shun Chan
50   *
51   */
52  public abstract class TagsSourceServiceBaseImpl extends PrincipalBean
53      implements TagsSourceService, InitializingBean {
54      public TagsAssetLocalService getTagsAssetLocalService() {
55          return tagsAssetLocalService;
56      }
57  
58      public void setTagsAssetLocalService(
59          TagsAssetLocalService tagsAssetLocalService) {
60          this.tagsAssetLocalService = tagsAssetLocalService;
61      }
62  
63      public TagsAssetService getTagsAssetService() {
64          return tagsAssetService;
65      }
66  
67      public void setTagsAssetService(TagsAssetService tagsAssetService) {
68          this.tagsAssetService = tagsAssetService;
69      }
70  
71      public TagsAssetPersistence getTagsAssetPersistence() {
72          return tagsAssetPersistence;
73      }
74  
75      public void setTagsAssetPersistence(
76          TagsAssetPersistence tagsAssetPersistence) {
77          this.tagsAssetPersistence = tagsAssetPersistence;
78      }
79  
80      public TagsAssetFinder getTagsAssetFinder() {
81          return tagsAssetFinder;
82      }
83  
84      public void setTagsAssetFinder(TagsAssetFinder tagsAssetFinder) {
85          this.tagsAssetFinder = tagsAssetFinder;
86      }
87  
88      public TagsEntryLocalService getTagsEntryLocalService() {
89          return tagsEntryLocalService;
90      }
91  
92      public void setTagsEntryLocalService(
93          TagsEntryLocalService tagsEntryLocalService) {
94          this.tagsEntryLocalService = tagsEntryLocalService;
95      }
96  
97      public TagsEntryService getTagsEntryService() {
98          return tagsEntryService;
99      }
100 
101     public void setTagsEntryService(TagsEntryService tagsEntryService) {
102         this.tagsEntryService = tagsEntryService;
103     }
104 
105     public TagsEntryPersistence getTagsEntryPersistence() {
106         return tagsEntryPersistence;
107     }
108 
109     public void setTagsEntryPersistence(
110         TagsEntryPersistence tagsEntryPersistence) {
111         this.tagsEntryPersistence = tagsEntryPersistence;
112     }
113 
114     public TagsEntryFinder getTagsEntryFinder() {
115         return tagsEntryFinder;
116     }
117 
118     public void setTagsEntryFinder(TagsEntryFinder tagsEntryFinder) {
119         this.tagsEntryFinder = tagsEntryFinder;
120     }
121 
122     public TagsPropertyLocalService getTagsPropertyLocalService() {
123         return tagsPropertyLocalService;
124     }
125 
126     public void setTagsPropertyLocalService(
127         TagsPropertyLocalService tagsPropertyLocalService) {
128         this.tagsPropertyLocalService = tagsPropertyLocalService;
129     }
130 
131     public TagsPropertyService getTagsPropertyService() {
132         return tagsPropertyService;
133     }
134 
135     public void setTagsPropertyService(TagsPropertyService tagsPropertyService) {
136         this.tagsPropertyService = tagsPropertyService;
137     }
138 
139     public TagsPropertyPersistence getTagsPropertyPersistence() {
140         return tagsPropertyPersistence;
141     }
142 
143     public void setTagsPropertyPersistence(
144         TagsPropertyPersistence tagsPropertyPersistence) {
145         this.tagsPropertyPersistence = tagsPropertyPersistence;
146     }
147 
148     public TagsPropertyFinder getTagsPropertyFinder() {
149         return tagsPropertyFinder;
150     }
151 
152     public void setTagsPropertyFinder(TagsPropertyFinder tagsPropertyFinder) {
153         this.tagsPropertyFinder = tagsPropertyFinder;
154     }
155 
156     public TagsPropertyKeyFinder getTagsPropertyKeyFinder() {
157         return tagsPropertyKeyFinder;
158     }
159 
160     public void setTagsPropertyKeyFinder(
161         TagsPropertyKeyFinder tagsPropertyKeyFinder) {
162         this.tagsPropertyKeyFinder = tagsPropertyKeyFinder;
163     }
164 
165     public TagsSourceLocalService getTagsSourceLocalService() {
166         return tagsSourceLocalService;
167     }
168 
169     public void setTagsSourceLocalService(
170         TagsSourceLocalService tagsSourceLocalService) {
171         this.tagsSourceLocalService = tagsSourceLocalService;
172     }
173 
174     public TagsSourcePersistence getTagsSourcePersistence() {
175         return tagsSourcePersistence;
176     }
177 
178     public void setTagsSourcePersistence(
179         TagsSourcePersistence tagsSourcePersistence) {
180         this.tagsSourcePersistence = tagsSourcePersistence;
181     }
182 
183     public void afterPropertiesSet() {
184         if (tagsAssetLocalService == null) {
185             tagsAssetLocalService = (TagsAssetLocalService)PortalBeanLocatorUtil.locate(TagsAssetLocalService.class.getName() +
186                     ".impl");
187         }
188 
189         if (tagsAssetService == null) {
190             tagsAssetService = (TagsAssetService)PortalBeanLocatorUtil.locate(TagsAssetService.class.getName() +
191                     ".impl");
192         }
193 
194         if (tagsAssetPersistence == null) {
195             tagsAssetPersistence = (TagsAssetPersistence)PortalBeanLocatorUtil.locate(TagsAssetPersistence.class.getName() +
196                     ".impl");
197         }
198 
199         if (tagsAssetFinder == null) {
200             tagsAssetFinder = (TagsAssetFinder)PortalBeanLocatorUtil.locate(TagsAssetFinder.class.getName() +
201                     ".impl");
202         }
203 
204         if (tagsEntryLocalService == null) {
205             tagsEntryLocalService = (TagsEntryLocalService)PortalBeanLocatorUtil.locate(TagsEntryLocalService.class.getName() +
206                     ".impl");
207         }
208 
209         if (tagsEntryService == null) {
210             tagsEntryService = (TagsEntryService)PortalBeanLocatorUtil.locate(TagsEntryService.class.getName() +
211                     ".impl");
212         }
213 
214         if (tagsEntryPersistence == null) {
215             tagsEntryPersistence = (TagsEntryPersistence)PortalBeanLocatorUtil.locate(TagsEntryPersistence.class.getName() +
216                     ".impl");
217         }
218 
219         if (tagsEntryFinder == null) {
220             tagsEntryFinder = (TagsEntryFinder)PortalBeanLocatorUtil.locate(TagsEntryFinder.class.getName() +
221                     ".impl");
222         }
223 
224         if (tagsPropertyLocalService == null) {
225             tagsPropertyLocalService = (TagsPropertyLocalService)PortalBeanLocatorUtil.locate(TagsPropertyLocalService.class.getName() +
226                     ".impl");
227         }
228 
229         if (tagsPropertyService == null) {
230             tagsPropertyService = (TagsPropertyService)PortalBeanLocatorUtil.locate(TagsPropertyService.class.getName() +
231                     ".impl");
232         }
233 
234         if (tagsPropertyPersistence == null) {
235             tagsPropertyPersistence = (TagsPropertyPersistence)PortalBeanLocatorUtil.locate(TagsPropertyPersistence.class.getName() +
236                     ".impl");
237         }
238 
239         if (tagsPropertyFinder == null) {
240             tagsPropertyFinder = (TagsPropertyFinder)PortalBeanLocatorUtil.locate(TagsPropertyFinder.class.getName() +
241                     ".impl");
242         }
243 
244         if (tagsPropertyKeyFinder == null) {
245             tagsPropertyKeyFinder = (TagsPropertyKeyFinder)PortalBeanLocatorUtil.locate(TagsPropertyKeyFinder.class.getName() +
246                     ".impl");
247         }
248 
249         if (tagsSourceLocalService == null) {
250             tagsSourceLocalService = (TagsSourceLocalService)PortalBeanLocatorUtil.locate(TagsSourceLocalService.class.getName() +
251                     ".impl");
252         }
253 
254         if (tagsSourcePersistence == null) {
255             tagsSourcePersistence = (TagsSourcePersistence)PortalBeanLocatorUtil.locate(TagsSourcePersistence.class.getName() +
256                     ".impl");
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 }