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            /**
034            * @deprecated As of 6.2.0, replaced by {@link #addAddress(String, long,
035            String, String, String, String, String, long, long, int,
036            boolean, boolean, ServiceContext)}
037            */
038            @Deprecated
039            @Override
040            public com.liferay.portal.model.Address addAddress(
041                    java.lang.String className, long classPK, java.lang.String street1,
042                    java.lang.String street2, java.lang.String street3,
043                    java.lang.String city, java.lang.String zip, long regionId,
044                    long countryId, long typeId, boolean mailing, boolean primary)
045                    throws com.liferay.portal.kernel.exception.PortalException {
046                    return _addressService.addAddress(className, classPK, street1, street2,
047                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
048            }
049    
050            @Override
051            public com.liferay.portal.model.Address addAddress(
052                    java.lang.String className, long classPK, java.lang.String street1,
053                    java.lang.String street2, java.lang.String street3,
054                    java.lang.String city, java.lang.String zip, long regionId,
055                    long countryId, long typeId, boolean mailing, boolean primary,
056                    com.liferay.portal.service.ServiceContext serviceContext)
057                    throws com.liferay.portal.kernel.exception.PortalException {
058                    return _addressService.addAddress(className, classPK, street1, street2,
059                            street3, city, zip, regionId, countryId, typeId, mailing, primary,
060                            serviceContext);
061            }
062    
063            @Override
064            public void deleteAddress(long addressId)
065                    throws com.liferay.portal.kernel.exception.PortalException {
066                    _addressService.deleteAddress(addressId);
067            }
068    
069            @Override
070            public com.liferay.portal.model.Address getAddress(long addressId)
071                    throws com.liferay.portal.kernel.exception.PortalException {
072                    return _addressService.getAddress(addressId);
073            }
074    
075            @Override
076            public java.util.List<com.liferay.portal.model.Address> getAddresses(
077                    java.lang.String className, long classPK)
078                    throws com.liferay.portal.kernel.exception.PortalException {
079                    return _addressService.getAddresses(className, classPK);
080            }
081    
082            /**
083            * Returns the OSGi service identifier.
084            *
085            * @return the OSGi service identifier
086            */
087            @Override
088            public java.lang.String getOSGiServiceIdentifier() {
089                    return _addressService.getOSGiServiceIdentifier();
090            }
091    
092            @Override
093            public com.liferay.portal.model.Address updateAddress(long addressId,
094                    java.lang.String street1, java.lang.String street2,
095                    java.lang.String street3, java.lang.String city, java.lang.String zip,
096                    long regionId, long countryId, long typeId, boolean mailing,
097                    boolean primary)
098                    throws com.liferay.portal.kernel.exception.PortalException {
099                    return _addressService.updateAddress(addressId, street1, street2,
100                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
101            }
102    
103            @Override
104            public AddressService getWrappedService() {
105                    return _addressService;
106            }
107    
108            @Override
109            public void setWrappedService(AddressService addressService) {
110                    _addressService = addressService;
111            }
112    
113            private AddressService _addressService;
114    }