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