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