001
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
034 public class SCProductVersionServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
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
126 public void setService(SCProductVersionService service) {
127 }
128
129 private static SCProductVersionService _service;
130 }