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.tasks.service.base;
24  
25  import com.liferay.counter.service.CounterLocalService;
26  import com.liferay.counter.service.CounterService;
27  
28  import com.liferay.portal.kernel.bean.InitializingBean;
29  import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
30  import com.liferay.portal.service.UserLocalService;
31  import com.liferay.portal.service.UserService;
32  import com.liferay.portal.service.base.PrincipalBean;
33  import com.liferay.portal.service.persistence.UserFinder;
34  import com.liferay.portal.service.persistence.UserPersistence;
35  
36  import com.liferay.portlet.social.service.SocialActivityLocalService;
37  import com.liferay.portlet.social.service.persistence.SocialActivityFinder;
38  import com.liferay.portlet.social.service.persistence.SocialActivityPersistence;
39  import com.liferay.portlet.tasks.service.TasksProposalLocalService;
40  import com.liferay.portlet.tasks.service.TasksProposalService;
41  import com.liferay.portlet.tasks.service.TasksReviewLocalService;
42  import com.liferay.portlet.tasks.service.TasksReviewService;
43  import com.liferay.portlet.tasks.service.persistence.TasksProposalFinder;
44  import com.liferay.portlet.tasks.service.persistence.TasksProposalPersistence;
45  import com.liferay.portlet.tasks.service.persistence.TasksReviewPersistence;
46  
47  /**
48   * <a href="TasksReviewServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
49   *
50   * @author Brian Wing Shun Chan
51   *
52   */
53  public abstract class TasksReviewServiceBaseImpl extends PrincipalBean
54      implements TasksReviewService, InitializingBean {
55      public TasksReviewLocalService getTasksReviewLocalService() {
56          return tasksReviewLocalService;
57      }
58  
59      public void setTasksReviewLocalService(
60          TasksReviewLocalService tasksReviewLocalService) {
61          this.tasksReviewLocalService = tasksReviewLocalService;
62      }
63  
64      public TasksReviewPersistence getTasksReviewPersistence() {
65          return tasksReviewPersistence;
66      }
67  
68      public void setTasksReviewPersistence(
69          TasksReviewPersistence tasksReviewPersistence) {
70          this.tasksReviewPersistence = tasksReviewPersistence;
71      }
72  
73      public TasksProposalLocalService getTasksProposalLocalService() {
74          return tasksProposalLocalService;
75      }
76  
77      public void setTasksProposalLocalService(
78          TasksProposalLocalService tasksProposalLocalService) {
79          this.tasksProposalLocalService = tasksProposalLocalService;
80      }
81  
82      public TasksProposalService getTasksProposalService() {
83          return tasksProposalService;
84      }
85  
86      public void setTasksProposalService(
87          TasksProposalService tasksProposalService) {
88          this.tasksProposalService = tasksProposalService;
89      }
90  
91      public TasksProposalPersistence getTasksProposalPersistence() {
92          return tasksProposalPersistence;
93      }
94  
95      public void setTasksProposalPersistence(
96          TasksProposalPersistence tasksProposalPersistence) {
97          this.tasksProposalPersistence = tasksProposalPersistence;
98      }
99  
100     public TasksProposalFinder getTasksProposalFinder() {
101         return tasksProposalFinder;
102     }
103 
104     public void setTasksProposalFinder(TasksProposalFinder tasksProposalFinder) {
105         this.tasksProposalFinder = tasksProposalFinder;
106     }
107 
108     public CounterLocalService getCounterLocalService() {
109         return counterLocalService;
110     }
111 
112     public void setCounterLocalService(CounterLocalService counterLocalService) {
113         this.counterLocalService = counterLocalService;
114     }
115 
116     public CounterService getCounterService() {
117         return counterService;
118     }
119 
120     public void setCounterService(CounterService counterService) {
121         this.counterService = counterService;
122     }
123 
124     public UserLocalService getUserLocalService() {
125         return userLocalService;
126     }
127 
128     public void setUserLocalService(UserLocalService userLocalService) {
129         this.userLocalService = userLocalService;
130     }
131 
132     public UserService getUserService() {
133         return userService;
134     }
135 
136     public void setUserService(UserService userService) {
137         this.userService = userService;
138     }
139 
140     public UserPersistence getUserPersistence() {
141         return userPersistence;
142     }
143 
144     public void setUserPersistence(UserPersistence userPersistence) {
145         this.userPersistence = userPersistence;
146     }
147 
148     public UserFinder getUserFinder() {
149         return userFinder;
150     }
151 
152     public void setUserFinder(UserFinder userFinder) {
153         this.userFinder = userFinder;
154     }
155 
156     public SocialActivityLocalService getSocialActivityLocalService() {
157         return socialActivityLocalService;
158     }
159 
160     public void setSocialActivityLocalService(
161         SocialActivityLocalService socialActivityLocalService) {
162         this.socialActivityLocalService = socialActivityLocalService;
163     }
164 
165     public SocialActivityPersistence getSocialActivityPersistence() {
166         return socialActivityPersistence;
167     }
168 
169     public void setSocialActivityPersistence(
170         SocialActivityPersistence socialActivityPersistence) {
171         this.socialActivityPersistence = socialActivityPersistence;
172     }
173 
174     public SocialActivityFinder getSocialActivityFinder() {
175         return socialActivityFinder;
176     }
177 
178     public void setSocialActivityFinder(
179         SocialActivityFinder socialActivityFinder) {
180         this.socialActivityFinder = socialActivityFinder;
181     }
182 
183     public void afterPropertiesSet() {
184         if (tasksReviewLocalService == null) {
185             tasksReviewLocalService = (TasksReviewLocalService)PortalBeanLocatorUtil.locate(TasksReviewLocalService.class.getName() +
186                     ".impl");
187         }
188 
189         if (tasksReviewPersistence == null) {
190             tasksReviewPersistence = (TasksReviewPersistence)PortalBeanLocatorUtil.locate(TasksReviewPersistence.class.getName() +
191                     ".impl");
192         }
193 
194         if (tasksProposalLocalService == null) {
195             tasksProposalLocalService = (TasksProposalLocalService)PortalBeanLocatorUtil.locate(TasksProposalLocalService.class.getName() +
196                     ".impl");
197         }
198 
199         if (tasksProposalService == null) {
200             tasksProposalService = (TasksProposalService)PortalBeanLocatorUtil.locate(TasksProposalService.class.getName() +
201                     ".impl");
202         }
203 
204         if (tasksProposalPersistence == null) {
205             tasksProposalPersistence = (TasksProposalPersistence)PortalBeanLocatorUtil.locate(TasksProposalPersistence.class.getName() +
206                     ".impl");
207         }
208 
209         if (tasksProposalFinder == null) {
210             tasksProposalFinder = (TasksProposalFinder)PortalBeanLocatorUtil.locate(TasksProposalFinder.class.getName() +
211                     ".impl");
212         }
213 
214         if (counterLocalService == null) {
215             counterLocalService = (CounterLocalService)PortalBeanLocatorUtil.locate(CounterLocalService.class.getName() +
216                     ".impl");
217         }
218 
219         if (counterService == null) {
220             counterService = (CounterService)PortalBeanLocatorUtil.locate(CounterService.class.getName() +
221                     ".impl");
222         }
223 
224         if (userLocalService == null) {
225             userLocalService = (UserLocalService)PortalBeanLocatorUtil.locate(UserLocalService.class.getName() +
226                     ".impl");
227         }
228 
229         if (userService == null) {
230             userService = (UserService)PortalBeanLocatorUtil.locate(UserService.class.getName() +
231                     ".impl");
232         }
233 
234         if (userPersistence == null) {
235             userPersistence = (UserPersistence)PortalBeanLocatorUtil.locate(UserPersistence.class.getName() +
236                     ".impl");
237         }
238 
239         if (userFinder == null) {
240             userFinder = (UserFinder)PortalBeanLocatorUtil.locate(UserFinder.class.getName() +
241                     ".impl");
242         }
243 
244         if (socialActivityLocalService == null) {
245             socialActivityLocalService = (SocialActivityLocalService)PortalBeanLocatorUtil.locate(SocialActivityLocalService.class.getName() +
246                     ".impl");
247         }
248 
249         if (socialActivityPersistence == null) {
250             socialActivityPersistence = (SocialActivityPersistence)PortalBeanLocatorUtil.locate(SocialActivityPersistence.class.getName() +
251                     ".impl");
252         }
253 
254         if (socialActivityFinder == null) {
255             socialActivityFinder = (SocialActivityFinder)PortalBeanLocatorUtil.locate(SocialActivityFinder.class.getName() +
256                     ".impl");
257         }
258     }
259 
260     protected TasksReviewLocalService tasksReviewLocalService;
261     protected TasksReviewPersistence tasksReviewPersistence;
262     protected TasksProposalLocalService tasksProposalLocalService;
263     protected TasksProposalService tasksProposalService;
264     protected TasksProposalPersistence tasksProposalPersistence;
265     protected TasksProposalFinder tasksProposalFinder;
266     protected CounterLocalService counterLocalService;
267     protected CounterService counterService;
268     protected UserLocalService userLocalService;
269     protected UserService userService;
270     protected UserPersistence userPersistence;
271     protected UserFinder userFinder;
272     protected SocialActivityLocalService socialActivityLocalService;
273     protected SocialActivityPersistence socialActivityPersistence;
274     protected SocialActivityFinder socialActivityFinder;
275 }