1
22
23 package com.liferay.portlet.softwarecatalog.service.http;
24
25 import com.liferay.portal.kernel.log.Log;
26 import com.liferay.portal.kernel.log.LogFactoryUtil;
27
28 import com.liferay.portlet.softwarecatalog.service.SCProductEntryServiceUtil;
29
30 import java.rmi.RemoteException;
31
32
82 public class SCProductEntryServiceSoap {
83 public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap addProductEntry(
84 long plid, java.lang.String name, java.lang.String type,
85 java.lang.String tags, java.lang.String shortDescription,
86 java.lang.String longDescription, java.lang.String pageURL,
87 java.lang.String author, java.lang.String repoGroupId,
88 java.lang.String repoArtifactId, long[] licenseIds,
89 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
90 boolean addCommunityPermissions, boolean addGuestPermissions)
91 throws RemoteException {
92 try {
93 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
94 SCProductEntryServiceUtil.addProductEntry(plid, name, type,
95 tags, shortDescription, longDescription, pageURL, author,
96 repoGroupId, repoArtifactId, licenseIds, thumbnails,
97 fullImages, addCommunityPermissions, addGuestPermissions);
98
99 return com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap.toSoapModel(returnValue);
100 }
101 catch (Exception e) {
102 _log.error(e, e);
103
104 throw new RemoteException(e.getMessage());
105 }
106 }
107
108 public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap addProductEntry(
109 long plid, java.lang.String name, java.lang.String type,
110 java.lang.String tags, java.lang.String shortDescription,
111 java.lang.String longDescription, java.lang.String pageURL,
112 java.lang.String author, java.lang.String repoGroupId,
113 java.lang.String repoArtifactId, long[] licenseIds,
114 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
115 java.lang.String[] communityPermissions,
116 java.lang.String[] guestPermissions) throws RemoteException {
117 try {
118 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
119 SCProductEntryServiceUtil.addProductEntry(plid, name, type,
120 tags, shortDescription, longDescription, pageURL, author,
121 repoGroupId, repoArtifactId, licenseIds, thumbnails,
122 fullImages, communityPermissions, guestPermissions);
123
124 return com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap.toSoapModel(returnValue);
125 }
126 catch (Exception e) {
127 _log.error(e, e);
128
129 throw new RemoteException(e.getMessage());
130 }
131 }
132
133 public static void deleteProductEntry(long productEntryId)
134 throws RemoteException {
135 try {
136 SCProductEntryServiceUtil.deleteProductEntry(productEntryId);
137 }
138 catch (Exception e) {
139 _log.error(e, e);
140
141 throw new RemoteException(e.getMessage());
142 }
143 }
144
145 public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap getProductEntry(
146 long productEntryId) throws RemoteException {
147 try {
148 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
149 SCProductEntryServiceUtil.getProductEntry(productEntryId);
150
151 return com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap.toSoapModel(returnValue);
152 }
153 catch (Exception e) {
154 _log.error(e, e);
155
156 throw new RemoteException(e.getMessage());
157 }
158 }
159
160 public static com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap updateProductEntry(
161 long productEntryId, java.lang.String name, java.lang.String type,
162 java.lang.String tags, java.lang.String shortDescription,
163 java.lang.String longDescription, java.lang.String pageURL,
164 java.lang.String author, java.lang.String repoGroupId,
165 java.lang.String repoArtifactId, long[] licenseIds,
166 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
167 throws RemoteException {
168 try {
169 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue =
170 SCProductEntryServiceUtil.updateProductEntry(productEntryId,
171 name, type, tags, shortDescription, longDescription,
172 pageURL, author, repoGroupId, repoArtifactId, licenseIds,
173 thumbnails, fullImages);
174
175 return com.liferay.portlet.softwarecatalog.model.SCProductEntrySoap.toSoapModel(returnValue);
176 }
177 catch (Exception e) {
178 _log.error(e, e);
179
180 throw new RemoteException(e.getMessage());
181 }
182 }
183
184 private static Log _log = LogFactoryUtil.getLog(SCProductEntryServiceSoap.class);
185 }