001    /**
002     * Copyright (c) 2000-2013 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portlet.softwarecatalog.service;
016    
017    import com.liferay.portal.service.ServiceWrapper;
018    
019    /**
020     * <p>
021     * This class is a wrapper for {@link SCLicenseLocalService}.
022     * </p>
023     *
024     * @author    Brian Wing Shun Chan
025     * @see       SCLicenseLocalService
026     * @generated
027     */
028    public class SCLicenseLocalServiceWrapper implements SCLicenseLocalService,
029            ServiceWrapper<SCLicenseLocalService> {
030            public SCLicenseLocalServiceWrapper(
031                    SCLicenseLocalService scLicenseLocalService) {
032                    _scLicenseLocalService = scLicenseLocalService;
033            }
034    
035            /**
036            * Adds the s c license to the database. Also notifies the appropriate model listeners.
037            *
038            * @param scLicense the s c license
039            * @return the s c license that was added
040            * @throws SystemException if a system exception occurred
041            */
042            public com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
043                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
044                    throws com.liferay.portal.kernel.exception.SystemException {
045                    return _scLicenseLocalService.addSCLicense(scLicense);
046            }
047    
048            /**
049            * Creates a new s c license with the primary key. Does not add the s c license to the database.
050            *
051            * @param licenseId the primary key for the new s c license
052            * @return the new s c license
053            */
054            public com.liferay.portlet.softwarecatalog.model.SCLicense createSCLicense(
055                    long licenseId) {
056                    return _scLicenseLocalService.createSCLicense(licenseId);
057            }
058    
059            /**
060            * Deletes the s c license with the primary key from the database. Also notifies the appropriate model listeners.
061            *
062            * @param licenseId the primary key of the s c license
063            * @return the s c license that was removed
064            * @throws PortalException if a s c license with the primary key could not be found
065            * @throws SystemException if a system exception occurred
066            */
067            public com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
068                    long licenseId)
069                    throws com.liferay.portal.kernel.exception.PortalException,
070                            com.liferay.portal.kernel.exception.SystemException {
071                    return _scLicenseLocalService.deleteSCLicense(licenseId);
072            }
073    
074            /**
075            * Deletes the s c license from the database. Also notifies the appropriate model listeners.
076            *
077            * @param scLicense the s c license
078            * @return the s c license that was removed
079            * @throws SystemException if a system exception occurred
080            */
081            public com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
082                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
083                    throws com.liferay.portal.kernel.exception.SystemException {
084                    return _scLicenseLocalService.deleteSCLicense(scLicense);
085            }
086    
087            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
088                    return _scLicenseLocalService.dynamicQuery();
089            }
090    
091            /**
092            * Performs a dynamic query on the database and returns the matching rows.
093            *
094            * @param dynamicQuery the dynamic query
095            * @return the matching rows
096            * @throws SystemException if a system exception occurred
097            */
098            @SuppressWarnings("rawtypes")
099            public java.util.List dynamicQuery(
100                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
101                    throws com.liferay.portal.kernel.exception.SystemException {
102                    return _scLicenseLocalService.dynamicQuery(dynamicQuery);
103            }
104    
105            /**
106            * Performs a dynamic query on the database and returns a range of the matching rows.
107            *
108            * <p>
109            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
110            * </p>
111            *
112            * @param dynamicQuery the dynamic query
113            * @param start the lower bound of the range of model instances
114            * @param end the upper bound of the range of model instances (not inclusive)
115            * @return the range of matching rows
116            * @throws SystemException if a system exception occurred
117            */
118            @SuppressWarnings("rawtypes")
119            public java.util.List dynamicQuery(
120                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
121                    int end) throws com.liferay.portal.kernel.exception.SystemException {
122                    return _scLicenseLocalService.dynamicQuery(dynamicQuery, start, end);
123            }
124    
125            /**
126            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
127            *
128            * <p>
129            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
130            * </p>
131            *
132            * @param dynamicQuery the dynamic query
133            * @param start the lower bound of the range of model instances
134            * @param end the upper bound of the range of model instances (not inclusive)
135            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
136            * @return the ordered range of matching rows
137            * @throws SystemException if a system exception occurred
138            */
139            @SuppressWarnings("rawtypes")
140            public java.util.List dynamicQuery(
141                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
142                    int end,
143                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
144                    throws com.liferay.portal.kernel.exception.SystemException {
145                    return _scLicenseLocalService.dynamicQuery(dynamicQuery, start, end,
146                            orderByComparator);
147            }
148    
149            /**
150            * Returns the number of rows that match the dynamic query.
151            *
152            * @param dynamicQuery the dynamic query
153            * @return the number of rows that match the dynamic query
154            * @throws SystemException if a system exception occurred
155            */
156            public long dynamicQueryCount(
157                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
158                    throws com.liferay.portal.kernel.exception.SystemException {
159                    return _scLicenseLocalService.dynamicQueryCount(dynamicQuery);
160            }
161    
162            public com.liferay.portlet.softwarecatalog.model.SCLicense fetchSCLicense(
163                    long licenseId)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return _scLicenseLocalService.fetchSCLicense(licenseId);
166            }
167    
168            /**
169            * Returns the s c license with the primary key.
170            *
171            * @param licenseId the primary key of the s c license
172            * @return the s c license
173            * @throws PortalException if a s c license with the primary key could not be found
174            * @throws SystemException if a system exception occurred
175            */
176            public com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
177                    long licenseId)
178                    throws com.liferay.portal.kernel.exception.PortalException,
179                            com.liferay.portal.kernel.exception.SystemException {
180                    return _scLicenseLocalService.getSCLicense(licenseId);
181            }
182    
183            public com.liferay.portal.model.PersistedModel getPersistedModel(
184                    java.io.Serializable primaryKeyObj)
185                    throws com.liferay.portal.kernel.exception.PortalException,
186                            com.liferay.portal.kernel.exception.SystemException {
187                    return _scLicenseLocalService.getPersistedModel(primaryKeyObj);
188            }
189    
190            /**
191            * Returns a range of all the s c licenses.
192            *
193            * <p>
194            * Useful when paginating results. Returns a maximum of <code>end - start</code> instances. <code>start</code> and <code>end</code> are not primary keys, they are indexes in the result set. Thus, <code>0</code> refers to the first result in the set. Setting both <code>start</code> and <code>end</code> to {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS} will return the full result set.
195            * </p>
196            *
197            * @param start the lower bound of the range of s c licenses
198            * @param end the upper bound of the range of s c licenses (not inclusive)
199            * @return the range of s c licenses
200            * @throws SystemException if a system exception occurred
201            */
202            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
203                    int start, int end)
204                    throws com.liferay.portal.kernel.exception.SystemException {
205                    return _scLicenseLocalService.getSCLicenses(start, end);
206            }
207    
208            /**
209            * Returns the number of s c licenses.
210            *
211            * @return the number of s c licenses
212            * @throws SystemException if a system exception occurred
213            */
214            public int getSCLicensesCount()
215                    throws com.liferay.portal.kernel.exception.SystemException {
216                    return _scLicenseLocalService.getSCLicensesCount();
217            }
218    
219            /**
220            * Updates the s c license in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
221            *
222            * @param scLicense the s c license
223            * @return the s c license that was updated
224            * @throws SystemException if a system exception occurred
225            */
226            public com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
227                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
228                    throws com.liferay.portal.kernel.exception.SystemException {
229                    return _scLicenseLocalService.updateSCLicense(scLicense);
230            }
231    
232            /**
233            * Updates the s c license in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
234            *
235            * @param scLicense the s c license
236            * @param merge whether to merge the s c license with the current session. See {@link com.liferay.portal.service.persistence.BatchSession#update(com.liferay.portal.kernel.dao.orm.Session, com.liferay.portal.model.BaseModel, boolean)} for an explanation.
237            * @return the s c license that was updated
238            * @throws SystemException if a system exception occurred
239            */
240            public com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
241                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense,
242                    boolean merge)
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _scLicenseLocalService.updateSCLicense(scLicense, merge);
245            }
246    
247            /**
248            * @throws SystemException if a system exception occurred
249            */
250            public void addSCProductEntrySCLicense(long productEntryId, long licenseId)
251                    throws com.liferay.portal.kernel.exception.SystemException {
252                    _scLicenseLocalService.addSCProductEntrySCLicense(productEntryId,
253                            licenseId);
254            }
255    
256            /**
257            * @throws SystemException if a system exception occurred
258            */
259            public void addSCProductEntrySCLicense(long productEntryId,
260                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
261                    throws com.liferay.portal.kernel.exception.SystemException {
262                    _scLicenseLocalService.addSCProductEntrySCLicense(productEntryId,
263                            scLicense);
264            }
265    
266            /**
267            * @throws SystemException if a system exception occurred
268            */
269            public void addSCProductEntrySCLicenses(long productEntryId,
270                    long[] licenseIds)
271                    throws com.liferay.portal.kernel.exception.SystemException {
272                    _scLicenseLocalService.addSCProductEntrySCLicenses(productEntryId,
273                            licenseIds);
274            }
275    
276            /**
277            * @throws SystemException if a system exception occurred
278            */
279            public void addSCProductEntrySCLicenses(long productEntryId,
280                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    _scLicenseLocalService.addSCProductEntrySCLicenses(productEntryId,
283                            SCLicenses);
284            }
285    
286            /**
287            * @throws SystemException if a system exception occurred
288            */
289            public void clearSCProductEntrySCLicenses(long productEntryId)
290                    throws com.liferay.portal.kernel.exception.SystemException {
291                    _scLicenseLocalService.clearSCProductEntrySCLicenses(productEntryId);
292            }
293    
294            /**
295            * @throws SystemException if a system exception occurred
296            */
297            public void deleteSCProductEntrySCLicense(long productEntryId,
298                    long licenseId)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    _scLicenseLocalService.deleteSCProductEntrySCLicense(productEntryId,
301                            licenseId);
302            }
303    
304            /**
305            * @throws SystemException if a system exception occurred
306            */
307            public void deleteSCProductEntrySCLicense(long productEntryId,
308                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    _scLicenseLocalService.deleteSCProductEntrySCLicense(productEntryId,
311                            scLicense);
312            }
313    
314            /**
315            * @throws SystemException if a system exception occurred
316            */
317            public void deleteSCProductEntrySCLicenses(long productEntryId,
318                    long[] licenseIds)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    _scLicenseLocalService.deleteSCProductEntrySCLicenses(productEntryId,
321                            licenseIds);
322            }
323    
324            /**
325            * @throws SystemException if a system exception occurred
326            */
327            public void deleteSCProductEntrySCLicenses(long productEntryId,
328                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses)
329                    throws com.liferay.portal.kernel.exception.SystemException {
330                    _scLicenseLocalService.deleteSCProductEntrySCLicenses(productEntryId,
331                            SCLicenses);
332            }
333    
334            /**
335            * @throws SystemException if a system exception occurred
336            */
337            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
338                    long productEntryId)
339                    throws com.liferay.portal.kernel.exception.SystemException {
340                    return _scLicenseLocalService.getSCProductEntrySCLicenses(productEntryId);
341            }
342    
343            /**
344            * @throws SystemException if a system exception occurred
345            */
346            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
347                    long productEntryId, int start, int end)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    return _scLicenseLocalService.getSCProductEntrySCLicenses(productEntryId,
350                            start, end);
351            }
352    
353            /**
354            * @throws SystemException if a system exception occurred
355            */
356            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
357                    long productEntryId, int start, int end,
358                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return _scLicenseLocalService.getSCProductEntrySCLicenses(productEntryId,
361                            start, end, orderByComparator);
362            }
363    
364            /**
365            * @throws SystemException if a system exception occurred
366            */
367            public int getSCProductEntrySCLicensesCount(long productEntryId)
368                    throws com.liferay.portal.kernel.exception.SystemException {
369                    return _scLicenseLocalService.getSCProductEntrySCLicensesCount(productEntryId);
370            }
371    
372            /**
373            * @throws SystemException if a system exception occurred
374            */
375            public boolean hasSCProductEntrySCLicense(long productEntryId,
376                    long licenseId)
377                    throws com.liferay.portal.kernel.exception.SystemException {
378                    return _scLicenseLocalService.hasSCProductEntrySCLicense(productEntryId,
379                            licenseId);
380            }
381    
382            /**
383            * @throws SystemException if a system exception occurred
384            */
385            public boolean hasSCProductEntrySCLicenses(long productEntryId)
386                    throws com.liferay.portal.kernel.exception.SystemException {
387                    return _scLicenseLocalService.hasSCProductEntrySCLicenses(productEntryId);
388            }
389    
390            /**
391            * @throws SystemException if a system exception occurred
392            */
393            public void setSCProductEntrySCLicenses(long productEntryId,
394                    long[] licenseIds)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    _scLicenseLocalService.setSCProductEntrySCLicenses(productEntryId,
397                            licenseIds);
398            }
399    
400            /**
401            * Returns the Spring bean ID for this bean.
402            *
403            * @return the Spring bean ID for this bean
404            */
405            public java.lang.String getBeanIdentifier() {
406                    return _scLicenseLocalService.getBeanIdentifier();
407            }
408    
409            /**
410            * Sets the Spring bean ID for this bean.
411            *
412            * @param beanIdentifier the Spring bean ID for this bean
413            */
414            public void setBeanIdentifier(java.lang.String beanIdentifier) {
415                    _scLicenseLocalService.setBeanIdentifier(beanIdentifier);
416            }
417    
418            public com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
419                    java.lang.String name, java.lang.String url, boolean openSource,
420                    boolean active, boolean recommended)
421                    throws com.liferay.portal.kernel.exception.PortalException,
422                            com.liferay.portal.kernel.exception.SystemException {
423                    return _scLicenseLocalService.addLicense(name, url, openSource, active,
424                            recommended);
425            }
426    
427            public void deleteLicense(long licenseId)
428                    throws com.liferay.portal.kernel.exception.PortalException,
429                            com.liferay.portal.kernel.exception.SystemException {
430                    _scLicenseLocalService.deleteLicense(licenseId);
431            }
432    
433            public void deleteLicense(
434                    com.liferay.portlet.softwarecatalog.model.SCLicense license)
435                    throws com.liferay.portal.kernel.exception.SystemException {
436                    _scLicenseLocalService.deleteLicense(license);
437            }
438    
439            public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
440                    long licenseId)
441                    throws com.liferay.portal.kernel.exception.PortalException,
442                            com.liferay.portal.kernel.exception.SystemException {
443                    return _scLicenseLocalService.getLicense(licenseId);
444            }
445    
446            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
447                    throws com.liferay.portal.kernel.exception.SystemException {
448                    return _scLicenseLocalService.getLicenses();
449            }
450    
451            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
452                    boolean active, boolean recommended)
453                    throws com.liferay.portal.kernel.exception.SystemException {
454                    return _scLicenseLocalService.getLicenses(active, recommended);
455            }
456    
457            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
458                    boolean active, boolean recommended, int start, int end)
459                    throws com.liferay.portal.kernel.exception.SystemException {
460                    return _scLicenseLocalService.getLicenses(active, recommended, start,
461                            end);
462            }
463    
464            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
465                    int start, int end)
466                    throws com.liferay.portal.kernel.exception.SystemException {
467                    return _scLicenseLocalService.getLicenses(start, end);
468            }
469    
470            public int getLicensesCount()
471                    throws com.liferay.portal.kernel.exception.SystemException {
472                    return _scLicenseLocalService.getLicensesCount();
473            }
474    
475            public int getLicensesCount(boolean active, boolean recommended)
476                    throws com.liferay.portal.kernel.exception.SystemException {
477                    return _scLicenseLocalService.getLicensesCount(active, recommended);
478            }
479    
480            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
481                    long productEntryId)
482                    throws com.liferay.portal.kernel.exception.SystemException {
483                    return _scLicenseLocalService.getProductEntryLicenses(productEntryId);
484            }
485    
486            public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
487                    long licenseId, java.lang.String name, java.lang.String url,
488                    boolean openSource, boolean active, boolean recommended)
489                    throws com.liferay.portal.kernel.exception.PortalException,
490                            com.liferay.portal.kernel.exception.SystemException {
491                    return _scLicenseLocalService.updateLicense(licenseId, name, url,
492                            openSource, active, recommended);
493            }
494    
495            /**
496             * @deprecated Renamed to {@link #getWrappedService}
497             */
498            public SCLicenseLocalService getWrappedSCLicenseLocalService() {
499                    return _scLicenseLocalService;
500            }
501    
502            /**
503             * @deprecated Renamed to {@link #setWrappedService}
504             */
505            public void setWrappedSCLicenseLocalService(
506                    SCLicenseLocalService scLicenseLocalService) {
507                    _scLicenseLocalService = scLicenseLocalService;
508            }
509    
510            public SCLicenseLocalService getWrappedService() {
511                    return _scLicenseLocalService;
512            }
513    
514            public void setWrappedService(SCLicenseLocalService scLicenseLocalService) {
515                    _scLicenseLocalService = scLicenseLocalService;
516            }
517    
518            private SCLicenseLocalService _scLicenseLocalService;
519    }