001    /**
002     * Copyright (c) 2000-2010 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            public AddressServiceWrapper(AddressService addressService) {
028                    _addressService = addressService;
029            }
030    
031            public com.liferay.portal.model.Address addAddress(
032                    java.lang.String className, long classPK, java.lang.String street1,
033                    java.lang.String street2, java.lang.String street3,
034                    java.lang.String city, java.lang.String zip, long regionId,
035                    long countryId, int typeId, boolean mailing, boolean primary)
036                    throws com.liferay.portal.kernel.exception.PortalException,
037                            com.liferay.portal.kernel.exception.SystemException {
038                    return _addressService.addAddress(className, classPK, street1, street2,
039                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
040            }
041    
042            public void deleteAddress(long addressId)
043                    throws com.liferay.portal.kernel.exception.PortalException,
044                            com.liferay.portal.kernel.exception.SystemException {
045                    _addressService.deleteAddress(addressId);
046            }
047    
048            public com.liferay.portal.model.Address getAddress(long addressId)
049                    throws com.liferay.portal.kernel.exception.PortalException,
050                            com.liferay.portal.kernel.exception.SystemException {
051                    return _addressService.getAddress(addressId);
052            }
053    
054            public java.util.List<com.liferay.portal.model.Address> getAddresses(
055                    java.lang.String className, long classPK)
056                    throws com.liferay.portal.kernel.exception.PortalException,
057                            com.liferay.portal.kernel.exception.SystemException {
058                    return _addressService.getAddresses(className, classPK);
059            }
060    
061            public com.liferay.portal.model.Address updateAddress(long addressId,
062                    java.lang.String street1, java.lang.String street2,
063                    java.lang.String street3, java.lang.String city, java.lang.String zip,
064                    long regionId, long countryId, int typeId, boolean mailing,
065                    boolean primary)
066                    throws com.liferay.portal.kernel.exception.PortalException,
067                            com.liferay.portal.kernel.exception.SystemException {
068                    return _addressService.updateAddress(addressId, street1, street2,
069                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
070            }
071    
072            public AddressService getWrappedAddressService() {
073                    return _addressService;
074            }
075    
076            private AddressService _addressService;
077    }