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     * Provides a wrapper for {@link SCLicenseLocalService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see SCLicenseLocalService
024     * @generated
025     */
026    public class SCLicenseLocalServiceWrapper implements SCLicenseLocalService,
027            ServiceWrapper<SCLicenseLocalService> {
028            public SCLicenseLocalServiceWrapper(
029                    SCLicenseLocalService scLicenseLocalService) {
030                    _scLicenseLocalService = scLicenseLocalService;
031            }
032    
033            /**
034            * Adds the s c license to the database. Also notifies the appropriate model listeners.
035            *
036            * @param scLicense the s c license
037            * @return the s c license that was added
038            * @throws SystemException if a system exception occurred
039            */
040            @Override
041            public com.liferay.portlet.softwarecatalog.model.SCLicense addSCLicense(
042                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
043                    throws com.liferay.portal.kernel.exception.SystemException {
044                    return _scLicenseLocalService.addSCLicense(scLicense);
045            }
046    
047            /**
048            * Creates a new s c license with the primary key. Does not add the s c license to the database.
049            *
050            * @param licenseId the primary key for the new s c license
051            * @return the new s c license
052            */
053            @Override
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            @Override
068            public com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
069                    long licenseId)
070                    throws com.liferay.portal.kernel.exception.PortalException,
071                            com.liferay.portal.kernel.exception.SystemException {
072                    return _scLicenseLocalService.deleteSCLicense(licenseId);
073            }
074    
075            /**
076            * Deletes the s c license from the database. Also notifies the appropriate model listeners.
077            *
078            * @param scLicense the s c license
079            * @return the s c license that was removed
080            * @throws SystemException if a system exception occurred
081            */
082            @Override
083            public com.liferay.portlet.softwarecatalog.model.SCLicense deleteSCLicense(
084                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
085                    throws com.liferay.portal.kernel.exception.SystemException {
086                    return _scLicenseLocalService.deleteSCLicense(scLicense);
087            }
088    
089            @Override
090            public com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
091                    return _scLicenseLocalService.dynamicQuery();
092            }
093    
094            /**
095            * Performs a dynamic query on the database and returns the matching rows.
096            *
097            * @param dynamicQuery the dynamic query
098            * @return the matching rows
099            * @throws SystemException if a system exception occurred
100            */
101            @Override
102            @SuppressWarnings("rawtypes")
103            public java.util.List dynamicQuery(
104                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
105                    throws com.liferay.portal.kernel.exception.SystemException {
106                    return _scLicenseLocalService.dynamicQuery(dynamicQuery);
107            }
108    
109            /**
110            * Performs a dynamic query on the database and returns a range of the matching rows.
111            *
112            * <p>
113            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCLicenseModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
114            * </p>
115            *
116            * @param dynamicQuery the dynamic query
117            * @param start the lower bound of the range of model instances
118            * @param end the upper bound of the range of model instances (not inclusive)
119            * @return the range of matching rows
120            * @throws SystemException if a system exception occurred
121            */
122            @Override
123            @SuppressWarnings("rawtypes")
124            public java.util.List dynamicQuery(
125                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
126                    int end) throws com.liferay.portal.kernel.exception.SystemException {
127                    return _scLicenseLocalService.dynamicQuery(dynamicQuery, start, end);
128            }
129    
130            /**
131            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
132            *
133            * <p>
134            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCLicenseModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
135            * </p>
136            *
137            * @param dynamicQuery the dynamic query
138            * @param start the lower bound of the range of model instances
139            * @param end the upper bound of the range of model instances (not inclusive)
140            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
141            * @return the ordered range of matching rows
142            * @throws SystemException if a system exception occurred
143            */
144            @Override
145            @SuppressWarnings("rawtypes")
146            public java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return _scLicenseLocalService.dynamicQuery(dynamicQuery, start, end,
152                            orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            @Override
163            public long dynamicQueryCount(
164                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
165                    throws com.liferay.portal.kernel.exception.SystemException {
166                    return _scLicenseLocalService.dynamicQueryCount(dynamicQuery);
167            }
168    
169            /**
170            * Returns the number of rows that match the dynamic query.
171            *
172            * @param dynamicQuery the dynamic query
173            * @param projection the projection to apply to the query
174            * @return the number of rows that match the dynamic query
175            * @throws SystemException if a system exception occurred
176            */
177            @Override
178            public long dynamicQueryCount(
179                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
180                    com.liferay.portal.kernel.dao.orm.Projection projection)
181                    throws com.liferay.portal.kernel.exception.SystemException {
182                    return _scLicenseLocalService.dynamicQueryCount(dynamicQuery, projection);
183            }
184    
185            @Override
186            public com.liferay.portlet.softwarecatalog.model.SCLicense fetchSCLicense(
187                    long licenseId)
188                    throws com.liferay.portal.kernel.exception.SystemException {
189                    return _scLicenseLocalService.fetchSCLicense(licenseId);
190            }
191    
192            /**
193            * Returns the s c license with the primary key.
194            *
195            * @param licenseId the primary key of the s c license
196            * @return the s c license
197            * @throws PortalException if a s c license with the primary key could not be found
198            * @throws SystemException if a system exception occurred
199            */
200            @Override
201            public com.liferay.portlet.softwarecatalog.model.SCLicense getSCLicense(
202                    long licenseId)
203                    throws com.liferay.portal.kernel.exception.PortalException,
204                            com.liferay.portal.kernel.exception.SystemException {
205                    return _scLicenseLocalService.getSCLicense(licenseId);
206            }
207    
208            @Override
209            public com.liferay.portal.model.PersistedModel getPersistedModel(
210                    java.io.Serializable primaryKeyObj)
211                    throws com.liferay.portal.kernel.exception.PortalException,
212                            com.liferay.portal.kernel.exception.SystemException {
213                    return _scLicenseLocalService.getPersistedModel(primaryKeyObj);
214            }
215    
216            /**
217            * Returns a range of all the s c licenses.
218            *
219            * <p>
220            * 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. If <code>orderByComparator</code> is specified, then the query will include the given ORDER BY logic. If <code>orderByComparator</code> is absent and pagination is required (<code>start</code> and <code>end</code> are not {@link com.liferay.portal.kernel.dao.orm.QueryUtil#ALL_POS}), then the query will include the default ORDER BY logic from {@link com.liferay.portlet.softwarecatalog.model.impl.SCLicenseModelImpl}. If both <code>orderByComparator</code> and pagination are absent, for performance reasons, the query will not have an ORDER BY clause and the returned result set will be sorted on by the primary key in an ascending order.
221            * </p>
222            *
223            * @param start the lower bound of the range of s c licenses
224            * @param end the upper bound of the range of s c licenses (not inclusive)
225            * @return the range of s c licenses
226            * @throws SystemException if a system exception occurred
227            */
228            @Override
229            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCLicenses(
230                    int start, int end)
231                    throws com.liferay.portal.kernel.exception.SystemException {
232                    return _scLicenseLocalService.getSCLicenses(start, end);
233            }
234    
235            /**
236            * Returns the number of s c licenses.
237            *
238            * @return the number of s c licenses
239            * @throws SystemException if a system exception occurred
240            */
241            @Override
242            public int getSCLicensesCount()
243                    throws com.liferay.portal.kernel.exception.SystemException {
244                    return _scLicenseLocalService.getSCLicensesCount();
245            }
246    
247            /**
248            * Updates the s c license in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
249            *
250            * @param scLicense the s c license
251            * @return the s c license that was updated
252            * @throws SystemException if a system exception occurred
253            */
254            @Override
255            public com.liferay.portlet.softwarecatalog.model.SCLicense updateSCLicense(
256                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
257                    throws com.liferay.portal.kernel.exception.SystemException {
258                    return _scLicenseLocalService.updateSCLicense(scLicense);
259            }
260    
261            /**
262            * @throws SystemException if a system exception occurred
263            */
264            @Override
265            public void addSCProductEntrySCLicense(long productEntryId, long licenseId)
266                    throws com.liferay.portal.kernel.exception.SystemException {
267                    _scLicenseLocalService.addSCProductEntrySCLicense(productEntryId,
268                            licenseId);
269            }
270    
271            /**
272            * @throws SystemException if a system exception occurred
273            */
274            @Override
275            public void addSCProductEntrySCLicense(long productEntryId,
276                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
277                    throws com.liferay.portal.kernel.exception.SystemException {
278                    _scLicenseLocalService.addSCProductEntrySCLicense(productEntryId,
279                            scLicense);
280            }
281    
282            /**
283            * @throws SystemException if a system exception occurred
284            */
285            @Override
286            public void addSCProductEntrySCLicenses(long productEntryId,
287                    long[] licenseIds)
288                    throws com.liferay.portal.kernel.exception.SystemException {
289                    _scLicenseLocalService.addSCProductEntrySCLicenses(productEntryId,
290                            licenseIds);
291            }
292    
293            /**
294            * @throws SystemException if a system exception occurred
295            */
296            @Override
297            public void addSCProductEntrySCLicenses(long productEntryId,
298                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses)
299                    throws com.liferay.portal.kernel.exception.SystemException {
300                    _scLicenseLocalService.addSCProductEntrySCLicenses(productEntryId,
301                            SCLicenses);
302            }
303    
304            /**
305            * @throws SystemException if a system exception occurred
306            */
307            @Override
308            public void clearSCProductEntrySCLicenses(long productEntryId)
309                    throws com.liferay.portal.kernel.exception.SystemException {
310                    _scLicenseLocalService.clearSCProductEntrySCLicenses(productEntryId);
311            }
312    
313            /**
314            * @throws SystemException if a system exception occurred
315            */
316            @Override
317            public void deleteSCProductEntrySCLicense(long productEntryId,
318                    long licenseId)
319                    throws com.liferay.portal.kernel.exception.SystemException {
320                    _scLicenseLocalService.deleteSCProductEntrySCLicense(productEntryId,
321                            licenseId);
322            }
323    
324            /**
325            * @throws SystemException if a system exception occurred
326            */
327            @Override
328            public void deleteSCProductEntrySCLicense(long productEntryId,
329                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
330                    throws com.liferay.portal.kernel.exception.SystemException {
331                    _scLicenseLocalService.deleteSCProductEntrySCLicense(productEntryId,
332                            scLicense);
333            }
334    
335            /**
336            * @throws SystemException if a system exception occurred
337            */
338            @Override
339            public void deleteSCProductEntrySCLicenses(long productEntryId,
340                    long[] licenseIds)
341                    throws com.liferay.portal.kernel.exception.SystemException {
342                    _scLicenseLocalService.deleteSCProductEntrySCLicenses(productEntryId,
343                            licenseIds);
344            }
345    
346            /**
347            * @throws SystemException if a system exception occurred
348            */
349            @Override
350            public void deleteSCProductEntrySCLicenses(long productEntryId,
351                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses)
352                    throws com.liferay.portal.kernel.exception.SystemException {
353                    _scLicenseLocalService.deleteSCProductEntrySCLicenses(productEntryId,
354                            SCLicenses);
355            }
356    
357            /**
358            * @throws SystemException if a system exception occurred
359            */
360            @Override
361            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
362                    long productEntryId)
363                    throws com.liferay.portal.kernel.exception.SystemException {
364                    return _scLicenseLocalService.getSCProductEntrySCLicenses(productEntryId);
365            }
366    
367            /**
368            * @throws SystemException if a system exception occurred
369            */
370            @Override
371            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
372                    long productEntryId, int start, int end)
373                    throws com.liferay.portal.kernel.exception.SystemException {
374                    return _scLicenseLocalService.getSCProductEntrySCLicenses(productEntryId,
375                            start, end);
376            }
377    
378            /**
379            * @throws SystemException if a system exception occurred
380            */
381            @Override
382            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
383                    long productEntryId, int start, int end,
384                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
385                    throws com.liferay.portal.kernel.exception.SystemException {
386                    return _scLicenseLocalService.getSCProductEntrySCLicenses(productEntryId,
387                            start, end, orderByComparator);
388            }
389    
390            /**
391            * @throws SystemException if a system exception occurred
392            */
393            @Override
394            public int getSCProductEntrySCLicensesCount(long productEntryId)
395                    throws com.liferay.portal.kernel.exception.SystemException {
396                    return _scLicenseLocalService.getSCProductEntrySCLicensesCount(productEntryId);
397            }
398    
399            /**
400            * @throws SystemException if a system exception occurred
401            */
402            @Override
403            public boolean hasSCProductEntrySCLicense(long productEntryId,
404                    long licenseId)
405                    throws com.liferay.portal.kernel.exception.SystemException {
406                    return _scLicenseLocalService.hasSCProductEntrySCLicense(productEntryId,
407                            licenseId);
408            }
409    
410            /**
411            * @throws SystemException if a system exception occurred
412            */
413            @Override
414            public boolean hasSCProductEntrySCLicenses(long productEntryId)
415                    throws com.liferay.portal.kernel.exception.SystemException {
416                    return _scLicenseLocalService.hasSCProductEntrySCLicenses(productEntryId);
417            }
418    
419            /**
420            * @throws SystemException if a system exception occurred
421            */
422            @Override
423            public void setSCProductEntrySCLicenses(long productEntryId,
424                    long[] licenseIds)
425                    throws com.liferay.portal.kernel.exception.SystemException {
426                    _scLicenseLocalService.setSCProductEntrySCLicenses(productEntryId,
427                            licenseIds);
428            }
429    
430            /**
431            * Returns the Spring bean ID for this bean.
432            *
433            * @return the Spring bean ID for this bean
434            */
435            @Override
436            public java.lang.String getBeanIdentifier() {
437                    return _scLicenseLocalService.getBeanIdentifier();
438            }
439    
440            /**
441            * Sets the Spring bean ID for this bean.
442            *
443            * @param beanIdentifier the Spring bean ID for this bean
444            */
445            @Override
446            public void setBeanIdentifier(java.lang.String beanIdentifier) {
447                    _scLicenseLocalService.setBeanIdentifier(beanIdentifier);
448            }
449    
450            @Override
451            public com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
452                    java.lang.String name, java.lang.String url, boolean openSource,
453                    boolean active, boolean recommended)
454                    throws com.liferay.portal.kernel.exception.PortalException,
455                            com.liferay.portal.kernel.exception.SystemException {
456                    return _scLicenseLocalService.addLicense(name, url, openSource, active,
457                            recommended);
458            }
459    
460            @Override
461            public void deleteLicense(long licenseId)
462                    throws com.liferay.portal.kernel.exception.PortalException,
463                            com.liferay.portal.kernel.exception.SystemException {
464                    _scLicenseLocalService.deleteLicense(licenseId);
465            }
466    
467            @Override
468            public void deleteLicense(
469                    com.liferay.portlet.softwarecatalog.model.SCLicense license)
470                    throws com.liferay.portal.kernel.exception.SystemException {
471                    _scLicenseLocalService.deleteLicense(license);
472            }
473    
474            @Override
475            public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
476                    long licenseId)
477                    throws com.liferay.portal.kernel.exception.PortalException,
478                            com.liferay.portal.kernel.exception.SystemException {
479                    return _scLicenseLocalService.getLicense(licenseId);
480            }
481    
482            @Override
483            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
484                    throws com.liferay.portal.kernel.exception.SystemException {
485                    return _scLicenseLocalService.getLicenses();
486            }
487    
488            @Override
489            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
490                    boolean active, boolean recommended)
491                    throws com.liferay.portal.kernel.exception.SystemException {
492                    return _scLicenseLocalService.getLicenses(active, recommended);
493            }
494    
495            @Override
496            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
497                    boolean active, boolean recommended, int start, int end)
498                    throws com.liferay.portal.kernel.exception.SystemException {
499                    return _scLicenseLocalService.getLicenses(active, recommended, start,
500                            end);
501            }
502    
503            @Override
504            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
505                    int start, int end)
506                    throws com.liferay.portal.kernel.exception.SystemException {
507                    return _scLicenseLocalService.getLicenses(start, end);
508            }
509    
510            @Override
511            public int getLicensesCount()
512                    throws com.liferay.portal.kernel.exception.SystemException {
513                    return _scLicenseLocalService.getLicensesCount();
514            }
515    
516            @Override
517            public int getLicensesCount(boolean active, boolean recommended)
518                    throws com.liferay.portal.kernel.exception.SystemException {
519                    return _scLicenseLocalService.getLicensesCount(active, recommended);
520            }
521    
522            @Override
523            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
524                    long productEntryId)
525                    throws com.liferay.portal.kernel.exception.SystemException {
526                    return _scLicenseLocalService.getProductEntryLicenses(productEntryId);
527            }
528    
529            @Override
530            public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
531                    long licenseId, java.lang.String name, java.lang.String url,
532                    boolean openSource, boolean active, boolean recommended)
533                    throws com.liferay.portal.kernel.exception.PortalException,
534                            com.liferay.portal.kernel.exception.SystemException {
535                    return _scLicenseLocalService.updateLicense(licenseId, name, url,
536                            openSource, active, recommended);
537            }
538    
539            /**
540             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
541             */
542            public SCLicenseLocalService getWrappedSCLicenseLocalService() {
543                    return _scLicenseLocalService;
544            }
545    
546            /**
547             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
548             */
549            public void setWrappedSCLicenseLocalService(
550                    SCLicenseLocalService scLicenseLocalService) {
551                    _scLicenseLocalService = scLicenseLocalService;
552            }
553    
554            @Override
555            public SCLicenseLocalService getWrappedService() {
556                    return _scLicenseLocalService;
557            }
558    
559            @Override
560            public void setWrappedService(SCLicenseLocalService scLicenseLocalService) {
561                    _scLicenseLocalService = scLicenseLocalService;
562            }
563    
564            private SCLicenseLocalService _scLicenseLocalService;
565    }