001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018
019
032 public class SCProductEntryServiceUtil {
033 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
034 java.lang.String name, java.lang.String type, java.lang.String tags,
035 java.lang.String shortDescription, java.lang.String longDescription,
036 java.lang.String pageURL, java.lang.String author,
037 java.lang.String repoGroupId, java.lang.String repoArtifactId,
038 long[] licenseIds, java.util.List<byte[]> thumbnails,
039 java.util.List<byte[]> fullImages,
040 com.liferay.portal.service.ServiceContext serviceContext)
041 throws com.liferay.portal.kernel.exception.PortalException,
042 com.liferay.portal.kernel.exception.SystemException {
043 return getService()
044 .addProductEntry(name, type, tags, shortDescription,
045 longDescription, pageURL, author, repoGroupId, repoArtifactId,
046 licenseIds, thumbnails, fullImages, serviceContext);
047 }
048
049 public static void deleteProductEntry(long productEntryId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException {
052 getService().deleteProductEntry(productEntryId);
053 }
054
055 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
056 long productEntryId)
057 throws com.liferay.portal.kernel.exception.PortalException,
058 com.liferay.portal.kernel.exception.SystemException {
059 return getService().getProductEntry(productEntryId);
060 }
061
062 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
063 long productEntryId, java.lang.String name, java.lang.String type,
064 java.lang.String tags, java.lang.String shortDescription,
065 java.lang.String longDescription, java.lang.String pageURL,
066 java.lang.String author, java.lang.String repoGroupId,
067 java.lang.String repoArtifactId, long[] licenseIds,
068 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 return getService()
072 .updateProductEntry(productEntryId, name, type, tags,
073 shortDescription, longDescription, pageURL, author, repoGroupId,
074 repoArtifactId, licenseIds, thumbnails, fullImages);
075 }
076
077 public static SCProductEntryService getService() {
078 if (_service == null) {
079 _service = (SCProductEntryService)PortalBeanLocatorUtil.locate(SCProductEntryService.class.getName());
080 }
081
082 return _service;
083 }
084
085 public void setService(SCProductEntryService service) {
086 _service = service;
087 }
088
089 private static SCProductEntryService _service;
090 }