1   /**
2    * Copyright (c) 2000-2009 Liferay, Inc. All rights reserved.
3    *
4    * The contents of this file are subject to the terms of the Liferay Enterprise
5    * Subscription License ("License"). You may not use this file except in
6    * compliance with the License. You can obtain a copy of the License by
7    * contacting Liferay, Inc. See the License for the specific language governing
8    * permissions and limitations under the License, including but not limited to
9    * distribution rights of the Software.
10   *
11   * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
12   * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
13   * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
14   * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
15   * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
16   * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
17   * SOFTWARE.
18   */
19  
20  package com.liferay.portlet.softwarecatalog.service.base;
21  
22  import com.liferay.counter.service.CounterLocalService;
23  import com.liferay.counter.service.CounterService;
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  
30  import com.liferay.portlet.softwarecatalog.model.SCLicense;
31  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService;
32  import com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService;
33  import com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService;
34  import com.liferay.portlet.softwarecatalog.service.SCLicenseService;
35  import com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService;
36  import com.liferay.portlet.softwarecatalog.service.SCProductEntryService;
37  import com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService;
38  import com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService;
39  import com.liferay.portlet.softwarecatalog.service.SCProductVersionService;
40  import com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence;
41  import com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence;
42  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence;
43  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence;
44  import com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence;
45  
46  import java.util.List;
47  
48  /**
49   * <a href="SCLicenseLocalServiceBaseImpl.java.html"><b><i>View Source</i></b></a>
50   *
51   * @author Brian Wing Shun Chan
52   *
53   */
54  public abstract class SCLicenseLocalServiceBaseImpl
55      implements SCLicenseLocalService {
56      public SCLicense addSCLicense(SCLicense scLicense)
57          throws SystemException {
58          scLicense.setNew(true);
59  
60          return scLicensePersistence.update(scLicense, false);
61      }
62  
63      public SCLicense createSCLicense(long licenseId) {
64          return scLicensePersistence.create(licenseId);
65      }
66  
67      public void deleteSCLicense(long licenseId)
68          throws PortalException, SystemException {
69          scLicensePersistence.remove(licenseId);
70      }
71  
72      public void deleteSCLicense(SCLicense scLicense) throws SystemException {
73          scLicensePersistence.remove(scLicense);
74      }
75  
76      public List<Object> dynamicQuery(DynamicQuery dynamicQuery)
77          throws SystemException {
78          return scLicensePersistence.findWithDynamicQuery(dynamicQuery);
79      }
80  
81      public List<Object> dynamicQuery(DynamicQuery dynamicQuery, int start,
82          int end) throws SystemException {
83          return scLicensePersistence.findWithDynamicQuery(dynamicQuery, start,
84              end);
85      }
86  
87      public SCLicense getSCLicense(long licenseId)
88          throws PortalException, SystemException {
89          return scLicensePersistence.findByPrimaryKey(licenseId);
90      }
91  
92      public List<SCLicense> getSCLicenses(int start, int end)
93          throws SystemException {
94          return scLicensePersistence.findAll(start, end);
95      }
96  
97      public int getSCLicensesCount() throws SystemException {
98          return scLicensePersistence.countAll();
99      }
100 
101     public SCLicense updateSCLicense(SCLicense scLicense)
102         throws SystemException {
103         scLicense.setNew(false);
104 
105         return scLicensePersistence.update(scLicense, true);
106     }
107 
108     public SCLicenseLocalService getSCLicenseLocalService() {
109         return scLicenseLocalService;
110     }
111 
112     public void setSCLicenseLocalService(
113         SCLicenseLocalService scLicenseLocalService) {
114         this.scLicenseLocalService = scLicenseLocalService;
115     }
116 
117     public SCLicenseService getSCLicenseService() {
118         return scLicenseService;
119     }
120 
121     public void setSCLicenseService(SCLicenseService scLicenseService) {
122         this.scLicenseService = scLicenseService;
123     }
124 
125     public SCLicensePersistence getSCLicensePersistence() {
126         return scLicensePersistence;
127     }
128 
129     public void setSCLicensePersistence(
130         SCLicensePersistence scLicensePersistence) {
131         this.scLicensePersistence = scLicensePersistence;
132     }
133 
134     public SCFrameworkVersionLocalService getSCFrameworkVersionLocalService() {
135         return scFrameworkVersionLocalService;
136     }
137 
138     public void setSCFrameworkVersionLocalService(
139         SCFrameworkVersionLocalService scFrameworkVersionLocalService) {
140         this.scFrameworkVersionLocalService = scFrameworkVersionLocalService;
141     }
142 
143     public SCFrameworkVersionService getSCFrameworkVersionService() {
144         return scFrameworkVersionService;
145     }
146 
147     public void setSCFrameworkVersionService(
148         SCFrameworkVersionService scFrameworkVersionService) {
149         this.scFrameworkVersionService = scFrameworkVersionService;
150     }
151 
152     public SCFrameworkVersionPersistence getSCFrameworkVersionPersistence() {
153         return scFrameworkVersionPersistence;
154     }
155 
156     public void setSCFrameworkVersionPersistence(
157         SCFrameworkVersionPersistence scFrameworkVersionPersistence) {
158         this.scFrameworkVersionPersistence = scFrameworkVersionPersistence;
159     }
160 
161     public SCProductEntryLocalService getSCProductEntryLocalService() {
162         return scProductEntryLocalService;
163     }
164 
165     public void setSCProductEntryLocalService(
166         SCProductEntryLocalService scProductEntryLocalService) {
167         this.scProductEntryLocalService = scProductEntryLocalService;
168     }
169 
170     public SCProductEntryService getSCProductEntryService() {
171         return scProductEntryService;
172     }
173 
174     public void setSCProductEntryService(
175         SCProductEntryService scProductEntryService) {
176         this.scProductEntryService = scProductEntryService;
177     }
178 
179     public SCProductEntryPersistence getSCProductEntryPersistence() {
180         return scProductEntryPersistence;
181     }
182 
183     public void setSCProductEntryPersistence(
184         SCProductEntryPersistence scProductEntryPersistence) {
185         this.scProductEntryPersistence = scProductEntryPersistence;
186     }
187 
188     public SCProductScreenshotLocalService getSCProductScreenshotLocalService() {
189         return scProductScreenshotLocalService;
190     }
191 
192     public void setSCProductScreenshotLocalService(
193         SCProductScreenshotLocalService scProductScreenshotLocalService) {
194         this.scProductScreenshotLocalService = scProductScreenshotLocalService;
195     }
196 
197     public SCProductScreenshotPersistence getSCProductScreenshotPersistence() {
198         return scProductScreenshotPersistence;
199     }
200 
201     public void setSCProductScreenshotPersistence(
202         SCProductScreenshotPersistence scProductScreenshotPersistence) {
203         this.scProductScreenshotPersistence = scProductScreenshotPersistence;
204     }
205 
206     public SCProductVersionLocalService getSCProductVersionLocalService() {
207         return scProductVersionLocalService;
208     }
209 
210     public void setSCProductVersionLocalService(
211         SCProductVersionLocalService scProductVersionLocalService) {
212         this.scProductVersionLocalService = scProductVersionLocalService;
213     }
214 
215     public SCProductVersionService getSCProductVersionService() {
216         return scProductVersionService;
217     }
218 
219     public void setSCProductVersionService(
220         SCProductVersionService scProductVersionService) {
221         this.scProductVersionService = scProductVersionService;
222     }
223 
224     public SCProductVersionPersistence getSCProductVersionPersistence() {
225         return scProductVersionPersistence;
226     }
227 
228     public void setSCProductVersionPersistence(
229         SCProductVersionPersistence scProductVersionPersistence) {
230         this.scProductVersionPersistence = scProductVersionPersistence;
231     }
232 
233     public CounterLocalService getCounterLocalService() {
234         return counterLocalService;
235     }
236 
237     public void setCounterLocalService(CounterLocalService counterLocalService) {
238         this.counterLocalService = counterLocalService;
239     }
240 
241     public CounterService getCounterService() {
242         return counterService;
243     }
244 
245     public void setCounterService(CounterService counterService) {
246         this.counterService = counterService;
247     }
248 
249     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCLicenseLocalService.impl")
250     protected SCLicenseLocalService scLicenseLocalService;
251     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCLicenseService.impl")
252     protected SCLicenseService scLicenseService;
253     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCLicensePersistence.impl")
254     protected SCLicensePersistence scLicensePersistence;
255     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionLocalService.impl")
256     protected SCFrameworkVersionLocalService scFrameworkVersionLocalService;
257     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCFrameworkVersionService.impl")
258     protected SCFrameworkVersionService scFrameworkVersionService;
259     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCFrameworkVersionPersistence.impl")
260     protected SCFrameworkVersionPersistence scFrameworkVersionPersistence;
261     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductEntryLocalService.impl")
262     protected SCProductEntryLocalService scProductEntryLocalService;
263     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductEntryService.impl")
264     protected SCProductEntryService scProductEntryService;
265     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductEntryPersistence.impl")
266     protected SCProductEntryPersistence scProductEntryPersistence;
267     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductScreenshotLocalService.impl")
268     protected SCProductScreenshotLocalService scProductScreenshotLocalService;
269     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductScreenshotPersistence.impl")
270     protected SCProductScreenshotPersistence scProductScreenshotPersistence;
271     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductVersionLocalService.impl")
272     protected SCProductVersionLocalService scProductVersionLocalService;
273     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.SCProductVersionService.impl")
274     protected SCProductVersionService scProductVersionService;
275     @BeanReference(name = "com.liferay.portlet.softwarecatalog.service.persistence.SCProductVersionPersistence.impl")
276     protected SCProductVersionPersistence scProductVersionPersistence;
277     @BeanReference(name = "com.liferay.counter.service.CounterLocalService.impl")
278     protected CounterLocalService counterLocalService;
279     @BeanReference(name = "com.liferay.counter.service.CounterService.impl")
280     protected CounterService counterService;
281 }