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.UserLocalService;
32  import com.liferay.portal.service.UserService;
33  import com.liferay.portal.service.persistence.UserFinder;
34  import com.liferay.portal.service.persistence.UserPersistence;
35  
36  import com.liferay.portlet.softwarecatalog.model.SCProductVersion;
37  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
38  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
39  import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
40  import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
41  import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
42  import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
43  import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
44  import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
45  import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
46  import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
47  import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
48  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
49  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
50  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
51  
52  import java.util.List;
53  
54  /**
55   * <a href="SCProductVersionLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
56   *
57   * @author Brian Wing Shun Chan
58   *
59   */
60  public abstract class SCProductVersionLocalServiceBaseImpl
61      implements SCProductVersionLocalService {
62      public SCProductVersion addSCProductVersion(
63          SCProductVersion scProductVersion) throws SystemException {
64          scProductVersion.setNew(true);
65  
66          return scProductVersionPersistence.update(scProductVersion, false);
67      }
68  
69      public SCProductVersion createSCProductVersion(long productVersionId) {
70          return scProductVersionPersistence.create(productVersionId);
71      }
72  
73      public void deleteSCProductVersion(long productVersionId)
74          throws PortalException, SystemException {
75          scProductVersionPersistence.remove(productVersionId);
76      }
77  
78      public void deleteSCProductVersion(SCProductVersion scProductVersion)
79          throws SystemException {
80          scProductVersionPersistence.remove(scProductVersion);
81      }
82  
83      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
84          throws SystemException {
85          return scProductVersionPersistence.findWithDynamicQuery(dynamicQuery);
86      }
87  
88      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
89          int end) throws SystemException {
90          return scProductVersionPersistence.findWithDynamicQuery(dynamicQuery,
91              start, end);
92      }
93  
94      public SCProductVersion getSCProductVersion(long productVersionId)
95          throws PortalException, SystemException {
96          return scProductVersionPersistence.findByPrimaryKey(productVersionId);
97      }
98  
99      public List<SCProductVersion> getSCProductVersions(int start, int end)
100         throws SystemException {
101         return scProductVersionPersistence.findAll(start, end);
102     }
103 
104     public int getSCProductVersionsCount() throws SystemException {
105         return scProductVersionPersistence.countAll();
106     }
107 
108     public SCProductVersion updateSCProductVersion(
109         SCProductVersion scProductVersion) throws SystemException {
110         scProductVersion.setNew(false);
111 
112         return scProductVersionPersistence.update(scProductVersion, true);
113     }
114 
115     public SCLicenseLocalService getSCLicenseLocalService() {
116         return scLicenseLocalService;
117     }
118 
119     public void setSCLicenseLocalService(
120         SCLicenseLocalService scLicenseLocalService) {
121         this.scLicenseLocalService = scLicenseLocalService;
122     }
123 
124     public SCLicenseService getSCLicenseService() {
125         return scLicenseService;
126     }
127 
128     public void setSCLicenseService(SCLicenseService scLicenseService) {
129         this.scLicenseService = scLicenseService;
130     }
131 
132     public SCLicensePersistence getSCLicensePersistence() {
133         return scLicensePersistence;
134     }
135 
136     public void setSCLicensePersistence(
137         SCLicensePersistence scLicensePersistence) {
138         this.scLicensePersistence = scLicensePersistence;
139     }
140 
141     public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
142         return scFrameworkVersionLocalService;
143     }
144 
145     public void setSCFrameworkVersionLocalService(
146         SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
147         this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
148     }
149 
150     public SCFrameworkVersionService getSCFrameworkVersionService() {
151         return scFrameworkVersionService;
152     }
153 
154     public void setSCFrameworkVersionService(
155         SCFrameworkVersionService scFrameworkVersionService) {
156         this.scFrameworkVersionService = scFrameworkVersionService;
157     }
158 
159     public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
160         return scFrameworkVersionPersistence;
161     }
162 
163     public void setSCFrameworkVersionPersistence(
164         SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
165         this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
166     }
167 
168     public SCProductEntryLocalService getSCProductEntryLocalService() {
169         return scProductEntryLocalService;
170     }
171 
172     public void setSCProductEntryLocalService(
173         SCProductEntryLocalService scProductEntryLocalService) {
174         this.scProductEntryLocalService = scProductEntryLocalService;
175     }
176 
177     public SCProductEntryService getSCProductEntryService() {
178         return scProductEntryService;
179     }
180 
181     public void setSCProductEntryService(
182         SCProductEntryService scProductEntryService) {
183         this.scProductEntryService = scProductEntryService;
184     }
185 
186     public SCProductEntryPersistence getSCProductEntryPersistence() {
187         return scProductEntryPersistence;
188     }
189 
190     public void setSCProductEntryPersistence(
191         SCProductEntryPersistence scProductEntryPersistence) {
192         this.scProductEntryPersistence = scProductEntryPersistence;
193     }
194 
195     public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
196         return scProductScreenshotLocalService;
197     }
198 
199     public void setSCProductScreenshotLocalService(
200         SCProductScreenshotLocalService scProductScreenshotLocalService) {
201         this.scProductScreenshotLocalService = scProductScreenshotLocalService;
202     }
203 
204     public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
205         return scProductScreenshotPersistence;
206     }
207 
208     public void setSCProductScreenshotPersistence(
209         SCProductScreenshotPersistence scProductScreenshotPersistence) {
210         this.scProductScreenshotPersistence = scProductScreenshotPersistence;
211     }
212 
213     public SCProductVersionLocalService getSCProductVersionLocalService() {
214         return scProductVersionLocalService;
215     }
216 
217     public void setSCProductVersionLocalService(
218         SCProductVersionLocalService scProductVersionLocalService) {
219         this.scProductVersionLocalService = scProductVersionLocalService;
220     }
221 
222     public SCProductVersionService getSCProductVersionService() {
223         return scProductVersionService;
224     }
225 
226     public void setSCProductVersionService(
227         SCProductVersionService scProductVersionService) {
228         this.scProductVersionService = scProductVersionService;
229     }
230 
231     public SCProductVersionPersistence getSCProductVersionPersistence() {
232         return scProductVersionPersistence;
233     }
234 
235     public void setSCProductVersionPersistence(
236         SCProductVersionPersistence scProductVersionPersistence) {
237         this.scProductVersionPersistence = scProductVersionPersistence;
238     }
239 
240     public CounterLocalService getCounterLocalService() {
241         return counterLocalService;
242     }
243 
244     public void setCounterLocalService(CounterLocalService counterLocalService) {
245         this.counterLocalService = counterLocalService;
246     }
247 
248     public CounterService getCounterService() {
249         return counterService;
250     }
251 
252     public void setCounterService(CounterService counterService) {
253         this.counterService = counterService;
254     }
255 
256     public UserLocalService getUserLocalService() {
257         return userLocalService;
258     }
259 
260     public void setUserLocalService(UserLocalService userLocalService) {
261         this.userLocalService = userLocalService;
262     }
263 
264     public UserService getUserService() {
265         return userService;
266     }
267 
268     public void setUserService(UserService userService) {
269         this.userService = userService;
270     }
271 
272     public UserPersistence getUserPersistence() {
273         return userPersistence;
274     }
275 
276     public void setUserPersistence(UserPersistence userPersistence) {
277         this.userPersistence = userPersistence;
278     }
279 
280     public UserFinder getUserFinder() {
281         return userFinder;
282     }
283 
284     public void setUserFinder(UserFinder userFinder) {
285         this.userFinder = userFinder;
286     }
287 
288     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService.impl")
289     protected SCLicenseLocalService scLicenseLocalService;
290     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCLicenseService.impl")
291     protected SCLicenseService scLicenseService;
292     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence.impl")
293     protected SCLicensePersistence scLicensePersistence;
294     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService.impl")
295     protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
296     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService.impl")
297     protected SCFrameworkVersionService scFrameworkVersionService;
298     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence.impl")
299     protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
300     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService.impl")
301     protected SCProductEntryLocalService scProductEntryLocalService;
302     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCProductEntryService.impl")
303     protected SCProductEntryService scProductEntryService;
304     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence.impl")
305     protected SCProductEntryPersistence scProductEntryPersistence;
306     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService.impl")
307     protected SCProductScreenshotLocalService scProductScreenshotLocalService;
308     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence.impl")
309     protected SCProductScreenshotPersistence scProductScreenshotPersistence;
310     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService.impl")
311     protected SCProductVersionLocalService scProductVersionLocalService;
312     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.SCProductVersionService.impl")
313     protected SCProductVersionService scProductVersionService;
314     @javax.annotation.Resource(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence.impl")
315     protected SCProductVersionPersistence scProductVersionPersistence;
316     @javax.annotation.Resource(name = "com.liferay.counter.service.CounterLocalService.impl")
317     protected CounterLocalService counterLocalService;
318     @javax.annotation.Resource(name = "com.liferay.counter.service.CounterService.impl")
319     protected CounterService counterService;
320     @javax.annotation.Resource(name = "com.liferay.portal.service.UserLocalService.impl")
321     protected UserLocalService userLocalService;
322     @javax.annotation.Resource(name = "com.liferay.portal.service.UserService.impl")
323     protected UserService userService;
324     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserPersistence.impl")
325     protected UserPersistence userPersistence;
326     @javax.annotation.Resource(name = "com.liferay.portal.service.persistence.UserFinder.impl")
327     protected UserFinder userFinder;
328 }