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.SCProductEntryServiceUtil;
021
022 import java.rmi.RemoteException;
023
024
066 public class SCProductEntryServiceSoap {
067 public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap addProductEntry(
068 java.lang.String name, java.lang.String type, java.lang.String tags,
069 java.lang.String shortDescription, java.lang.String longDescription,
070 java.lang.String pageURL, java.lang.String author,
071 java.lang.String repoGroupId, java.lang.String repoArtifactId,
072 long[] licenseIds, java.util.List<byte[]> thumbnails,
073 java.util.List<byte[]> fullImages,
074 com.liferay.portal.service.ServiceContext serviceContext)
075 throws RemoteException {
076 try {
077 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
078 SCProductEntryServiceUtil.addProductEntry(name, type, tags,
079 shortDescription, longDescription, pageURL, author,
080 repoGroupId, repoArtifactId, licenseIds, thumbnails,
081 fullImages, serviceContext);
082
083 return com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap.toSoapModel(returnValue);
084 }
085 catch (Exception e) {
086 _log.error(e, e);
087
088 throw new RemoteException(e.getMessage());
089 }
090 }
091
092 public static void deleteProductEntry(long productEntryId)
093 throws RemoteException {
094 try {
095 SCProductEntryServiceUtil.deleteProductEntry(productEntryId);
096 }
097 catch (Exception e) {
098 _log.error(e, e);
099
100 throw new RemoteException(e.getMessage());
101 }
102 }
103
104 public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap getProductEntry(
105 long productEntryId) throws RemoteException {
106 try {
107 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
108 SCProductEntryServiceUtil.getProductEntry(productEntryId);
109
110 return com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap.toSoapModel(returnValue);
111 }
112 catch (Exception e) {
113 _log.error(e, e);
114
115 throw new RemoteException(e.getMessage());
116 }
117 }
118
119 public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap updateProductEntry(
120 long productEntryId, java.lang.String name, java.lang.String type,
121 java.lang.String tags, java.lang.String shortDescription,
122 java.lang.String longDescription, java.lang.String pageURL,
123 java.lang.String author, java.lang.String repoGroupId,
124 java.lang.String repoArtifactId, long[] licenseIds,
125 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
126 throws RemoteException {
127 try {
128 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
129 SCProductEntryServiceUtil.updateProductEntry(productEntryId,
130 name, type, tags, shortDescription, longDescription,
131 pageURL, author, repoGroupId, repoArtifactId, licenseIds,
132 thumbnails, fullImages);
133
134 return com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap.toSoapModel(returnValue);
135 }
136 catch (Exception e) {
137 _log.error(e, e);
138
139 throw new RemoteException(e.getMessage());
140 }
141 }
142
143 private static Log _log = LogFactoryUtil.getLog(SCProductEntryServiceSoap.class);
144 }