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