001
014
015 package com.liferay.portlet.softwarecatalog.service.http;
016
017 import com.liferay.portal.kernel.log.Log;
018 import com.liferay.portal.kernel.log.LogFactoryUtil;
019
020 import com.liferay.portlet.softwarecatalog.service.SCProductVersionServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
066 public class SCProductVersionServiceSoap {
067 public static com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap addProductVersion(
068 long productEntryId, java.lang.String version,
069 java.lang.String changeLog, java.lang.String downloadPageURL,
070 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
071 boolean repoStoreArtifact, long[] frameworkVersionIds,
072 com.liferay.portal.service.ServiceContext serviceContext)
073 throws RemoteException {
074 try {
075 com.liferay.portlet.softwarecatalog.model.SCProductVersion returnValue =
076 SCProductVersionServiceUtil.addProductVersion(productEntryId,
077 version, changeLog, downloadPageURL, directDownloadURL,
078 testDirectDownloadURL, repoStoreArtifact,
079 frameworkVersionIds, serviceContext);
080
081 return com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap.toSoapModel(returnValue);
082 }
083 catch (Exception e) {
084 _log.error(e, e);
085
086 throw new RemoteException(e.getMessage());
087 }
088 }
089
090 public static void deleteProductVersion(long productVersionId)
091 throws RemoteException {
092 try {
093 SCProductVersionServiceUtil.deleteProductVersion(productVersionId);
094 }
095 catch (Exception e) {
096 _log.error(e, e);
097
098 throw new RemoteException(e.getMessage());
099 }
100 }
101
102 public static com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap getProductVersion(
103 long productVersionId) throws RemoteException {
104 try {
105 com.liferay.portlet.softwarecatalog.model.SCProductVersion returnValue =
106 SCProductVersionServiceUtil.getProductVersion(productVersionId);
107
108 return com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap.toSoapModel(returnValue);
109 }
110 catch (Exception e) {
111 _log.error(e, e);
112
113 throw new RemoteException(e.getMessage());
114 }
115 }
116
117 public static com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap[] getProductVersions(
118 long productEntryId, int start, int end) throws RemoteException {
119 try {
120 java.util.List<com.liferay.portlet.softwarecatalog.model.SCProductVersion> returnValue =
121 SCProductVersionServiceUtil.getProductVersions(productEntryId,
122 start, end);
123
124 return com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap.toSoapModels(returnValue);
125 }
126 catch (Exception e) {
127 _log.error(e, e);
128
129 throw new RemoteException(e.getMessage());
130 }
131 }
132
133 public static int getProductVersionsCount(long productEntryId)
134 throws RemoteException {
135 try {
136 int returnValue = SCProductVersionServiceUtil.getProductVersionsCount(productEntryId);
137
138 return returnValue;
139 }
140 catch (Exception e) {
141 _log.error(e, e);
142
143 throw new RemoteException(e.getMessage());
144 }
145 }
146
147 public static com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap updateProductVersion(
148 long productVersionId, java.lang.String version,
149 java.lang.String changeLog, java.lang.String downloadPageURL,
150 java.lang.String directDownloadURL, boolean testDirectDownloadURL,
151 boolean repoStoreArtifact, long[] frameworkVersionIds)
152 throws RemoteException {
153 try {
154 com.liferay.portlet.softwarecatalog.model.SCProductVersion returnValue =
155 SCProductVersionServiceUtil.updateProductVersion(productVersionId,
156 version, changeLog, downloadPageURL, directDownloadURL,
157 testDirectDownloadURL, repoStoreArtifact,
158 frameworkVersionIds);
159
160 return com.liferay.portlet.softwarecatalog.model.SCProductVersionSoap.toSoapModel(returnValue);
161 }
162 catch (Exception e) {
163 _log.error(e, e);
164
165 throw new RemoteException(e.getMessage());
166 }
167 }
168
169 private static Log _log = LogFactoryUtil.getLog(SCProductVersionServiceSoap.class);
170 }