001
014
015 package com.liferay.portlet.softwarecatalog.service.http;
016
017 import aQute.bnd.annotation.ProviderType;
018
019 import com.liferay.portal.kernel.log.Log;
020 import com.liferay.portal.kernel.log.LogFactoryUtil;
021
022 import com.liferay.portlet.softwarecatalog.service.SCLicenseServiceUtil;
023
024 import java.rmi.RemoteException;
025
026
066 @ProviderType
067 public class SCLicenseServiceSoap {
068 public static com.liferay.portlet.softwarecatalog.model.SCLicenseSoap addLicense(
069 java.lang.String name, java.lang.String url, boolean openSource,
070 boolean active, boolean recommended) throws RemoteException {
071 try {
072 com.liferay.portlet.softwarecatalog.model.SCLicense returnValue = SCLicenseServiceUtil.addLicense(name,
073 url, openSource, active, recommended);
074
075 return com.liferay.portlet.softwarecatalog.model.SCLicenseSoap.toSoapModel(returnValue);
076 }
077 catch (Exception e) {
078 _log.error(e, e);
079
080 throw new RemoteException(e.getMessage());
081 }
082 }
083
084 public static void deleteLicense(long licenseId) throws RemoteException {
085 try {
086 SCLicenseServiceUtil.deleteLicense(licenseId);
087 }
088 catch (Exception e) {
089 _log.error(e, e);
090
091 throw new RemoteException(e.getMessage());
092 }
093 }
094
095 public static com.liferay.portlet.softwarecatalog.model.SCLicenseSoap getLicense(
096 long licenseId) throws RemoteException {
097 try {
098 com.liferay.portlet.softwarecatalog.model.SCLicense returnValue = SCLicenseServiceUtil.getLicense(licenseId);
099
100 return com.liferay.portlet.softwarecatalog.model.SCLicenseSoap.toSoapModel(returnValue);
101 }
102 catch (Exception e) {
103 _log.error(e, e);
104
105 throw new RemoteException(e.getMessage());
106 }
107 }
108
109 public static com.liferay.portlet.softwarecatalog.model.SCLicenseSoap updateLicense(
110 long licenseId, java.lang.String name, java.lang.String url,
111 boolean openSource, boolean active, boolean recommended)
112 throws RemoteException {
113 try {
114 com.liferay.portlet.softwarecatalog.model.SCLicense returnValue = SCLicenseServiceUtil.updateLicense(licenseId,
115 name, url, openSource, active, recommended);
116
117 return com.liferay.portlet.softwarecatalog.model.SCLicenseSoap.toSoapModel(returnValue);
118 }
119 catch (Exception e) {
120 _log.error(e, e);
121
122 throw new RemoteException(e.getMessage());
123 }
124 }
125
126 private static Log _log = LogFactoryUtil.getLog(SCLicenseServiceSoap.class);
127 }