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