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