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.SCProductEntryServiceUtil;
21
22 import java.rmi.RemoteException;
23
24
74 public class SCProductEntryServiceSoap {
75 public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap addProductEntry(
76 java.lang.String name, java.lang.String type, java.lang.String tags,
77 java.lang.String shortDescription, java.lang.String longDescription,
78 java.lang.String pageURL, java.lang.String author,
79 java.lang.String repoGroupId, java.lang.String repoArtifactId,
80 long[] licenseIds, java.util.List<byte[]> thumbnails,
81 java.util.List<byte[]> fullImages,
82 com.liferay.portal.service.ServiceContext serviceContext)
83 throws RemoteException {
84 try {
85 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
86 SCProductEntryServiceUtil.addProductEntry(name, type, tags,
87 shortDescription, longDescription, pageURL, author,
88 repoGroupId, repoArtifactId, licenseIds, thumbnails,
89 fullImages, serviceContext);
90
91 return com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap.toSoapModel(returnValue);
92 }
93 catch (Exception e) {
94 _log.error(e, e);
95
96 throw new RemoteException(e.getMessage());
97 }
98 }
99
100 public static void deleteProductEntry(long productEntryId)
101 throws RemoteException {
102 try {
103 SCProductEntryServiceUtil.deleteProductEntry(productEntryId);
104 }
105 catch (Exception e) {
106 _log.error(e, e);
107
108 throw new RemoteException(e.getMessage());
109 }
110 }
111
112 public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap getProductEntry(
113 long productEntryId) throws RemoteException {
114 try {
115 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
116 SCProductEntryServiceUtil.getProductEntry(productEntryId);
117
118 return com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap.toSoapModel(returnValue);
119 }
120 catch (Exception e) {
121 _log.error(e, e);
122
123 throw new RemoteException(e.getMessage());
124 }
125 }
126
127 public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap updateProductEntry(
128 long productEntryId, java.lang.String name, java.lang.String type,
129 java.lang.String tags, java.lang.String shortDescription,
130 java.lang.String longDescription, java.lang.String pageURL,
131 java.lang.String author, java.lang.String repoGroupId,
132 java.lang.String repoArtifactId, long[] licenseIds,
133 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
134 throws RemoteException {
135 try {
136 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
137 SCProductEntryServiceUtil.updateProductEntry(productEntryId,
138 name, type, tags, shortDescription, longDescription,
139 pageURL, author, repoGroupId, repoArtifactId, licenseIds,
140 thumbnails, fullImages);
141
142 return com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap.toSoapModel(returnValue);
143 }
144 catch (Exception e) {
145 _log.error(e, e);
146
147 throw new RemoteException(e.getMessage());
148 }
149 }
150
151 private static Log _log = LogFactoryUtil.getLog(SCProductEntryServiceSoap.class);
152 }