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.announcements.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.base.PrincipalBean;
31  
32  import com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService;
33  import com.liferay.portlet.announcements.service.AnnouncementsDeliveryService;
34  import com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService;
35  import com.liferay.portlet.announcements.service.AnnouncementsEntryService;
36  import com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService;
37  import com.liferay.portlet.announcements.service.AnnouncementsFlagService;
38  import com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence;
39  import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder;
40  import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence;
41  import com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence;
42  
43  /**
44   * <a href="AnnouncementsFlagServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
45   *
46   * @author Brian Wing Shun Chan
47   *
48   */
49  public abstract class AnnouncementsFlagServiceBaseImpl extends PrincipalBean
50      implements AnnouncementsFlagService, InitializingBean {
51      public AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
52          return announcementsDeliveryLocalService;
53      }
54  
55      public void setAnnouncementsDeliveryLocalService(
56          AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
57          this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
58      }
59  
60      public AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
61          return announcementsDeliveryService;
62      }
63  
64      public void setAnnouncementsDeliveryService(
65          AnnouncementsDeliveryService announcementsDeliveryService) {
66          this.announcementsDeliveryService = announcementsDeliveryService;
67      }
68  
69      public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
70          return announcementsDeliveryPersistence;
71      }
72  
73      public void setAnnouncementsDeliveryPersistence(
74          AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
75          this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
76      }
77  
78      public AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
79          return announcementsEntryLocalService;
80      }
81  
82      public void setAnnouncementsEntryLocalService(
83          AnnouncementsEntryLocalService announcementsEntryLocalService) {
84          this.announcementsEntryLocalService = announcementsEntryLocalService;
85      }
86  
87      public AnnouncementsEntryService getAnnouncementsEntryService() {
88          return announcementsEntryService;
89      }
90  
91      public void setAnnouncementsEntryService(
92          AnnouncementsEntryService announcementsEntryService) {
93          this.announcementsEntryService = announcementsEntryService;
94      }
95  
96      public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
97          return announcementsEntryPersistence;
98      }
99  
100     public void setAnnouncementsEntryPersistence(
101         AnnouncementsEntryPersistence announcementsEntryPersistence) {
102         this.announcementsEntryPersistence = announcementsEntryPersistence;
103     }
104 
105     public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
106         return announcementsEntryFinder;
107     }
108 
109     public void setAnnouncementsEntryFinder(
110         AnnouncementsEntryFinder announcementsEntryFinder) {
111         this.announcementsEntryFinder = announcementsEntryFinder;
112     }
113 
114     public AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
115         return announcementsFlagLocalService;
116     }
117 
118     public void setAnnouncementsFlagLocalService(
119         AnnouncementsFlagLocalService announcementsFlagLocalService) {
120         this.announcementsFlagLocalService = announcementsFlagLocalService;
121     }
122 
123     public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
124         return announcementsFlagPersistence;
125     }
126 
127     public void setAnnouncementsFlagPersistence(
128         AnnouncementsFlagPersistence announcementsFlagPersistence) {
129         this.announcementsFlagPersistence = announcementsFlagPersistence;
130     }
131 
132     public CounterLocalService getCounterLocalService() {
133         return counterLocalService;
134     }
135 
136     public void setCounterLocalService(CounterLocalService counterLocalService) {
137         this.counterLocalService = counterLocalService;
138     }
139 
140     public CounterService getCounterService() {
141         return counterService;
142     }
143 
144     public void setCounterService(CounterService counterService) {
145         this.counterService = counterService;
146     }
147 
148     public void afterPropertiesSet() {
149         if (announcementsDeliveryLocalService == null) {
150             announcementsDeliveryLocalService = (AnnouncementsDeliveryLocalService)PortalBeanLocatorUtil.locate(AnnouncementsDeliveryLocalService.class.getName() +
151                     ".impl");
152         }
153 
154         if (announcementsDeliveryService == null) {
155             announcementsDeliveryService = (AnnouncementsDeliveryService)PortalBeanLocatorUtil.locate(AnnouncementsDeliveryService.class.getName() +
156                     ".impl");
157         }
158 
159         if (announcementsDeliveryPersistence == null) {
160             announcementsDeliveryPersistence = (AnnouncementsDeliveryPersistence)PortalBeanLocatorUtil.locate(AnnouncementsDeliveryPersistence.class.getName() +
161                     ".impl");
162         }
163 
164         if (announcementsEntryLocalService == null) {
165             announcementsEntryLocalService = (AnnouncementsEntryLocalService)PortalBeanLocatorUtil.locate(AnnouncementsEntryLocalService.class.getName() +
166                     ".impl");
167         }
168 
169         if (announcementsEntryService == null) {
170             announcementsEntryService = (AnnouncementsEntryService)PortalBeanLocatorUtil.locate(AnnouncementsEntryService.class.getName() +
171                     ".impl");
172         }
173 
174         if (announcementsEntryPersistence == null) {
175             announcementsEntryPersistence = (AnnouncementsEntryPersistence)PortalBeanLocatorUtil.locate(AnnouncementsEntryPersistence.class.getName() +
176                     ".impl");
177         }
178 
179         if (announcementsEntryFinder == null) {
180             announcementsEntryFinder = (AnnouncementsEntryFinder)PortalBeanLocatorUtil.locate(AnnouncementsEntryFinder.class.getName() +
181                     ".impl");
182         }
183 
184         if (announcementsFlagLocalService == null) {
185             announcementsFlagLocalService = (AnnouncementsFlagLocalService)PortalBeanLocatorUtil.locate(AnnouncementsFlagLocalService.class.getName() +
186                     ".impl");
187         }
188 
189         if (announcementsFlagPersistence == null) {
190             announcementsFlagPersistence = (AnnouncementsFlagPersistence)PortalBeanLocatorUtil.locate(AnnouncementsFlagPersistence.class.getName() +
191                     ".impl");
192         }
193 
194         if (counterLocalService == null) {
195             counterLocalService = (CounterLocalService)PortalBeanLocatorUtil.locate(CounterLocalService.class.getName() +
196                     ".impl");
197         }
198 
199         if (counterService == null) {
200             counterService = (CounterService)PortalBeanLocatorUtil.locate(CounterService.class.getName() +
201                     ".impl");
202         }
203     }
204 
205     protected AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
206     protected AnnouncementsDeliveryService announcementsDeliveryService;
207     protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
208     protected AnnouncementsEntryLocalService announcementsEntryLocalService;
209     protected AnnouncementsEntryService announcementsEntryService;
210     protected AnnouncementsEntryPersistence announcementsEntryPersistence;
211     protected AnnouncementsEntryFinder announcementsEntryFinder;
212     protected AnnouncementsFlagLocalService announcementsFlagLocalService;
213     protected AnnouncementsFlagPersistence announcementsFlagPersistence;
214     protected CounterLocalService counterLocalService;
215     protected CounterService counterService;
216 }