001    /**
002     * Copyright (c) 2000-2012 Liferay, Inc. All rights reserved.
003     *
004     * This library is free software; you can redistribute it and/or modify it under
005     * the terms of the GNU Lesser General Public License as published by the Free
006     * Software Foundation; either version 2.1 of the License, or (at your option)
007     * any later version.
008     *
009     * This library is distributed in the hope that it will be useful, but WITHOUT
010     * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
011     * FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more
012     * details.
013     */
014    
015    package com.liferay.portal.service;
016    
017    /**
018     * <p>
019     * This class is a wrapper for {@link AddressService}.
020     * </p>
021     *
022     * @author    Brian Wing Shun Chan
023     * @see       AddressService
024     * @generated
025     */
026    public class AddressServiceWrapper implements AddressService,
027            ServiceWrapper<AddressService> {
028            public AddressServiceWrapper(AddressService addressService) {
029                    _addressService = addressService;
030            }
031    
032            public com.liferay.portal.model.Address addAddress(
033                    java.lang.String className, long classPK, java.lang.String street1,
034                    java.lang.String street2, java.lang.String street3,
035                    java.lang.String city, java.lang.String zip, long regionId,
036                    long countryId, int typeId, boolean mailing, boolean primary)
037                    throws com.liferay.portal.kernel.exception.PortalException,
038                            com.liferay.portal.kernel.exception.SystemException {
039                    return _addressService.addAddress(className, classPK, street1, street2,
040                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
041            }
042    
043            public void deleteAddress(long addressId)
044                    throws com.liferay.portal.kernel.exception.PortalException,
045                            com.liferay.portal.kernel.exception.SystemException {
046                    _addressService.deleteAddress(addressId);
047            }
048    
049            public com.liferay.portal.model.Address getAddress(long addressId)
050                    throws com.liferay.portal.kernel.exception.PortalException,
051                            com.liferay.portal.kernel.exception.SystemException {
052                    return _addressService.getAddress(addressId);
053            }
054    
055            public java.util.List<com.liferay.portal.model.Address> getAddresses(
056                    java.lang.String className, long classPK)
057                    throws com.liferay.portal.kernel.exception.PortalException,
058                            com.liferay.portal.kernel.exception.SystemException {
059                    return _addressService.getAddresses(className, classPK);
060            }
061    
062            public com.liferay.portal.model.Address updateAddress(long addressId,
063                    java.lang.String street1, java.lang.String street2,
064                    java.lang.String street3, java.lang.String city, java.lang.String zip,
065                    long regionId, long countryId, int typeId, boolean mailing,
066                    boolean primary)
067                    throws com.liferay.portal.kernel.exception.PortalException,
068                            com.liferay.portal.kernel.exception.SystemException {
069                    return _addressService.updateAddress(addressId, street1, street2,
070                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
071            }
072    
073            /**
074             * @deprecated Renamed to {@link #getWrappedService}
075             */
076            public AddressService getWrappedAddressService() {
077                    return _addressService;
078            }
079    
080            /**
081             * @deprecated Renamed to {@link #setWrappedService}
082             */
083            public void setWrappedAddressService(AddressService addressService) {
084                    _addressService = addressService;
085            }
086    
087            public AddressService getWrappedService() {
088                    return _addressService;
089            }
090    
091            public void setWrappedService(AddressService addressService) {
092                    _addressService = addressService;
093            }
094    
095            private AddressService _addressService;
096    }