001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.exception.PortalException;
020 import com.liferay.portal.kernel.exception.SystemException;
021 import com.liferay.portal.kernel.jsonwebservice.JSONWebService;
022 import com.liferay.portal.kernel.security.access.control.AccessControlled;
023 import com.liferay.portal.kernel.transaction.Isolation;
024 import com.liferay.portal.kernel.transaction.Propagation;
025 import com.liferay.portal.kernel.transaction.Transactional;
026 import com.liferay.portal.service.BaseService;
027
028
039 @AccessControlled
040 @JSONWebService
041 @ProviderType
042 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
043 PortalException.class, SystemException.class})
044 public interface SCLicenseService extends BaseService {
045
050 public com.liferay.portlet.softwarecatalog.model.SCLicense addLicense(
051 java.lang.String name, java.lang.String url, boolean openSource,
052 boolean active, boolean recommended) throws PortalException;
053
054 public void deleteLicense(long licenseId) throws PortalException;
055
056
061 public java.lang.String getBeanIdentifier();
062
063 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
064 public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
065 long licenseId) throws PortalException;
066
067
072 public void setBeanIdentifier(java.lang.String beanIdentifier);
073
074 public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
075 long licenseId, java.lang.String name, java.lang.String url,
076 boolean openSource, boolean active, boolean recommended)
077 throws PortalException;
078 }