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