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.softwarecatalog.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.ImageLocalService;
32  import com.liferay.portal.service.ResourceLocalService;
33  import com.liferay.portal.service.ResourceService;
34  import com.liferay.portal.service.UserLocalService;
35  import com.liferay.portal.service.UserService;
36  import com.liferay.portal.service.persistence.ImagePersistence;
37  import com.liferay.portal.service.persistence.ResourceFinder;
38  import com.liferay.portal.service.persistence.ResourcePersistence;
39  import com.liferay.portal.service.persistence.UserFinder;
40  import com.liferay.portal.service.persistence.UserPersistence;
41  
42  import com.liferay.portlet.messageboards.service.MBMessageLocalService;
43  import com.liferay.portlet.messageboards.service.MBMessageService;
44  import com.liferay.portlet.messageboards.service.persistence.MBMessageFinder;
45  import com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence;
46  import com.liferay.portlet.ratings.service.RatingsStatsLocalService;
47  import com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence;
48  import com.liferay.portlet.softwarecatalog.model.SCProductEntry;
49  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
50  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
51  import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
52  import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
53  import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
54  import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
55  import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
56  import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
57  import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
58  import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
59  import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
60  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
61  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
62  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
63  
64  import java.util.List;
65  
66  /**
67   * <a href="SCProductEntryLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
68   *
69   * @author Brian Wing Shun Chan
70   *
71   */
72  public abstract class SCProductEntryLocalServiceBaseImpl
73      implements SCProductEntryLocalService {
74      public SCProductEntry addSCProductEntry(SCProductEntry scProductEntry)
75          throws SystemException {
76          scProductEntry.setNew(true);
77  
78          return scProductEntryPersistence.update(scProductEntry, false);
79      }
80  
81      public SCProductEntry createSCProductEntry(long productEntryId) {
82          return scProductEntryPersistence.create(productEntryId);
83      }
84  
85      public void deleteSCProductEntry(long productEntryId)
86          throws PortalException, SystemException {
87          scProductEntryPersistence.remove(productEntryId);
88      }
89  
90      public void deleteSCProductEntry(SCProductEntry scProductEntry)
91          throws SystemException {
92          scProductEntryPersistence.remove(scProductEntry);
93      }
94  
95      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
96          throws SystemException {
97          return scProductEntryPersistence.findWithDynamicQuery(dynamicQuery);
98      }
99  
100     public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
101         int end) throws SystemException {
102         return scProductEntryPersistence.findWithDynamicQuery(dynamicQuery,
103             start, end);
104     }
105 
106     public SCProductEntry getSCProductEntry(long productEntryId)
107         throws PortalException, SystemException {
108         return scProductEntryPersistence.findByPrimaryKey(productEntryId);
109     }
110 
111     public List<SCProductEntry> getSCProductEntries(int start, int end)
112         throws SystemException {
113         return scProductEntryPersistence.findAll(start, end);
114     }
115 
116     public int getSCProductEntriesCount() throws SystemException {
117         return scProductEntryPersistence.countAll();
118     }
119 
120     public SCProductEntry updateSCProductEntry(SCProductEntry scProductEntry)
121         throws SystemException {
122         scProductEntry.setNew(false);
123 
124         return scProductEntryPersistence.update(scProductEntry, true);
125     }
126 
127     public SCLicenseLocalService getSCLicenseLocalService() {
128         return scLicenseLocalService;
129     }
130 
131     public void setSCLicenseLocalService(
132         SCLicenseLocalService scLicenseLocalService) {
133         this.scLicenseLocalService = scLicenseLocalService;
134     }
135 
136     public SCLicenseService getSCLicenseService() {
137         return scLicenseService;
138     }
139 
140     public void setSCLicenseService(SCLicenseService scLicenseService) {
141         this.scLicenseService = scLicenseService;
142     }
143 
144     public SCLicensePersistence getSCLicensePersistence() {
145         return scLicensePersistence;
146     }
147 
148     public void setSCLicensePersistence(
149         SCLicensePersistence scLicensePersistence) {
150         this.scLicensePersistence = scLicensePersistence;
151     }
152 
153     public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
154         return scFrameworkVersionLocalService;
155     }
156 
157     public void setSCFrameworkVersionLocalService(
158         SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
159         this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
160     }
161 
162     public SCFrameworkVersionService getSCFrameworkVersionService() {
163         return scFrameworkVersionService;
164     }
165 
166     public void setSCFrameworkVersionService(
167         SCFrameworkVersionService scFrameworkVersionService) {
168         this.scFrameworkVersionService = scFrameworkVersionService;
169     }
170 
171     public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
172         return scFrameworkVersionPersistence;
173     }
174 
175     public void setSCFrameworkVersionPersistence(
176         SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
177         this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
178     }
179 
180     public SCProductEntryLocalService getSCProductEntryLocalService() {
181         return scProductEntryLocalService;
182     }
183 
184     public void setSCProductEntryLocalService(
185         SCProductEntryLocalService scProductEntryLocalService) {
186         this.scProductEntryLocalService = scProductEntryLocalService;
187     }
188 
189     public SCProductEntryService getSCProductEntryService() {
190         return scProductEntryService;
191     }
192 
193     public void setSCProductEntryService(
194         SCProductEntryService scProductEntryService) {
195         this.scProductEntryService = scProductEntryService;
196     }
197 
198     public SCProductEntryPersistence getSCProductEntryPersistence() {
199         return scProductEntryPersistence;
200     }
201 
202     public void setSCProductEntryPersistence(
203         SCProductEntryPersistence scProductEntryPersistence) {
204         this.scProductEntryPersistence = scProductEntryPersistence;
205     }
206 
207     public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
208         return scProductScreenshotLocalService;
209     }
210 
211     public void setSCProductScreenshotLocalService(
212         SCProductScreenshotLocalService scProductScreenshotLocalService) {
213         this.scProductScreenshotLocalService = scProductScreenshotLocalService;
214     }
215 
216     public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
217         return scProductScreenshotPersistence;
218     }
219 
220     public void setSCProductScreenshotPersistence(
221         SCProductScreenshotPersistence scProductScreenshotPersistence) {
222         this.scProductScreenshotPersistence = scProductScreenshotPersistence;
223     }
224 
225     public SCProductVersionLocalService getSCProductVersionLocalService() {
226         return scProductVersionLocalService;
227     }
228 
229     public void setSCProductVersionLocalService(
230         SCProductVersionLocalService scProductVersionLocalService) {
231         this.scProductVersionLocalService = scProductVersionLocalService;
232     }
233 
234     public SCProductVersionService getSCProductVersionService() {
235         return scProductVersionService;
236     }
237 
238     public void setSCProductVersionService(
239         SCProductVersionService scProductVersionService) {
240         this.scProductVersionService = scProductVersionService;
241     }
242 
243     public SCProductVersionPersistence getSCProductVersionPersistence() {
244         return scProductVersionPersistence;
245     }
246 
247     public void setSCProductVersionPersistence(
248         SCProductVersionPersistence scProductVersionPersistence) {
249         this.scProductVersionPersistence = scProductVersionPersistence;
250     }
251 
252     public CounterLocalService getCounterLocalService() {
253         return counterLocalService;
254     }
255 
256     public void setCounterLocalService(CounterLocalService counterLocalService) {
257         this.counterLocalService = counterLocalService;
258     }
259 
260     public CounterService getCounterService() {
261         return counterService;
262     }
263 
264     public void setCounterService(CounterService counterService) {
265         this.counterService = counterService;
266     }
267 
268     public ImageLocalService getImageLocalService() {
269         return imageLocalService;
270     }
271 
272     public void setImageLocalService(ImageLocalService imageLocalService) {
273         this.imageLocalService = imageLocalService;
274     }
275 
276     public ImagePersistence getImagePersistence() {
277         return imagePersistence;
278     }
279 
280     public void setImagePersistence(ImagePersistence imagePersistence) {
281         this.imagePersistence = imagePersistence;
282     }
283 
284     public ResourceLocalService getResourceLocalService() {
285         return resourceLocalService;
286     }
287 
288     public void setResourceLocalService(
289         ResourceLocalService resourceLocalService) {
290         this.resourceLocalService = resourceLocalService;
291     }
292 
293     public ResourceService getResourceService() {
294         return resourceService;
295     }
296 
297     public void setResourceService(ResourceService resourceService) {
298         this.resourceService = resourceService;
299     }
300 
301     public ResourcePersistence getResourcePersistence() {
302         return resourcePersistence;
303     }
304 
305     public void setResourcePersistence(ResourcePersistence resourcePersistence) {
306         this.resourcePersistence = resourcePersistence;
307     }
308 
309     public ResourceFinder getResourceFinder() {
310         return resourceFinder;
311     }
312 
313     public void setResourceFinder(ResourceFinder resourceFinder) {
314         this.resourceFinder = resourceFinder;
315     }
316 
317     public UserLocalService getUserLocalService() {
318         return userLocalService;
319     }
320 
321     public void setUserLocalService(UserLocalService userLocalService) {
322         this.userLocalService = userLocalService;
323     }
324 
325     public UserService getUserService() {
326         return userService;
327     }
328 
329     public void setUserService(UserService userService) {
330         this.userService = userService;
331     }
332 
333     public UserPersistence getUserPersistence() {
334         return userPersistence;
335     }
336 
337     public void setUserPersistence(UserPersistence userPersistence) {
338         this.userPersistence = userPersistence;
339     }
340 
341     public UserFinder getUserFinder() {
342         return userFinder;
343     }
344 
345     public void setUserFinder(UserFinder userFinder) {
346         this.userFinder = userFinder;
347     }
348 
349     public MBMessageLocalService getMBMessageLocalService() {
350         return mbMessageLocalService;
351     }
352 
353     public void setMBMessageLocalService(
354         MBMessageLocalService mbMessageLocalService) {
355         this.mbMessageLocalService = mbMessageLocalService;
356     }
357 
358     public MBMessageService getMBMessageService() {
359         return mbMessageService;
360     }
361 
362     public void setMBMessageService(MBMessageService mbMessageService) {
363         this.mbMessageService = mbMessageService;
364     }
365 
366     public MBMessagePersistence getMBMessagePersistence() {
367         return mbMessagePersistence;
368     }
369 
370     public void setMBMessagePersistence(
371         MBMessagePersistence mbMessagePersistence) {
372         this.mbMessagePersistence = mbMessagePersistence;
373     }
374 
375     public MBMessageFinder getMBMessageFinder() {
376         return mbMessageFinder;
377     }
378 
379     public void setMBMessageFinder(MBMessageFinder mbMessageFinder) {
380         this.mbMessageFinder = mbMessageFinder;
381     }
382 
383     public RatingsStatsLocalService getRatingsStatsLocalService() {
384         return ratingsStatsLocalService;
385     }
386 
387     public void setRatingsStatsLocalService(
388         RatingsStatsLocalService ratingsStatsLocalService) {
389         this.ratingsStatsLocalService = ratingsStatsLocalService;
390     }
391 
392     public RatingsStatsPersistence getRatingsStatsPersistence() {
393         return ratingsStatsPersistence;
394     }
395 
396     public void setRatingsStatsPersistence(
397         RatingsStatsPersistence ratingsStatsPersistence) {
398         this.ratingsStatsPersistence = ratingsStatsPersistence;
399     }
400 
401     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService.impl")
402     protected SCLicenseLocalService scLicenseLocalService;
403     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCLicenseService.impl")
404     protected SCLicenseService scLicenseService;
405     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence.impl")
406     protected SCLicensePersistence scLicensePersistence;
407     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService.impl")
408     protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
409     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService.impl")
410     protected SCFrameworkVersionService scFrameworkVersionService;
411     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence.impl")
412     protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
413     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService.impl")
414     protected SCProductEntryLocalService scProductEntryLocalService;
415     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCProductEntryService.impl")
416     protected SCProductEntryService scProductEntryService;
417     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence.impl")
418     protected SCProductEntryPersistence scProductEntryPersistence;
419     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService.impl")
420     protected SCProductScreenshotLocalService scProductScreenshotLocalService;
421     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence.impl")
422     protected SCProductScreenshotPersistence scProductScreenshotPersistence;
423     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService.impl")
424     protected SCProductVersionLocalService scProductVersionLocalService;
425     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCProductVersionService.impl")
426     protected SCProductVersionService scProductVersionService;
427     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence.impl")
428     protected SCProductVersionPersistence scProductVersionPersistence;
429     @javax.annotation.Resource(name = "com.liferay.counter.service.CounterLocalService.impl")
430     protected CounterLocalService counterLocalService;
431     @javax.annotation.Resource(name = "com.liferay.counter.service.CounterService.impl")
432     protected CounterService counterService;
433     @javax.annotation.Resource(name = "com.liferay.portal.service.ImageLocalService.impl")
434     protected ImageLocalService imageLocalService;
435     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.ImagePersistence.impl")
436     protected ImagePersistence imagePersistence;
437     @javax.annotation.Resource(name = "com.liferay.portal.service.ResourceLocalService.impl")
438     protected ResourceLocalService resourceLocalService;
439     @javax.annotation.Resource(name = "com.liferay.portal.service.ResourceService.impl")
440     protected ResourceService resourceService;
441     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.ResourcePersistence.impl")
442     protected ResourcePersistence resourcePersistence;
443     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.ResourceFinder.impl")
444     protected ResourceFinder resourceFinder;
445     @javax.annotation.Resource(name = "com.liferay.portal.service.UserLocalService.impl")
446     protected UserLocalService userLocalService;
447     @javax.annotation.Resource(name = "com.liferay.portal.service.UserService.impl")
448     protected UserService userService;
449     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
450     protected UserPersistence userPersistence;
451     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserFinder.impl")
452     protected UserFinder userFinder;
453     @javax.annotation.Resource(name = "com.liferay.portlet.messageboards.service.MBMessageLocalService.impl")
454     protected MBMessageLocalService mbMessageLocalService;
455     @javax.annotation.Resource(name = "com.liferay.portlet.messageboards.service.MBMessageService.impl")
456     protected MBMessageService mbMessageService;
457     @javax.annotation.Resource(name = "com.liferay.portlet.messageboards.service.persistence.MBMessagePersistence.impl")
458     protected MBMessagePersistence mbMessagePersistence;
459     @javax.annotation.Resource(name = "com.liferay.portlet.messageboards.service.persistence.MBMessageFinder.impl")
460     protected MBMessageFinder mbMessageFinder;
461     @javax.annotation.Resource(name = "com.liferay.portlet.ratings.service.RatingsStatsLocalService.impl")
462     protected RatingsStatsLocalService ratingsStatsLocalService;
463     @javax.annotation.Resource(name = "com.liferay.portlet.ratings.service.persistence.RatingsStatsPersistence.impl")
464     protected RatingsStatsPersistence ratingsStatsPersistence;
465 }