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