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.PortalException,
67 com.liferay.portal.SystemException;
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.PortalException,
85 com.liferay.portal.SystemException;
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 boolean addCommunityPermissions, boolean addGuestPermissions)
109 throws com.liferay.portal.PortalException,
110 com.liferay.portal.SystemException;
111
112 public com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
113 long userId, long productEntryId, java.lang.String version,
114 java.lang.String changeLog, java.lang.String downloadPageURL,
115 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
116 boolean repoStoreArtifact, long[] frameworkVersionIds,
117 java.lang.String[] communityPermissions,
118 java.lang.String[] guestPermissions)
119 throws com.liferay.portal.PortalException,
120 com.liferay.portal.SystemException;
121
122 public com.liferay.portlet.softwarecatalog.model.SCProductVersion addProductVersion(
123 long userId, long productEntryId, java.lang.String version,
124 java.lang.String changeLog, java.lang.String downloadPageURL,
125 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
126 boolean repoStoreArtifact, long[] frameworkVersionIds,
127 java.lang.Boolean addCommunityPermissions,
128 java.lang.Boolean addGuestPermissions,
129 java.lang.String[] communityPermissions,
130 java.lang.String[] guestPermissions)
131 throws com.liferay.portal.PortalException,
132 com.liferay.portal.SystemException;
133
134 public void deleteProductVersion(long productVersionId)
135 throws com.liferay.portal.PortalException,
136 com.liferay.portal.SystemException;
137
138 public void deleteProductVersion(
139 com.liferay.portlet.softwarecatalog.model.SCProductVersion productVersion)
140 throws com.liferay.portal.SystemException;
141
142 public void deleteProductVersions(long productEntryId)
143 throws com.liferay.portal.SystemException;
144
145 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
146 public com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersion(
147 long productVersionId)
148 throws com.liferay.portal.PortalException,
149 com.liferay.portal.SystemException;
150
151 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
152 public com.liferay.portlet.softwarecatalog.model.SCProductVersion getProductVersionByDirectDownloadURL(
153 java.lang.String directDownloadURL)
154 throws com.liferay.portal.PortalException,
155 com.liferay.portal.SystemException;
156
157 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
158 public java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> getProductVersions(
159 long productEntryId, int start, int end)
160 throws com.liferay.portal.SystemException;
161
162 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
163 public int getProductVersionsCount(long productEntryId)
164 throws com.liferay.portal.SystemException;
165
166 public com.liferay.portlet.softwarecatalog.model.SCProductVersion updateProductVersion(
167 long productVersionId, java.lang.String version,
168 java.lang.String changeLog, java.lang.String downloadPageURL,
169 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
170 boolean repoStoreArtifact, long[] frameworkVersionIds)
171 throws com.liferay.portal.PortalException,
172 com.liferay.portal.SystemException;
173 }