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