001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
018 import com.liferay.portal.kernel.util.ReferenceRegistry;
019
020
034 public class SCProductEntryServiceUtil {
035
040
041
046 public static java.lang.String getBeanIdentifier() {
047 return getService().getBeanIdentifier();
048 }
049
050
055 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
056 getService().setBeanIdentifier(beanIdentifier);
057 }
058
059 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry addProductEntry(
060 java.lang.String name, java.lang.String type, java.lang.String tags,
061 java.lang.String shortDescription, java.lang.String longDescription,
062 java.lang.String pageURL, java.lang.String author,
063 java.lang.String repoGroupId, java.lang.String repoArtifactId,
064 long[] licenseIds, java.util.List<byte[]> thumbnails,
065 java.util.List<byte[]> fullImages,
066 com.liferay.portal.service.ServiceContext serviceContext)
067 throws com.liferay.portal.kernel.exception.PortalException,
068 com.liferay.portal.kernel.exception.SystemException {
069 return getService()
070 .addProductEntry(name, type, tags, shortDescription,
071 longDescription, pageURL, author, repoGroupId, repoArtifactId,
072 licenseIds, thumbnails, fullImages, serviceContext);
073 }
074
075 public static void deleteProductEntry(long productEntryId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 getService().deleteProductEntry(productEntryId);
079 }
080
081 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry getProductEntry(
082 long productEntryId)
083 throws com.liferay.portal.kernel.exception.PortalException,
084 com.liferay.portal.kernel.exception.SystemException {
085 return getService().getProductEntry(productEntryId);
086 }
087
088 public static com.liferay.portlet.softwarecatalog.model.SCProductEntry updateProductEntry(
089 long productEntryId, java.lang.String name, java.lang.String type,
090 java.lang.String tags, java.lang.String shortDescription,
091 java.lang.String longDescription, java.lang.String pageURL,
092 java.lang.String author, java.lang.String repoGroupId,
093 java.lang.String repoArtifactId, long[] licenseIds,
094 java.util.List<byte[]> thumbnails, java.util.List<byte[]> fullImages)
095 throws com.liferay.portal.kernel.exception.PortalException,
096 com.liferay.portal.kernel.exception.SystemException {
097 return getService()
098 .updateProductEntry(productEntryId, name, type, tags,
099 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 ReferenceRegistry.registerReference(SCProductEntryServiceUtil.class,
108 "_service");
109 }
110
111 return _service;
112 }
113
114
117 public void setService(SCProductEntryService service) {
118 }
119
120 private static SCProductEntryService _service;
121 }