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 SCLicenseServiceUtil {
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.SCLicense addLicense(
060 java.lang.String name, java.lang.String url, boolean openSource,
061 boolean active, boolean recommended)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException {
064 return getService()
065 .addLicense(name, url, openSource, active, recommended);
066 }
067
068 public static void deleteLicense(long licenseId)
069 throws com.liferay.portal.kernel.exception.PortalException,
070 com.liferay.portal.kernel.exception.SystemException {
071 getService().deleteLicense(licenseId);
072 }
073
074 public static com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
075 long licenseId)
076 throws com.liferay.portal.kernel.exception.PortalException,
077 com.liferay.portal.kernel.exception.SystemException {
078 return getService().getLicense(licenseId);
079 }
080
081 public static com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
082 long licenseId, java.lang.String name, java.lang.String url,
083 boolean openSource, boolean active, boolean recommended)
084 throws com.liferay.portal.kernel.exception.PortalException,
085 com.liferay.portal.kernel.exception.SystemException {
086 return getService()
087 .updateLicense(licenseId, name, url, openSource, active,
088 recommended);
089 }
090
091 public static SCLicenseService getService() {
092 if (_service == null) {
093 _service = (SCLicenseService)PortalBeanLocatorUtil.locate(SCLicenseService.class.getName());
094
095 ReferenceRegistry.registerReference(SCLicenseServiceUtil.class,
096 "_service");
097 }
098
099 return _service;
100 }
101
102
105 public void setService(SCLicenseService service) {
106 }
107
108 private static SCLicenseService _service;
109 }