1
22
23 package com.liferay.portlet.softwarecatalog.service.http;
24
25 import com.liferay.portal.kernel.json.JSONObject;
26
27 import com.liferay.portlet.softwarecatalog.service.SCProductEntryServiceUtil;
28
29
75 public class SCProductEntryServiceJSON {
76 public static JSONObject addProductEntry(long plid, java.lang.String name,
77 java.lang.String type, java.lang.String tags,
78 java.lang.String shortDescription, java.lang.String longDescription,
79 java.lang.String pageURL, java.lang.String author,
80 java.lang.String repoGroupId, java.lang.String repoArtifactId,
81 long[] licenseIds, java.util.List<byte[]> thumbnails,
82 java.util.List<byte[]> fullImages, boolean addCommunityPermissions,
83 boolean addGuestPermissions)
84 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException {
86 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue = SCProductEntryServiceUtil.addProductEntry(plid,
87 name, type, tags, shortDescription, longDescription, pageURL,
88 author, repoGroupId, repoArtifactId, licenseIds, thumbnails,
89 fullImages, addCommunityPermissions, addGuestPermissions);
90
91 return SCProductEntryJSONSerializer.toJSONObject(returnValue);
92 }
93
94 public static JSONObject addProductEntry(long plid, java.lang.String name,
95 java.lang.String type, java.lang.String tags,
96 java.lang.String shortDescription, java.lang.String longDescription,
97 java.lang.String pageURL, java.lang.String author,
98 java.lang.String repoGroupId, java.lang.String repoArtifactId,
99 long[] licenseIds, java.util.List<byte[]> thumbnails,
100 java.util.List<byte[]> fullImages,
101 java.lang.String[] communityPermissions,
102 java.lang.String[] guestPermissions)
103 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException {
105 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue = SCProductEntryServiceUtil.addProductEntry(plid,
106 name, type, tags, shortDescription, longDescription, pageURL,
107 author, repoGroupId, repoArtifactId, licenseIds, thumbnails,
108 fullImages, communityPermissions, guestPermissions);
109
110 return SCProductEntryJSONSerializer.toJSONObject(returnValue);
111 }
112
113 public static void deleteProductEntry(long productEntryId)
114 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
115 com.liferay.portal.SystemException {
116 SCProductEntryServiceUtil.deleteProductEntry(productEntryId);
117 }
118
119 public static JSONObject getProductEntry(long productEntryId)
120 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
121 com.liferay.portal.SystemException {
122 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue = SCProductEntryServiceUtil.getProductEntry(productEntryId);
123
124 return SCProductEntryJSONSerializer.toJSONObject(returnValue);
125 }
126
127 public static JSONObject updateProductEntry(long productEntryId,
128 java.lang.String name, java.lang.String type, java.lang.String tags,
129 java.lang.String shortDescription, java.lang.String longDescription,
130 java.lang.String pageURL, java.lang.String author,
131 java.lang.String repoGroupId, java.lang.String repoArtifactId,
132 long[] licenseIds, java.util.List<byte[]> thumbnails,
133 java.util.List<byte[]> fullImages)
134 throws java.rmi.RemoteException, com.liferay.portal.PortalException,
135 com.liferay.portal.SystemException {
136 com.liferay.portlet.softwarecatalog.model.SCProductEntry returnValue = SCProductEntryServiceUtil.updateProductEntry(productEntryId,
137 name, type, tags, shortDescription, longDescription, pageURL,
138 author, repoGroupId, repoArtifactId, licenseIds, thumbnails,
139 fullImages);
140
141 return SCProductEntryJSONSerializer.toJSONObject(returnValue);
142 }
143 }