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 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
057 public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
058 long licenseId) throws PortalException;
059
060
065 public java.lang.String getOSGiServiceIdentifier();
066
067 public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
068 long licenseId, java.lang.String name, java.lang.String url,
069 boolean openSource, boolean active, boolean recommended)
070 throws PortalException;
071 }