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