001    /**
002     * Copyright (c) 2000-2010 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
013     */
014    
015    package com.liferay.portlet.softwarecatalog.service;
016    
017    import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018    
019    /**
020     * The utility for the s c product version remote service. This utility wraps {@link com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionServiceImpl} and is the primary access point for service operations in application layer code running on a remote server.
021     *
022     * <p>
023     * Never modify this class directly. Add custom service methods to {@link com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionServiceImpl} and rerun ServiceBuilder to regenerate this class.
024     * </p>
025     *
026     * <p>
027     * This is a remote service. Methods of this service are expected to have security checks based on the propagated JAAS credentials because this service can be accessed remotely.
028     * </p>
029     *
030     * @author Brian Wing Shun Chan
031     * @see SCProductVersionService
032     * @see com.liferay.portlet.softwarecatalog.service.base.SCProductVersionServiceBaseImpl
033     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionServiceImpl
034     * @generated
035     */
036    public class SCProductVersionServiceUtil {
037            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
038                    long productEntryId, java.lang.String version,
039                    java.lang.String changeLog, java.lang.String downloadPageURL,
040                    java.lang.String directDownloadURL, boolean testDirectDownloadURL,
041                    boolean repoStoreArtifact, long[] frameworkVersionIds,
042                    com.liferay.portal.service.ServiceContext serviceContext)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    return getService()
046                                       .addProductVersion(productEntryId, version, changeLog,
047                            downloadPageURL, directDownloadURL, testDirectDownloadURL,
048                            repoStoreArtifact, frameworkVersionIds, serviceContext);
049            }
050    
051            public static void deleteProductVersion(long productVersionId)
052                    throws com.liferay.portal.kernel.exception.PortalException,
053                            com.liferay.portal.kernel.exception.SystemException {
054                    getService().deleteProductVersion(productVersionId);
055            }
056    
057            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
058                    long productVersionId)
059                    throws com.liferay.portal.kernel.exception.PortalException,
060                            com.liferay.portal.kernel.exception.SystemException {
061                    return getService().getProductVersion(productVersionId);
062            }
063    
064            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
065                    long productEntryId, int start, int end)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    return getService().getProductVersions(productEntryId, start, end);
069            }
070    
071            public static int getProductVersionsCount(long productEntryId)
072                    throws com.liferay.portal.kernel.exception.PortalException,
073                            com.liferay.portal.kernel.exception.SystemException {
074                    return getService().getProductVersionsCount(productEntryId);
075            }
076    
077            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
078                    long productVersionId, java.lang.String version,
079                    java.lang.String changeLog, java.lang.String downloadPageURL,
080                    java.lang.String directDownloadURL, boolean testDirectDownloadURL,
081                    boolean repoStoreArtifact, long[] frameworkVersionIds)
082                    throws com.liferay.portal.kernel.exception.PortalException,
083                            com.liferay.portal.kernel.exception.SystemException {
084                    return getService()
085                                       .updateProductVersion(productVersionId, version, changeLog,
086                            downloadPageURL, directDownloadURL, testDirectDownloadURL,
087                            repoStoreArtifact, frameworkVersionIds);
088            }
089    
090            public static SCProductVersionService getService() {
091                    if (_service == null) {
092                            _service = (SCProductVersionService)PortalBeanLocatorUtil.locate(SCProductVersionService.class.getName());
093                    }
094    
095                    return _service;
096            }
097    
098            public void setService(SCProductVersionService service) {
099                    _service = service;
100            }
101    
102            private static SCProductVersionService _service;
103    }