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 remote service utility for SCProductVersion. This utility wraps
022     * {@link com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionServiceImpl} and is the
023     * primary access point for service operations in application layer code running
024     * on a remote server. Methods of this service are expected to have security
025     * checks based on the propagated JAAS credentials because this service can be
026     * accessed remotely.
027     *
028     * @author Brian Wing Shun Chan
029     * @see SCProductVersionService
030     * @see com.liferay.portlet.softwarecatalog.service.base.SCProductVersionServiceBaseImpl
031     * @see com.liferay.portlet.softwarecatalog.service.impl.SCProductVersionServiceImpl
032     * @generated
033     */
034    public class SCProductVersionServiceUtil {
035            /*
036             * NOTE FOR DEVELOPERS:
037             *
038             * 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.
039             */
040    
041            /**
042            * Returns the Spring bean ID for this bean.
043            *
044            * @return the Spring bean ID for this bean
045            */
046            public static java.lang.String getBeanIdentifier() {
047                    return getService().getBeanIdentifier();
048            }
049    
050            /**
051            * Sets the Spring bean ID for this bean.
052            *
053            * @param beanIdentifier the Spring bean ID for this bean
054            */
055            public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056                    getService().setBeanIdentifier(beanIdentifier);
057            }
058    
059            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
060                    long productEntryId, java.lang.String version,
061                    java.lang.String changeLog, java.lang.String downloadPageURL,
062                    java.lang.String directDownloadURL, boolean testDirectDownloadURL,
063                    boolean repoStoreArtifact, long[] frameworkVersionIds,
064                    com.liferay.portal.service.ServiceContext serviceContext)
065                    throws com.liferay.portal.kernel.exception.PortalException,
066                            com.liferay.portal.kernel.exception.SystemException {
067                    return getService()
068                                       .addProductVersion(productEntryId, version, changeLog,
069                            downloadPageURL, directDownloadURL, testDirectDownloadURL,
070                            repoStoreArtifact, frameworkVersionIds, serviceContext);
071            }
072    
073            public static void deleteProductVersion(long productVersionId)
074                    throws com.liferay.portal.kernel.exception.PortalException,
075                            com.liferay.portal.kernel.exception.SystemException {
076                    getService().deleteProductVersion(productVersionId);
077            }
078    
079            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
080                    long productVersionId)
081                    throws com.liferay.portal.kernel.exception.PortalException,
082                            com.liferay.portal.kernel.exception.SystemException {
083                    return getService().getProductVersion(productVersionId);
084            }
085    
086            public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
087                    long productEntryId, int start, int end)
088                    throws com.liferay.portal.kernel.exception.PortalException,
089                            com.liferay.portal.kernel.exception.SystemException {
090                    return getService().getProductVersions(productEntryId, start, end);
091            }
092    
093            public static int getProductVersionsCount(long productEntryId)
094                    throws com.liferay.portal.kernel.exception.PortalException,
095                            com.liferay.portal.kernel.exception.SystemException {
096                    return getService().getProductVersionsCount(productEntryId);
097            }
098    
099            public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
100                    long productVersionId, java.lang.String version,
101                    java.lang.String changeLog, java.lang.String downloadPageURL,
102                    java.lang.String directDownloadURL, boolean testDirectDownloadURL,
103                    boolean repoStoreArtifact, long[] frameworkVersionIds)
104                    throws com.liferay.portal.kernel.exception.PortalException,
105                            com.liferay.portal.kernel.exception.SystemException {
106                    return getService()
107                                       .updateProductVersion(productVersionId, version, changeLog,
108                            downloadPageURL, directDownloadURL, testDirectDownloadURL,
109                            repoStoreArtifact, frameworkVersionIds);
110            }
111    
112            public static SCProductVersionService getService() {
113                    if (_service == null) {
114                            _service = (SCProductVersionService)PortalBeanLocatorUtil.locate(SCProductVersionService.class.getName());
115    
116                            ReferenceRegistry.registerReference(SCProductVersionServiceUtil.class,
117                                    "_service");
118                    }
119    
120                    return _service;
121            }
122    
123            /**
124             * @deprecated As of 6.2.0
125             */
126            public void setService(SCProductVersionService service) {
127            }
128    
129            private static SCProductVersionService _service;
130    }