PageRenderTime 46ms CodeModel.GetById 18ms RepoModel.GetById 0ms app.codeStats 0ms

/modules/apps/site-navigation/site-navigation-service/src/main/java/com/liferay/site/navigation/service/http/SiteNavigationMenuServiceSoap.java

http://github.com/liferay/liferay-portal
Java | 397 lines | 274 code | 70 blank | 53 comment | 0 complexity | 2255b65575d2cd0c76ffce47643fb5fa MD5 | raw file
Possible License(s): LGPL-2.0
  1. /**
  2. * Copyright (c) 2000-present Liferay, Inc. All rights reserved.
  3. *
  4. * This library is free software; you can redistribute it and/or modify it under
  5. * the terms of the GNU Lesser General Public License as published by the Free
  6. * Software Foundation; either version 2.1 of the License, or (at your option)
  7. * any later version.
  8. *
  9. * This library is distributed in the hope that it will be useful, but WITHOUT
  10. * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
  11. * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
  12. * details.
  13. */
  14. package com.liferay.site.navigation.service.http;
  15. import com.liferay.portal.kernel.log.Log;
  16. import com.liferay.portal.kernel.log.LogFactoryUtil;
  17. import com.liferay.site.navigation.service.SiteNavigationMenuServiceUtil;
  18. import java.rmi.RemoteException;
  19. /**
  20. * Provides the SOAP utility for the
  21. * <code>SiteNavigationMenuServiceUtil</code> service
  22. * utility. The static methods of this class call the same methods of the
  23. * service utility. However, the signatures are different because it is
  24. * difficult for SOAP to support certain types.
  25. *
  26. * <p>
  27. * ServiceBuilder follows certain rules in translating the methods. For example,
  28. * if the method in the service utility returns a <code>java.util.List</code>,
  29. * that is translated to an array of
  30. * <code>com.liferay.site.navigation.model.SiteNavigationMenuSoap</code>. If the method in the
  31. * service utility returns a
  32. * <code>com.liferay.site.navigation.model.SiteNavigationMenu</code>, that is translated to a
  33. * <code>com.liferay.site.navigation.model.SiteNavigationMenuSoap</code>. Methods that SOAP
  34. * cannot safely wire are skipped.
  35. * </p>
  36. *
  37. * <p>
  38. * The benefits of using the SOAP utility is that it is cross platform
  39. * compatible. SOAP allows different languages like Java, .NET, C++, PHP, and
  40. * even Perl, to call the generated services. One drawback of SOAP is that it is
  41. * slow because it needs to serialize all calls into a text format (XML).
  42. * </p>
  43. *
  44. * <p>
  45. * You can see a list of services at http://localhost:8080/api/axis. Set the
  46. * property <b>axis.servlet.hosts.allowed</b> in portal.properties to configure
  47. * security.
  48. * </p>
  49. *
  50. * <p>
  51. * The SOAP utility is only generated for remote services.
  52. * </p>
  53. *
  54. * @author Brian Wing Shun Chan
  55. * @see SiteNavigationMenuServiceHttp
  56. * @deprecated As of Athanasius (7.3.x), with no direct replacement
  57. * @generated
  58. */
  59. @Deprecated
  60. public class SiteNavigationMenuServiceSoap {
  61. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap
  62. addSiteNavigationMenu(
  63. long groupId, String name, int type, boolean auto,
  64. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  65. throws RemoteException {
  66. try {
  67. com.liferay.site.navigation.model.SiteNavigationMenu returnValue =
  68. SiteNavigationMenuServiceUtil.addSiteNavigationMenu(
  69. groupId, name, type, auto, serviceContext);
  70. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  71. toSoapModel(returnValue);
  72. }
  73. catch (Exception exception) {
  74. _log.error(exception, exception);
  75. throw new RemoteException(exception.getMessage());
  76. }
  77. }
  78. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap
  79. addSiteNavigationMenu(
  80. long groupId, String name, int type,
  81. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  82. throws RemoteException {
  83. try {
  84. com.liferay.site.navigation.model.SiteNavigationMenu returnValue =
  85. SiteNavigationMenuServiceUtil.addSiteNavigationMenu(
  86. groupId, name, type, serviceContext);
  87. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  88. toSoapModel(returnValue);
  89. }
  90. catch (Exception exception) {
  91. _log.error(exception, exception);
  92. throw new RemoteException(exception.getMessage());
  93. }
  94. }
  95. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap
  96. addSiteNavigationMenu(
  97. long groupId, String name,
  98. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  99. throws RemoteException {
  100. try {
  101. com.liferay.site.navigation.model.SiteNavigationMenu returnValue =
  102. SiteNavigationMenuServiceUtil.addSiteNavigationMenu(
  103. groupId, name, serviceContext);
  104. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  105. toSoapModel(returnValue);
  106. }
  107. catch (Exception exception) {
  108. _log.error(exception, exception);
  109. throw new RemoteException(exception.getMessage());
  110. }
  111. }
  112. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap
  113. deleteSiteNavigationMenu(long siteNavigationMenuId)
  114. throws RemoteException {
  115. try {
  116. com.liferay.site.navigation.model.SiteNavigationMenu returnValue =
  117. SiteNavigationMenuServiceUtil.deleteSiteNavigationMenu(
  118. siteNavigationMenuId);
  119. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  120. toSoapModel(returnValue);
  121. }
  122. catch (Exception exception) {
  123. _log.error(exception, exception);
  124. throw new RemoteException(exception.getMessage());
  125. }
  126. }
  127. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap
  128. fetchSiteNavigationMenu(long siteNavigationMenuId)
  129. throws RemoteException {
  130. try {
  131. com.liferay.site.navigation.model.SiteNavigationMenu returnValue =
  132. SiteNavigationMenuServiceUtil.fetchSiteNavigationMenu(
  133. siteNavigationMenuId);
  134. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  135. toSoapModel(returnValue);
  136. }
  137. catch (Exception exception) {
  138. _log.error(exception, exception);
  139. throw new RemoteException(exception.getMessage());
  140. }
  141. }
  142. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap[]
  143. getSiteNavigationMenus(long groupId)
  144. throws RemoteException {
  145. try {
  146. java.util.List<com.liferay.site.navigation.model.SiteNavigationMenu>
  147. returnValue =
  148. SiteNavigationMenuServiceUtil.getSiteNavigationMenus(
  149. groupId);
  150. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  151. toSoapModels(returnValue);
  152. }
  153. catch (Exception exception) {
  154. _log.error(exception, exception);
  155. throw new RemoteException(exception.getMessage());
  156. }
  157. }
  158. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap[]
  159. getSiteNavigationMenus(
  160. long groupId, int start, int end,
  161. com.liferay.portal.kernel.util.OrderByComparator
  162. <com.liferay.site.navigation.model.SiteNavigationMenu>
  163. orderByComparator)
  164. throws RemoteException {
  165. try {
  166. java.util.List<com.liferay.site.navigation.model.SiteNavigationMenu>
  167. returnValue =
  168. SiteNavigationMenuServiceUtil.getSiteNavigationMenus(
  169. groupId, start, end, orderByComparator);
  170. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  171. toSoapModels(returnValue);
  172. }
  173. catch (Exception exception) {
  174. _log.error(exception, exception);
  175. throw new RemoteException(exception.getMessage());
  176. }
  177. }
  178. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap[]
  179. getSiteNavigationMenus(
  180. long groupId, String keywords, int start, int end,
  181. com.liferay.portal.kernel.util.OrderByComparator
  182. <com.liferay.site.navigation.model.SiteNavigationMenu>
  183. orderByComparator)
  184. throws RemoteException {
  185. try {
  186. java.util.List<com.liferay.site.navigation.model.SiteNavigationMenu>
  187. returnValue =
  188. SiteNavigationMenuServiceUtil.getSiteNavigationMenus(
  189. groupId, keywords, start, end, orderByComparator);
  190. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  191. toSoapModels(returnValue);
  192. }
  193. catch (Exception exception) {
  194. _log.error(exception, exception);
  195. throw new RemoteException(exception.getMessage());
  196. }
  197. }
  198. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap[]
  199. getSiteNavigationMenus(
  200. long[] groupIds, int start, int end,
  201. com.liferay.portal.kernel.util.OrderByComparator
  202. <com.liferay.site.navigation.model.SiteNavigationMenu>
  203. orderByComparator)
  204. throws RemoteException {
  205. try {
  206. java.util.List<com.liferay.site.navigation.model.SiteNavigationMenu>
  207. returnValue =
  208. SiteNavigationMenuServiceUtil.getSiteNavigationMenus(
  209. groupIds, start, end, orderByComparator);
  210. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  211. toSoapModels(returnValue);
  212. }
  213. catch (Exception exception) {
  214. _log.error(exception, exception);
  215. throw new RemoteException(exception.getMessage());
  216. }
  217. }
  218. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap[]
  219. getSiteNavigationMenus(
  220. long[] groupIds, String keywords, int start, int end,
  221. com.liferay.portal.kernel.util.OrderByComparator
  222. <com.liferay.site.navigation.model.SiteNavigationMenu>
  223. orderByComparator)
  224. throws RemoteException {
  225. try {
  226. java.util.List<com.liferay.site.navigation.model.SiteNavigationMenu>
  227. returnValue =
  228. SiteNavigationMenuServiceUtil.getSiteNavigationMenus(
  229. groupIds, keywords, start, end, orderByComparator);
  230. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  231. toSoapModels(returnValue);
  232. }
  233. catch (Exception exception) {
  234. _log.error(exception, exception);
  235. throw new RemoteException(exception.getMessage());
  236. }
  237. }
  238. public static int getSiteNavigationMenusCount(long groupId)
  239. throws RemoteException {
  240. try {
  241. int returnValue =
  242. SiteNavigationMenuServiceUtil.getSiteNavigationMenusCount(
  243. groupId);
  244. return returnValue;
  245. }
  246. catch (Exception exception) {
  247. _log.error(exception, exception);
  248. throw new RemoteException(exception.getMessage());
  249. }
  250. }
  251. public static int getSiteNavigationMenusCount(long groupId, String keywords)
  252. throws RemoteException {
  253. try {
  254. int returnValue =
  255. SiteNavigationMenuServiceUtil.getSiteNavigationMenusCount(
  256. groupId, keywords);
  257. return returnValue;
  258. }
  259. catch (Exception exception) {
  260. _log.error(exception, exception);
  261. throw new RemoteException(exception.getMessage());
  262. }
  263. }
  264. public static int getSiteNavigationMenusCount(long[] groupIds)
  265. throws RemoteException {
  266. try {
  267. int returnValue =
  268. SiteNavigationMenuServiceUtil.getSiteNavigationMenusCount(
  269. groupIds);
  270. return returnValue;
  271. }
  272. catch (Exception exception) {
  273. _log.error(exception, exception);
  274. throw new RemoteException(exception.getMessage());
  275. }
  276. }
  277. public static int getSiteNavigationMenusCount(
  278. long[] groupIds, String keywords)
  279. throws RemoteException {
  280. try {
  281. int returnValue =
  282. SiteNavigationMenuServiceUtil.getSiteNavigationMenusCount(
  283. groupIds, keywords);
  284. return returnValue;
  285. }
  286. catch (Exception exception) {
  287. _log.error(exception, exception);
  288. throw new RemoteException(exception.getMessage());
  289. }
  290. }
  291. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap
  292. updateSiteNavigationMenu(
  293. long siteNavigationMenuId, int type, boolean auto,
  294. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  295. throws RemoteException {
  296. try {
  297. com.liferay.site.navigation.model.SiteNavigationMenu returnValue =
  298. SiteNavigationMenuServiceUtil.updateSiteNavigationMenu(
  299. siteNavigationMenuId, type, auto, serviceContext);
  300. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  301. toSoapModel(returnValue);
  302. }
  303. catch (Exception exception) {
  304. _log.error(exception, exception);
  305. throw new RemoteException(exception.getMessage());
  306. }
  307. }
  308. public static com.liferay.site.navigation.model.SiteNavigationMenuSoap
  309. updateSiteNavigationMenu(
  310. long siteNavigationMenuId, String name,
  311. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  312. throws RemoteException {
  313. try {
  314. com.liferay.site.navigation.model.SiteNavigationMenu returnValue =
  315. SiteNavigationMenuServiceUtil.updateSiteNavigationMenu(
  316. siteNavigationMenuId, name, serviceContext);
  317. return com.liferay.site.navigation.model.SiteNavigationMenuSoap.
  318. toSoapModel(returnValue);
  319. }
  320. catch (Exception exception) {
  321. _log.error(exception, exception);
  322. throw new RemoteException(exception.getMessage());
  323. }
  324. }
  325. private static Log _log = LogFactoryUtil.getLog(
  326. SiteNavigationMenuServiceSoap.class);
  327. }