001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
036 public class SCProductVersionLocalServiceUtil {
037
044 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
045 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
046 throws com.liferay.portal.kernel.exception.SystemException {
047 return getService().addSCProductVersion(scProductVersion);
048 }
049
050
056 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion createSCProductVersion(
057 long productVersionId) {
058 return getService().createSCProductVersion(productVersionId);
059 }
060
061
068 public static void deleteSCProductVersion(long productVersionId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 getService().deleteSCProductVersion(productVersionId);
072 }
073
074
080 public static void deleteSCProductVersion(
081 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
082 throws com.liferay.portal.kernel.exception.SystemException {
083 getService().deleteSCProductVersion(scProductVersion);
084 }
085
086
093 @SuppressWarnings("rawtypes")
094 public static java.util.List dynamicQuery(
095 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
096 throws com.liferay.portal.kernel.exception.SystemException {
097 return getService().dynamicQuery(dynamicQuery);
098 }
099
100
113 @SuppressWarnings("rawtypes")
114 public static java.util.List dynamicQuery(
115 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
116 int end) throws com.liferay.portal.kernel.exception.SystemException {
117 return getService().dynamicQuery(dynamicQuery, start, end);
118 }
119
120
134 @SuppressWarnings("rawtypes")
135 public static java.util.List dynamicQuery(
136 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
137 int end,
138 com.liferay.portal.kernel.util.OrderByComparator orderByComparator)
139 throws com.liferay.portal.kernel.exception.SystemException {
140 return getService()
141 .dynamicQuery(dynamicQuery, start, end, orderByComparator);
142 }
143
144
151 public static long dynamicQueryCount(
152 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
153 throws com.liferay.portal.kernel.exception.SystemException {
154 return getService().dynamicQueryCount(dynamicQuery);
155 }
156
157
165 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
166 long productVersionId)
167 throws com.liferay.portal.kernel.exception.PortalException,
168 com.liferay.portal.kernel.exception.SystemException {
169 return getService().getSCProductVersion(productVersionId);
170 }
171
172
184 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
185 int start, int end)
186 throws com.liferay.portal.kernel.exception.SystemException {
187 return getService().getSCProductVersions(start, end);
188 }
189
190
196 public static int getSCProductVersionsCount()
197 throws com.liferay.portal.kernel.exception.SystemException {
198 return getService().getSCProductVersionsCount();
199 }
200
201
208 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
209 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
210 throws com.liferay.portal.kernel.exception.SystemException {
211 return getService().updateSCProductVersion(scProductVersion);
212 }
213
214
222 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
223 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
224 boolean merge)
225 throws com.liferay.portal.kernel.exception.SystemException {
226 return getService().updateSCProductVersion(scProductVersion, merge);
227 }
228
229 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
230 long userId, long productEntryId, java.lang.String version,
231 java.lang.String changeLog, java.lang.String downloadPageURL,
232 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
233 boolean repoStoreArtifact, long[] frameworkVersionIds,
234 com.liferay.portal.service.ServiceContext serviceContext)
235 throws com.liferay.portal.kernel.exception.PortalException,
236 com.liferay.portal.kernel.exception.SystemException {
237 return getService()
238 .addProductVersion(userId, productEntryId, version,
239 changeLog, downloadPageURL, directDownloadURL,
240 testDirectDownloadURL, repoStoreArtifact, frameworkVersionIds,
241 serviceContext);
242 }
243
244 public static void deleteProductVersion(long productVersionId)
245 throws com.liferay.portal.kernel.exception.PortalException,
246 com.liferay.portal.kernel.exception.SystemException {
247 getService().deleteProductVersion(productVersionId);
248 }
249
250 public static void deleteProductVersion(
251 com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
252 throws com.liferay.portal.kernel.exception.SystemException {
253 getService().deleteProductVersion(productVersion);
254 }
255
256 public static void deleteProductVersions(long productEntryId)
257 throws com.liferay.portal.kernel.exception.SystemException {
258 getService().deleteProductVersions(productEntryId);
259 }
260
261 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
262 long productVersionId)
263 throws com.liferay.portal.kernel.exception.PortalException,
264 com.liferay.portal.kernel.exception.SystemException {
265 return getService().getProductVersion(productVersionId);
266 }
267
268 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
269 java.lang.String directDownloadURL)
270 throws com.liferay.portal.kernel.exception.PortalException,
271 com.liferay.portal.kernel.exception.SystemException {
272 return getService()
273 .getProductVersionByDirectDownloadURL(directDownloadURL);
274 }
275
276 public static java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
277 long productEntryId, int start, int end)
278 throws com.liferay.portal.kernel.exception.SystemException {
279 return getService().getProductVersions(productEntryId, start, end);
280 }
281
282 public static int getProductVersionsCount(long productEntryId)
283 throws com.liferay.portal.kernel.exception.SystemException {
284 return getService().getProductVersionsCount(productEntryId);
285 }
286
287 public static com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
288 long productVersionId, java.lang.String version,
289 java.lang.String changeLog, java.lang.String downloadPageURL,
290 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
291 boolean repoStoreArtifact, long[] frameworkVersionIds)
292 throws com.liferay.portal.kernel.exception.PortalException,
293 com.liferay.portal.kernel.exception.SystemException {
294 return getService()
295 .updateProductVersion(productVersionId, version, changeLog,
296 downloadPageURL, directDownloadURL, testDirectDownloadURL,
297 repoStoreArtifact, frameworkVersionIds);
298 }
299
300 public static SCProductVersionLocalService getService() {
301 if (_service == null) {
302 _service = (SCProductVersionLocalService)PortalBeanLocatorUtil.locate(SCProductVersionLocalService.class.getName());
303 }
304
305 return _service;
306 }
307
308 public void setService(SCProductVersionLocalService service) {
309 _service = service;
310 }
311
312 private static SCProductVersionLocalService _service;
313 }