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
063 public class WebsiteServiceSoap {
064
068 public static com.liferay.portal.model.WebsiteSoap addWebsite(
069 java.lang.String className, long classPK, java.lang.String url,
070 int typeId, boolean primary) throws RemoteException {
071 try {
072 com.liferay.portal.model.Website returnValue = WebsiteServiceUtil.addWebsite(className,
073 classPK, url, typeId, primary);
074
075 return com.liferay.portal.model.WebsiteSoap.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 com.liferay.portal.model.WebsiteSoap addWebsite(
085 java.lang.String className, long classPK, java.lang.String url,
086 int typeId, boolean primary,
087 com.liferay.portal.service.ServiceContext serviceContext)
088 throws RemoteException {
089 try {
090 com.liferay.portal.model.Website returnValue = WebsiteServiceUtil.addWebsite(className,
091 classPK, url, typeId, primary, serviceContext);
092
093 return com.liferay.portal.model.WebsiteSoap.toSoapModel(returnValue);
094 }
095 catch (Exception e) {
096 _log.error(e, e);
097
098 throw new RemoteException(e.getMessage());
099 }
100 }
101
102 public static void deleteWebsite(long websiteId) throws RemoteException {
103 try {
104 WebsiteServiceUtil.deleteWebsite(websiteId);
105 }
106 catch (Exception e) {
107 _log.error(e, e);
108
109 throw new RemoteException(e.getMessage());
110 }
111 }
112
113 public static com.liferay.portal.model.WebsiteSoap getWebsite(
114 long websiteId) throws RemoteException {
115 try {
116 com.liferay.portal.model.Website returnValue = WebsiteServiceUtil.getWebsite(websiteId);
117
118 return com.liferay.portal.model.WebsiteSoap.toSoapModel(returnValue);
119 }
120 catch (Exception e) {
121 _log.error(e, e);
122
123 throw new RemoteException(e.getMessage());
124 }
125 }
126
127 public static com.liferay.portal.model.WebsiteSoap[] getWebsites(
128 java.lang.String className, long classPK) throws RemoteException {
129 try {
130 java.util.List<com.liferay.portal.model.Website> returnValue = WebsiteServiceUtil.getWebsites(className,
131 classPK);
132
133 return com.liferay.portal.model.WebsiteSoap.toSoapModels(returnValue);
134 }
135 catch (Exception e) {
136 _log.error(e, e);
137
138 throw new RemoteException(e.getMessage());
139 }
140 }
141
142 public static com.liferay.portal.model.WebsiteSoap updateWebsite(
143 long websiteId, java.lang.String url, int typeId, boolean primary)
144 throws RemoteException {
145 try {
146 com.liferay.portal.model.Website returnValue = WebsiteServiceUtil.updateWebsite(websiteId,
147 url, typeId, primary);
148
149 return com.liferay.portal.model.WebsiteSoap.toSoapModel(returnValue);
150 }
151 catch (Exception e) {
152 _log.error(e, e);
153
154 throw new RemoteException(e.getMessage());
155 }
156 }
157
158 private static Log _log = LogFactoryUtil.getLog(WebsiteServiceSoap.class);
159 }