001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.bean.PortalBeanLocatorUtil;
020 import com.liferay.portal.kernel.util.ReferenceRegistry;
021
022
036 @ProviderType
037 public class SCLicenseServiceUtil {
038
043 public static com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
044 java.lang.String name, java.lang.String url, boolean openSource,
045 boolean active, boolean recommended)
046 throws com.liferay.portal.kernel.exception.PortalException {
047 return getService()
048 .addLicense(name, url, openSource, active, recommended);
049 }
050
051 public static void deleteLicense(long licenseId)
052 throws com.liferay.portal.kernel.exception.PortalException {
053 getService().deleteLicense(licenseId);
054 }
055
056
061 public static java.lang.String getBeanIdentifier() {
062 return getService().getBeanIdentifier();
063 }
064
065 public static com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
066 long licenseId)
067 throws com.liferay.portal.kernel.exception.PortalException {
068 return getService().getLicense(licenseId);
069 }
070
071
076 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
077 getService().setBeanIdentifier(beanIdentifier);
078 }
079
080 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
081 long licenseId, java.lang.String name, java.lang.String url,
082 boolean openSource, boolean active, boolean recommended)
083 throws com.liferay.portal.kernel.exception.PortalException {
084 return getService()
085 .updateLicense(licenseId, name, url, openSource, active,
086 recommended);
087 }
088
089 public static SCLicenseService getService() {
090 if (_service == null) {
091 _service = (SCLicenseService)PortalBeanLocatorUtil.locate(SCLicenseService.class.getName());
092
093 ReferenceRegistry.registerReference(SCLicenseServiceUtil.class,
094 "_service");
095 }
096
097 return _service;
098 }
099
100
103 @Deprecated
104 public void setService(SCLicenseService service) {
105 }
106
107 private static SCLicenseService _service;
108 }