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 boolean addCommunityPermissions, boolean addGuestPermissions)
46 throws com.liferay.portal.PortalException,
47 com.liferay.portal.SystemException, java.rmi.RemoteException {
48 return getService()
49 .addProductVersion(productEntryId, version, changeLog,
50 downloadPageURL, directDownloadURL, testDirectDownloadURL,
51 repoStoreArtifact, frameworkVersionIds, addCommunityPermissions,
52 addGuestPermissions);
53 }
54
55 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
56 long productEntryId, java.lang.String version,
57 java.lang.String changeLog, java.lang.String downloadPageURL,
58 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
59 boolean repoStoreArtifact, long[] frameworkVersionIds,
60 java.lang.String[] communityPermissions,
61 java.lang.String[] guestPermissions)
62 throws com.liferay.portal.PortalException,
63 com.liferay.portal.SystemException, java.rmi.RemoteException {
64 return getService()
65 .addProductVersion(productEntryId, version, changeLog,
66 downloadPageURL, directDownloadURL, testDirectDownloadURL,
67 repoStoreArtifact, frameworkVersionIds, communityPermissions,
68 guestPermissions);
69 }
70
71 public static void deleteProductVersion(long productVersionId)
72 throws com.liferay.portal.PortalException,
73 com.liferay.portal.SystemException, java.rmi.RemoteException {
74 getService().deleteProductVersion(productVersionId);
75 }
76
77 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
78 long productVersionId)
79 throws com.liferay.portal.PortalException,
80 com.liferay.portal.SystemException, java.rmi.RemoteException {
81 return getService().getProductVersion(productVersionId);
82 }
83
84 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
85 long productEntryId, int start, int end)
86 throws com.liferay.portal.PortalException,
87 com.liferay.portal.SystemException, java.rmi.RemoteException {
88 return getService().getProductVersions(productEntryId, start, end);
89 }
90
91 public static int getProductVersionsCount(long productEntryId)
92 throws com.liferay.portal.PortalException,
93 com.liferay.portal.SystemException, java.rmi.RemoteException {
94 return getService().getProductVersionsCount(productEntryId);
95 }
96
97 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
98 long productVersionId, java.lang.String version,
99 java.lang.String changeLog, java.lang.String downloadPageURL,
100 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
101 boolean repoStoreArtifact, long[] frameworkVersionIds)
102 throws com.liferay.portal.PortalException,
103 com.liferay.portal.SystemException, java.rmi.RemoteException {
104 return getService()
105 .updateProductVersion(productVersionId, version, changeLog,
106 downloadPageURL, directDownloadURL, testDirectDownloadURL,
107 repoStoreArtifact, frameworkVersionIds);
108 }
109
110 public static SCProductVersionService getService() {
111 if (_service == null) {
112 _service = (SCProductVersionService)PortalBeanLocatorUtil.locate(SCProductVersionService.class.getName());
113 }
114
115 return _service;
116 }
117
118 public void setService(SCProductVersionService service) {
119 _service = service;
120 }
121
122 private static SCProductVersionService _service;
123 }