001
014
015 package com.liferay.portal.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 import com.liferay.portal.service.WebsiteServiceUtil;
022
023 import java.rmi.RemoteException;
024
025
065 @ProviderType
066 public class WebsiteServiceSoap {
067 public static com.liferay.portal.model.WebsiteSoap addWebsite(
068 java.lang.String className, long classPK, java.lang.String url,
069 long typeId, boolean primary,
070 com.liferay.portal.service.ServiceContext serviceContext)
071 throws RemoteException {
072 try {
073 com.liferay.portal.model.Website returnValue = WebsiteServiceUtil.addWebsite(className,
074 classPK, url, typeId, primary, serviceContext);
075
076 return com.liferay.portal.model.WebsiteSoap.toSoapModel(returnValue);
077 }
078 catch (Exception e) {
079 _log.error(e, e);
080
081 throw new RemoteException(e.getMessage());
082 }
083 }
084
085 public static void deleteWebsite(long websiteId) throws RemoteException {
086 try {
087 WebsiteServiceUtil.deleteWebsite(websiteId);
088 }
089 catch (Exception e) {
090 _log.error(e, e);
091
092 throw new RemoteException(e.getMessage());
093 }
094 }
095
096 public static com.liferay.portal.model.WebsiteSoap getWebsite(
097 long websiteId) throws RemoteException {
098 try {
099 com.liferay.portal.model.Website returnValue = WebsiteServiceUtil.getWebsite(websiteId);
100
101 return com.liferay.portal.model.WebsiteSoap.toSoapModel(returnValue);
102 }
103 catch (Exception e) {
104 _log.error(e, e);
105
106 throw new RemoteException(e.getMessage());
107 }
108 }
109
110 public static com.liferay.portal.model.WebsiteSoap[] getWebsites(
111 java.lang.String className, long classPK) throws RemoteException {
112 try {
113 java.util.List<com.liferay.portal.model.Website> returnValue = WebsiteServiceUtil.getWebsites(className,
114 classPK);
115
116 return com.liferay.portal.model.WebsiteSoap.toSoapModels(returnValue);
117 }
118 catch (Exception e) {
119 _log.error(e, e);
120
121 throw new RemoteException(e.getMessage());
122 }
123 }
124
125 public static com.liferay.portal.model.WebsiteSoap updateWebsite(
126 long websiteId, java.lang.String url, long typeId, boolean primary)
127 throws RemoteException {
128 try {
129 com.liferay.portal.model.Website returnValue = WebsiteServiceUtil.updateWebsite(websiteId,
130 url, typeId, primary);
131
132 return com.liferay.portal.model.WebsiteSoap.toSoapModel(returnValue);
133 }
134 catch (Exception e) {
135 _log.error(e, e);
136
137 throw new RemoteException(e.getMessage());
138 }
139 }
140
141 private static Log _log = LogFactoryUtil.getLog(WebsiteServiceSoap.class);
142 }