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