1
22
23 package com.liferay.portlet.softwarecatalog.service;
24
25
26
47 public class SCProductEntryServiceUtil {
48 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
49 long plid, java.lang.String name, java.lang.String type,
50 java.lang.String tags, java.lang.String shortDescription,
51 java.lang.String longDescription, java.lang.String pageURL,
52 java.lang.String author, java.lang.String repoGroupId,
53 java.lang.String repoArtifactId, long[] licenseIds,
54 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
55 boolean addCommunityPermissions, boolean addGuestPermissions)
56 throws com.liferay.portal.PortalException,
57 com.liferay.portal.SystemException, java.rmi.RemoteException {
58 return getService()
59 .addProductEntry(plid, name, type, tags, shortDescription,
60 longDescription, pageURL, author, repoGroupId, repoArtifactId,
61 licenseIds, thumbnails, fullImages, addCommunityPermissions,
62 addGuestPermissions);
63 }
64
65 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
66 long plid, java.lang.String name, java.lang.String type,
67 java.lang.String tags, java.lang.String shortDescription,
68 java.lang.String longDescription, java.lang.String pageURL,
69 java.lang.String author, java.lang.String repoGroupId,
70 java.lang.String repoArtifactId, long[] licenseIds,
71 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
72 java.lang.String[] communityPermissions,
73 java.lang.String[] guestPermissions)
74 throws com.liferay.portal.PortalException,
75 com.liferay.portal.SystemException, java.rmi.RemoteException {
76 return getService()
77 .addProductEntry(plid, name, type, tags, shortDescription,
78 longDescription, pageURL, author, repoGroupId, repoArtifactId,
79 licenseIds, thumbnails, fullImages, communityPermissions,
80 guestPermissions);
81 }
82
83 public static void deleteProductEntry(long productEntryId)
84 throws com.liferay.portal.PortalException,
85 com.liferay.portal.SystemException, java.rmi.RemoteException {
86 getService().deleteProductEntry(productEntryId);
87 }
88
89 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
90 long productEntryId)
91 throws com.liferay.portal.PortalException,
92 com.liferay.portal.SystemException, java.rmi.RemoteException {
93 return getService().getProductEntry(productEntryId);
94 }
95
96 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
97 long productEntryId, java.lang.String name, java.lang.String type,
98 java.lang.String tags, java.lang.String shortDescription,
99 java.lang.String longDescription, java.lang.String pageURL,
100 java.lang.String author, java.lang.String repoGroupId,
101 java.lang.String repoArtifactId, long[] licenseIds,
102 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
103 throws com.liferay.portal.PortalException,
104 com.liferay.portal.SystemException, java.rmi.RemoteException {
105 return getService()
106 .updateProductEntry(productEntryId, name, type, tags,
107 shortDescription, longDescription, pageURL, author, repoGroupId,
108 repoArtifactId, licenseIds, thumbnails, fullImages);
109 }
110
111 public static SCProductEntryService getService() {
112 if (_service == null) {
113 throw new RuntimeException("SCProductEntryService is not set");
114 }
115
116 return _service;
117 }
118
119 public void setService(SCProductEntryService service) {
120 _service = service;
121 }
122
123 private static SCProductEntryService _service;
124 }