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 Spring bean ID for this bean.
084            *
085            * @return the Spring bean ID for this bean
086            */
087            @Override
088            public java.lang.String getBeanIdentifier() {
089                    return _addressService.getBeanIdentifier();
090            }
091    
092            /**
093            * Sets the Spring bean ID for this bean.
094            *
095            * @param beanIdentifier the Spring bean ID for this bean
096            */
097            @Override
098            public void setBeanIdentifier(java.lang.String beanIdentifier) {
099                    _addressService.setBeanIdentifier(beanIdentifier);
100            }
101    
102            @Override
103            public com.liferay.portal.model.Address updateAddress(long addressId,
104                    java.lang.String street1, java.lang.String street2,
105                    java.lang.String street3, java.lang.String city, java.lang.String zip,
106                    long regionId, long countryId, long typeId, boolean mailing,
107                    boolean primary)
108                    throws com.liferay.portal.kernel.exception.PortalException {
109                    return _addressService.updateAddress(addressId, street1, street2,
110                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
111            }
112    
113            /**
114             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
115             */
116            @Deprecated
117            public AddressService getWrappedAddressService() {
118                    return _addressService;
119            }
120    
121            /**
122             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
123             */
124            @Deprecated
125            public void setWrappedAddressService(AddressService addressService) {
126                    _addressService = addressService;
127            }
128    
129            @Override
130            public AddressService getWrappedService() {
131                    return _addressService;
132            }
133    
134            @Override
135            public void setWrappedService(AddressService addressService) {
136                    _addressService = addressService;
137            }
138    
139            private AddressService _addressService;
140    }