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