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.kernel.bean.PortalBeanLocatorUtil;
018    import com.liferay.portal.kernel.util.ReferenceRegistry;
019    
020    /**
021     * Provides the local service utility for SCProductVersion. This utility wraps
022     * {@link com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionLocalServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on the local server. Methods of this service will not have security checks
025     * based on the propagated JAAS credentials because this service can only be
026     * accessed from within the same VM.
027     *
028     * @author Brian Wing Shun Chan
029     * @see SCProductVersionLocalService
030     * @see com.liferay.portlet.softwarecatalog.service.base.SCProductVersionLocalServiceBaseImpl
031     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionLocalServiceImpl
032     * @generated
033     */
034    public class SCProductVersionLocalServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionLocalServiceImpl} and rerun ServiceBuilder to regenerate this class.
039             */
040    
041            /**
042            * Adds the s c product version to the database. Also notifies the appropriate model listeners.
043            *
044            * @param scProductVersion the s c product version
045            * @return the s c product version that was added
046            * @throws SystemException if a system exception occurred
047            */
048            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
049                    com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
050                    throws com.liferay.portal.kernel.exception.SystemException {
051                    return getService().addSCProductVersion(scProductVersion);
052            }
053    
054            /**
055            * Creates a new s c product version with the primary key. Does not add the s c product version to the database.
056            *
057            * @param productVersionId the primary key for the new s c product version
058            * @return the new s c product version
059            */
060            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion createSCProductVersion(
061                    long productVersionId) {
062                    return getService().createSCProductVersion(productVersionId);
063            }
064    
065            /**
066            * Deletes the s c product version with the primary key from the database. Also notifies the appropriate model listeners.
067            *
068            * @param productVersionId the primary key of the s c product version
069            * @return the s c product version that was removed
070            * @throws PortalException if a s c product version with the primary key could not be found
071            * @throws SystemException if a system exception occurred
072            */
073            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion deleteSCProductVersion(
074                    long productVersionId)
075                    throws com.liferay.portal.kernel.exception.PortalException,
076                            com.liferay.portal.kernel.exception.SystemException {
077                    return getService().deleteSCProductVersion(productVersionId);
078            }
079    
080            /**
081            * Deletes the s c product version from 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 removed
085            * @throws SystemException if a system exception occurred
086            */
087            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion deleteSCProductVersion(
088                    com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
089                    throws com.liferay.portal.kernel.exception.SystemException {
090                    return getService().deleteSCProductVersion(scProductVersion);
091            }
092    
093            public static com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery() {
094                    return getService().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            @SuppressWarnings("rawtypes")
105            public static java.util.List dynamicQuery(
106                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
107                    throws com.liferay.portal.kernel.exception.SystemException {
108                    return getService().dynamicQuery(dynamicQuery);
109            }
110    
111            /**
112            * Performs a dynamic query on the database and returns a range of the matching rows.
113            *
114            * <p>
115            * 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.
116            * </p>
117            *
118            * @param dynamicQuery the dynamic query
119            * @param start the lower bound of the range of model instances
120            * @param end the upper bound of the range of model instances (not inclusive)
121            * @return the range of matching rows
122            * @throws SystemException if a system exception occurred
123            */
124            @SuppressWarnings("rawtypes")
125            public static java.util.List dynamicQuery(
126                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
127                    int end) throws com.liferay.portal.kernel.exception.SystemException {
128                    return getService().dynamicQuery(dynamicQuery, start, end);
129            }
130    
131            /**
132            * Performs a dynamic query on the database and returns an ordered range of the matching rows.
133            *
134            * <p>
135            * 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.
136            * </p>
137            *
138            * @param dynamicQuery the dynamic query
139            * @param start the lower bound of the range of model instances
140            * @param end the upper bound of the range of model instances (not inclusive)
141            * @param orderByComparator the comparator to order the results by (optionally <code>null</code>)
142            * @return the ordered range of matching rows
143            * @throws SystemException if a system exception occurred
144            */
145            @SuppressWarnings("rawtypes")
146            public static java.util.List dynamicQuery(
147                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
148                    int end,
149                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
150                    throws com.liferay.portal.kernel.exception.SystemException {
151                    return getService()
152                                       .dynamicQuery(dynamicQuery, start, end, orderByComparator);
153            }
154    
155            /**
156            * Returns the number of rows that match the dynamic query.
157            *
158            * @param dynamicQuery the dynamic query
159            * @return the number of rows that match the dynamic query
160            * @throws SystemException if a system exception occurred
161            */
162            public static long dynamicQueryCount(
163                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
164                    throws com.liferay.portal.kernel.exception.SystemException {
165                    return getService().dynamicQueryCount(dynamicQuery);
166            }
167    
168            /**
169            * Returns the number of rows that match the dynamic query.
170            *
171            * @param dynamicQuery the dynamic query
172            * @param projection the projection to apply to the query
173            * @return the number of rows that match the dynamic query
174            * @throws SystemException if a system exception occurred
175            */
176            public static long dynamicQueryCount(
177                    com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery,
178                    com.liferay.portal.kernel.dao.orm.Projection projection)
179                    throws com.liferay.portal.kernel.exception.SystemException {
180                    return getService().dynamicQueryCount(dynamicQuery, projection);
181            }
182    
183            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion fetchSCProductVersion(
184                    long productVersionId)
185                    throws com.liferay.portal.kernel.exception.SystemException {
186                    return getService().fetchSCProductVersion(productVersionId);
187            }
188    
189            /**
190            * Returns the s c product version with the primary key.
191            *
192            * @param productVersionId the primary key of the s c product version
193            * @return the s c product version
194            * @throws PortalException if a s c product version with the primary key could not be found
195            * @throws SystemException if a system exception occurred
196            */
197            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
198                    long productVersionId)
199                    throws com.liferay.portal.kernel.exception.PortalException,
200                            com.liferay.portal.kernel.exception.SystemException {
201                    return getService().getSCProductVersion(productVersionId);
202            }
203    
204            public static com.liferay.portal.model.PersistedModel getPersistedModel(
205                    java.io.Serializable primaryKeyObj)
206                    throws com.liferay.portal.kernel.exception.PortalException,
207                            com.liferay.portal.kernel.exception.SystemException {
208                    return getService().getPersistedModel(primaryKeyObj);
209            }
210    
211            /**
212            * Returns a range of all the s c product versions.
213            *
214            * <p>
215            * 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.
216            * </p>
217            *
218            * @param start the lower bound of the range of s c product versions
219            * @param end the upper bound of the range of s c product versions (not inclusive)
220            * @return the range of s c product versions
221            * @throws SystemException if a system exception occurred
222            */
223            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
224                    int start, int end)
225                    throws com.liferay.portal.kernel.exception.SystemException {
226                    return getService().getSCProductVersions(start, end);
227            }
228    
229            /**
230            * Returns the number of s c product versions.
231            *
232            * @return the number of s c product versions
233            * @throws SystemException if a system exception occurred
234            */
235            public static int getSCProductVersionsCount()
236                    throws com.liferay.portal.kernel.exception.SystemException {
237                    return getService().getSCProductVersionsCount();
238            }
239    
240            /**
241            * Updates the s c product version in the database or adds it if it does not yet exist. Also notifies the appropriate model listeners.
242            *
243            * @param scProductVersion the s c product version
244            * @return the s c product version that was updated
245            * @throws SystemException if a system exception occurred
246            */
247            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
248                    com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
249                    throws com.liferay.portal.kernel.exception.SystemException {
250                    return getService().updateSCProductVersion(scProductVersion);
251            }
252    
253            /**
254            * @throws SystemException if a system exception occurred
255            */
256            public static void addSCFrameworkVersionSCProductVersion(
257                    long frameworkVersionId, long productVersionId)
258                    throws com.liferay.portal.kernel.exception.SystemException {
259                    getService()
260                            .addSCFrameworkVersionSCProductVersion(frameworkVersionId,
261                            productVersionId);
262            }
263    
264            /**
265            * @throws SystemException if a system exception occurred
266            */
267            public static void addSCFrameworkVersionSCProductVersion(
268                    long frameworkVersionId,
269                    com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
270                    throws com.liferay.portal.kernel.exception.SystemException {
271                    getService()
272                            .addSCFrameworkVersionSCProductVersion(frameworkVersionId,
273                            scProductVersion);
274            }
275    
276            /**
277            * @throws SystemException if a system exception occurred
278            */
279            public static void addSCFrameworkVersionSCProductVersions(
280                    long frameworkVersionId, long[] productVersionIds)
281                    throws com.liferay.portal.kernel.exception.SystemException {
282                    getService()
283                            .addSCFrameworkVersionSCProductVersions(frameworkVersionId,
284                            productVersionIds);
285            }
286    
287            /**
288            * @throws SystemException if a system exception occurred
289            */
290            public static void addSCFrameworkVersionSCProductVersions(
291                    long frameworkVersionId,
292                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> SCProductVersions)
293                    throws com.liferay.portal.kernel.exception.SystemException {
294                    getService()
295                            .addSCFrameworkVersionSCProductVersions(frameworkVersionId,
296                            SCProductVersions);
297            }
298    
299            /**
300            * @throws SystemException if a system exception occurred
301            */
302            public static void clearSCFrameworkVersionSCProductVersions(
303                    long frameworkVersionId)
304                    throws com.liferay.portal.kernel.exception.SystemException {
305                    getService().clearSCFrameworkVersionSCProductVersions(frameworkVersionId);
306            }
307    
308            /**
309            * @throws SystemException if a system exception occurred
310            */
311            public static void deleteSCFrameworkVersionSCProductVersion(
312                    long frameworkVersionId, long productVersionId)
313                    throws com.liferay.portal.kernel.exception.SystemException {
314                    getService()
315                            .deleteSCFrameworkVersionSCProductVersion(frameworkVersionId,
316                            productVersionId);
317            }
318    
319            /**
320            * @throws SystemException if a system exception occurred
321            */
322            public static void deleteSCFrameworkVersionSCProductVersion(
323                    long frameworkVersionId,
324                    com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
325                    throws com.liferay.portal.kernel.exception.SystemException {
326                    getService()
327                            .deleteSCFrameworkVersionSCProductVersion(frameworkVersionId,
328                            scProductVersion);
329            }
330    
331            /**
332            * @throws SystemException if a system exception occurred
333            */
334            public static void deleteSCFrameworkVersionSCProductVersions(
335                    long frameworkVersionId, long[] productVersionIds)
336                    throws com.liferay.portal.kernel.exception.SystemException {
337                    getService()
338                            .deleteSCFrameworkVersionSCProductVersions(frameworkVersionId,
339                            productVersionIds);
340            }
341    
342            /**
343            * @throws SystemException if a system exception occurred
344            */
345            public static void deleteSCFrameworkVersionSCProductVersions(
346                    long frameworkVersionId,
347                    java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> SCProductVersions)
348                    throws com.liferay.portal.kernel.exception.SystemException {
349                    getService()
350                            .deleteSCFrameworkVersionSCProductVersions(frameworkVersionId,
351                            SCProductVersions);
352            }
353    
354            /**
355            * @throws SystemException if a system exception occurred
356            */
357            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCFrameworkVersionSCProductVersions(
358                    long frameworkVersionId)
359                    throws com.liferay.portal.kernel.exception.SystemException {
360                    return getService()
361                                       .getSCFrameworkVersionSCProductVersions(frameworkVersionId);
362            }
363    
364            /**
365            * @throws SystemException if a system exception occurred
366            */
367            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCFrameworkVersionSCProductVersions(
368                    long frameworkVersionId, int start, int end)
369                    throws com.liferay.portal.kernel.exception.SystemException {
370                    return getService()
371                                       .getSCFrameworkVersionSCProductVersions(frameworkVersionId,
372                            start, end);
373            }
374    
375            /**
376            * @throws SystemException if a system exception occurred
377            */
378            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCFrameworkVersionSCProductVersions(
379                    long frameworkVersionId, int start, int end,
380                    com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
381                    throws com.liferay.portal.kernel.exception.SystemException {
382                    return getService()
383                                       .getSCFrameworkVersionSCProductVersions(frameworkVersionId,
384                            start, end, orderByComparator);
385            }
386    
387            /**
388            * @throws SystemException if a system exception occurred
389            */
390            public static int getSCFrameworkVersionSCProductVersionsCount(
391                    long frameworkVersionId)
392                    throws com.liferay.portal.kernel.exception.SystemException {
393                    return getService()
394                                       .getSCFrameworkVersionSCProductVersionsCount(frameworkVersionId);
395            }
396    
397            /**
398            * @throws SystemException if a system exception occurred
399            */
400            public static boolean hasSCFrameworkVersionSCProductVersion(
401                    long frameworkVersionId, long productVersionId)
402                    throws com.liferay.portal.kernel.exception.SystemException {
403                    return getService()
404                                       .hasSCFrameworkVersionSCProductVersion(frameworkVersionId,
405                            productVersionId);
406            }
407    
408            /**
409            * @throws SystemException if a system exception occurred
410            */
411            public static boolean hasSCFrameworkVersionSCProductVersions(
412                    long frameworkVersionId)
413                    throws com.liferay.portal.kernel.exception.SystemException {
414                    return getService()
415                                       .hasSCFrameworkVersionSCProductVersions(frameworkVersionId);
416            }
417    
418            /**
419            * @throws SystemException if a system exception occurred
420            */
421            public static void setSCFrameworkVersionSCProductVersions(
422                    long frameworkVersionId, long[] productVersionIds)
423                    throws com.liferay.portal.kernel.exception.SystemException {
424                    getService()
425                            .setSCFrameworkVersionSCProductVersions(frameworkVersionId,
426                            productVersionIds);
427            }
428    
429            /**
430            * Returns the Spring bean ID for this bean.
431            *
432            * @return the Spring bean ID for this bean
433            */
434            public static java.lang.String getBeanIdentifier() {
435                    return getService().getBeanIdentifier();
436            }
437    
438            /**
439            * Sets the Spring bean ID for this bean.
440            *
441            * @param beanIdentifier the Spring bean ID for this bean
442            */
443            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
444                    getService().setBeanIdentifier(beanIdentifier);
445            }
446    
447            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
448                    long userId, long productEntryId, java.lang.String version,
449                    java.lang.String changeLog, java.lang.String downloadPageURL,
450                    java.lang.String directDownloadURL, boolean testDirectDownloadURL,
451                    boolean repoStoreArtifact, long[] frameworkVersionIds,
452                    com.liferay.portal.service.ServiceContext serviceContext)
453                    throws com.liferay.portal.kernel.exception.PortalException,
454                            com.liferay.portal.kernel.exception.SystemException {
455                    return getService()
456                                       .addProductVersion(userId, productEntryId, version,
457                            changeLog, downloadPageURL, directDownloadURL,
458                            testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
459                            serviceContext);
460            }
461    
462            public static void deleteProductVersion(long productVersionId)
463                    throws com.liferay.portal.kernel.exception.PortalException,
464                            com.liferay.portal.kernel.exception.SystemException {
465                    getService().deleteProductVersion(productVersionId);
466            }
467    
468            public static void deleteProductVersion(
469                    com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
470                    throws com.liferay.portal.kernel.exception.SystemException {
471                    getService().deleteProductVersion(productVersion);
472            }
473    
474            public static void deleteProductVersions(long productEntryId)
475                    throws com.liferay.portal.kernel.exception.SystemException {
476                    getService().deleteProductVersions(productEntryId);
477            }
478    
479            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
480                    long productVersionId)
481                    throws com.liferay.portal.kernel.exception.PortalException,
482                            com.liferay.portal.kernel.exception.SystemException {
483                    return getService().getProductVersion(productVersionId);
484            }
485    
486            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
487                    java.lang.String directDownloadURL)
488                    throws com.liferay.portal.kernel.exception.PortalException,
489                            com.liferay.portal.kernel.exception.SystemException {
490                    return getService()
491                                       .getProductVersionByDirectDownloadURL(directDownloadURL);
492            }
493    
494            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
495                    long productEntryId, int start, int end)
496                    throws com.liferay.portal.kernel.exception.SystemException {
497                    return getService().getProductVersions(productEntryId, start, end);
498            }
499    
500            public static int getProductVersionsCount(long productEntryId)
501                    throws com.liferay.portal.kernel.exception.SystemException {
502                    return getService().getProductVersionsCount(productEntryId);
503            }
504    
505            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
506                    long productVersionId, java.lang.String version,
507                    java.lang.String changeLog, java.lang.String downloadPageURL,
508                    java.lang.String directDownloadURL, boolean testDirectDownloadURL,
509                    boolean repoStoreArtifact, long[] frameworkVersionIds)
510                    throws com.liferay.portal.kernel.exception.PortalException,
511                            com.liferay.portal.kernel.exception.SystemException {
512                    return getService()
513                                       .updateProductVersion(productVersionId, version, changeLog,
514                            downloadPageURL, directDownloadURL, testDirectDownloadURL,
515                            repoStoreArtifact, frameworkVersionIds);
516            }
517    
518            public static SCProductVersionLocalService getService() {
519                    if (_service == null) {
520                            _service = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName());
521    
522                            ReferenceRegistry.registerReference(SCProductVersionLocalServiceUtil.class,
523                                    "_service");
524                    }
525    
526                    return _service;
527            }
528    
529            /**
530             * @deprecated As of 6.2.0
531             */
532            public void setService(SCProductVersionLocalService service) {
533            }
534    
535            private static SCProductVersionLocalService _service;
536    }