1
14
15 package com.liferay.portlet.softwarecatalog.service;
16
17 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
18
19
39 public class SCProductEntryServiceUtil {
40 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
41 long plid, java.lang.String name, java.lang.String type,
42 java.lang.String tags, java.lang.String shortDescription,
43 java.lang.String longDescription, java.lang.String pageURL,
44 java.lang.String author, java.lang.String repoGroupId,
45 java.lang.String repoArtifactId, long[] licenseIds,
46 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
47 boolean addCommunityPermissions, boolean addGuestPermissions)
48 throws com.liferay.portal.PortalException,
49 com.liferay.portal.SystemException, java.rmi.RemoteException {
50 return getService()
51 .addProductEntry(plid, name, type, tags, shortDescription,
52 longDescription, pageURL, author, repoGroupId, repoArtifactId,
53 licenseIds, thumbnails, fullImages, addCommunityPermissions,
54 addGuestPermissions);
55 }
56
57 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
58 long plid, java.lang.String name, java.lang.String type,
59 java.lang.String tags, java.lang.String shortDescription,
60 java.lang.String longDescription, java.lang.String pageURL,
61 java.lang.String author, java.lang.String repoGroupId,
62 java.lang.String repoArtifactId, long[] licenseIds,
63 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages,
64 java.lang.String[] communityPermissions,
65 java.lang.String[] guestPermissions)
66 throws com.liferay.portal.PortalException,
67 com.liferay.portal.SystemException, java.rmi.RemoteException {
68 return getService()
69 .addProductEntry(plid, name, type, tags, shortDescription,
70 longDescription, pageURL, author, repoGroupId, repoArtifactId,
71 licenseIds, thumbnails, fullImages, communityPermissions,
72 guestPermissions);
73 }
74
75 public static void deleteProductEntry(long productEntryId)
76 throws com.liferay.portal.PortalException,
77 com.liferay.portal.SystemException, java.rmi.RemoteException {
78 getService().deleteProductEntry(productEntryId);
79 }
80
81 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
82 long productEntryId)
83 throws com.liferay.portal.PortalException,
84 com.liferay.portal.SystemException, java.rmi.RemoteException {
85 return getService().getProductEntry(productEntryId);
86 }
87
88 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
89 long productEntryId, java.lang.String name, java.lang.String type,
90 java.lang.String tags, java.lang.String shortDescription,
91 java.lang.String longDescription, java.lang.String pageURL,
92 java.lang.String author, java.lang.String repoGroupId,
93 java.lang.String repoArtifactId, long[] licenseIds,
94 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
95 throws com.liferay.portal.PortalException,
96 com.liferay.portal.SystemException, java.rmi.RemoteException {
97 return getService()
98 .updateProductEntry(productEntryId, name, type, tags,
99 shortDescription, longDescription, pageURL, author, repoGroupId,
100 repoArtifactId, licenseIds, thumbnails, fullImages);
101 }
102
103 public static SCProductEntryService getService() {
104 if (_service == null) {
105 _service = (SCProductEntryService)PortalBeanLocatorUtil.locate(SCProductEntryService.class.getName());
106 }
107
108 return _service;
109 }
110
111 public void setService(SCProductEntryService service) {
112 _service = service;
113 }
114
115 private static SCProductEntryService _service;
116 }