1
22
23 package com.liferay.portlet.softwarecatalog.service;
24
25 import com.liferay.portal.PortalException;
26 import com.liferay.portal.SystemException;
27 import com.liferay.portal.kernel.annotation.Isolation;
28 import com.liferay.portal.kernel.annotation.Propagation;
29 import com.liferay.portal.kernel.annotation.Transactional;
30
31
55 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
56 PortalException.class, SystemException.class})
57 public interface SCProductVersionService {
58 public com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
59 long productEntryId, java.lang.String version,
60 java.lang.String changeLog, java.lang.String downloadPageURL,
61 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
62 boolean repoStoreArtifact, long[] frameworkVersionIds,
63 com.liferay.portal.service.ServiceContext serviceContext)
64 throws com.liferay.portal.PortalException,
65 com.liferay.portal.SystemException;
66
67 public void deleteProductVersion(long productVersionId)
68 throws com.liferay.portal.PortalException,
69 com.liferay.portal.SystemException;
70
71 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
72 public com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
73 long productVersionId)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException;
76
77 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
78 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
79 long productEntryId, int start, int end)
80 throws com.liferay.portal.PortalException,
81 com.liferay.portal.SystemException;
82
83 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
84 public int getProductVersionsCount(long productEntryId)
85 throws com.liferay.portal.PortalException,
86 com.liferay.portal.SystemException;
87
88 public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
89 long productVersionId, java.lang.String version,
90 java.lang.String changeLog, java.lang.String downloadPageURL,
91 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
92 boolean repoStoreArtifact, long[] frameworkVersionIds)
93 throws com.liferay.portal.PortalException,
94 com.liferay.portal.SystemException;
95 }