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
033 public class SCLicenseServiceUtil {
034
039
040
045 public static java.lang.String getBeanIdentifier() {
046 return getService().getBeanIdentifier();
047 }
048
049
054 public static void setBeanIdentifier(java.lang.String beanIdentifier) {
055 getService().setBeanIdentifier(beanIdentifier);
056 }
057
058 public static com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
059 java.lang.String name, java.lang.String url, boolean openSource,
060 boolean active, boolean recommended)
061 throws com.liferay.portal.kernel.exception.PortalException,
062 com.liferay.portal.kernel.exception.SystemException {
063 return getService()
064 .addLicense(name, url, openSource, active, recommended);
065 }
066
067 public static void deleteLicense(long licenseId)
068 throws com.liferay.portal.kernel.exception.PortalException,
069 com.liferay.portal.kernel.exception.SystemException {
070 getService().deleteLicense(licenseId);
071 }
072
073 public static com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
074 long licenseId)
075 throws com.liferay.portal.kernel.exception.PortalException,
076 com.liferay.portal.kernel.exception.SystemException {
077 return getService().getLicense(licenseId);
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 com.liferay.portal.kernel.exception.SystemException {
085 return getService()
086 .updateLicense(licenseId, name, url, openSource, active,
087 recommended);
088 }
089
090 public static SCLicenseService getService() {
091 if (_service == null) {
092 _service = (SCLicenseService)PortalBeanLocatorUtil.locate(SCLicenseService.class.getName());
093
094 ReferenceRegistry.registerReference(SCLicenseServiceUtil.class,
095 "_service");
096 }
097
098 return _service;
099 }
100
101
104 public void setService(SCLicenseService service) {
105 }
106
107 private static SCLicenseService _service;
108 }