1
22
23 package com.liferay.portlet.softwarecatalog.service;
24
25
26
46 public class SCProductVersionLocalServiceUtil {
47 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
48 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
49 throws com.liferay.portal.SystemException {
50 return getService().addSCProductVersion(scProductVersion);
51 }
52
53 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion createSCProductVersion(
54 long productVersionId) {
55 return getService().createSCProductVersion(productVersionId);
56 }
57
58 public static void deleteSCProductVersion(long productVersionId)
59 throws com.liferay.portal.PortalException,
60 com.liferay.portal.SystemException {
61 getService().deleteSCProductVersion(productVersionId);
62 }
63
64 public static void deleteSCProductVersion(
65 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
66 throws com.liferay.portal.SystemException {
67 getService().deleteSCProductVersion(scProductVersion);
68 }
69
70 public static java.util.List<Object> dynamicQuery(
71 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
72 throws com.liferay.portal.SystemException {
73 return getService().dynamicQuery(dynamicQuery);
74 }
75
76 public static java.util.List<Object> dynamicQuery(
77 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
78 int end) throws com.liferay.portal.SystemException {
79 return getService().dynamicQuery(dynamicQuery, start, end);
80 }
81
82 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
83 long productVersionId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException {
86 return getService().getSCProductVersion(productVersionId);
87 }
88
89 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
90 int start, int end) throws com.liferay.portal.SystemException {
91 return getService().getSCProductVersions(start, end);
92 }
93
94 public static int getSCProductVersionsCount()
95 throws com.liferay.portal.SystemException {
96 return getService().getSCProductVersionsCount();
97 }
98
99 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
100 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
101 throws com.liferay.portal.SystemException {
102 return getService().updateSCProductVersion(scProductVersion);
103 }
104
105 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
106 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
107 boolean merge) throws com.liferay.portal.SystemException {
108 return getService().updateSCProductVersion(scProductVersion, merge);
109 }
110
111 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
112 long userId, long productEntryId, java.lang.String version,
113 java.lang.String changeLog, java.lang.String downloadPageURL,
114 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
115 boolean repoStoreArtifact, long[] frameworkVersionIds,
116 boolean addCommunityPermissions, boolean addGuestPermissions)
117 throws com.liferay.portal.PortalException,
118 com.liferay.portal.SystemException {
119 return getService()
120 .addProductVersion(userId, productEntryId, version,
121 changeLog, downloadPageURL, directDownloadURL,
122 testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
123 addCommunityPermissions, addGuestPermissions);
124 }
125
126 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
127 long userId, long productEntryId, java.lang.String version,
128 java.lang.String changeLog, java.lang.String downloadPageURL,
129 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
130 boolean repoStoreArtifact, long[] frameworkVersionIds,
131 java.lang.String[] communityPermissions,
132 java.lang.String[] guestPermissions)
133 throws com.liferay.portal.PortalException,
134 com.liferay.portal.SystemException {
135 return getService()
136 .addProductVersion(userId, productEntryId, version,
137 changeLog, downloadPageURL, directDownloadURL,
138 testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
139 communityPermissions, guestPermissions);
140 }
141
142 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
143 long userId, long productEntryId, java.lang.String version,
144 java.lang.String changeLog, java.lang.String downloadPageURL,
145 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
146 boolean repoStoreArtifact, long[] frameworkVersionIds,
147 java.lang.Boolean addCommunityPermissions,
148 java.lang.Boolean addGuestPermissions,
149 java.lang.String[] communityPermissions,
150 java.lang.String[] guestPermissions)
151 throws com.liferay.portal.PortalException,
152 com.liferay.portal.SystemException {
153 return getService()
154 .addProductVersion(userId, productEntryId, version,
155 changeLog, downloadPageURL, directDownloadURL,
156 testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
157 addCommunityPermissions, addGuestPermissions, communityPermissions,
158 guestPermissions);
159 }
160
161 public static void deleteProductVersion(long productVersionId)
162 throws com.liferay.portal.PortalException,
163 com.liferay.portal.SystemException {
164 getService().deleteProductVersion(productVersionId);
165 }
166
167 public static void deleteProductVersion(
168 com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
169 throws com.liferay.portal.SystemException {
170 getService().deleteProductVersion(productVersion);
171 }
172
173 public static void deleteProductVersions(long productEntryId)
174 throws com.liferay.portal.SystemException {
175 getService().deleteProductVersions(productEntryId);
176 }
177
178 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
179 long productVersionId)
180 throws com.liferay.portal.PortalException,
181 com.liferay.portal.SystemException {
182 return getService().getProductVersion(productVersionId);
183 }
184
185 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
186 java.lang.String directDownloadURL)
187 throws com.liferay.portal.PortalException,
188 com.liferay.portal.SystemException {
189 return getService()
190 .getProductVersionByDirectDownloadURL(directDownloadURL);
191 }
192
193 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
194 long productEntryId, int start, int end)
195 throws com.liferay.portal.SystemException {
196 return getService().getProductVersions(productEntryId, start, end);
197 }
198
199 public static int getProductVersionsCount(long productEntryId)
200 throws com.liferay.portal.SystemException {
201 return getService().getProductVersionsCount(productEntryId);
202 }
203
204 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
205 long productVersionId, java.lang.String version,
206 java.lang.String changeLog, java.lang.String downloadPageURL,
207 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
208 boolean repoStoreArtifact, long[] frameworkVersionIds)
209 throws com.liferay.portal.PortalException,
210 com.liferay.portal.SystemException {
211 return getService()
212 .updateProductVersion(productVersionId, version, changeLog,
213 downloadPageURL, directDownloadURL, testDirectDownloadURL,
214 repoStoreArtifact, frameworkVersionIds);
215 }
216
217 public static SCProductVersionLocalService getService() {
218 if (_service == null) {
219 throw new RuntimeException(
220 "SCProductVersionLocalService is not set");
221 }
222
223 return _service;
224 }
225
226 public void setService(SCProductVersionLocalService service) {
227 _service = service;
228 }
229
230 private static SCProductVersionLocalService _service;
231 }