1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.announcements.service.base;
21  
22  import com.liferay.counter.service.CounterLocalService;
23  import com.liferay.counter.service.CounterService;
24  
25  import com.liferay.portal.SystemException;
26  import com.liferay.portal.kernel.annotation.BeanReference;
27  import com.liferay.portal.service.UserLocalService;
28  import com.liferay.portal.service.UserService;
29  import com.liferay.portal.service.base.PrincipalBean;
30  import com.liferay.portal.service.persistence.UserFinder;
31  import com.liferay.portal.service.persistence.UserPersistence;
32  import com.liferay.portal.util.PortalUtil;
33  
34  import com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService;
35  import com.liferay.portlet.announcements.service.AnnouncementsDeliveryService;
36  import com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService;
37  import com.liferay.portlet.announcements.service.AnnouncementsEntryService;
38  import com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService;
39  import com.liferay.portlet.announcements.service.AnnouncementsFlagService;
40  import com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence;
41  import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder;
42  import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence;
43  import com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence;
44  
45  /**
46   * <a href="AnnouncementsDeliveryServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
47   *
48   * @author Brian Wing Shun Chan
49   *
50   */
51  public abstract class AnnouncementsDeliveryServiceBaseImpl extends PrincipalBean
52      implements AnnouncementsDeliveryService {
53      public AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
54          return announcementsDeliveryLocalService;
55      }
56  
57      public void setAnnouncementsDeliveryLocalService(
58          AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
59          this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
60      }
61  
62      public AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
63          return announcementsDeliveryService;
64      }
65  
66      public void setAnnouncementsDeliveryService(
67          AnnouncementsDeliveryService announcementsDeliveryService) {
68          this.announcementsDeliveryService = announcementsDeliveryService;
69      }
70  
71      public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
72          return announcementsDeliveryPersistence;
73      }
74  
75      public void setAnnouncementsDeliveryPersistence(
76          AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
77          this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
78      }
79  
80      public AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
81          return announcementsEntryLocalService;
82      }
83  
84      public void setAnnouncementsEntryLocalService(
85          AnnouncementsEntryLocalService announcementsEntryLocalService) {
86          this.announcementsEntryLocalService = announcementsEntryLocalService;
87      }
88  
89      public AnnouncementsEntryService getAnnouncementsEntryService() {
90          return announcementsEntryService;
91      }
92  
93      public void setAnnouncementsEntryService(
94          AnnouncementsEntryService announcementsEntryService) {
95          this.announcementsEntryService = announcementsEntryService;
96      }
97  
98      public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
99          return announcementsEntryPersistence;
100     }
101 
102     public void setAnnouncementsEntryPersistence(
103         AnnouncementsEntryPersistence announcementsEntryPersistence) {
104         this.announcementsEntryPersistence = announcementsEntryPersistence;
105     }
106 
107     public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
108         return announcementsEntryFinder;
109     }
110 
111     public void setAnnouncementsEntryFinder(
112         AnnouncementsEntryFinder announcementsEntryFinder) {
113         this.announcementsEntryFinder = announcementsEntryFinder;
114     }
115 
116     public AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
117         return announcementsFlagLocalService;
118     }
119 
120     public void setAnnouncementsFlagLocalService(
121         AnnouncementsFlagLocalService announcementsFlagLocalService) {
122         this.announcementsFlagLocalService = announcementsFlagLocalService;
123     }
124 
125     public AnnouncementsFlagService getAnnouncementsFlagService() {
126         return announcementsFlagService;
127     }
128 
129     public void setAnnouncementsFlagService(
130         AnnouncementsFlagService announcementsFlagService) {
131         this.announcementsFlagService = announcementsFlagService;
132     }
133 
134     public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
135         return announcementsFlagPersistence;
136     }
137 
138     public void setAnnouncementsFlagPersistence(
139         AnnouncementsFlagPersistence announcementsFlagPersistence) {
140         this.announcementsFlagPersistence = announcementsFlagPersistence;
141     }
142 
143     public CounterLocalService getCounterLocalService() {
144         return counterLocalService;
145     }
146 
147     public void setCounterLocalService(CounterLocalService counterLocalService) {
148         this.counterLocalService = counterLocalService;
149     }
150 
151     public CounterService getCounterService() {
152         return counterService;
153     }
154 
155     public void setCounterService(CounterService counterService) {
156         this.counterService = counterService;
157     }
158 
159     public UserLocalService getUserLocalService() {
160         return userLocalService;
161     }
162 
163     public void setUserLocalService(UserLocalService userLocalService) {
164         this.userLocalService = userLocalService;
165     }
166 
167     public UserService getUserService() {
168         return userService;
169     }
170 
171     public void setUserService(UserService userService) {
172         this.userService = userService;
173     }
174 
175     public UserPersistence getUserPersistence() {
176         return userPersistence;
177     }
178 
179     public void setUserPersistence(UserPersistence userPersistence) {
180         this.userPersistence = userPersistence;
181     }
182 
183     public UserFinder getUserFinder() {
184         return userFinder;
185     }
186 
187     public void setUserFinder(UserFinder userFinder) {
188         this.userFinder = userFinder;
189     }
190 
191     protected void runSQL(String sql) throws SystemException {
192         try {
193             PortalUtil.runSQL(sql);
194         }
195         catch (Exception e) {
196             throw new SystemException(e);
197         }
198     }
199 
200     @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService.impl")
201     protected AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
202     @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsDeliveryService.impl")
203     protected AnnouncementsDeliveryService announcementsDeliveryService;
204     @BeanReference(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence.impl")
205     protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
206     @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService.impl")
207     protected AnnouncementsEntryLocalService announcementsEntryLocalService;
208     @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsEntryService.impl")
209     protected AnnouncementsEntryService announcementsEntryService;
210     @BeanReference(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence.impl")
211     protected AnnouncementsEntryPersistence announcementsEntryPersistence;
212     @BeanReference(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder.impl")
213     protected AnnouncementsEntryFinder announcementsEntryFinder;
214     @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService.impl")
215     protected AnnouncementsFlagLocalService announcementsFlagLocalService;
216     @BeanReference(name = "com.liferay.portlet.announcements.service.AnnouncementsFlagService.impl")
217     protected AnnouncementsFlagService announcementsFlagService;
218     @BeanReference(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence.impl")
219     protected AnnouncementsFlagPersistence announcementsFlagPersistence;
220     @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
221     protected CounterLocalService counterLocalService;
222     @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
223     protected CounterService counterService;
224     @BeanReference(name = "com.liferay.portal.service.UserLocalService.impl")
225     protected UserLocalService userLocalService;
226     @BeanReference(name = "com.liferay.portal.service.UserService.impl")
227     protected UserService userService;
228     @BeanReference(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
229     protected UserPersistence userPersistence;
230     @BeanReference(name = "com.liferay.portal.service.persistence.UserFinder.impl")
231     protected UserFinder userFinder;
232 }