001    /**
002     * Copyright (c) 2000-2011 Liferay, Inc. All rights reserved.
003     *
004     * The contents of this file are subject to the terms of the Liferay Enterprise
005     * Subscription License ("License"). You may not use this file except in
006     * compliance with the License. You can obtain a copy of the License by
007     * contacting Liferay, Inc. See the License for the specific language governing
008     * permissions and limitations under the License, including but not limited to
009     * distribution rights of the Software.
010     *
011     *
012     *
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    }