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 java.lang.String name, java.lang.String type, java.lang.String tags,
42 java.lang.String shortDescription, java.lang.String longDescription,
43 java.lang.String pageURL, java.lang.String author,
44 java.lang.String repoGroupId, java.lang.String repoArtifactId,
45 long[] licenseIds, java.util.List<byte[]> thumbnails,
46 java.util.List<byte[]> fullImages,
47 com.liferay.portal.service.ServiceContext serviceContext)
48 throws com.liferay.portal.kernel.exception.PortalException,
49 com.liferay.portal.kernel.exception.SystemException {
50 return getService()
51 .addProductEntry(name, type, tags, shortDescription,
52 longDescription, pageURL, author, repoGroupId, repoArtifactId,
53 licenseIds, thumbnails, fullImages, serviceContext);
54 }
55
56 public static void deleteProductEntry(long productEntryId)
57 throws com.liferay.portal.kernel.exception.PortalException,
58 com.liferay.portal.kernel.exception.SystemException {
59 getService().deleteProductEntry(productEntryId);
60 }
61
62 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
63 long productEntryId)
64 throws com.liferay.portal.kernel.exception.PortalException,
65 com.liferay.portal.kernel.exception.SystemException {
66 return getService().getProductEntry(productEntryId);
67 }
68
69 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
70 long productEntryId, java.lang.String name, java.lang.String type,
71 java.lang.String tags, java.lang.String shortDescription,
72 java.lang.String longDescription, java.lang.String pageURL,
73 java.lang.String author, java.lang.String repoGroupId,
74 java.lang.String repoArtifactId, long[] licenseIds,
75 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
76 throws com.liferay.portal.kernel.exception.PortalException,
77 com.liferay.portal.kernel.exception.SystemException {
78 return getService()
79 .updateProductEntry(productEntryId, name, type, tags,
80 shortDescription, longDescription, pageURL, author, repoGroupId,
81 repoArtifactId, licenseIds, thumbnails, fullImages);
82 }
83
84 public static SCProductEntryService getService() {
85 if (_service == null) {
86 _service = (SCProductEntryService)PortalBeanLocatorUtil.locate(SCProductEntryService.class.getName());
87 }
88
89 return _service;
90 }
91
92 public void setService(SCProductEntryService service) {
93 _service = service;
94 }
95
96 private static SCProductEntryService _service;
97 }