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