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.PortalException;
29  import com.liferay.portal.SystemException;
30  import com.liferay.portal.kernel.dao.orm.DynamicQuery;
31  import com.liferay.portal.service.UserLocalService;
32  import com.liferay.portal.service.UserService;
33  import com.liferay.portal.service.persistence.UserFinder;
34  import com.liferay.portal.service.persistence.UserPersistence;
35  
36  import com.liferay.portlet.announcements.model.AnnouncementsDelivery;
37  import com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService;
38  import com.liferay.portlet.announcements.service.AnnouncementsDeliveryService;
39  import com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService;
40  import com.liferay.portlet.announcements.service.AnnouncementsEntryService;
41  import com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService;
42  import com.liferay.portlet.announcements.service.AnnouncementsFlagService;
43  import com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence;
44  import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder;
45  import com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence;
46  import com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence;
47  
48  import java.util.List;
49  
50  /**
51   * <a href="AnnouncementsDeliveryLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
52   *
53   * @author Brian Wing Shun Chan
54   *
55   */
56  public abstract class AnnouncementsDeliveryLocalServiceBaseImpl
57      implements AnnouncementsDeliveryLocalService {
58      public AnnouncementsDelivery addAnnouncementsDelivery(
59          AnnouncementsDelivery announcementsDelivery) throws SystemException {
60          announcementsDelivery.setNew(true);
61  
62          return announcementsDeliveryPersistence.update(announcementsDelivery,
63              false);
64      }
65  
66      public AnnouncementsDelivery createAnnouncementsDelivery(long deliveryId) {
67          return announcementsDeliveryPersistence.create(deliveryId);
68      }
69  
70      public void deleteAnnouncementsDelivery(long deliveryId)
71          throws PortalException, SystemException {
72          announcementsDeliveryPersistence.remove(deliveryId);
73      }
74  
75      public void deleteAnnouncementsDelivery(
76          AnnouncementsDelivery announcementsDelivery) throws SystemException {
77          announcementsDeliveryPersistence.remove(announcementsDelivery);
78      }
79  
80      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
81          throws SystemException {
82          return announcementsDeliveryPersistence.findWithDynamicQuery(dynamicQuery);
83      }
84  
85      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
86          int end) throws SystemException {
87          return announcementsDeliveryPersistence.findWithDynamicQuery(dynamicQuery,
88              start, end);
89      }
90  
91      public AnnouncementsDelivery getAnnouncementsDelivery(long deliveryId)
92          throws PortalException, SystemException {
93          return announcementsDeliveryPersistence.findByPrimaryKey(deliveryId);
94      }
95  
96      public List<AnnouncementsDelivery> getAnnouncementsDeliveries(int start,
97          int end) throws SystemException {
98          return announcementsDeliveryPersistence.findAll(start, end);
99      }
100 
101     public int getAnnouncementsDeliveriesCount() throws SystemException {
102         return announcementsDeliveryPersistence.countAll();
103     }
104 
105     public AnnouncementsDelivery updateAnnouncementsDelivery(
106         AnnouncementsDelivery announcementsDelivery) throws SystemException {
107         announcementsDelivery.setNew(false);
108 
109         return announcementsDeliveryPersistence.update(announcementsDelivery,
110             true);
111     }
112 
113     public AnnouncementsDeliveryLocalService getAnnouncementsDeliveryLocalService() {
114         return announcementsDeliveryLocalService;
115     }
116 
117     public void setAnnouncementsDeliveryLocalService(
118         AnnouncementsDeliveryLocalService announcementsDeliveryLocalService) {
119         this.announcementsDeliveryLocalService = announcementsDeliveryLocalService;
120     }
121 
122     public AnnouncementsDeliveryService getAnnouncementsDeliveryService() {
123         return announcementsDeliveryService;
124     }
125 
126     public void setAnnouncementsDeliveryService(
127         AnnouncementsDeliveryService announcementsDeliveryService) {
128         this.announcementsDeliveryService = announcementsDeliveryService;
129     }
130 
131     public AnnouncementsDeliveryPersistence getAnnouncementsDeliveryPersistence() {
132         return announcementsDeliveryPersistence;
133     }
134 
135     public void setAnnouncementsDeliveryPersistence(
136         AnnouncementsDeliveryPersistence announcementsDeliveryPersistence) {
137         this.announcementsDeliveryPersistence = announcementsDeliveryPersistence;
138     }
139 
140     public AnnouncementsEntryLocalService getAnnouncementsEntryLocalService() {
141         return announcementsEntryLocalService;
142     }
143 
144     public void setAnnouncementsEntryLocalService(
145         AnnouncementsEntryLocalService announcementsEntryLocalService) {
146         this.announcementsEntryLocalService = announcementsEntryLocalService;
147     }
148 
149     public AnnouncementsEntryService getAnnouncementsEntryService() {
150         return announcementsEntryService;
151     }
152 
153     public void setAnnouncementsEntryService(
154         AnnouncementsEntryService announcementsEntryService) {
155         this.announcementsEntryService = announcementsEntryService;
156     }
157 
158     public AnnouncementsEntryPersistence getAnnouncementsEntryPersistence() {
159         return announcementsEntryPersistence;
160     }
161 
162     public void setAnnouncementsEntryPersistence(
163         AnnouncementsEntryPersistence announcementsEntryPersistence) {
164         this.announcementsEntryPersistence = announcementsEntryPersistence;
165     }
166 
167     public AnnouncementsEntryFinder getAnnouncementsEntryFinder() {
168         return announcementsEntryFinder;
169     }
170 
171     public void setAnnouncementsEntryFinder(
172         AnnouncementsEntryFinder announcementsEntryFinder) {
173         this.announcementsEntryFinder = announcementsEntryFinder;
174     }
175 
176     public AnnouncementsFlagLocalService getAnnouncementsFlagLocalService() {
177         return announcementsFlagLocalService;
178     }
179 
180     public void setAnnouncementsFlagLocalService(
181         AnnouncementsFlagLocalService announcementsFlagLocalService) {
182         this.announcementsFlagLocalService = announcementsFlagLocalService;
183     }
184 
185     public AnnouncementsFlagService getAnnouncementsFlagService() {
186         return announcementsFlagService;
187     }
188 
189     public void setAnnouncementsFlagService(
190         AnnouncementsFlagService announcementsFlagService) {
191         this.announcementsFlagService = announcementsFlagService;
192     }
193 
194     public AnnouncementsFlagPersistence getAnnouncementsFlagPersistence() {
195         return announcementsFlagPersistence;
196     }
197 
198     public void setAnnouncementsFlagPersistence(
199         AnnouncementsFlagPersistence announcementsFlagPersistence) {
200         this.announcementsFlagPersistence = announcementsFlagPersistence;
201     }
202 
203     public CounterLocalService getCounterLocalService() {
204         return counterLocalService;
205     }
206 
207     public void setCounterLocalService(CounterLocalService counterLocalService) {
208         this.counterLocalService = counterLocalService;
209     }
210 
211     public CounterService getCounterService() {
212         return counterService;
213     }
214 
215     public void setCounterService(CounterService counterService) {
216         this.counterService = counterService;
217     }
218 
219     public UserLocalService getUserLocalService() {
220         return userLocalService;
221     }
222 
223     public void setUserLocalService(UserLocalService userLocalService) {
224         this.userLocalService = userLocalService;
225     }
226 
227     public UserService getUserService() {
228         return userService;
229     }
230 
231     public void setUserService(UserService userService) {
232         this.userService = userService;
233     }
234 
235     public UserPersistence getUserPersistence() {
236         return userPersistence;
237     }
238 
239     public void setUserPersistence(UserPersistence userPersistence) {
240         this.userPersistence = userPersistence;
241     }
242 
243     public UserFinder getUserFinder() {
244         return userFinder;
245     }
246 
247     public void setUserFinder(UserFinder userFinder) {
248         this.userFinder = userFinder;
249     }
250 
251     @javax.annotation.Resource(name = "com.liferay.portlet.announcements.service.AnnouncementsDeliveryLocalService.impl")
252     protected AnnouncementsDeliveryLocalService announcementsDeliveryLocalService;
253     @javax.annotation.Resource(name = "com.liferay.portlet.announcements.service.AnnouncementsDeliveryService.impl")
254     protected AnnouncementsDeliveryService announcementsDeliveryService;
255     @javax.annotation.Resource(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsDeliveryPersistence.impl")
256     protected AnnouncementsDeliveryPersistence announcementsDeliveryPersistence;
257     @javax.annotation.Resource(name = "com.liferay.portlet.announcements.service.AnnouncementsEntryLocalService.impl")
258     protected AnnouncementsEntryLocalService announcementsEntryLocalService;
259     @javax.annotation.Resource(name = "com.liferay.portlet.announcements.service.AnnouncementsEntryService.impl")
260     protected AnnouncementsEntryService announcementsEntryService;
261     @javax.annotation.Resource(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryPersistence.impl")
262     protected AnnouncementsEntryPersistence announcementsEntryPersistence;
263     @javax.annotation.Resource(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsEntryFinder.impl")
264     protected AnnouncementsEntryFinder announcementsEntryFinder;
265     @javax.annotation.Resource(name = "com.liferay.portlet.announcements.service.AnnouncementsFlagLocalService.impl")
266     protected AnnouncementsFlagLocalService announcementsFlagLocalService;
267     @javax.annotation.Resource(name = "com.liferay.portlet.announcements.service.AnnouncementsFlagService.impl")
268     protected AnnouncementsFlagService announcementsFlagService;
269     @javax.annotation.Resource(name = "com.liferay.portlet.announcements.service.persistence.AnnouncementsFlagPersistence.impl")
270     protected AnnouncementsFlagPersistence announcementsFlagPersistence;
271     @javax.annotation.Resource(name = "com.liferay.counter.service.CounterLocalService.impl")
272     protected CounterLocalService counterLocalService;
273     @javax.annotation.Resource(name = "com.liferay.counter.service.CounterService.impl")
274     protected CounterService counterService;
275     @javax.annotation.Resource(name = "com.liferay.portal.service.UserLocalService.impl")
276     protected UserLocalService userLocalService;
277     @javax.annotation.Resource(name = "com.liferay.portal.service.UserService.impl")
278     protected UserService userService;
279     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
280     protected UserPersistence userPersistence;
281     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserFinder.impl")
282     protected UserFinder userFinder;
283 }