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.ratings.service.base;
24  
25  import com.liferay.counter.service.CounterLocalService;
26  import com.liferay.counter.service.CounterLocalServiceFactory;
27  import com.liferay.counter.service.CounterService;
28  import com.liferay.counter.service.CounterServiceFactory;
29  
30  import com.liferay.portal.service.UserLocalService;
31  import com.liferay.portal.service.UserLocalServiceFactory;
32  import com.liferay.portal.service.UserService;
33  import com.liferay.portal.service.UserServiceFactory;
34  import com.liferay.portal.service.impl.PrincipalBean;
35  import com.liferay.portal.service.persistence.UserFinder;
36  import com.liferay.portal.service.persistence.UserFinderUtil;
37  import com.liferay.portal.service.persistence.UserPersistence;
38  import com.liferay.portal.service.persistence.UserUtil;
39  
40  import com.liferay.portlet.blogs.service.BlogsEntryLocalService;
41  import com.liferay.portlet.blogs.service.BlogsEntryLocalServiceFactory;
42  import com.liferay.portlet.blogs.service.BlogsEntryService;
43  import com.liferay.portlet.blogs.service.BlogsEntryServiceFactory;
44  import com.liferay.portlet.blogs.service.BlogsStatsUserLocalService;
45  import com.liferay.portlet.blogs.service.BlogsStatsUserLocalServiceFactory;
46  import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinder;
47  import com.liferay.portlet.blogs.service.persistence.BlogsEntryFinderUtil;
48  import com.liferay.portlet.blogs.service.persistence.BlogsEntryPersistence;
49  import com.liferay.portlet.blogs.service.persistence.BlogsEntryUtil;
50  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinder;
51  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserFinderUtil;
52  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserPersistence;
53  import com.liferay.portlet.blogs.service.persistence.BlogsStatsUserUtil;
54  import com.liferay.portlet.ratings.service.RatingsEntryLocalService;
55  import com.liferay.portlet.ratings.service.RatingsEntryLocalServiceFactory;
56  import com.liferay.portlet.ratings.service.RatingsEntryService;
57  import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
58  import com.liferay.portlet.ratings.service.RatingsStatsLocalServiceFactory;
59  import com.liferay.portlet.ratings.service.persistence.RatingsEntryPersistence;
60  import com.liferay.portlet.ratings.service.persistence.RatingsEntryUtil;
61  import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
62  import com.liferay.portlet.ratings.service.persistence.RatingsStatsUtil;
63  
64  import org.springframework.beans.factory.InitializingBean;
65  
66  /**
67   * <a href="RatingsEntryServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
68   *
69   * @author Brian Wing Shun Chan
70   *
71   */
72  public abstract class RatingsEntryServiceBaseImpl extends PrincipalBean
73      implements RatingsEntryService, InitializingBean {
74      public RatingsEntryLocalService getRatingsEntryLocalService() {
75          return ratingsEntryLocalService;
76      }
77  
78      public void setRatingsEntryLocalService(
79          RatingsEntryLocalService ratingsEntryLocalService) {
80          this.ratingsEntryLocalService = ratingsEntryLocalService;
81      }
82  
83      public RatingsEntryPersistence getRatingsEntryPersistence() {
84          return ratingsEntryPersistence;
85      }
86  
87      public void setRatingsEntryPersistence(
88          RatingsEntryPersistence ratingsEntryPersistence) {
89          this.ratingsEntryPersistence = ratingsEntryPersistence;
90      }
91  
92      public RatingsStatsLocalService getRatingsStatsLocalService() {
93          return ratingsStatsLocalService;
94      }
95  
96      public void setRatingsStatsLocalService(
97          RatingsStatsLocalService ratingsStatsLocalService) {
98          this.ratingsStatsLocalService = ratingsStatsLocalService;
99      }
100 
101     public RatingsStatsPersistence getRatingsStatsPersistence() {
102         return ratingsStatsPersistence;
103     }
104 
105     public void setRatingsStatsPersistence(
106         RatingsStatsPersistence ratingsStatsPersistence) {
107         this.ratingsStatsPersistence = ratingsStatsPersistence;
108     }
109 
110     public CounterLocalService getCounterLocalService() {
111         return counterLocalService;
112     }
113 
114     public void setCounterLocalService(CounterLocalService counterLocalService) {
115         this.counterLocalService = counterLocalService;
116     }
117 
118     public CounterService getCounterService() {
119         return counterService;
120     }
121 
122     public void setCounterService(CounterService counterService) {
123         this.counterService = counterService;
124     }
125 
126     public UserLocalService getUserLocalService() {
127         return userLocalService;
128     }
129 
130     public void setUserLocalService(UserLocalService userLocalService) {
131         this.userLocalService = userLocalService;
132     }
133 
134     public UserService getUserService() {
135         return userService;
136     }
137 
138     public void setUserService(UserService userService) {
139         this.userService = userService;
140     }
141 
142     public UserPersistence getUserPersistence() {
143         return userPersistence;
144     }
145 
146     public void setUserPersistence(UserPersistence userPersistence) {
147         this.userPersistence = userPersistence;
148     }
149 
150     public UserFinder getUserFinder() {
151         return userFinder;
152     }
153 
154     public void setUserFinder(UserFinder userFinder) {
155         this.userFinder = userFinder;
156     }
157 
158     public BlogsEntryLocalService getBlogsEntryLocalService() {
159         return blogsEntryLocalService;
160     }
161 
162     public void setBlogsEntryLocalService(
163         BlogsEntryLocalService blogsEntryLocalService) {
164         this.blogsEntryLocalService = blogsEntryLocalService;
165     }
166 
167     public BlogsEntryService getBlogsEntryService() {
168         return blogsEntryService;
169     }
170 
171     public void setBlogsEntryService(BlogsEntryService blogsEntryService) {
172         this.blogsEntryService = blogsEntryService;
173     }
174 
175     public BlogsEntryPersistence getBlogsEntryPersistence() {
176         return blogsEntryPersistence;
177     }
178 
179     public void setBlogsEntryPersistence(
180         BlogsEntryPersistence blogsEntryPersistence) {
181         this.blogsEntryPersistence = blogsEntryPersistence;
182     }
183 
184     public BlogsEntryFinder getBlogsEntryFinder() {
185         return blogsEntryFinder;
186     }
187 
188     public void setBlogsEntryFinder(BlogsEntryFinder blogsEntryFinder) {
189         this.blogsEntryFinder = blogsEntryFinder;
190     }
191 
192     public BlogsStatsUserLocalService getBlogsStatsUserLocalService() {
193         return blogsStatsUserLocalService;
194     }
195 
196     public void setBlogsStatsUserLocalService(
197         BlogsStatsUserLocalService blogsStatsUserLocalService) {
198         this.blogsStatsUserLocalService = blogsStatsUserLocalService;
199     }
200 
201     public BlogsStatsUserPersistence getBlogsStatsUserPersistence() {
202         return blogsStatsUserPersistence;
203     }
204 
205     public void setBlogsStatsUserPersistence(
206         BlogsStatsUserPersistence blogsStatsUserPersistence) {
207         this.blogsStatsUserPersistence = blogsStatsUserPersistence;
208     }
209 
210     public BlogsStatsUserFinder getBlogsStatsUserFinder() {
211         return blogsStatsUserFinder;
212     }
213 
214     public void setBlogsStatsUserFinder(
215         BlogsStatsUserFinder blogsStatsUserFinder) {
216         this.blogsStatsUserFinder = blogsStatsUserFinder;
217     }
218 
219     public void afterPropertiesSet() {
220         if (ratingsEntryLocalService == null) {
221             ratingsEntryLocalService = RatingsEntryLocalServiceFactory.getImpl();
222         }
223 
224         if (ratingsEntryPersistence == null) {
225             ratingsEntryPersistence = RatingsEntryUtil.getPersistence();
226         }
227 
228         if (ratingsStatsLocalService == null) {
229             ratingsStatsLocalService = RatingsStatsLocalServiceFactory.getImpl();
230         }
231 
232         if (ratingsStatsPersistence == null) {
233             ratingsStatsPersistence = RatingsStatsUtil.getPersistence();
234         }
235 
236         if (counterLocalService == null) {
237             counterLocalService = CounterLocalServiceFactory.getImpl();
238         }
239 
240         if (counterService == null) {
241             counterService = CounterServiceFactory.getImpl();
242         }
243 
244         if (userLocalService == null) {
245             userLocalService = UserLocalServiceFactory.getImpl();
246         }
247 
248         if (userService == null) {
249             userService = UserServiceFactory.getImpl();
250         }
251 
252         if (userPersistence == null) {
253             userPersistence = UserUtil.getPersistence();
254         }
255 
256         if (userFinder == null) {
257             userFinder = UserFinderUtil.getFinder();
258         }
259 
260         if (blogsEntryLocalService == null) {
261             blogsEntryLocalService = BlogsEntryLocalServiceFactory.getImpl();
262         }
263 
264         if (blogsEntryService == null) {
265             blogsEntryService = BlogsEntryServiceFactory.getImpl();
266         }
267 
268         if (blogsEntryPersistence == null) {
269             blogsEntryPersistence = BlogsEntryUtil.getPersistence();
270         }
271 
272         if (blogsEntryFinder == null) {
273             blogsEntryFinder = BlogsEntryFinderUtil.getFinder();
274         }
275 
276         if (blogsStatsUserLocalService == null) {
277             blogsStatsUserLocalService = BlogsStatsUserLocalServiceFactory.getImpl();
278         }
279 
280         if (blogsStatsUserPersistence == null) {
281             blogsStatsUserPersistence = BlogsStatsUserUtil.getPersistence();
282         }
283 
284         if (blogsStatsUserFinder == null) {
285             blogsStatsUserFinder = BlogsStatsUserFinderUtil.getFinder();
286         }
287     }
288 
289     protected RatingsEntryLocalService ratingsEntryLocalService;
290     protected RatingsEntryPersistence ratingsEntryPersistence;
291     protected RatingsStatsLocalService ratingsStatsLocalService;
292     protected RatingsStatsPersistence ratingsStatsPersistence;
293     protected CounterLocalService counterLocalService;
294     protected CounterService counterService;
295     protected UserLocalService userLocalService;
296     protected UserService userService;
297     protected UserPersistence userPersistence;
298     protected UserFinder userFinder;
299     protected BlogsEntryLocalService blogsEntryLocalService;
300     protected BlogsEntryService blogsEntryService;
301     protected BlogsEntryPersistence blogsEntryPersistence;
302     protected BlogsEntryFinder blogsEntryFinder;
303     protected BlogsStatsUserLocalService blogsStatsUserLocalService;
304     protected BlogsStatsUserPersistence blogsStatsUserPersistence;
305     protected BlogsStatsUserFinder blogsStatsUserFinder;
306 }