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