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