001
014
015 package com.liferay.portlet.softwarecatalog.service;
016
017 import com.liferay.portal.kernel.annotation.Isolation;
018 import com.liferay.portal.kernel.annotation.Propagation;
019 import com.liferay.portal.kernel.annotation.Transactional;
020 import com.liferay.portal.kernel.exception.PortalException;
021 import com.liferay.portal.kernel.exception.SystemException;
022
023
040 @Transactional(isolation = Isolation.PORTAL, rollbackFor = {
041 PortalException.class, SystemException.class})
042 public interface SCLicenseService {
043 public 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 com.liferay.portal.kernel.exception.SystemException;
048
049 public void deleteLicense(long licenseId)
050 throws com.liferay.portal.kernel.exception.PortalException,
051 com.liferay.portal.kernel.exception.SystemException;
052
053 @Transactional(propagation = Propagation.SUPPORTS, readOnly = true)
054 public com.liferay.portlet.softwarecatalog.model.SCLicense getLicense(
055 long licenseId)
056 throws com.liferay.portal.kernel.exception.PortalException,
057 com.liferay.portal.kernel.exception.SystemException;
058
059 public com.liferay.portlet.softwarecatalog.model.SCLicense updateLicense(
060 long licenseId, java.lang.String name, java.lang.String url,
061 boolean openSource, boolean active, boolean recommended)
062 throws com.liferay.portal.kernel.exception.PortalException,
063 com.liferay.portal.kernel.exception.SystemException;
064 }