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. 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.
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. 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.
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. 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.
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            * @throws SystemException if a system exception occurred
234            */
235            public void addSCProductEntrySCLicense(long productEntryId, long licenseId)
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    _scLicenseLocalService.addSCProductEntrySCLicense(productEntryId,
238                            licenseId);
239            }
240    
241            /**
242            * @throws SystemException if a system exception occurred
243            */
244            public void addSCProductEntrySCLicense(long productEntryId,
245                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
246                    throws com.liferay.portal.kernel.exception.SystemException {
247                    _scLicenseLocalService.addSCProductEntrySCLicense(productEntryId,
248                            scLicense);
249            }
250    
251            /**
252            * @throws SystemException if a system exception occurred
253            */
254            public void addSCProductEntrySCLicenses(long productEntryId,
255                    long[] licenseIds)
256                    throws com.liferay.portal.kernel.exception.SystemException {
257                    _scLicenseLocalService.addSCProductEntrySCLicenses(productEntryId,
258                            licenseIds);
259            }
260    
261            /**
262            * @throws SystemException if a system exception occurred
263            */
264            public void addSCProductEntrySCLicenses(long productEntryId,
265                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses)
266                    throws com.liferay.portal.kernel.exception.SystemException {
267                    _scLicenseLocalService.addSCProductEntrySCLicenses(productEntryId,
268                            SCLicenses);
269            }
270    
271            /**
272            * @throws SystemException if a system exception occurred
273            */
274            public void clearSCProductEntrySCLicenses(long productEntryId)
275                    throws com.liferay.portal.kernel.exception.SystemException {
276                    _scLicenseLocalService.clearSCProductEntrySCLicenses(productEntryId);
277            }
278    
279            /**
280            * @throws SystemException if a system exception occurred
281            */
282            public void deleteSCProductEntrySCLicense(long productEntryId,
283                    long licenseId)
284                    throws com.liferay.portal.kernel.exception.SystemException {
285                    _scLicenseLocalService.deleteSCProductEntrySCLicense(productEntryId,
286                            licenseId);
287            }
288    
289            /**
290            * @throws SystemException if a system exception occurred
291            */
292            public void deleteSCProductEntrySCLicense(long productEntryId,
293                    com.liferay.portlet.softwarecatalog.model.SCLicense scLicense)
294                    throws com.liferay.portal.kernel.exception.SystemException {
295                    _scLicenseLocalService.deleteSCProductEntrySCLicense(productEntryId,
296                            scLicense);
297            }
298    
299            /**
300            * @throws SystemException if a system exception occurred
301            */
302            public void deleteSCProductEntrySCLicenses(long productEntryId,
303                    long[] licenseIds)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    _scLicenseLocalService.deleteSCProductEntrySCLicenses(productEntryId,
306                            licenseIds);
307            }
308    
309            /**
310            * @throws SystemException if a system exception occurred
311            */
312            public void deleteSCProductEntrySCLicenses(long productEntryId,
313                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> SCLicenses)
314                    throws com.liferay.portal.kernel.exception.SystemException {
315                    _scLicenseLocalService.deleteSCProductEntrySCLicenses(productEntryId,
316                            SCLicenses);
317            }
318    
319            /**
320            * @throws SystemException if a system exception occurred
321            */
322            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
323                    long productEntryId)
324                    throws com.liferay.portal.kernel.exception.SystemException {
325                    return _scLicenseLocalService.getSCProductEntrySCLicenses(productEntryId);
326            }
327    
328            /**
329            * @throws SystemException if a system exception occurred
330            */
331            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
332                    long productEntryId, int start, int end)
333                    throws com.liferay.portal.kernel.exception.SystemException {
334                    return _scLicenseLocalService.getSCProductEntrySCLicenses(productEntryId,
335                            start, end);
336            }
337    
338            /**
339            * @throws SystemException if a system exception occurred
340            */
341            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getSCProductEntrySCLicenses(
342                    long productEntryId, int start, int end,
343                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
344                    throws com.liferay.portal.kernel.exception.SystemException {
345                    return _scLicenseLocalService.getSCProductEntrySCLicenses(productEntryId,
346                            start, end, orderByComparator);
347            }
348    
349            /**
350            * @throws SystemException if a system exception occurred
351            */
352            public int getSCProductEntrySCLicensesCount(long productEntryId)
353                    throws com.liferay.portal.kernel.exception.SystemException {
354                    return _scLicenseLocalService.getSCProductEntrySCLicensesCount(productEntryId);
355            }
356    
357            /**
358            * @throws SystemException if a system exception occurred
359            */
360            public boolean hasSCProductEntrySCLicense(long productEntryId,
361                    long licenseId)
362                    throws com.liferay.portal.kernel.exception.SystemException {
363                    return _scLicenseLocalService.hasSCProductEntrySCLicense(productEntryId,
364                            licenseId);
365            }
366    
367            /**
368            * @throws SystemException if a system exception occurred
369            */
370            public boolean hasSCProductEntrySCLicenses(long productEntryId)
371                    throws com.liferay.portal.kernel.exception.SystemException {
372                    return _scLicenseLocalService.hasSCProductEntrySCLicenses(productEntryId);
373            }
374    
375            /**
376            * @throws SystemException if a system exception occurred
377            */
378            public void setSCProductEntrySCLicenses(long productEntryId,
379                    long[] licenseIds)
380                    throws com.liferay.portal.kernel.exception.SystemException {
381                    _scLicenseLocalService.setSCProductEntrySCLicenses(productEntryId,
382                            licenseIds);
383            }
384    
385            /**
386            * Returns the Spring bean ID for this bean.
387            *
388            * @return the Spring bean ID for this bean
389            */
390            public java.lang.String getBeanIdentifier() {
391                    return _scLicenseLocalService.getBeanIdentifier();
392            }
393    
394            /**
395            * Sets the Spring bean ID for this bean.
396            *
397            * @param beanIdentifier the Spring bean ID for this bean
398            */
399            public void setBeanIdentifier(java.lang.String beanIdentifier) {
400                    _scLicenseLocalService.setBeanIdentifier(beanIdentifier);
401            }
402    
403            public com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
404                    java.lang.String name, java.lang.String url, boolean openSource,
405                    boolean active, boolean recommended)
406                    throws com.liferay.portal.kernel.exception.PortalException,
407                            com.liferay.portal.kernel.exception.SystemException {
408                    return _scLicenseLocalService.addLicense(name, url, openSource, active,
409                            recommended);
410            }
411    
412            public void deleteLicense(long licenseId)
413                    throws com.liferay.portal.kernel.exception.PortalException,
414                            com.liferay.portal.kernel.exception.SystemException {
415                    _scLicenseLocalService.deleteLicense(licenseId);
416            }
417    
418            public void deleteLicense(
419                    com.liferay.portlet.softwarecatalog.model.SCLicense license)
420                    throws com.liferay.portal.kernel.exception.SystemException {
421                    _scLicenseLocalService.deleteLicense(license);
422            }
423    
424            public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
425                    long licenseId)
426                    throws com.liferay.portal.kernel.exception.PortalException,
427                            com.liferay.portal.kernel.exception.SystemException {
428                    return _scLicenseLocalService.getLicense(licenseId);
429            }
430    
431            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses()
432                    throws com.liferay.portal.kernel.exception.SystemException {
433                    return _scLicenseLocalService.getLicenses();
434            }
435    
436            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
437                    boolean active, boolean recommended)
438                    throws com.liferay.portal.kernel.exception.SystemException {
439                    return _scLicenseLocalService.getLicenses(active, recommended);
440            }
441    
442            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
443                    boolean active, boolean recommended, int start, int end)
444                    throws com.liferay.portal.kernel.exception.SystemException {
445                    return _scLicenseLocalService.getLicenses(active, recommended, start,
446                            end);
447            }
448    
449            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getLicenses(
450                    int start, int end)
451                    throws com.liferay.portal.kernel.exception.SystemException {
452                    return _scLicenseLocalService.getLicenses(start, end);
453            }
454    
455            public int getLicensesCount()
456                    throws com.liferay.portal.kernel.exception.SystemException {
457                    return _scLicenseLocalService.getLicensesCount();
458            }
459    
460            public int getLicensesCount(boolean active, boolean recommended)
461                    throws com.liferay.portal.kernel.exception.SystemException {
462                    return _scLicenseLocalService.getLicensesCount(active, recommended);
463            }
464    
465            public java.util.List<com.liferay.portlet.softwarecatalog.model.SCLicense> getProductEntryLicenses(
466                    long productEntryId)
467                    throws com.liferay.portal.kernel.exception.SystemException {
468                    return _scLicenseLocalService.getProductEntryLicenses(productEntryId);
469            }
470    
471            public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
472                    long licenseId, java.lang.String name, java.lang.String url,
473                    boolean openSource, boolean active, boolean recommended)
474                    throws com.liferay.portal.kernel.exception.PortalException,
475                            com.liferay.portal.kernel.exception.SystemException {
476                    return _scLicenseLocalService.updateLicense(licenseId, name, url,
477                            openSource, active, recommended);
478            }
479    
480            /**
481             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
482             */
483            public SCLicenseLocalService getWrappedSCLicenseLocalService() {
484                    return _scLicenseLocalService;
485            }
486    
487            /**
488             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
489             */
490            public void setWrappedSCLicenseLocalService(
491                    SCLicenseLocalService scLicenseLocalService) {
492                    _scLicenseLocalService = scLicenseLocalService;
493            }
494    
495            public SCLicenseLocalService getWrappedService() {
496                    return _scLicenseLocalService;
497            }
498    
499            public void setWrappedService(SCLicenseLocalService scLicenseLocalService) {
500                    _scLicenseLocalService = scLicenseLocalService;
501            }
502    
503            private SCLicenseLocalService _scLicenseLocalService;
504    }