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 SCProductVersionLocalService {
58 public com.liferay.portlet.softwarecatalog.model.SCProductVersion addSCProductVersion(
59 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
60 throws com.liferay.portal.SystemException;
61
62 public com.liferay.portlet.softwarecatalog.model.SCProductVersion createSCProductVersion(
63 long productVersionId);
64
65 public void deleteSCProductVersion(long productVersionId)
66 throws com.liferay.portal.SystemException,
67 com.liferay.portal.PortalException;
68
69 public void deleteSCProductVersion(
70 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
71 throws com.liferay.portal.SystemException;
72
73 public java.util.List<Object> dynamicQuery(
74 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery)
75 throws com.liferay.portal.SystemException;
76
77 public java.util.List<Object> dynamicQuery(
78 com.liferay.portal.kernel.dao.orm.DynamicQuery dynamicQuery, int start,
79 int end) throws com.liferay.portal.SystemException;
80
81 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
82 public com.liferay.portlet.softwarecatalog.model.SCProductVersion getSCProductVersion(
83 long productVersionId)
84 throws com.liferay.portal.SystemException,
85 com.liferay.portal.PortalException;
86
87 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
88 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getSCProductVersions(
89 int start, int end) throws com.liferay.portal.SystemException;
90
91 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
92 public int getSCProductVersionsCount()
93 throws com.liferay.portal.SystemException;
94
95 public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
96 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion)
97 throws com.liferay.portal.SystemException;
98
99 public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateSCProductVersion(
100 com.liferay.portlet.softwarecatalog.model.SCProductVersion scProductVersion,
101 boolean merge) throws com.liferay.portal.SystemException;
102
103 public com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
104 long userId, long productEntryId, java.lang.String version,
105 java.lang.String changeLog, java.lang.String downloadPageURL,
106 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
107 boolean repoStoreArtifact, long[] frameworkVersionIds,
108 com.liferay.portal.service.ServiceContext serviceContext)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException;
111
112 public void deleteProductVersion(long productVersionId)
113 throws com.liferay.portal.PortalException,
114 com.liferay.portal.SystemException;
115
116 public void deleteProductVersion(
117 com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
118 throws com.liferay.portal.SystemException;
119
120 public void deleteProductVersions(long productEntryId)
121 throws com.liferay.portal.SystemException;
122
123 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
124 public com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
125 long productVersionId)
126 throws com.liferay.portal.PortalException,
127 com.liferay.portal.SystemException;
128
129 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
130 public com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
131 java.lang.String directDownloadURL)
132 throws com.liferay.portal.PortalException,
133 com.liferay.portal.SystemException;
134
135 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
136 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
137 long productEntryId, int start, int end)
138 throws com.liferay.portal.SystemException;
139
140 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
141 public int getProductVersionsCount(long productEntryId)
142 throws com.liferay.portal.SystemException;
143
144 public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
145 long productVersionId, java.lang.String version,
146 java.lang.String changeLog, java.lang.String downloadPageURL,
147 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
148 boolean repoStoreArtifact, long[] frameworkVersionIds)
149 throws com.liferay.portal.PortalException,
150 com.liferay.portal.SystemException;
151 }