1
14
15 package com.liferay.portlet.softwarecatalog.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19
20 import com.liferay.portlet.softwarecatalog.service.SCProductVersionServiceUtil;
21
22 import java.rmi.RemoteException;
23
24
74 public class SCProductVersionServiceSoap {
75 public static com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap addProductVersion(
76 long productEntryId, java.lang.String version,
77 java.lang.String changeLog, java.lang.String downloadPageURL,
78 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
79 boolean repoStoreArtifact, long[] frameworkVersionIds,
80 boolean addCommunityPermissions, boolean addGuestPermissions)
81 throws RemoteException {
82 try {
83 com.liferay.portlet.softwarecatalog.model.SCProductVersion returnValue =
84 SCProductVersionServiceUtil.addProductVersion(productEntryId,
85 version, changeLog, downloadPageURL, directDownloadURL,
86 testDirectDownloadURL, repoStoreArtifact,
87 frameworkVersionIds, addCommunityPermissions,
88 addGuestPermissions);
89
90 return com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap.toSoapModel(returnValue);
91 }
92 catch (Exception e) {
93 _log.error(e, e);
94
95 throw new RemoteException(e.getMessage());
96 }
97 }
98
99 public static com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap addProductVersion(
100 long productEntryId, java.lang.String version,
101 java.lang.String changeLog, java.lang.String downloadPageURL,
102 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
103 boolean repoStoreArtifact, long[] frameworkVersionIds,
104 java.lang.String[] communityPermissions,
105 java.lang.String[] guestPermissions) throws RemoteException {
106 try {
107 com.liferay.portlet.softwarecatalog.model.SCProductVersion returnValue =
108 SCProductVersionServiceUtil.addProductVersion(productEntryId,
109 version, changeLog, downloadPageURL, directDownloadURL,
110 testDirectDownloadURL, repoStoreArtifact,
111 frameworkVersionIds, communityPermissions, guestPermissions);
112
113 return com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap.toSoapModel(returnValue);
114 }
115 catch (Exception e) {
116 _log.error(e, e);
117
118 throw new RemoteException(e.getMessage());
119 }
120 }
121
122 public static void deleteProductVersion(long productVersionId)
123 throws RemoteException {
124 try {
125 SCProductVersionServiceUtil.deleteProductVersion(productVersionId);
126 }
127 catch (Exception e) {
128 _log.error(e, e);
129
130 throw new RemoteException(e.getMessage());
131 }
132 }
133
134 public static com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap getProductVersion(
135 long productVersionId) throws RemoteException {
136 try {
137 com.liferay.portlet.softwarecatalog.model.SCProductVersion returnValue =
138 SCProductVersionServiceUtil.getProductVersion(productVersionId);
139
140 return com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap.toSoapModel(returnValue);
141 }
142 catch (Exception e) {
143 _log.error(e, e);
144
145 throw new RemoteException(e.getMessage());
146 }
147 }
148
149 public static com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap[] getProductVersions(
150 long productEntryId, int start, int end) throws RemoteException {
151 try {
152 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> returnValue =
153 SCProductVersionServiceUtil.getProductVersions(productEntryId,
154 start, end);
155
156 return com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap.toSoapModels(returnValue);
157 }
158 catch (Exception e) {
159 _log.error(e, e);
160
161 throw new RemoteException(e.getMessage());
162 }
163 }
164
165 public static int getProductVersionsCount(long productEntryId)
166 throws RemoteException {
167 try {
168 int returnValue = SCProductVersionServiceUtil.getProductVersionsCount(productEntryId);
169
170 return returnValue;
171 }
172 catch (Exception e) {
173 _log.error(e, e);
174
175 throw new RemoteException(e.getMessage());
176 }
177 }
178
179 public static com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap updateProductVersion(
180 long productVersionId, java.lang.String version,
181 java.lang.String changeLog, java.lang.String downloadPageURL,
182 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
183 boolean repoStoreArtifact, long[] frameworkVersionIds)
184 throws RemoteException {
185 try {
186 com.liferay.portlet.softwarecatalog.model.SCProductVersion returnValue =
187 SCProductVersionServiceUtil.updateProductVersion(productVersionId,
188 version, changeLog, downloadPageURL, directDownloadURL,
189 testDirectDownloadURL, repoStoreArtifact,
190 frameworkVersionIds);
191
192 return com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap.toSoapModel(returnValue);
193 }
194 catch (Exception e) {
195 _log.error(e, e);
196
197 throw new RemoteException(e.getMessage());
198 }
199 }
200
201 private static Log _log = LogFactoryUtil.getLog(SCProductVersionServiceSoap.class);
202 }