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