001    /**
002     * Copyright (c) 2000-2013 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            * Returns the Spring bean ID for this bean.
035            *
036            * @return the Spring bean ID for this bean
037            */
038            @Override
039            public java.lang.String getBeanIdentifier() {
040                    return _addressService.getBeanIdentifier();
041            }
042    
043            /**
044            * Sets the Spring bean ID for this bean.
045            *
046            * @param beanIdentifier the Spring bean ID for this bean
047            */
048            @Override
049            public void setBeanIdentifier(java.lang.String beanIdentifier) {
050                    _addressService.setBeanIdentifier(beanIdentifier);
051            }
052    
053            /**
054            * @deprecated As of 6.2.0, replaced by {@link #addAddress( String, long,
055            String, String, String, String, String, long, long, int,
056            boolean, boolean, ServiceContext)}
057            */
058            @Override
059            public com.liferay.portal.model.Address addAddress(
060                    java.lang.String className, long classPK, java.lang.String street1,
061                    java.lang.String street2, java.lang.String street3,
062                    java.lang.String city, java.lang.String zip, long regionId,
063                    long countryId, int typeId, boolean mailing, boolean primary)
064                    throws com.liferay.portal.kernel.exception.PortalException,
065                            com.liferay.portal.kernel.exception.SystemException {
066                    return _addressService.addAddress(className, classPK, street1, street2,
067                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
068            }
069    
070            @Override
071            public com.liferay.portal.model.Address addAddress(
072                    java.lang.String className, long classPK, java.lang.String street1,
073                    java.lang.String street2, java.lang.String street3,
074                    java.lang.String city, java.lang.String zip, long regionId,
075                    long countryId, int typeId, boolean mailing, boolean primary,
076                    com.liferay.portal.service.ServiceContext serviceContext)
077                    throws com.liferay.portal.kernel.exception.PortalException,
078                            com.liferay.portal.kernel.exception.SystemException {
079                    return _addressService.addAddress(className, classPK, street1, street2,
080                            street3, city, zip, regionId, countryId, typeId, mailing, primary,
081                            serviceContext);
082            }
083    
084            @Override
085            public void deleteAddress(long addressId)
086                    throws com.liferay.portal.kernel.exception.PortalException,
087                            com.liferay.portal.kernel.exception.SystemException {
088                    _addressService.deleteAddress(addressId);
089            }
090    
091            @Override
092            public com.liferay.portal.model.Address getAddress(long addressId)
093                    throws com.liferay.portal.kernel.exception.PortalException,
094                            com.liferay.portal.kernel.exception.SystemException {
095                    return _addressService.getAddress(addressId);
096            }
097    
098            @Override
099            public java.util.List<com.liferay.portal.model.Address> getAddresses(
100                    java.lang.String className, long classPK)
101                    throws com.liferay.portal.kernel.exception.PortalException,
102                            com.liferay.portal.kernel.exception.SystemException {
103                    return _addressService.getAddresses(className, classPK);
104            }
105    
106            @Override
107            public com.liferay.portal.model.Address updateAddress(long addressId,
108                    java.lang.String street1, java.lang.String street2,
109                    java.lang.String street3, java.lang.String city, java.lang.String zip,
110                    long regionId, long countryId, int typeId, boolean mailing,
111                    boolean primary)
112                    throws com.liferay.portal.kernel.exception.PortalException,
113                            com.liferay.portal.kernel.exception.SystemException {
114                    return _addressService.updateAddress(addressId, street1, street2,
115                            street3, city, zip, regionId, countryId, typeId, mailing, primary);
116            }
117    
118            /**
119             * @deprecated As of 6.1.0, replaced by {@link #getWrappedService}
120             */
121            public AddressService getWrappedAddressService() {
122                    return _addressService;
123            }
124    
125            /**
126             * @deprecated As of 6.1.0, replaced by {@link #setWrappedService}
127             */
128            public void setWrappedAddressService(AddressService addressService) {
129                    _addressService = addressService;
130            }
131    
132            @Override
133            public AddressService getWrappedService() {
134                    return _addressService;
135            }
136    
137            @Override
138            public void setWrappedService(AddressService addressService) {
139                    _addressService = addressService;
140            }
141    
142            private AddressService _addressService;
143    }