/modules/apps/commerce/commerce-api/src/main/java/com/liferay/commerce/service/CommerceShipmentServiceWrapper.java

https://github.com/danielreuther/liferay-portal · Java · 371 lines · 273 code · 65 blank · 33 comment · 0 complexity · e1a8aeaee7437cb3c116176aa40c2225 MD5 · raw file

  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.commerce.service;
  15. import com.liferay.portal.kernel.service.ServiceWrapper;
  16. /**
  17. * Provides a wrapper for {@link CommerceShipmentService}.
  18. *
  19. * @author Alessio Antonio Rendina
  20. * @see CommerceShipmentService
  21. * @generated
  22. */
  23. public class CommerceShipmentServiceWrapper
  24. implements CommerceShipmentService,
  25. ServiceWrapper<CommerceShipmentService> {
  26. public CommerceShipmentServiceWrapper() {
  27. this(null);
  28. }
  29. public CommerceShipmentServiceWrapper(
  30. CommerceShipmentService commerceShipmentService) {
  31. _commerceShipmentService = commerceShipmentService;
  32. }
  33. @Override
  34. public com.liferay.commerce.model.CommerceShipment addCommerceShipment(
  35. long commerceOrderId,
  36. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  37. throws com.liferay.portal.kernel.exception.PortalException {
  38. return _commerceShipmentService.addCommerceShipment(
  39. commerceOrderId, serviceContext);
  40. }
  41. @Override
  42. public com.liferay.commerce.model.CommerceShipment addCommerceShipment(
  43. String externalReferenceCode, long groupId, long commerceAccountId,
  44. long commerceAddressId, long commerceShippingMethodId,
  45. String commerceShippingOptionName,
  46. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  47. throws com.liferay.portal.kernel.exception.PortalException {
  48. return _commerceShipmentService.addCommerceShipment(
  49. externalReferenceCode, groupId, commerceAccountId,
  50. commerceAddressId, commerceShippingMethodId,
  51. commerceShippingOptionName, serviceContext);
  52. }
  53. /**
  54. * @deprecated As of Mueller (7.2.x), pass boolean for restoring stock
  55. */
  56. @Deprecated
  57. @Override
  58. public void deleteCommerceShipment(long commerceShipmentId)
  59. throws com.liferay.portal.kernel.exception.PortalException {
  60. _commerceShipmentService.deleteCommerceShipment(commerceShipmentId);
  61. }
  62. @Override
  63. public void deleteCommerceShipment(
  64. long commerceShipmentId, boolean restoreStockQuantity)
  65. throws com.liferay.portal.kernel.exception.PortalException {
  66. _commerceShipmentService.deleteCommerceShipment(
  67. commerceShipmentId, restoreStockQuantity);
  68. }
  69. @Override
  70. public com.liferay.commerce.model.CommerceShipment
  71. fetchCommerceShipmentByExternalReferenceCode(
  72. long companyId, String externalReferenceCode)
  73. throws com.liferay.portal.kernel.exception.PortalException {
  74. return _commerceShipmentService.
  75. fetchCommerceShipmentByExternalReferenceCode(
  76. companyId, externalReferenceCode);
  77. }
  78. @Override
  79. public com.liferay.commerce.model.CommerceShipment getCommerceShipment(
  80. long commerceShipmentId)
  81. throws com.liferay.portal.kernel.exception.PortalException {
  82. return _commerceShipmentService.getCommerceShipment(commerceShipmentId);
  83. }
  84. @Override
  85. public java.util.List<com.liferay.commerce.model.CommerceShipment>
  86. getCommerceShipments(
  87. long companyId, int status, int start, int end,
  88. com.liferay.portal.kernel.util.OrderByComparator
  89. <com.liferay.commerce.model.CommerceShipment>
  90. orderByComparator)
  91. throws com.liferay.portal.kernel.exception.PortalException {
  92. return _commerceShipmentService.getCommerceShipments(
  93. companyId, status, start, end, orderByComparator);
  94. }
  95. @Override
  96. public java.util.List<com.liferay.commerce.model.CommerceShipment>
  97. getCommerceShipments(
  98. long companyId, int start, int end,
  99. com.liferay.portal.kernel.util.OrderByComparator
  100. <com.liferay.commerce.model.CommerceShipment>
  101. orderByComparator)
  102. throws com.liferay.portal.kernel.exception.PortalException {
  103. return _commerceShipmentService.getCommerceShipments(
  104. companyId, start, end, orderByComparator);
  105. }
  106. @Override
  107. public java.util.List<com.liferay.commerce.model.CommerceShipment>
  108. getCommerceShipments(
  109. long companyId, long commerceAddressId, int start, int end,
  110. com.liferay.portal.kernel.util.OrderByComparator
  111. <com.liferay.commerce.model.CommerceShipment>
  112. orderByComparator)
  113. throws com.liferay.portal.kernel.exception.PortalException {
  114. return _commerceShipmentService.getCommerceShipments(
  115. companyId, commerceAddressId, start, end, orderByComparator);
  116. }
  117. @Override
  118. public java.util.List<com.liferay.commerce.model.CommerceShipment>
  119. getCommerceShipments(
  120. long companyId, long[] groupIds, long[] commerceAccountIds,
  121. String keywords, int[] shipmentStatuses,
  122. boolean excludeShipmentStatus, int start, int end)
  123. throws com.liferay.portal.kernel.exception.PortalException {
  124. return _commerceShipmentService.getCommerceShipments(
  125. companyId, groupIds, commerceAccountIds, keywords, shipmentStatuses,
  126. excludeShipmentStatus, start, end);
  127. }
  128. @Override
  129. public java.util.List<com.liferay.commerce.model.CommerceShipment>
  130. getCommerceShipmentsByOrderId(
  131. long commerceOrderId, int start, int end) {
  132. return _commerceShipmentService.getCommerceShipmentsByOrderId(
  133. commerceOrderId, start, end);
  134. }
  135. @Override
  136. public int getCommerceShipmentsCount(long companyId)
  137. throws com.liferay.portal.kernel.exception.PortalException {
  138. return _commerceShipmentService.getCommerceShipmentsCount(companyId);
  139. }
  140. @Override
  141. public int getCommerceShipmentsCount(long companyId, int status)
  142. throws com.liferay.portal.kernel.exception.PortalException {
  143. return _commerceShipmentService.getCommerceShipmentsCount(
  144. companyId, status);
  145. }
  146. @Override
  147. public int getCommerceShipmentsCount(long companyId, long commerceAddressId)
  148. throws com.liferay.portal.kernel.exception.PortalException {
  149. return _commerceShipmentService.getCommerceShipmentsCount(
  150. companyId, commerceAddressId);
  151. }
  152. @Override
  153. public int getCommerceShipmentsCount(
  154. long companyId, long[] groupIds, long[] commerceAccountIds,
  155. String keywords, int[] shipmentStatuses,
  156. boolean excludeShipmentStatus)
  157. throws com.liferay.portal.kernel.exception.PortalException {
  158. return _commerceShipmentService.getCommerceShipmentsCount(
  159. companyId, groupIds, commerceAccountIds, keywords, shipmentStatuses,
  160. excludeShipmentStatus);
  161. }
  162. @Override
  163. public int getCommerceShipmentsCountByOrderId(long commerceOrderId) {
  164. return _commerceShipmentService.getCommerceShipmentsCountByOrderId(
  165. commerceOrderId);
  166. }
  167. /**
  168. * Returns the OSGi service identifier.
  169. *
  170. * @return the OSGi service identifier
  171. */
  172. @Override
  173. public String getOSGiServiceIdentifier() {
  174. return _commerceShipmentService.getOSGiServiceIdentifier();
  175. }
  176. @Override
  177. public com.liferay.commerce.model.CommerceShipment
  178. reprocessCommerceShipment(long commerceShipmentId)
  179. throws com.liferay.portal.kernel.exception.PortalException {
  180. return _commerceShipmentService.reprocessCommerceShipment(
  181. commerceShipmentId);
  182. }
  183. /**
  184. * @deprecated As of Cavanaugh (7.4.x), replaced by {@link
  185. #updateAddress(long, String, String, String, String, String, String,
  186. String, long, long, String, ServiceContext)}
  187. */
  188. @Deprecated
  189. @Override
  190. public com.liferay.commerce.model.CommerceShipment updateAddress(
  191. long commerceShipmentId, String name, String description,
  192. String street1, String street2, String street3, String city,
  193. String zip, long regionId, long countryId, String phoneNumber)
  194. throws com.liferay.portal.kernel.exception.PortalException {
  195. return _commerceShipmentService.updateAddress(
  196. commerceShipmentId, name, description, street1, street2, street3,
  197. city, zip, regionId, countryId, phoneNumber);
  198. }
  199. @Override
  200. public com.liferay.commerce.model.CommerceShipment updateAddress(
  201. long commerceShipmentId, String name, String description,
  202. String street1, String street2, String street3, String city,
  203. String zip, long regionId, long countryId, String phoneNumber,
  204. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  205. throws com.liferay.portal.kernel.exception.PortalException {
  206. return _commerceShipmentService.updateAddress(
  207. commerceShipmentId, name, description, street1, street2, street3,
  208. city, zip, regionId, countryId, phoneNumber, serviceContext);
  209. }
  210. @Override
  211. public com.liferay.commerce.model.CommerceShipment updateCarrierDetails(
  212. long commerceShipmentId, String carrier, String trackingNumber)
  213. throws com.liferay.portal.kernel.exception.PortalException {
  214. return _commerceShipmentService.updateCarrierDetails(
  215. commerceShipmentId, carrier, trackingNumber);
  216. }
  217. @Override
  218. public com.liferay.commerce.model.CommerceShipment updateCommerceShipment(
  219. com.liferay.commerce.model.CommerceShipment commerceShipment)
  220. throws com.liferay.portal.kernel.exception.PortalException {
  221. return _commerceShipmentService.updateCommerceShipment(
  222. commerceShipment);
  223. }
  224. @Override
  225. public com.liferay.commerce.model.CommerceShipment updateCommerceShipment(
  226. long commerceShipmentId, long commerceShippingMethodId,
  227. String carrier, int expectedDateMonth, int expectedDateDay,
  228. int expectedDateYear, int expectedDateHour, int expectedDateMinute,
  229. int shippingDateMonth, int shippingDateDay, int shippingDateYear,
  230. int shippingDateHour, int shippingDateMinute, String trackingNumber,
  231. String trackingURL, int status,
  232. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  233. throws com.liferay.portal.kernel.exception.PortalException {
  234. return _commerceShipmentService.updateCommerceShipment(
  235. commerceShipmentId, commerceShippingMethodId, carrier,
  236. expectedDateMonth, expectedDateDay, expectedDateYear,
  237. expectedDateHour, expectedDateMinute, shippingDateMonth,
  238. shippingDateDay, shippingDateYear, shippingDateHour,
  239. shippingDateMinute, trackingNumber, trackingURL, status,
  240. serviceContext);
  241. }
  242. @Override
  243. public com.liferay.commerce.model.CommerceShipment updateCommerceShipment(
  244. long commerceShipmentId, long commerceShippingMethodId,
  245. String carrier, int expectedDateMonth, int expectedDateDay,
  246. int expectedDateYear, int expectedDateHour, int expectedDateMinute,
  247. int shippingDateMonth, int shippingDateDay, int shippingDateYear,
  248. int shippingDateHour, int shippingDateMinute, String trackingNumber,
  249. String trackingURL, int status, String name, String description,
  250. String street1, String street2, String street3, String city,
  251. String zip, long regionId, long countryId, String phoneNumber,
  252. com.liferay.portal.kernel.service.ServiceContext serviceContext)
  253. throws com.liferay.portal.kernel.exception.PortalException {
  254. return _commerceShipmentService.updateCommerceShipment(
  255. commerceShipmentId, commerceShippingMethodId, carrier,
  256. expectedDateMonth, expectedDateDay, expectedDateYear,
  257. expectedDateHour, expectedDateMinute, shippingDateMonth,
  258. shippingDateDay, shippingDateYear, shippingDateHour,
  259. shippingDateMinute, trackingNumber, trackingURL, status, name,
  260. description, street1, street2, street3, city, zip, regionId,
  261. countryId, phoneNumber, serviceContext);
  262. }
  263. @Override
  264. public com.liferay.commerce.model.CommerceShipment updateExpectedDate(
  265. long commerceShipmentId, int expectedDateMonth, int expectedDateDay,
  266. int expectedDateYear, int expectedDateHour, int expectedDateMinute)
  267. throws com.liferay.portal.kernel.exception.PortalException {
  268. return _commerceShipmentService.updateExpectedDate(
  269. commerceShipmentId, expectedDateMonth, expectedDateDay,
  270. expectedDateYear, expectedDateHour, expectedDateMinute);
  271. }
  272. @Override
  273. public com.liferay.commerce.model.CommerceShipment
  274. updateExternalReferenceCode(
  275. long commerceShipmentId, String externalReferenceCode)
  276. throws com.liferay.portal.kernel.exception.PortalException {
  277. return _commerceShipmentService.updateExternalReferenceCode(
  278. commerceShipmentId, externalReferenceCode);
  279. }
  280. @Override
  281. public com.liferay.commerce.model.CommerceShipment updateShippingDate(
  282. long commerceShipmentId, int shippingDateMonth, int shippingDateDay,
  283. int shippingDateYear, int shippingDateHour, int shippingDateMinute)
  284. throws com.liferay.portal.kernel.exception.PortalException {
  285. return _commerceShipmentService.updateShippingDate(
  286. commerceShipmentId, shippingDateMonth, shippingDateDay,
  287. shippingDateYear, shippingDateHour, shippingDateMinute);
  288. }
  289. @Override
  290. public com.liferay.commerce.model.CommerceShipment updateStatus(
  291. long commerceShipmentId, int status)
  292. throws com.liferay.portal.kernel.exception.PortalException {
  293. return _commerceShipmentService.updateStatus(
  294. commerceShipmentId, status);
  295. }
  296. @Override
  297. public CommerceShipmentService getWrappedService() {
  298. return _commerceShipmentService;
  299. }
  300. @Override
  301. public void setWrappedService(
  302. CommerceShipmentService commerceShipmentService) {
  303. _commerceShipmentService = commerceShipmentService;
  304. }
  305. private CommerceShipmentService _commerceShipmentService;
  306. }