1
14
15 package com.liferay.portlet.softwarecatalog.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class SCProductVersionServiceUtil {
40 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
41 long productEntryId, java.lang.String version,
42 java.lang.String changeLog, java.lang.String downloadPageURL,
43 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
44 boolean repoStoreArtifact, long[] frameworkVersionIds,
45 com.liferay.portal.service.ServiceContext serviceContext)
46 throws com.liferay.portal.kernel.exception.PortalException,
47 com.liferay.portal.kernel.exception.SystemException {
48 return getService()
49 .addProductVersion(productEntryId, version, changeLog,
50 downloadPageURL, directDownloadURL, testDirectDownloadURL,
51 repoStoreArtifact, frameworkVersionIds, serviceContext);
52 }
53
54 public static void deleteProductVersion(long productVersionId)
55 throws com.liferay.portal.kernel.exception.PortalException,
56 com.liferay.portal.kernel.exception.SystemException {
57 getService().deleteProductVersion(productVersionId);
58 }
59
60 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
61 long productVersionId)
62 throws com.liferay.portal.kernel.exception.PortalException,
63 com.liferay.portal.kernel.exception.SystemException {
64 return getService().getProductVersion(productVersionId);
65 }
66
67 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
68 long productEntryId, int start, int end)
69 throws com.liferay.portal.kernel.exception.PortalException,
70 com.liferay.portal.kernel.exception.SystemException {
71 return getService().getProductVersions(productEntryId, start, end);
72 }
73
74 public static int getProductVersionsCount(long productEntryId)
75 throws com.liferay.portal.kernel.exception.PortalException,
76 com.liferay.portal.kernel.exception.SystemException {
77 return getService().getProductVersionsCount(productEntryId);
78 }
79
80 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
81 long productVersionId, java.lang.String version,
82 java.lang.String changeLog, java.lang.String downloadPageURL,
83 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
84 boolean repoStoreArtifact, long[] frameworkVersionIds)
85 throws com.liferay.portal.kernel.exception.PortalException,
86 com.liferay.portal.kernel.exception.SystemException {
87 return getService()
88 .updateProductVersion(productVersionId, version, changeLog,
89 downloadPageURL, directDownloadURL, testDirectDownloadURL,
90 repoStoreArtifact, frameworkVersionIds);
91 }
92
93 public static SCProductVersionService getService() {
94 if (_service == null) {
95 _service = (SCProductVersionService)PortalBeanLocatorUtil.locate(SCProductVersionService.class.getName());
96 }
97
98 return _service;
99 }
100
101 public void setService(SCProductVersionService service) {
102 _service = service;
103 }
104
105 private static SCProductVersionService _service;
106 }