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