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