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