1   /**
2    * Copyright (c) 2000-2010 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  
15  package com.liferay.portal.service;
16  
17  
18  /**
19   * <a href="AddressServiceUtil.java.html"><b><i>View Source</i></b></a>
20   *
21   * <p>
22   * ServiceBuilder generated this class. Modifications in this class will be
23   * overwritten the next time is generated.
24   * </p>
25   *
26   * <p>
27   * This class is a wrapper for {@link AddressService}.
28   * </p>
29   *
30   * @author    Brian Wing Shun Chan
31   * @see       AddressService
32   * @generated
33   */
34  public class AddressServiceWrapper implements AddressService {
35      public AddressServiceWrapper(AddressService addressService) {
36          _addressService = addressService;
37      }
38  
39      public com.liferay.portal.model.Address addAddress(
40          java.lang.String className, long classPK, java.lang.String street1,
41          java.lang.String street2, java.lang.String street3,
42          java.lang.String city, java.lang.String zip, long regionId,
43          long countryId, int typeId, boolean mailing, boolean primary)
44          throws com.liferay.portal.kernel.exception.PortalException,
45              com.liferay.portal.kernel.exception.SystemException {
46          return _addressService.addAddress(className, classPK, street1, street2,
47              street3, city, zip, regionId, countryId, typeId, mailing, primary);
48      }
49  
50      public void deleteAddress(long addressId)
51          throws com.liferay.portal.kernel.exception.PortalException,
52              com.liferay.portal.kernel.exception.SystemException {
53          _addressService.deleteAddress(addressId);
54      }
55  
56      public com.liferay.portal.model.Address getAddress(long addressId)
57          throws com.liferay.portal.kernel.exception.PortalException,
58              com.liferay.portal.kernel.exception.SystemException {
59          return _addressService.getAddress(addressId);
60      }
61  
62      public java.util.List<com.liferay.portal.model.Address> getAddresses(
63          java.lang.String className, long classPK)
64          throws com.liferay.portal.kernel.exception.PortalException,
65              com.liferay.portal.kernel.exception.SystemException {
66          return _addressService.getAddresses(className, classPK);
67      }
68  
69      public com.liferay.portal.model.Address updateAddress(long addressId,
70          java.lang.String street1, java.lang.String street2,
71          java.lang.String street3, java.lang.String city, java.lang.String zip,
72          long regionId, long countryId, int typeId, boolean mailing,
73          boolean primary)
74          throws com.liferay.portal.kernel.exception.PortalException,
75              com.liferay.portal.kernel.exception.SystemException {
76          return _addressService.updateAddress(addressId, street1, street2,
77              street3, city, zip, regionId, countryId, typeId, mailing, primary);
78      }
79  
80      public AddressService getWrappedAddressService() {
81          return _addressService;
82      }
83  
84      private AddressService _addressService;
85  }