1   /**
2    * Copyright (c) 2000-2009 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.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.persistence.ImagePersistence;
31  
32  import com.liferay.portlet.softwarecatalog.model.SCProductScreenshot;
33  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
34  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
35  import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
36  import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
37  import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
38  import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
39  import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
40  import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
41  import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
42  import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
43  import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
44  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
45  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
46  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
47  
48  import java.util.List;
49  
50  /**
51   * <a href="SCProductScreenshotLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
52   *
53   * @author Brian Wing Shun Chan
54   *
55   */
56  public abstract class SCProductScreenshotLocalServiceBaseImpl
57      implements SCProductScreenshotLocalService {
58      public SCProductScreenshot addSCProductScreenshot(
59          SCProductScreenshot scProductScreenshot) throws SystemException {
60          scProductScreenshot.setNew(true);
61  
62          return scProductScreenshotPersistence.update(scProductScreenshot, false);
63      }
64  
65      public SCProductScreenshot createSCProductScreenshot(
66          long productScreenshotId) {
67          return scProductScreenshotPersistence.create(productScreenshotId);
68      }
69  
70      public void deleteSCProductScreenshot(long productScreenshotId)
71          throws PortalException, SystemException {
72          scProductScreenshotPersistence.remove(productScreenshotId);
73      }
74  
75      public void deleteSCProductScreenshot(
76          SCProductScreenshot scProductScreenshot) throws SystemException {
77          scProductScreenshotPersistence.remove(scProductScreenshot);
78      }
79  
80      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
81          throws SystemException {
82          return scProductScreenshotPersistence.findWithDynamicQuery(dynamicQuery);
83      }
84  
85      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
86          int end) throws SystemException {
87          return scProductScreenshotPersistence.findWithDynamicQuery(dynamicQuery,
88              start, end);
89      }
90  
91      public SCProductScreenshot getSCProductScreenshot(long productScreenshotId)
92          throws PortalException, SystemException {
93          return scProductScreenshotPersistence.findByPrimaryKey(productScreenshotId);
94      }
95  
96      public List<SCProductScreenshot> getSCProductScreenshots(int start, int end)
97          throws SystemException {
98          return scProductScreenshotPersistence.findAll(start, end);
99      }
100 
101     public int getSCProductScreenshotsCount() throws SystemException {
102         return scProductScreenshotPersistence.countAll();
103     }
104 
105     public SCProductScreenshot updateSCProductScreenshot(
106         SCProductScreenshot scProductScreenshot) throws SystemException {
107         scProductScreenshot.setNew(false);
108 
109         return scProductScreenshotPersistence.update(scProductScreenshot, true);
110     }
111 
112     public SCLicenseLocalService getSCLicenseLocalService() {
113         return scLicenseLocalService;
114     }
115 
116     public void setSCLicenseLocalService(
117         SCLicenseLocalService scLicenseLocalService) {
118         this.scLicenseLocalService = scLicenseLocalService;
119     }
120 
121     public SCLicenseService getSCLicenseService() {
122         return scLicenseService;
123     }
124 
125     public void setSCLicenseService(SCLicenseService scLicenseService) {
126         this.scLicenseService = scLicenseService;
127     }
128 
129     public SCLicensePersistence getSCLicensePersistence() {
130         return scLicensePersistence;
131     }
132 
133     public void setSCLicensePersistence(
134         SCLicensePersistence scLicensePersistence) {
135         this.scLicensePersistence = scLicensePersistence;
136     }
137 
138     public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
139         return scFrameworkVersionLocalService;
140     }
141 
142     public void setSCFrameworkVersionLocalService(
143         SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
144         this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
145     }
146 
147     public SCFrameworkVersionService getSCFrameworkVersionService() {
148         return scFrameworkVersionService;
149     }
150 
151     public void setSCFrameworkVersionService(
152         SCFrameworkVersionService scFrameworkVersionService) {
153         this.scFrameworkVersionService = scFrameworkVersionService;
154     }
155 
156     public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
157         return scFrameworkVersionPersistence;
158     }
159 
160     public void setSCFrameworkVersionPersistence(
161         SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
162         this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
163     }
164 
165     public SCProductEntryLocalService getSCProductEntryLocalService() {
166         return scProductEntryLocalService;
167     }
168 
169     public void setSCProductEntryLocalService(
170         SCProductEntryLocalService scProductEntryLocalService) {
171         this.scProductEntryLocalService = scProductEntryLocalService;
172     }
173 
174     public SCProductEntryService getSCProductEntryService() {
175         return scProductEntryService;
176     }
177 
178     public void setSCProductEntryService(
179         SCProductEntryService scProductEntryService) {
180         this.scProductEntryService = scProductEntryService;
181     }
182 
183     public SCProductEntryPersistence getSCProductEntryPersistence() {
184         return scProductEntryPersistence;
185     }
186 
187     public void setSCProductEntryPersistence(
188         SCProductEntryPersistence scProductEntryPersistence) {
189         this.scProductEntryPersistence = scProductEntryPersistence;
190     }
191 
192     public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
193         return scProductScreenshotLocalService;
194     }
195 
196     public void setSCProductScreenshotLocalService(
197         SCProductScreenshotLocalService scProductScreenshotLocalService) {
198         this.scProductScreenshotLocalService = scProductScreenshotLocalService;
199     }
200 
201     public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
202         return scProductScreenshotPersistence;
203     }
204 
205     public void setSCProductScreenshotPersistence(
206         SCProductScreenshotPersistence scProductScreenshotPersistence) {
207         this.scProductScreenshotPersistence = scProductScreenshotPersistence;
208     }
209 
210     public SCProductVersionLocalService getSCProductVersionLocalService() {
211         return scProductVersionLocalService;
212     }
213 
214     public void setSCProductVersionLocalService(
215         SCProductVersionLocalService scProductVersionLocalService) {
216         this.scProductVersionLocalService = scProductVersionLocalService;
217     }
218 
219     public SCProductVersionService getSCProductVersionService() {
220         return scProductVersionService;
221     }
222 
223     public void setSCProductVersionService(
224         SCProductVersionService scProductVersionService) {
225         this.scProductVersionService = scProductVersionService;
226     }
227 
228     public SCProductVersionPersistence getSCProductVersionPersistence() {
229         return scProductVersionPersistence;
230     }
231 
232     public void setSCProductVersionPersistence(
233         SCProductVersionPersistence scProductVersionPersistence) {
234         this.scProductVersionPersistence = scProductVersionPersistence;
235     }
236 
237     public ImageLocalService getImageLocalService() {
238         return imageLocalService;
239     }
240 
241     public void setImageLocalService(ImageLocalService imageLocalService) {
242         this.imageLocalService = imageLocalService;
243     }
244 
245     public ImagePersistence getImagePersistence() {
246         return imagePersistence;
247     }
248 
249     public void setImagePersistence(ImagePersistence imagePersistence) {
250         this.imagePersistence = imagePersistence;
251     }
252 
253     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService.impl")
254     protected SCLicenseLocalService scLicenseLocalService;
255     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCLicenseService.impl")
256     protected SCLicenseService scLicenseService;
257     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence.impl")
258     protected SCLicensePersistence scLicensePersistence;
259     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService.impl")
260     protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
261     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService.impl")
262     protected SCFrameworkVersionService scFrameworkVersionService;
263     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence.impl")
264     protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
265     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService.impl")
266     protected SCProductEntryLocalService scProductEntryLocalService;
267     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductEntryService.impl")
268     protected SCProductEntryService scProductEntryService;
269     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence.impl")
270     protected SCProductEntryPersistence scProductEntryPersistence;
271     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService.impl")
272     protected SCProductScreenshotLocalService scProductScreenshotLocalService;
273     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence.impl")
274     protected SCProductScreenshotPersistence scProductScreenshotPersistence;
275     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService.impl")
276     protected SCProductVersionLocalService scProductVersionLocalService;
277     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductVersionService.impl")
278     protected SCProductVersionService scProductVersionService;
279     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence.impl")
280     protected SCProductVersionPersistence scProductVersionPersistence;
281     @BeanReference(name = "com.liferay.portal.service.ImageLocalService.impl")
282     protected ImageLocalService imageLocalService;
283     @BeanReference(name = "com.liferay.portal.service.persistence.ImagePersistence.impl")
284     protected ImagePersistence imagePersistence;
285 }