1
14
15 package com.liferay.portal.service.http;
16
17 import com.liferay.portal.kernel.log.Log;
18 import com.liferay.portal.kernel.log.LogFactoryUtil;
19 import com.liferay.portal.service.WebsiteServiceUtil;
20
21 import java.rmi.RemoteException;
22
23
73 public class WebsiteServiceSoap {
74 public static com.liferay.portal.model.WebsiteSoap addWebsite(
75 java.lang.String className, long classPK, java.lang.String url,
76 int typeId, boolean primary) throws RemoteException {
77 try {
78 com.liferay.portal.model.Website returnValue = WebsiteServiceUtil.addWebsite(className,
79 classPK, url, typeId, primary);
80
81 return com.liferay.portal.model.WebsiteSoap.toSoapModel(returnValue);
82 }
83 catch (Exception e) {
84 _log.error(e, e);
85
86 throw new RemoteException(e.getMessage());
87 }
88 }
89
90 public static void deleteWebsite(long websiteId) throws RemoteException {
91 try {
92 WebsiteServiceUtil.deleteWebsite(websiteId);
93 }
94 catch (Exception e) {
95 _log.error(e, e);
96
97 throw new RemoteException(e.getMessage());
98 }
99 }
100
101 public static com.liferay.portal.model.WebsiteSoap getWebsite(
102 long websiteId) throws RemoteException {
103 try {
104 com.liferay.portal.model.Website returnValue = WebsiteServiceUtil.getWebsite(websiteId);
105
106 return com.liferay.portal.model.WebsiteSoap.toSoapModel(returnValue);
107 }
108 catch (Exception e) {
109 _log.error(e, e);
110
111 throw new RemoteException(e.getMessage());
112 }
113 }
114
115 public static com.liferay.portal.model.WebsiteSoap[] getWebsites(
116 java.lang.String className, long classPK) throws RemoteException {
117 try {
118 java.util.List<com.liferay.portal.model.Website> returnValue = WebsiteServiceUtil.getWebsites(className,
119 classPK);
120
121 return com.liferay.portal.model.WebsiteSoap.toSoapModels(returnValue);
122 }
123 catch (Exception e) {
124 _log.error(e, e);
125
126 throw new RemoteException(e.getMessage());
127 }
128 }
129
130 public static com.liferay.portal.model.WebsiteSoap updateWebsite(
131 long websiteId, java.lang.String url, int typeId, boolean primary)
132 throws RemoteException {
133 try {
134 com.liferay.portal.model.Website returnValue = WebsiteServiceUtil.updateWebsite(websiteId,
135 url, typeId, primary);
136
137 return com.liferay.portal.model.WebsiteSoap.toSoapModel(returnValue);
138 }
139 catch (Exception e) {
140 _log.error(e, e);
141
142 throw new RemoteException(e.getMessage());
143 }
144 }
145
146 private static Log _log = LogFactoryUtil.getLog(WebsiteServiceSoap.class);
147 }