001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
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 }