001    /**
002     * Copyright (c) 2000-present 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    import aQute.bnd.annotation.ProviderType;
018    
019    /**
020     * Provides a wrapper for {@link AddressService}.
021     *
022     * @author Brian Wing Shun Chan
023     * @see AddressService
024     * @generated
025     */
026    @ProviderType
027    public class AddressServiceWrapper implements AddressService,
028            ServiceWrapper<AddressService> {
029            public AddressServiceWrapper(AddressService addressService) {
030                    _addressService = addressService;
031            }
032    
033            @Override
034            public com.liferay.portal.model.Address addAddress(
035                    java.lang.String className, long classPK, java.lang.String street1,
036                    java.lang.String street2, java.lang.String street3,
037                    java.lang.String city, java.lang.String zip, long regionId,
038                    long countryId, long typeId, boolean mailing, boolean primary,
039                    com.liferay.portal.service.ServiceContext serviceContext)
040                    throws com.liferay.portal.kernel.exception.PortalException {
041                    return _addressService.addAddress(className, classPK, street1, street2,
042                            street3, city, zip, regionId, countryId, typeId, mailing, primary,
043                            serviceContext);
044            }
045    
046            @Override
047            public void deleteAddress(long addressId)
048                    throws com.liferay.portal.kernel.exception.PortalException {
049                    _addressService.deleteAddress(addressId);
050            }
051    
052            @Override
053            public com.liferay.portal.model.Address getAddress(long addressId)
054                    throws com.liferay.portal.kernel.exception.PortalException {
055                    return _addressService.getAddress(addressId);
056            }
057    
058            @Override
059            public java.util.List<com.liferay.portal.model.Address> getAddresses(
060                    java.lang.String className, long classPK)
061                    throws com.liferay.portal.kernel.exception.PortalException {
062                    return _addressService.getAddresses(className, classPK);
063            }
064    
065            /**
066            * Returns the OSGi service identifier.
067            *
068            * @return the OSGi service identifier
069            */
070            @Override
071            public java.lang.String getOSGiServiceIdentifier() {
072                    return _addressService.getOSGiServiceIdentifier();
073            }
074    
075            @Override
076            public com.liferay.portal.model.Address updateAddress(long addressId,
077                    java.lang.String street1, java.lang.String street2,
078                    java.lang.String street3, java.lang.String city, java.lang.String zip,
079                    long regionId, long countryId, long typeId, boolean mailing,
080                    boolean primary)
081                    throws com.liferay.portal.kernel.exception.PortalException {
082                    return _addressService.updateAddress(addressId, street1, street2,
083                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
084            }
085    
086            @Override
087            public AddressService getWrappedService() {
088                    return _addressService;
089            }
090    
091            @Override
092            public void setWrappedService(AddressService addressService) {
093                    _addressService = addressService;
094            }
095    
096            private AddressService _addressService;
097    }